: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);
}

* {
  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.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: 900;
  letter-spacing: 0.04em;
  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: 800;
  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: 900;
  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: 800;
}

.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: 900;
  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;
  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: 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: 900;
}

.menu a {
  padding: 13px 14px;
  color: var(--slate);
  border-radius: 16px;
  font-weight: 800;
  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: 900;
}

.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;
}

.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: 24px;
}

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

.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: 24px;
  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: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(18, 74, 140, 0.08);
}

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

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

.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: 800;
}

.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: 900;
}

.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: 900;
  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: 900;
}

.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: 800;
  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: 100vw;
  height: 100vh;
  background: rgba(6, 33, 74, 0.38);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.24s ease, backdrop-filter 0.24s ease;
}

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

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

.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;
}

.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: 900;
}

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

.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(920px, calc(100vw - 28px));
  max-height: min(82vh, 760px);
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 22px 24px 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96)),
    radial-gradient(circle at top right, rgba(63, 155, 255, 0.08), transparent 18rem);
  box-shadow: 0 34px 90px rgba(12, 45, 88, 0.22);
  overflow: auto;
}

.user-permission-modal-card .modal-title {
  align-items: center;
}

.user-permission-modal-card .modal-title h3 {
  color: #152746;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.user-permission-intro {
  margin: -2px 0 2px;
  color: #6e829b;
  font-size: 14px;
  line-height: 1.7;
}

.user-permission-groups {
  display: grid;
  gap: 14px;
  padding: 2px 0 0;
}

.user-permission-section {
  padding: 14px 16px 14px;
  border: 1px solid #dfe9f6;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #f3f7fc);
}

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

.user-permission-section-head h4 {
  margin: 0;
  color: #28405f;
  font-size: 15px;
  font-weight: 900;
}

.user-permission-section-head p {
  margin: 0;
  color: #8296ae;
  font-size: 12px;
  line-height: 1.5;
}

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

.user-permission-item {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: #39506e;
  border: 1px solid #cfe0f5;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

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

.user-permission-item input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1e8cff;
  flex: 0 0 auto;
}

.user-permission-item span {
  color: #415978;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.user-permission-item:has(input:checked) {
  border-color: #8dc0ff;
  background:
    linear-gradient(180deg, #ffffff, #eef6ff),
    radial-gradient(circle at top right, rgba(76, 162, 255, 0.1), transparent 10rem);
  box-shadow: 0 12px 24px rgba(30, 140, 255, 0.1);
}

.user-permission-item:has(input:checked) span {
  color: #24476f;
}

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

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

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

.user-permission-modal-card .modal-actions {
  margin-top: 0;
  gap: 12px;
}

.user-permission-modal-card .modal-actions .btn {
  min-width: 108px;
  height: 42px;
  border-radius: 12px;
  font-size: 15px;
}

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

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

.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: 900;
}

.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: 900;
}

.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: 900px) {
  .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: 560px) {
  .login-body,
  .content,
  .sidebar {
    padding: 18px;
  }

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

  .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;
  }
}

/* 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: 12px;
}

.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;
}

.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: 900;
  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: 900;
}

.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: 900;
  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: 40;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 16px;
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(15, 35, 62, 0.16);
  font-size: 14px;
  font-weight: 900;
  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: 80;
  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(220px, 320px) 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: 900;
  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: 900;
  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: 900;
  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: 900;
}

.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: 900;
}

.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: 900;
  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);
  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-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: 900;
}

.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 {
  max-width: 560px;
}

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

.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: 900;
  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: 900;
}

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

.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-busy .profile-main-card {
  opacity: 0.76;
}

.profile-modal-card.is-busy::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 84px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(30, 140, 255, 0.2);
  border-top-color: #1e8cff;
  border-radius: 999px;
  animation: inline-loading-spin 0.7s linear infinite;
}

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

.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: 900;
  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: 24px;
  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: 900;
  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: 900;
  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: 900;
}

.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;
}

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

@media (max-width: 900px) {
  .profile-form-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 - 18px));
    max-height: min(88vh, 760px);
    padding: 18px 16px 18px;
  }

  .user-permission-section {
    padding: 14px 12px 12px;
  }

  .user-permission-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

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

.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: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.deepseek-summary div {
  min-height: 86px;
  padding: 16px;
  border: 1px solid #dfe7f2;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #f3f8ff);
}

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

.deepseek-summary strong {
  color: var(--blue-950);
  font-size: 18px;
}

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

.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: 800;
}

.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: 900;
}

.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: 800;
  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: 12px;
  box-shadow: 0 18px 46px rgba(15, 35, 62, 0.16);
  font-size: 14px;
  font-weight: 900;
  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: 900;
}

.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: 900px) {
  .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;
  }

  .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: 800;
}

.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;
}

.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(260px, 340px) minmax(240px, 330px) auto;
  justify-content: start;
  gap: 18px 28px;
}

.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: 800;
}

.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: 900;
}

.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: 900;
}

.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: 800;
}

.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;
}

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

.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: 900;
}

.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: 12px;
  background: #edf9f2;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .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: 620px) {
  .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: 45;
  min-width: 240px;
  max-width: min(380px, calc(100vw - 36px));
  margin: 0;
  padding: 13px 16px;
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(15, 35, 62, 0.16);
  font-size: 14px;
  font-weight: 900;
  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: 900;
}

.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: 900;
}

.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;
}

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

.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: 980px) {
  .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;
  }
}

/* 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: 900;
}

.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: 900;
}

.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: 900;
}

.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: 900;
  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: 140px !important; }
.note-table-approved col.col-title { width: 260px !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: 900;
  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: 24px;
  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: 800;
}

.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: 900;
}

.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: 900;
}

.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: 900;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .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: 620px) {
  .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: 900;
  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: 900;
}

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: 800;
  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: 900;
}

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: 900;
}

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: 900;
}

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: 900;
}

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: 900;
  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: 900;
  white-space: nowrap;
}

body.login-body .alert {
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: 14px;
}

@media (max-width: 1120px) {
  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: 620px) {
  body.login-body {
    padding: 16px;
  }

  body.login-body .login-brand,
  body.login-body .login-card {
    padding: 26px;
    border-radius: 24px;
  }

  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: 12px !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: 900 !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: 8px !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: 92px !important;
  min-width: 92px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  line-height: 30px !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: 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,
.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: 330px !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: 82px !important;
  height: 30px !important;
  padding: 0 10px !important;
  white-space: nowrap !important;
  line-height: 30px !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: 130px !important; }
.note-table-pending col.col-title { width: 220px !important; }
.note-table-pending col.col-command-wide { width: 300px !important; }
.note-table-pending col.col-content-wide { width: 300px !important; }
.note-table-pending col.col-image { width: 110px !important; }
.note-table-pending col.col-violation { width: 100px !important; }
.note-table-pending col.col-date { width: 150px !important; }
.note-table-pending col.col-status { width: 110px !important; }
.note-table-pending col.col-actions { width: 162px !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: 360px !important;
}

.note-table-approved td.note-op-links {
  box-sizing: border-box !important;
  width: 360px !important;
  max-width: 360px !important;
  overflow: hidden !important;
  padding-left: 12px !important;
  padding-right: 12px !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: 86px !important;
  max-width: none !important;
  white-space: nowrap !important;
}

.note-table-approved .note-op-links .mini-primary {
  min-width: 108px !important;
}

/* 未审核笔记表格：参考已审核笔记，使用横向表格和稳定列宽。 */
.pending-notes-panel .note-table-scroll {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border: 1px solid #e3ebf5 !important;
  border-radius: 12px !important;
  background: #fff !important;
}

.note-table-pending {
  width: max-content !important;
  min-width: 2160px !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: 150px !important; }
.note-table-pending col.col-title { width: 260px !important; }
.note-table-pending col.col-command-wide { width: 330px !important; }
.note-table-pending col.col-content-wide { width: 330px !important; }
.note-table-pending col.col-topics { width: 260px !important; }
.note-table-pending col.col-image { width: 120px !important; }
.note-table-pending col.col-violation { width: 110px !important; }
.note-table-pending col.col-date { width: 150px !important; }
.note-table-pending col.col-status { width: 120px !important; }
.note-table-pending col.col-actions { width: 230px !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: 4px !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: 0 !important;
  max-width: none !important;
  height: 24px !important;
  padding: 0 5px !important;
  line-height: 24px !important;
  white-space: nowrap !important;
  font-size: 10px !important;
  letter-spacing: 0 !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: 900 !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: 800 !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: 900 !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: 800 !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: 900 !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: 900;
}

.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: 12px !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: 220px !important;
  object-fit: cover !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: 900;
}

.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: 12px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

@media (max-width: 760px) {
  .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(100vh - 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: 12px !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: 24px;
  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: 900;
}

.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: 900;
  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: 800;
  line-height: 1.7;
}

.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: 900;
  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: 900;
  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;
  }

  .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: 900;
  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-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: 900;
  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: 800;
  line-height: 1;
}

.site-music-player-body {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.site-music-main {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  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: 800;
}

.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: 900;
  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;
  gap: 10px;
}

.site-music-control-btn {
  min-width: 42px;
  height: 38px;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  font-size: 18px;
  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-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: 800;
}

.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: 900;
  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;
}

.preview-card {
  position: sticky;
  top: 22px;
}

.site-preview-login {
  padding: 22px;
  border: 1px solid #e0ebf8;
  border-radius: 24px;
  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: 900;
}

.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: 800;
  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: 900px) {
  .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-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: 900;
}

.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: 900;
}

.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: 800;
}

.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: 800;
}

.generate-list-scroll {
  max-height: 360px;
  overflow: auto;
  padding: 0;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  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: 2px;
  min-height: 68px;
  padding: 12px 12px 12px 8px;
  cursor: pointer;
  border-bottom: 1px solid #e8eef6;
  background: #fff;
  transition: background 0.18s ease, border-color 0.18s ease;
}

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

.generate-product-card > input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 3px 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;
  padding-left: 0;
}

.generate-card-title {
  display: block;
  width: 100%;
  color: #1c3248;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
  text-align: left;
  word-break: break-word;
}

.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: 900px) {
  .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: 900;
  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: 800;
}

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: 800;
}

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: 24px;
  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: 900;
}

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: 800;
  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: 800;
  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: 900;
}

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: 800;
  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: 800;
}

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: 800;
}

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: 900;
}

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: 900;
  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: 900;
  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: 900;
}

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: 800;
  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: 900;
}

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: 1180px) {
  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: 980px) {
  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: 900;
  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: 800;
  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: 900;
}

.login-pen-overline {
  margin: 26px 0 0;
  color: #126ce2;
  font-size: 14px;
  font-weight: 800;
  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: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-sizing: border-box;
}

.login-pen-metric-card h2 {
  color: #06214a;
  font-size: 17px;
  font-weight: 800;
}

.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: 900;
}

.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: 800;
}

.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: 900;
  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: 1360px) {
  .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: 1080px) {
  .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: 24px;
  }

  .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: hidden;
}

.login-replica-screen {
  position: relative;
  min-height: 100vh;
  padding: 32px;
  overflow: hidden;
}

.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;
  min-height: calc(100vh - 64px);
  padding: 36px;
  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: 48px;
  align-items: center;
  min-height: 100%;
}

.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;
  min-height: 724px;
  padding: 30px 30px 36px;
  overflow: hidden;
  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: 900;
}

.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: 900;
  letter-spacing: 0.18em;
}

.login-replica-brand h1 {
  margin: 14px 0 0;
  color: #102033;
  font-size: 30px;
  font-weight: 900;
}

.login-replica-headline {
  margin: 52px 0 0;
  color: #102033;
  font-size: 33px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.2;
  white-space: nowrap;
}

.login-replica-copy {
  max-width: 560px;
  margin: 18px 0 0;
  color: #5a718c;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.9;
}

.login-replica-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 114px;
}

.login-replica-metric-card {
  min-height: 136px;
  padding: 28px 26px 22px;
  border: 1px solid rgba(30, 140, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
}

.login-replica-metric-card > span {
  color: #1e8cff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.login-replica-metric-card h2 {
  margin: 12px 0 0;
  color: #102033;
  font-size: 20px;
  font-weight: 900;
}

.login-replica-metric-card p {
  margin: 14px 0 0;
  color: #6d7f95;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.75;
}

.login-replica-card {
  position: relative;
  min-height: 690px;
  padding: 54px 38px 34px;
  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: 900;
}

.login-replica-card-head p {
  margin: 0;
  color: #1e8cff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.login-replica-card-head h2 {
  margin: 16px 0 0;
  color: #102033;
  font-size: 30px;
  font-weight: 900;
}

.login-replica-card-head small {
  display: block;
  max-width: 302px;
  margin-top: 12px;
  color: #6d7f95;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.login-replica-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 58px;
}

.login-replica-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-replica-field > span {
  color: #1f3248;
  font-size: 14px;
  font-weight: 900;
}

.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: 800;
}

.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: 900;
  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);
}

.home-replica-page {
  position: relative;
  overflow-x: hidden;
}

.home-replica-glow-left {
  top: -20px;
  left: -80px;
  width: 420px;
  height: 420px;
  background: rgba(59, 148, 255, 0.12);
}

.home-replica-glow-right {
  top: 120px;
  right: 70px;
  width: 240px;
  height: 240px;
  background: rgba(18, 108, 226, 0.1);
}

.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: 28px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(12px);
}

.home-replica-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
}

.home-replica-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.home-replica-brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f2b4d 0%, #0d63d8 56%, #2f95ff 100%);
  font-size: 22px;
  font-weight: 900;
  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.08em;
}

.home-replica-nav,
.home-replica-actions,
.home-replica-hero-actions,
.home-replica-proof-strip {
  display: flex;
  gap: 12px;
  align-items: center;
}

.home-replica-nav {
  gap: 22px;
}

.home-replica-nav a {
  color: #4c6684;
  font-size: 14px;
  font-weight: 800;
}

.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.16);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-replica-btn.secondary {
  color: #1e6fd2;
  background: #edf7ff;
}

.home-replica-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(460px, 0.98fr);
  gap: 34px;
  align-items: center;
  margin-top: 32px;
  padding: 42px 40px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 247, 255, 0.92));
}

.home-replica-hero-copy h1,
.home-replica-section-head h2 {
  margin: 0;
  color: #102033;
  letter-spacing: -0.04em;
}

.home-replica-hero-copy h1 {
  margin-top: 34px;
  font-size: 40px;
  line-height: 1.22;
}

.home-replica-hero-copy p {
  max-width: 500px;
  margin: 26px 0 0;
  color: #5a718c;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.9;
}

.home-replica-hero-actions {
  margin-top: 32px;
}

.home-replica-proof-strip {
  flex-wrap: wrap;
  margin-top: 38px;
}

.home-replica-proof-strip span {
  padding: 10px 14px;
  color: #173452;
  border: 1px solid rgba(26, 103, 203, 0.12);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.home-replica-console {
  padding: 22px;
  border: 1px solid #d7e8fa;
  border-radius: 30px;
  background: #f7fbff;
  box-shadow: 0 24px 60px rgba(18, 74, 140, 0.1);
}

.home-replica-console-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
}

.home-replica-console-header strong {
  color: #173452;
  font-size: 14px;
}

.home-replica-console-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf7ff;
  color: #1e6fd2;
  font-size: 12px;
  font-weight: 900;
}

.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-radius: 22px;
  background: #fff;
}

.home-replica-console-sidebar span {
  padding: 10px 12px;
  color: #6d7f95;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
}

.home-replica-console-sidebar span.active {
  color: #1e6fd2;
  background: #edf7ff;
}

.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 {
  padding: 22px;
  border-radius: 22px;
  background: #fff;
}

.home-replica-console-metrics small {
  display: block;
  color: #6d7f95;
  font-size: 12px;
  font-weight: 800;
}

.home-replica-console-metrics strong {
  display: block;
  margin-top: 10px;
  color: #102033;
  font-size: 30px;
}

.home-replica-console-list {
  margin-top: 18px;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
}

.home-replica-console-list p {
  margin: 0 0 18px;
  color: #6d7f95;
  font-size: 12px;
  font-weight: 800;
}

.home-replica-console-list div {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr;
  gap: 10px;
  padding: 12px 0;
  color: #173452;
  border-top: 1px solid #edf2f8;
  font-size: 12px;
  font-weight: 800;
}

.home-replica-console-list div:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.home-replica-console-list span {
  color: #6d7f95;
}

.home-replica-section,
.home-replica-workflow {
  margin-top: 88px;
}

.home-replica-section-head p {
  margin: 0 0 18px;
  color: #1e8cff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.home-replica-section-head h2 {
  max-width: 840px;
  font-size: 34px;
  line-height: 1.28;
}

.home-replica-capability-grid,
.home-replica-workflow-grid {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.home-replica-capability-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-replica-capability-card {
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
}

.home-replica-capability-card > span {
  color: #1e8cff;
  font-size: 12px;
  font-weight: 900;
  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: 24px;
  line-height: 1.34;
}

.home-replica-capability-card p,
.home-replica-flow-card p,
.home-replica-workflow-entry p {
  margin: 16px 0 0;
  color: #5a718c;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.85;
}

.home-replica-workflow {
  padding: 42px 40px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 247, 255, 0.92));
}

.home-replica-workflow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-replica-flow-card,
.home-replica-workflow-entry {
  padding: 28px;
  border-radius: 26px;
  background: #fff;
}

.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-workflow-entry {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-replica-workflow-entry .home-replica-btn {
  align-self: flex-start;
  margin-top: 28px;
}

@media (max-width: 1220px) {
  .login-replica-shell,
  .home-replica-hero,
  .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;
  }
}

@media (max-width: 980px) {
  .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 {
    flex-wrap: wrap;
  }

  .home-replica-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@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-workflow,
  .home-replica-capability-card,
  .home-replica-flow-card,
  .home-replica-workflow-entry,
  .home-replica-console {
    padding-left: 18px;
    padding-right: 18px;
    border-radius: 24px;
  }

  .login-replica-captcha-row,
  .home-replica-console-metrics,
  .home-replica-console-list div {
    grid-template-columns: 1fr;
  }

  .user-permission-grid {
    grid-template-columns: 1fr;
  }

  .user-permission-item {
    min-height: 40px;
    padding: 0 12px;
  }

  .user-permission-item span {
    font-size: 14px;
  }

  .login-replica-headline,
  .home-replica-hero-copy h1,
  .home-replica-section-head h2 {
    font-size: 30px;
  }
}
