:root {
  --color-primary: #003153;
  --color-primary-deep: #05243c;
  --color-accent: #ff7d00;
  --color-green: #36b37e;
  --color-danger: #d94b4b;
  --color-warning: #f5a623;
  --color-bg: #f5f7fa;
  --color-panel: #ffffff;
  --color-panel-soft: #eef4f8;
  --color-panel-muted: #f8fafc;
  --color-text-title: #1f2a37;
  --color-text-body: #4b5563;
  --color-text-muted: #7b8794;
  --color-border: #dbe5ee;
  --color-shell-line: rgba(255, 255, 255, 0.12);
  --shadow-soft: 0 22px 48px rgba(0, 49, 83, 0.12);
  --shadow-heavy: 0 28px 70px rgba(5, 36, 60, 0.18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: radial-gradient(circle at top left, rgba(0, 49, 83, 0.16), transparent 22%), var(--color-bg);
  color: var(--color-text-body);
}
h1, h2, h3, h4, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }

.admin-global-loading-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: grayscale(1) blur(1px);
  pointer-events: all;
  cursor: wait;
}

.admin-global-loading-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 128px;
  padding: 15px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.24);
}

.admin-global-loading-mask.has-shell .admin-global-loading-panel {
  left: calc(220px + (100vw - 220px) / 2);
  top: calc(56px + (100vh - 56px) / 2);
}

.admin-global-loading-spinner {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 3px solid rgba(0, 49, 83, 0.16);
  border-top-color: var(--color-primary);
  animation: admin-global-loading-spin 0.75s linear infinite;
}

@keyframes admin-global-loading-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .admin-global-loading-mask.has-shell .admin-global-loading-panel,
  .admin-global-loading-panel {
    left: 50%;
    top: 50%;
  }
}

.story-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted-chip {
  background: rgba(0, 49, 83, 0.08);
  color: var(--color-primary);
}

.admin-login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 460px);
  gap: 24px;
  padding: 28px;
  min-width: 0;
}

.admin-login-hero,
.admin-login-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.admin-login-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 720px;
  padding: 38px;
  background: linear-gradient(145deg, #05243c 0%, #0c4d79 60%, #0f678f 100%);
  color: #ffffff;
}

.hero-pulse {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 125, 0, 0.42), transparent 70%);
  filter: blur(4px);
}

.admin-login-hero h1 {
  margin-top: 18px;
  font-size: 48px;
  line-height: 1.12;
}

.hero-subtitle {
  margin-top: 18px;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.84);
}

.hero-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.hero-metric-card {
  padding: 24px;
  border: 1px solid var(--color-shell-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero-metric-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero-metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
}

.hero-metric-card p {
  margin-top: 10px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

.hero-footer {
  display: none;
}

.admin-login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), #ffffff 42%);
}

.panel-head h2 {
  margin-top: 16px;
  font-size: 34px;
  color: var(--color-text-title);
}

.panel-head p {
  margin-top: 12px;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.compact-form {
  margin-top: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: end;
  gap: 14px;
}

.captcha-input-wrap {
  min-width: 0;
}

.field-label {
  color: var(--color-text-title);
  font-size: 14px;
  font-weight: 700;
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--color-text-title);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field-input:focus {
  outline: none;
  border-color: rgba(255, 125, 0, 0.66);
  box-shadow: 0 0 0 4px rgba(255, 125, 0, 0.12);
}

.captcha-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 52px;
  border: 1px dashed rgba(0, 49, 83, 0.24);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(0, 49, 83, 0.08), rgba(255, 125, 0, 0.08));
  color: var(--color-primary);
}

.captcha-display span {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.captcha-display small {
  color: var(--color-text-muted);
}

.captcha-display.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.login-helper-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--color-text-muted);
  font-size: 13px;
}

.status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
}

.error-banner {
  background: rgba(217, 75, 75, 0.1);
  color: var(--color-danger);
}

.warn-banner {
  margin: 0 32px 0 0;
  background: rgba(255, 125, 0, 0.14);
  color: var(--color-primary);
}

.warn-banner p {
  margin-top: 8px;
  color: var(--color-text-body);
}

.primary-cta,
.ghost-button,
.topbar-account,
.nav-item,
.brand-workbench,
.quick-entry-card,
.dashboard-filter-btn {
  border: 0;
  border-radius: var(--radius-md);
}

.primary-cta {
  padding: 15px 18px;
  background: linear-gradient(135deg, var(--color-accent), #ff9f43);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(255, 125, 0, 0.24);
}

.ghost-button {
  padding: 11px 16px;
  background: rgba(0, 49, 83, 0.06);
  color: var(--color-primary);
  font-weight: 700;
}

.inline-cta {
  width: fit-content;
}

.accent-button {
  background: #ffffff;
  color: var(--color-accent);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-width: 0;
}

.shell-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
  color: #ffffff;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand-workbench {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-align: left;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--color-accent), #ffb562);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-workbench strong {
  display: block;
  font-size: 20px;
}

.brand-workbench p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  transition: transform .18s ease, background .18s ease;
}

.nav-item small {
  color: rgba(255, 255, 255, 0.64);
}

.nav-item.is-active {
  background: rgba(255, 125, 0, 0.18);
  transform: translateX(4px);
}

.shell-main {
  padding: 24px;
  min-width: 0;
  overflow-x: hidden;
}

.shell-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.shell-topbar h1 {
  margin-top: 8px;
  font-size: 32px;
  color: var(--color-text-title);
}

.breadcrumb-line {
  color: var(--color-text-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: var(--color-text-title);
}

.topbar-account strong {
  display: block;
}

.topbar-account small {
  color: var(--color-text-muted);
}

.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(0, 49, 83, 0.1);
  color: var(--color-primary);
  font-weight: 800;
}

.content-stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.content-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.hero-shell-card,
.dashboard-hero-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 22px;
  background: linear-gradient(145deg, rgba(0, 49, 83, 0.96), rgba(12, 77, 121, 0.94));
  color: #ffffff;
}

.hero-shell-card h2,
.dashboard-hero-card h2 {
  margin-top: 14px;
  font-size: 30px;
}

.hero-shell-card p,
.dashboard-hero-card p {
  margin-top: 12px;
  max-width: 720px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

.hero-shell-meta,
.dashboard-hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px;
}

.hero-shell-meta div,
.dashboard-hero-meta div {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
}

.hero-shell-meta span,
.dashboard-hero-meta span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.hero-shell-meta strong,
.dashboard-hero-meta strong {
  display: block;
  margin-top: 8px;
  line-height: 1.5;
}

.dashboard-hero-copy {
  flex: 1;
}

.dashboard-hero-side {
  width: min(430px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.dashboard-filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-filter-btn {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
}

.dashboard-filter-btn.is-active {
  background: #ffffff;
  color: var(--color-primary);
}

.dashboard-tag-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.dashboard-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.dashboard-inline-error {
  margin-top: -4px;
}

.dashboard-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-head-row h3 {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  font-size: 24px;
  color: var(--color-text-title);
}

.section-head-row h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--color-primary);
}

.section-head-row p {
  margin-top: 8px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.section-total-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 49, 83, 0.08);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-card-grid,
.content-grid,
.loading-grid,
.governance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.todo-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.module-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-entry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.governance-grid {
  grid-template-columns: 1fr;
}

.dashboard-data-card,
.dashboard-module-card,
.governance-card,
.quick-entry-card {
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.dashboard-data-card {
  display: flex;
  flex-direction: column;
}

.dashboard-module-card,
.governance-card {
  background: linear-gradient(180deg, #ffffff, var(--color-panel-muted));
}

.dashboard-module-card.is-placeholder {
  border: 1px dashed rgba(0, 49, 83, 0.18);
  box-shadow: none;
}

.dashboard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-card-head h4 {
  font-size: 20px;
  color: var(--color-text-title);
}

.dashboard-card-head span,
.card-head span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 49, 83, 0.08);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-card-head span {
  display: none;
}

.dashboard-main-value {
  display: block;
  margin-top: 20px;
  font-size: 22px;
  line-height: 1;
  color: var(--color-text-title);
  text-align: center;
}

.dashboard-data-card p,
.dashboard-module-card p,
.detail-card p,
.dashboard-error-card p,
.dashboard-loading-card p,
.section-empty-card {
  margin-top: 14px;
  line-height: 1.8;
  color: var(--color-text-body);
}

.todo-card-grid .inline-cta {
  margin-top: 24px;
  align-self: center;
}

.module-card-grid .inline-cta {
  margin-top: 24px;
  align-self: center;
  justify-content: center;
}

.module-metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.module-metric-row div {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(0, 49, 83, 0.05);
}

.module-metric-row small {
  display: block;
  color: var(--color-text-muted);
}

.module-metric-row strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  color: var(--color-text-title);
}

.quick-entry-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  background: linear-gradient(180deg, rgba(0, 49, 83, 0.96), rgba(12, 77, 121, 0.94));
  color: #ffffff;
}

.quick-entry-card strong {
  font-size: 20px;
}

.quick-entry-card span {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.metric-item {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(0, 49, 83, 0.05);
}

.metric-item strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  color: var(--color-text-title);
}

.metric-item span {
  display: block;
  margin-top: 8px;
  color: var(--color-text-body);
  font-weight: 700;
}

.metric-item small {
  display: block;
  margin-top: 6px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.section-empty-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--color-panel-soft);
}

.dashboard-error-card,
.dashboard-loading-card,
.no-permission-card {
  text-align: center;
  padding: 60px 28px;
}

.dashboard-error-card h2,
.dashboard-loading-card h2,
.no-permission-card h2 {
  margin-top: 14px;
  color: var(--color-text-title);
  font-size: 32px;
}

.loading-block {
  min-height: 140px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(0, 49, 83, 0.08), rgba(0, 49, 83, 0.16), rgba(0, 49, 83, 0.08));
}

.route-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-card {
  min-height: 320px;
}

.muted-card {
  background: linear-gradient(180deg, #ffffff, var(--color-panel-soft));
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-head h3 {
  font-size: 22px;
  color: var(--color-text-title);
}

.bullet-list {
  margin: 16px 0 0;
  padding-left: 20px;
  line-height: 1.9;
}

.meta-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.meta-list div {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--color-panel-soft);
}

.meta-list dt {
  color: var(--color-text-muted);
  font-size: 13px;
}

.meta-list dd {
  margin: 8px 0 0;
  color: var(--color-text-title);
  font-weight: 700;
}

.password-modal-mask {
  position: fixed;
  top: 56px;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 24px 32px;
  background: rgba(5, 36, 60, 0.44);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  z-index: 180;
}

.password-modal-mask.is-hidden {
  display: none;
}

.password-modal {
  width: min(520px, 100%);
  padding: 24px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-heavy);
  max-height: calc(100vh - 56px - 56px);
}

.detail-modal {
  width: min(1240px, 100%);
  max-height: calc(100vh - 56px - 56px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-panorama-modal {
  width: min(1480px, 100%);
  max-height: calc(100vh - 56px - 56px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
}

.user-panorama-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 6px 2px 0;
}

.user-panorama-modal-body .user-panorama-card {
  margin: 0;
}

.detail-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 18px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.detail-modal-head h3 {
  font-size: 18px;
  color: var(--color-text-title);
}

.detail-modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.detail-modal-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}

.detail-modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
}

.detail-modal-footer-tip {
  color: var(--color-text-muted);
  font-size: 13px;
}

.detail-modal-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: rgba(0, 49, 83, 0.08);
  color: var(--color-primary);
  font-size: 24px;
}

.modal-tip {
  margin-top: 14px;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.field-textarea {
  min-height: 120px;
  resize: vertical;
}

.audit-hero-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(145deg, rgba(0, 49, 83, 0.96), rgba(12, 77, 121, 0.94));
  color: #ffffff;
}

.audit-hero-card h2 {
  margin-top: 14px;
  font-size: 30px;
}

.audit-hero-card p {
  margin-top: 12px;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.82);
}

.audit-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px;
  width: min(420px, 100%);
}

.compact-stats-row {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  width: auto;
}

.compact-stats-row div {
  min-width: 108px;
  padding: 12px 14px;
}

.compact-stats-row strong {
  margin-top: 6px;
  font-size: 20px;
}

.compact-stats-row {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  width: auto;
}

.compact-stats-row div {
  min-width: 108px;
  padding: 12px 14px;
}

.compact-stats-row strong {
  margin-top: 6px;
  font-size: 20px;
}

.audit-hero-stats div {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
}

.audit-hero-stats span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.audit-hero-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.audit-filter-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.audit-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.audit-search-field {
  grid-column: span 2;
}

.audit-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.audit-view-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.audit-view-tab {
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 49, 83, 0.08);
  color: var(--color-primary);
  font-weight: 700;
}

.audit-view-tab.is-active {
  background: var(--color-primary);
  color: #ffffff;
}

.audit-table-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.audit-table-scroll {
  overflow-x: auto;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
}

.audit-table th,
.audit-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.audit-table th {
  color: var(--color-text-title);
  font-size: 13px;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 49, 83, 0.08);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
}

.table-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.list-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.pager-summary {
  color: var(--color-text-muted);
  font-size: 13px;
}

.pager-number-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pager-btn,
.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--color-text-body);
  font-size: 13px;
  font-weight: 500;
}

.pager-btn.is-active,
.page-btn.is-active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.page-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  color: var(--color-text-muted);
}

.mini-btn {
  padding: 8px 10px;
  font-size: 12px;
}

.audit-detail-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.audit-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.detail-second-row {
  grid-template-columns: 1fr;
}

.detail-panel {
  padding: 20px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #ffffff, var(--color-panel-muted));
  box-shadow: var(--shadow-soft);
}

.detail-panel h4 {
  color: var(--color-text-title);
  font-size: 20px;
}

.wide-panel {
  min-height: 100%;
}

.detail-metadata {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.detail-metadata div {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(0, 49, 83, 0.05);
}

.detail-metadata dt {
  color: var(--color-text-muted);
  font-size: 12px;
}

.detail-metadata dd {
  margin: 8px 0 0;
  color: var(--color-text-title);
  font-weight: 700;
  line-height: 1.65;
}

.detail-chip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.detail-chip-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(0, 49, 83, 0.05);
}

.detail-chip-card strong {
  display: block;
  color: var(--color-text-title);
}

.detail-chip-card span {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 125, 0, 0.12);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
}

.detail-chip-card small {
  display: block;
  margin-top: 10px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.history-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.history-item {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(0, 49, 83, 0.05);
}

.history-item strong {
  color: var(--color-text-title);
}

.history-item span {
  display: block;
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.history-item p {
  margin-top: 10px;
  line-height: 1.72;
}

.action-panel p {
  margin-top: 14px;
  line-height: 1.75;
}

.action-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.audit-action-modal {
  width: min(620px, 100%);
}

.role-record-actions {
  justify-content: flex-start;
}

.audit-loading-card p,
.audit-loading-card h2 {
  text-align: center;
}

.user-hero-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(145deg, rgba(0, 49, 83, 0.96), rgba(12, 77, 121, 0.94));
  color: #ffffff;
}

.user-hero-card h2 {
  margin-top: 14px;
  font-size: 30px;
}

.user-hero-card p {
  margin-top: 12px;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.82);
}

.user-panorama-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.user-stat-card {
  position: relative;
  overflow: hidden;
}

.user-stat-icon {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-stat-icon svg {
  width: 22px;
  height: 22px;
}

.user-trend-card {
  margin-top: 20px;
  padding: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.user-trend-head {
  align-items: flex-start;
  margin-bottom: 16px;
}

.user-trend-head > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-trend-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trend-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #e8edf3;
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  font-size: 12px;
  line-height: 1;
}

.trend-legend-item strong {
  color: #1f2a37;
  font-size: 13px;
}

.trend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.trend-dot-login {
  background: #19b64a;
}

.trend-dot-card {
  background: #ff9800;
}

.user-trend-chart {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.user-trend-svg {
  width: 100%;
  min-width: 680px;
  height: auto;
  display: block;
}

.trend-grid-row line {
  stroke: #cfd4da;
  stroke-dasharray: 4 4;
  stroke-width: 1;
}

.trend-grid-row text,
.trend-axis-label {
  fill: #c4cad4;
  font-size: 7.2px;
}

.trend-axis-label {
  text-anchor: middle;
}

.trend-area {
  stroke: none;
}

.trend-login-area {
  fill: url(#userTrendLoginFill);
}

.trend-card-area {
  fill: url(#userTrendCardFill);
}

.trend-line {
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-line-login {
  stroke: #19b64a;
}

.trend-line-card {
  stroke: #ff9800;
}

.trend-crosshair {
  stroke: #b9c2cc;
  stroke-dasharray: 5 4;
  stroke-width: 1;
  opacity: 0;
  pointer-events: none;
}

.trend-hover-hit {
  fill: transparent;
  pointer-events: all;
  cursor: crosshair;
}

.trend-tooltip {
  opacity: 0;
  pointer-events: none;
}

.trend-hover-guide:hover .trend-crosshair,
.trend-hover-guide:hover .trend-tooltip {
  opacity: 1;
}

.trend-tooltip-box {
  fill: #ffffff;
  filter: drop-shadow(0 3px 8px rgba(15, 23, 42, 0.16));
}

.trend-tooltip-title {
  fill: #6b7280;
  font-size: 8.5px;
  font-weight: 600;
}

.trend-tooltip-text {
  fill: #6b7280;
  font-size: 8.5px;
}

.trend-tooltip-dot-login {
  fill: #19b64a;
}

.trend-tooltip-dot-card {
  fill: #ff9800;
}

.user-hero {
  background: linear-gradient(135deg, #003153, #005a8e);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #36b37e, #00875a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.user-hero-info {
  flex: 1;
}

.user-hero-name {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.user-hero-id {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.72;
}

.user-hero-meta {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.user-hero-actions {
  display: flex;
  gap: 10px;
}

.user-hero-actions .btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.user-hero-outline-btn {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}

.user-hero-outline-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.btn-danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #ffffff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.panorama-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.user-detail-card {
  margin-bottom: 16px;
}

.user-detail-card:last-child {
  margin-bottom: 0;
}

.user-detail-card .card-title {
  margin-bottom: 16px;
}

.home-identity-card-shell {
  margin-bottom: 16px;
}

.home-identity-card {
  position: relative;
  width: 97%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: #003153;
  box-shadow: 0 18px 42px rgba(15, 35, 71, 0.18);
}

.home-identity-main {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 210px;
  overflow: hidden;
  border-radius: 15px;
}

.home-identity-visual {
  width: 40%;
  min-height: 210px;
  flex-shrink: 0;
  display: flex;
  background: rgba(255, 255, 255, 0.12);
}

.home-identity-avatar-image {
  width: 100%;
  height: 100%;
  min-height: 210px;
  display: block;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
}

.home-identity-avatar-placeholder {
  width: 100%;
  height: 100%;
  min-height: 210px;
  box-sizing: border-box;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(180deg, rgba(231, 238, 245, 0.96) 0%, rgba(190, 202, 214, 0.96) 100%);
  text-align: center;
}

.home-identity-avatar-placeholder span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 49, 83, 0.12);
  color: #003153;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.home-identity-avatar-placeholder strong {
  color: #22384d;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.home-identity-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 18px 20px 20px;
  background: #052033;
}

.home-identity-name {
  margin-top: 1px;
  margin-bottom: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.home-identity-meta-group {
  margin-top: 16px;
}

.home-identity-enterprise-group + .home-identity-enterprise-group {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.home-identity-contact-group {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.home-identity-meta-line {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.5;
}

.home-identity-meta-line:first-child {
  margin-top: 0;
  font-weight: 700;
}

.home-identity-meta-line.strong {
  color: #ffffff;
  font-weight: 700;
}

.home-identity-meta-line.contact {
  color: rgba(255, 255, 255, 0.86);
  margin-top: 6px;
}

.home-identity-meta-line.contact:first-child {
  margin-top: 0;
  font-weight: 400;
}

.home-identity-meta-line.link {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.22);
}

.home-identity-materials-section {
  width: 97%;
  margin: 16px auto 0;
}

.home-identity-materials-title {
  margin-bottom: 10px;
  color: var(--color-text-title);
  font-size: 15px;
  font-weight: 700;
}

.home-identity-materials-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-identity-material-card {
  display: block;
  overflow: hidden;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(15, 35, 71, 0.08);
}

.home-identity-material-card img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #f5f7fa;
}

.home-identity-material-pdf {
  padding: 18px;
  background: linear-gradient(135deg, rgba(5, 32, 51, 0.05) 0%, rgba(8, 49, 79, 0.12) 100%);
}

.home-identity-material-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 49, 79, 0.1);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 700;
}

.home-identity-material-pdf strong {
  display: block;
  margin-top: 10px;
  color: var(--color-text-title);
  font-size: 15px;
  line-height: 1.5;
}

.home-identity-material-pdf small {
  display: block;
  margin-top: 6px;
  color: var(--color-text-body);
  font-size: 12px;
  line-height: 1.6;
}

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

.user-detail-info-label {
  font-size: 12px;
  color: #9aa4b2;
  margin-bottom: 3px;
}

.user-detail-info-value {
  font-size: 13px;
  color: #1f2a37;
  font-weight: 500;
  min-height: 22px;
}

.user-enterprise-card {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #e8edf3;
}

.user-enterprise-card + .user-enterprise-card {
  margin-top: 12px;
}

.user-enterprise-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.user-enterprise-name {
  min-width: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  color: #1f2a37;
  word-break: break-word;
}

.user-enterprise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  font-size: 12px;
  color: #4b5563;
}

.user-enterprise-field {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  background: #ffffff;
}

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

.user-enterprise-grid span {
  display: block;
  color: #9aa4b2;
}

.user-enterprise-grid strong {
  display: block;
  margin-top: 5px;
  font-weight: 500;
  color: #1f2a37;
  line-height: 1.55;
  word-break: break-word;
}

.user-enterprise-license-row {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  background: #ffffff;
}

.user-enterprise-license-title {
  margin-bottom: 8px;
  color: #9aa4b2;
  font-size: 12px;
}

.user-enterprise-license-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-enterprise-license-thumb {
  display: block;
  width: 104px;
  height: 76px;
  overflow: hidden;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  background: #f5f7fa;
}

.user-enterprise-license-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-enterprise-license-empty {
  color: #1f2a37;
  font-size: 13px;
  font-weight: 500;
}

.user-detail-id-cell {
  font-size: 11px;
}

.user-governance-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-governance-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  background: #f8fafc;
  font-size: 12px;
}

.user-governance-item span {
  color: #9aa4b2;
  white-space: nowrap;
}

.user-governance-item strong {
  flex: 1;
  color: #4b5563;
  font-weight: 500;
}

.user-governance-item em {
  color: #9aa4b2;
  font-style: normal;
  white-space: nowrap;
}

.module-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.module-status-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.module-status-item.active {
  border-color: #36b37e;
  background: #f0fdf4;
}

.module-status-item.inactive {
  opacity: 0.55;
}

.module-status-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-title);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.module-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.module-status-dot.module-pellet { background: #16a34a; }
.module-status-dot.module-carbon { background: #0891b2; }
.module-status-dot.module-barter { background: #d97706; }
.module-status-dot.module-health { background: #dc2626; }
.module-status-dot.module-finance { background: #7c3aed; }
.module-status-dot.module-default { background: #64748b; }

.module-status-role {
  font-size: 11px;
  color: #64748b;
}

.module-status-time {
  font-size: 10px;
  color: #c4cad4;
  margin-top: 4px;
}

.user-card-preview {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
}

.user-card-preview-hero {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(0, 49, 83, 0.96), rgba(12, 77, 121, 0.94));
  color: #ffffff;
}

.user-card-preview-avatar {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}

.user-card-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-card-preview-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-card-preview-copy strong {
  font-size: 24px;
  line-height: 1.2;
}

.user-card-preview-copy span {
  color: rgba(255, 255, 255, 0.78);
}

.user-card-preview-copy p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
}

.user-card-preview-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-card-preview-section h5 {
  color: var(--color-text-title);
  font-size: 15px;
}

.user-card-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 49, 83, 0.08);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
}

.user-card-preview-metadata {
  margin-top: 0;
}

.user-card-history-list,
.user-card-chip-grid {
  margin-top: 0;
}

.user-card-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
}

.user-card-link:hover {
  text-decoration: underline;
}

.goods-hero-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(145deg, rgba(0, 49, 83, 0.96), rgba(12, 77, 121, 0.94));
  color: #ffffff;
}

.goods-hero-card h2 {
  margin-top: 14px;
  font-size: 30px;
}

.goods-hero-card p {
  margin-top: 12px;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.82);
}

.goods-tab-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.goods-detail-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.asset-section-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.asset-section-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(0, 49, 83, 0.04);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-stack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.profile-stack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.profile-audit-grid {
  align-items: flex-start;
}

.profile-account-metadata {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-meta-list {
  margin-top: 14px;
}

.profile-account-metadata {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-meta-list dd {
  word-break: break-word;
}

.profile-audit-filter-card {
  margin-top: 18px;
}

.module-tip {
  margin-top: 8px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.profile-context-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 49, 83, 0.04);
}

.profile-context-box h4 {
  color: var(--color-text-title);
}

.profile-context-box pre {
  margin: 12px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--color-text-body);
  font-size: 13px;
  line-height: 1.7;
}

.inline-readonly-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.single-row-meta {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.inline-readonly-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 1440px) {
  .todo-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shell-main {
    padding: 24px;
  }
}

/* ============================================
   UI-example reconstruction
   ============================================ */

:root {
  --color-primary: #003153;
  --color-primary-deep: #0f2347;
  --color-primary-light: #005a8e;
  --color-accent: #ff7d00;
  --color-green: #36b37e;
  --color-danger: #ef4444;
  --color-warning: #d97706;
  --color-bg: #f5f7fa;
  --color-panel: #ffffff;
  --color-panel-soft: #f8fafc;
  --color-panel-muted: #f8fafc;
  --color-text-title: #1f2a37;
  --color-text-body: #4b5563;
  --color-text-muted: #9aa4b2;
  --color-border: #e8edf3;
  --shadow-soft: 0 2px 8px rgba(15, 35, 71, 0.08);
  --shadow-heavy: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 16px;
  --radius-lg: 10px;
  --radius-md: 8px;
}

body {
  background: #f5f7fa;
  color: var(--color-text-body);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

button {
  border-radius: 6px;
  border: none;
}

.admin-login-page {
  position: relative;
  min-height: 100vh;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 40px;
}

.login-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(960px, 100%);
  min-height: 560px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
}

.login-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #003153 0%, #005a8e 50%, #003153 100%);
}

.login-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 24%), radial-gradient(circle at 80% 30%, rgba(54, 179, 126, 0.16), transparent 18%), radial-gradient(circle at 60% 80%, rgba(255, 125, 0, 0.14), transparent 16%);
}

.admin-login-hero,
.admin-login-panel {
  position: relative;
  z-index: 1;
  min-height: 560px;
  border-radius: 0;
  box-shadow: none;
}

.admin-login-hero {
  flex: 1;
  padding: 60px 48px;
  background: linear-gradient(160deg, #003153, #0a4a7a);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-login-panel {
  width: 420px;
  padding: 56px 48px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-pulse,
.hero-metric-grid,
.hero-footer {
  display: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #36b37e, #00875a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.brand-name {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-name small {
  display: block;
  margin-top: 2px;
  opacity: 0.6;
  font-size: 12px;
  font-weight: 400;
}

.left-headline h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 16px;
}

.left-headline p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.left-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #36b37e;
  flex-shrink: 0;
}

.panel-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
  color: var(--color-text-title);
}

.panel-head p {
  margin: 0 0 28px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.login-form {
  gap: 20px;
  margin-top: 0;
}

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-body);
}

.field-input {
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  background: #fafbfc;
}

.field-textarea {
  min-height: 96px;
  padding: 14px;
}

.field-input:focus {
  border-color: var(--color-primary);
  box-shadow: none;
  background: #fff;
}

.field-input::placeholder {
  font-size: inherit;
}

.audit-filter-card .field-input,
.audit-filter-card input.field-input,
.audit-filter-card select.field-input,
.audit-filter-card textarea.field-input {
  font-size: 13px;
}

.audit-filter-card .field-input::placeholder {
  font-size: 13px;
}

.field-captcha-row {
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
}

.captcha-display {
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #003153, #0a4a7a);
  border: 1.5px solid var(--color-border);
  color: #fff;
}

.captcha-display span {
  font-size: 18px;
  letter-spacing: 0.24em;
}

.captcha-display small {
  color: rgba(255, 255, 255, 0.66);
}

.login-helper-row {
  font-size: 13px;
  color: var(--color-text-muted);
}

.primary-cta,
.ghost-button,
.topbar-toolbar-btn,
.topbar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  min-height: 36px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.primary-cta {
  width: 100%;
  min-height: 46px;
  background: linear-gradient(135deg, #003153, #005a8e);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 49, 83, 0.24);
}

.primary-cta:hover {
  opacity: 0.92;
}

.inline-cta {
  width: auto;
}

.ghost-button,
.topbar-toolbar-btn {
  background: #fff;
  color: var(--color-text-body);
  border: 1px solid var(--color-border);
}

.ghost-button:hover,
.topbar-toolbar-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.status-banner {
  border-radius: 8px;
  padding: 12px 14px;
}

.error-banner {
  background: #fff1f2;
  color: #b91c1c;
  border-left: 3px solid #ef4444;
}

.admin-shell {
  display: block;
  min-width: 0;
  width: 100%;
  background: #f5f7fa;
}

.shell-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #003153;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 200;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 220px;
  background: transparent;
  color: #fff;
  padding: 0;
  text-align: left;
}

.topbar-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #36b37e, #00875a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.topbar-brand-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.topbar-brand-copy small {
  display: block;
  font-size: 10px;
  opacity: 0.55;
  color: #fff;
}

.topbar-center {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.topbar-breadcrumb span {
  color: rgba(255, 255, 255, 0.85);
}

.topbar-breadcrumb .sep {
  opacity: 0.4;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-badge {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
}

.topbar-badge-icon {
  transform: scale(0.9);
}

.topbar-badge .dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #ff7d00;
  border-radius: 50%;
  border: 1.5px solid #003153;
}

.topbar-account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
}

.topbar-account:hover {
  background: rgba(255, 255, 255, 0.1);
}

.topbar-account strong {
  display: block;
  color: #fff;
  font-size: 13px;
}

.topbar-account small {
  color: rgba(255, 255, 255, 0.55);
}

.account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #36b37e, #00875a);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.topbar-toolbar-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.84);
}

.topbar-toolbar-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.topbar-logout {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px 8px;
}

.topbar-logout:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.shell-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 56px);
  padding-top: 56px;
  width: 100%;
}

.shell-sidebar {
  position: sticky;
  top: 56px;
  width: 220px;
  min-width: 220px;
  background: #fff;
  border-right: 1px solid var(--color-border);
  padding: 16px 12px 20px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  color: var(--color-text-body);
}

.sidebar-brand,
.sidebar-nav,
.brand-workbench,
.brand-mark,
.nav-item {
  display: none;
}

.sidebar-section {
  padding: 0 0 8px;
}

.sidebar-section-label {
  padding: 0 8px;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 2px;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text-body);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

.sidebar-item-wrap {
  margin-bottom: 2px;
}

.sidebar-item-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-item-badge {
  margin-left: auto;
  background: #ff7d00;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.sidebar-item:hover {
  background: #f5f7fa;
  color: var(--color-primary);
}

.sidebar-item:hover .sidebar-item-icon {
  background: #eef4ff;
  color: var(--color-primary);
}

.sidebar-item.is-active {
  background: #eef4ff;
  color: var(--color-primary);
  font-weight: 600;
}

.sidebar-item.is-active .sidebar-item-icon {
  background: var(--color-primary);
  color: #fff;
}

.sidebar-sub {
  padding-left: 38px;
}

.sidebar-sub-item {
  display: block;
  width: 100%;
  font-size: 13px;
  font-weight: 400;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text-body);
  text-align: left;
  cursor: pointer;
}

.sidebar-sub-item.is-active {
  background: #eef4ff;
  color: var(--color-primary);
  font-weight: 600;
}

.shell-main {
  width: 100%;
  min-width: 0;
  padding: 24px;
  overflow-x: hidden;
}

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

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-title);
  margin-bottom: 4px;
}

.page-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  max-width: 720px;
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.content-stage,
.dashboard-section,
.profile-stack-grid,
.profile-audit-grid {
  min-width: 0;
  max-width: 100%;
  gap: 16px;
}

.audit-stat-grid,
.goods-stat-grid,
.order-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-card,
.dashboard-data-card,
.dashboard-module-card,
.governance-card,
.quick-entry-card,
.detail-panel,
.audit-filter-card,
.audit-table-card {
  min-width: 0;
  max-width: 100%;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: none;
}

.dashboard-welcome-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #003153, #005a8e);
  border: none;
}

.welcome-left h2 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.welcome-left p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  line-height: 1.8;
}

.welcome-right {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.welcome-stat {
  text-align: center;
}

.welcome-stat-val {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.welcome-stat-label {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.dashboard-tag-list {
  margin-top: 14px;
}

.dashboard-tag {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
}

.stat-grid,
.dashboard-card-grid,
.governance-grid,
.quick-entry-grid {
  display: grid;
  gap: 14px;
}

.stat-grid,
.todo-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-stat-grid {
  margin-top: 0;
}

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

.quick-entry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.stat-card,
.dashboard-data-card,
.dashboard-module-card,
.quick-entry-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  padding: 18px 20px;
  box-shadow: none;
}

.stat-card.with-icon {
  position: relative;
}

.stat-icon-chip {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

.audit-apply .stat-icon-chip,
.goods-total .stat-icon-chip,
.order-total .stat-icon-chip,
.user-total .stat-icon-chip,
.user-total .user-stat-icon {
  background: #eef4ff;
  color: var(--color-primary);
}

.audit-qualification .stat-icon-chip,
.goods-review .stat-icon-chip,
.order-pending .stat-icon-chip,
.user-focus .stat-icon-chip,
.user-focus .user-stat-icon {
  background: #d1fae5;
  color: #36b37e;
}

.audit-supplement .stat-icon-chip,
.goods-sale .stat-icon-chip,
.order-progress .stat-icon-chip,
.user-enterprise .stat-icon-chip,
.user-enterprise .user-stat-icon {
  background: #fef3c7;
  color: #d97706;
}

.audit-role .stat-icon-chip,
.goods-risk .stat-icon-chip,
.order-risk .stat-icon-chip,
.user-assets .stat-icon-chip,
.user-assets .user-stat-icon,
.order-done .stat-icon-chip,
.goods-off .stat-icon-chip {
  background: #fee2e2;
  color: #ef4444;
}

.stat-label {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text-title);
  margin-bottom: 4px;
  line-height: 1.15;
}

.stat-value-text {
  font-size: 16px;
  font-weight: 700;
}

.stat-change {
  font-size: 12px;
  color: var(--color-green);
}

.section-head-row {
  align-items: flex-end;
  margin-bottom: 0;
}

.section-head-row h3,
.card-head h3 {
  position: relative;
  padding-left: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-title);
}

.section-head-row h3::before,
.card-head h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(#003153, #005a8e);
}

.section-head-row h3::after {
  display: none;
}

.section-head-row p,
.module-tip,
.detail-card p,
.dashboard-data-card p,
.dashboard-module-card p,
.dashboard-error-card p,
.dashboard-loading-card p,
.section-empty-card {
  margin-top: 8px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.section-total-pill,
.dashboard-card-head span,
.card-head span,
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: #eef4ff;
  color: var(--color-primary);
}

.status-pill.tone-success {
  background: #d1fae5;
  color: #065f46;
}

.status-pill.tone-warning {
  background: #fef3c7;
  color: #92400e;
}

.status-pill.tone-danger {
  background: #fee2e2;
  color: #991b1b;
}

.status-pill.tone-info {
  background: #dbeafe;
  color: #1e40af;
}

.status-pill.tone-default {
  background: #f1f5f9;
  color: #64748b;
}

.status-pill.module-pellet {
  background: #dcfce7;
  color: #166534;
}

.status-pill.module-carbon {
  background: #cffafe;
  color: #0e7490;
}

.status-pill.module-barter {
  background: #fef3c7;
  color: #92400e;
}

.status-pill.module-health {
  background: #fee2e2;
  color: #b91c1c;
}

.status-pill.module-finance {
  background: #ede9fe;
  color: #5b21b6;
}

.status-pill.module-default {
  background: #eef4ff;
  color: var(--color-primary);
}

.dashboard-card-head,
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-main-value {
  margin-top: 12px;
  text-align: left;
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text-title);
}

.module-metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.module-metric-row div {
  border-right: 1px solid #f1f5f9;
  padding-right: 10px;
}

.module-metric-row div:last-child {
  border-right: none;
  padding-right: 0;
}

.module-metric-row small {
  display: block;
  color: var(--color-text-muted);
  font-size: 10px;
}

.module-metric-row strong {
  display: block;
  margin-top: 2px;
  color: var(--color-primary);
  font-size: 18px;
}

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

.metric-item {
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
}

.metric-item small {
  display: block;
  color: var(--color-text-muted);
  font-size: 11px;
}

.metric-item strong {
  display: block;
  margin-top: 4px;
  color: var(--color-text-title);
  font-size: 18px;
}

.quick-entry-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
}

.quick-entry-card strong {
  font-size: 13px;
  color: var(--color-text-title);
}

.quick-entry-card span {
  font-size: 11px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.audit-hero-card,
.goods-hero-card,
.hero-shell-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  color: var(--color-text-body);
}

.audit-hero-card h2,
.goods-hero-card h2,
.hero-shell-card h2 {
  margin: 0;
  font-size: 20px;
  color: var(--color-text-title);
}

.audit-hero-card p,
.goods-hero-card p,
.hero-shell-card p {
  margin-top: 8px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.audit-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 360px;
}

.audit-hero-stats div {
  padding: 16px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--color-border);
}

.audit-hero-stats span {
  display: block;
  color: var(--color-text-muted);
  font-size: 11px;
}

.audit-hero-stats strong {
  display: block;
  margin-top: 6px;
  color: var(--color-text-title);
  font-size: 20px;
}

.audit-filter-card {
  margin: 0;
}

.audit-filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.audit-filter-card {
  overflow: hidden;
}

.audit-filter-card .audit-filter-grid {
  min-width: 0;
}

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

.audit-filter-actions .ghost-button,
.audit-filter-actions .primary-cta {
  min-height: 36px;
  padding: 7px 16px;
  width: auto;
  flex: 0 0 auto;
}

.audit-view-tabs,
.goods-tab-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  border-radius: 10px 10px 0 0;
  padding: 0 20px;
}

.tab-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.tab-item.active {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom-color: var(--color-primary);
}

.tab-item .cnt {
  background: #ff7d00;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.audit-tab-shell-card {
  margin-top: 0;
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.module-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.module-tab {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-body);
  background: #fff;
}

.module-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.audit-view-tab {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-body);
  background: #fff;
}

.audit-view-tab.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.audit-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
}

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

.audit-table-wide {
  min-width: 1080px;
}

.audit-table th {
  background: #f8fafc;
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.audit-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  color: var(--color-text-body);
  vertical-align: middle;
}

.audit-table tbody tr:hover td {
  background: #fafbfc;
}

.table-action-row {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.audit-table-sticky-action .table-action-col,
.audit-table-sticky-action th:last-child,
.audit-table-sticky-action td:last-child {
  position: sticky;
  right: 0;
  z-index: 3;
  background: #fff;
  white-space: nowrap;
  box-shadow: -12px 0 16px -16px rgba(15, 35, 71, 0.45);
}

.audit-table-sticky-action thead .table-action-col,
.audit-table-sticky-action thead th:last-child {
  z-index: 4;
  background: #f8fafc;
}

.table-title-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.table-title-cell strong {
  color: var(--color-text-title);
  font-size: 13px;
  font-weight: 600;
}

.table-title-cell small {
  color: var(--color-text-muted);
  font-size: 11px;
}

.mono-text {
  font-family: Consolas, Monaco, monospace;
  color: var(--color-primary);
}

.table-action-row .ghost-button,
.mini-btn {
  min-height: auto;
  padding: 4px 10px;
  font-size: 12px;
}

.detail-modal-head,
.password-modal,
.audit-action-modal,
.detail-modal {
  border-radius: 10px;
}

.detail-panel {
  background: #fff;
}

.info-section-card {
  margin-bottom: 16px;
}

.info-section-card:last-child {
  margin-bottom: 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.sticky-side-panel {
  position: sticky;
  top: 76px;
  align-self: start;
}

.action-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-title);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.action-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.audit-table-toolbar {
  margin-bottom: 12px;
}

.audit-side-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.audit-side-summary-item {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
}

.audit-side-summary-item span {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.audit-side-summary-item strong {
  display: block;
  font-size: 13px;
  color: var(--color-text-title);
  font-weight: 600;
  line-height: 1.5;
}

.audit-flow-card {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.audit-flow-title {
  margin-bottom: 12px;
}

.audit-flow-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audit-flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.audit-flow-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.audit-flow-name {
  color: var(--color-text-body);
}

.audit-flow-step.is-done .audit-flow-dot {
  background: #d1fae5;
  color: #065f46;
}

.audit-flow-step.is-current .audit-flow-dot {
  background: #ff7d00;
  color: #fff;
}

.audit-flow-step.is-current .audit-flow-name {
  color: #ff7d00;
  font-weight: 600;
}

.audit-flow-step.is-pending {
  opacity: 0.52;
}

.audit-flow-step.is-pending .audit-flow-dot {
  background: #f1f5f9;
  color: #94a3b8;
}

.btn-like-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: 100%;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.detail-info-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.info-label {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.info-value {
  font-size: 13px;
  color: var(--color-text-title);
  font-weight: 500;
  line-height: 1.6;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.doc-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: border-color 0.2s;
  background: #fff;
}

.doc-item:hover {
  border-color: var(--color-primary);
}

.doc-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f5f7fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.doc-name {
  font-size: 12px;
  color: var(--color-text-body);
  font-weight: 500;
  margin-bottom: 4px;
}

.timeline-item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 1px;
  background: var(--color-border);
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1e40af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
}

.timeline-content {
  flex: 1;
  padding-top: 2px;
}

.timeline-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-title);
  margin-bottom: 3px;
}

.timeline-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.timeline-time {
  font-size: 11px;
  color: #c4cad4;
  margin-top: 3px;
}

.related-record-grid {
  margin-top: 16px;
}

.detail-panel h4 {
  font-size: 15px;
  color: var(--color-text-title);
}

.detail-metadata {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.detail-metadata div,
.detail-chip-card,
.history-item,
.asset-section-card {
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
}

.detail-chip-grid,
.history-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entity-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.entity-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #003153, #005a8e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.entity-avatar.tone-navy {
  background: linear-gradient(135deg, #003153, #005a8e);
}

.entity-avatar.tone-violet {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.entity-avatar.tone-amber {
  background: linear-gradient(135deg, #d97706, #92400e);
}

.entity-avatar.tone-cyan {
  background: linear-gradient(135deg, #0891b2, #0c4a6e);
}

.entity-avatar.tone-slate {
  background: linear-gradient(135deg, #64748b, #475569);
  color: #fff;
}

.entity-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.entity-copy strong {
  font-size: 13px;
  color: var(--color-text-title);
  font-weight: 600;
}

.entity-copy small {
  color: var(--color-text-muted);
  font-size: 11px;
}

.table-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.table-mini-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eef4ff;
  color: #003153;
  font-size: 10px;
  font-weight: 600;
}

.table-inline-muted {
  font-size: 11px;
  color: var(--color-text-muted);
}

.goods-price-text {
  font-weight: 700;
  color: var(--color-text-title);
}

.product-img-cell {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-img-cell svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.product-img-pellet {
  background: #dcfce7;
  color: #16a34a;
}

.product-img-barter {
  background: #fef3c7;
  color: #d97706;
}

.product-img-health {
  background: #fee2e2;
  color: #dc2626;
}

.product-img-default {
  background: #eef4ff;
  color: #003153;
}

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

.asset-table th {
  background: #f8fafc;
  padding: 8px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #9aa4b2;
  border-bottom: 1px solid #e8edf3;
}

.asset-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
  color: #4b5563;
  vertical-align: middle;
}

.asset-table tbody tr:last-child td {
  border-bottom: none;
}

.asset-table-more {
  text-align: center;
  padding-top: 8px;
  font-size: 12px;
  color: #003153;
}

.profile-stack-grid {
  grid-template-columns: 280px 1fr;
}

.profile-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
}

.profile-card {
  background: linear-gradient(135deg, #003153, #005a8e);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #36b37e, #00875a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 14px;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-name {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-role {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  margin-bottom: 16px;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.profile-meta-item svg,
.log-icon svg {
  width: 14px;
  height: 14px;
  stroke: rgba(255, 255, 255, 0.55);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.password-note-box {
  background: #fff7ed;
  border-radius: 8px;
  padding: 12px 14px;
  border-left: 3px solid #ff7d00;
}

.password-note-box p {
  margin: 0;
  font-size: 12px;
  color: #92400e;
  line-height: 1.6;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-account-card .card-title {
  margin-bottom: 18px;
}

.profile-account-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.profile-account-form-row + .profile-account-form-row {
  margin-top: 18px;
}

.profile-account-card .form-group {
  margin-bottom: 0;
}

.profile-account-card .form-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
}

.profile-account-card .form-input {
  width: 100%;
  height: 40px;
  border: 1.5px solid #e8edf3;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  color: #1f2a37;
  outline: none;
  background: #fafbfc;
  transition: border-color 0.2s;
}

.profile-account-card .form-input:disabled {
  background: #f8fafc;
  color: #9aa4b2;
  cursor: not-allowed;
}

.login-log {
  display: flex;
  flex-direction: column;
}

.log-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.log-item:last-child {
  border-bottom: none;
}

.log-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.log-icon svg {
  stroke: var(--color-primary);
}

.pwd-strength {
  display: flex;
  gap: 4px;
  margin: -6px 0 12px;
}

.pwd-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #e8edf3;
}

.pwd-hint {
  font-size: 11px;
  color: #9aa4b2;
  margin: -2px 0 12px;
}

.log-content {
  flex: 1;
}

.log-title {
  font-size: 13px;
  color: var(--color-text-title);
  font-weight: 500;
}

.log-detail {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.log-time {
  font-size: 11px;
  color: #c4cad4;
  white-space: nowrap;
}

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

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

@media (max-width: 1600px) {
  .stat-grid,
  .todo-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .module-card-grid,
  .quick-entry-grid,
  .governance-grid,
  .history-list,
  .detail-chip-grid,
  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-filter-grid,
  .detail-metadata,
  .detail-layout,
  .profile-layout,
  .form-row-grid,
  .audit-stat-grid,
  .goods-stat-grid,
  .order-stat-grid,
  .info-grid,
  .user-stat-grid,
  .panorama-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 1200px) {
  .login-wrap {
    width: 960px;
  }
}

/* UI-example design override */
body {
  background: #f5f7fa;
  color: #1f2a37;
  font-size: 14px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #003153;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.topbar-brand-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.topbar-brand-name {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.topbar-brand-name small {
  display: block;
  font-size: 10px;
  opacity: 0.55;
  font-weight: 400;
}

.sidebar {
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  width: 220px;
  background: #fff;
  border-right: 1px solid #e8edf3;
  overflow-y: auto;
  z-index: 100;
}

.main {
  margin-left: 220px;
  margin-top: 56px;
  padding: 24px;
  min-height: calc(100vh - 56px);
  min-width: 0;
  max-width: calc(100vw - 220px);
  overflow-x: hidden;
}

.topbar-center {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.topbar-breadcrumb {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.topbar-breadcrumb span {
  min-width: 0;
}

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

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2a37;
  margin-bottom: 4px;
}

.page-desc {
  font-size: 13px;
  color: #9aa4b2;
}

.content-card,
.detail-card,
.audit-table-card,
.audit-filter-card,
.profile-card,
.governance-card,
.dashboard-module-card,
.dashboard-data-card,
.quick-entry-card,
.no-permission-card,
.dashboard-loading-card,
.dashboard-error-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e8edf3;
  padding: 20px;
}

.card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e8edf3;
  padding: 20px;
}

.profile-card {
  background: linear-gradient(135deg, #003153, #005a8e);
  border: 0;
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
}

.card-head,
.section-head-row,
.detail-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-head h3,
.section-head-row h3,
.detail-modal-head h3,
.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2a37;
  margin: 0;
}

.card-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: linear-gradient(#003153, #005a8e);
  border-radius: 2px;
  display: inline-block;
  margin-right: 8px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  margin-bottom: 2px;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
}

.sidebar-item:hover {
  background: #f5f7fa;
  color: #003153;
}

.sidebar-item.active,
.sidebar-item.is-active,
.sidebar-sub-item.active,
.sidebar-sub-item.is-active {
  background: #eef4ff;
  color: #003153;
  font-weight: 600;
}

.sidebar-item-svg {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-item-svg svg,
.topbar-badge svg,
.todo-icon svg,
.module-icon svg,
.quick-action-icon svg,
.topbar-brand-icon,
.brand-icon,
.log-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.topbar-brand-icon,
.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #36b37e, #00875a);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}

.topbar-user,
.topbar-account {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.2s;
  border: 0;
  background: transparent;
  min-width: 0;
}

.topbar-user:hover,
.topbar-account:hover {
  background: rgba(255, 255, 255, 0.1);
}

.topbar-avatar,
.account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #36b37e, #00875a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.topbar-username {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.topbar-logout {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  border: 0;
  background: transparent;
}

.topbar-logout:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn,
.ghost-button,
.primary-cta,
.btn-like-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn,
.ghost-button {
  background: #fff;
  color: #4b5563;
  border: 1px solid #e8edf3;
}

.btn:hover,
.ghost-button:hover {
  border-color: #003153;
  color: #003153;
}

.btn-primary,
.primary-cta {
  background: #003153;
  color: #fff;
  border: 0;
}

.btn-primary:hover,
.primary-cta:hover {
  background: #004a7a;
}

.btn-like-action {
  background: #003153;
  color: #fff;
  border: 0;
}

.tag,
.status-pill,
.story-chip,
.section-total-pill,
.inline-readonly-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.tag-success,
.tone-success {
  background: #d1fae5;
  color: #065f46;
}

.tag-warning,
.tone-warning {
  background: #fef3c7;
  color: #92400e;
}

.tag-danger,
.tone-danger {
  background: #fee2e2;
  color: #991b1b;
}

.tag-info,
.tone-info {
  background: #dbeafe;
  color: #1e40af;
}

.tag-default,
.muted-chip,
.tone-default,
.inline-readonly-tag {
  background: #f1f5f9;
  color: #64748b;
}

.tag-orange,
.tone-orange {
  background: #fff7ed;
  color: #c2410c;
}

.status-banner.error-banner {
  background: #fff5f5;
  color: #c81e1e;
  border-left: 3px solid #ef4444;
  border-radius: 8px;
  padding: 12px 14px;
}

.welcome-bar {
  min-width: 0;
  max-width: 100%;
  background: linear-gradient(135deg, #003153, #005a8e);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.welcome-left h2 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.welcome-left p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.welcome-right {
  display: flex;
  gap: 24px;
  min-width: 0;
  flex-wrap: wrap;
}

.welcome-stat {
  text-align: center;
}

.welcome-stat-val {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.welcome-stat-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  margin-top: 2px;
}

.section-title-ui {
  font-size: 13px;
  font-weight: 600;
  color: #1f2a37;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title-ui span {
  width: 3px;
  height: 13px;
  background: linear-gradient(#003153, #005a8e);
  border-radius: 2px;
  display: inline-block;
}

.todo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.todo-card,
.module-card,
.quick-action,
.stat-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e8edf3;
  transition: box-shadow 0.2s;
}

.todo-card:hover,
.module-card:hover,
.quick-action:hover,
.stat-card:hover {
  box-shadow: 0 4px 16px rgba(0, 49, 83, 0.1);
}

.todo-card {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.todo-urgent {
  border-left: 3px solid #ff7d00;
}

.todo-icon,
.module-icon,
.quick-action-icon,
.log-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.todo-icon-urgent { background: #fff7ed; color: #ff7d00; }
.todo-icon-warn { background: #fef3c7; color: #d97706; }
.todo-icon-info { background: #dbeafe; color: #2563eb; }
.todo-icon-success { background: #d1fae5; color: #36b37e; }
.todo-icon-danger { background: #fee2e2; color: #ef4444; }
.module-icon-primary { background: #eef4ff; color: #003153; }
.module-icon-success { background: #dcfce7; color: #16a34a; }
.module-icon-info { background: #cffafe; color: #0891b2; }
.module-icon-warn { background: #fef3c7; color: #d97706; }
.module-icon-danger { background: #fee2e2; color: #dc2626; }
.module-icon-accent { background: #ede9fe; color: #7c3aed; }
.quick-icon-warn { background: #fff7ed; color: #ff7d00; }
.quick-icon-primary { background: #eef4ff; color: #003153; }
.quick-icon-success { background: #d1fae5; color: #36b37e; }
.quick-icon-muted { background: #f1f5f9; color: #64748b; }
.recent-dot-success { background: #36b37e; }
.recent-dot-warn { background: #ff7d00; }
.recent-dot-primary { background: #003153; }
.recent-dot-danger { background: #ef4444; }
.recent-dot-neutral { background: #c4cad4; }

.todo-num {
  font-size: 26px;
  font-weight: 800;
  color: #1f2a37;
  line-height: 1;
}

.todo-label,
.module-metric-label,
.quick-action-desc,
.recent-time {
  font-size: 11px;
  color: #9aa4b2;
}

.todo-label {
  font-size: 12px;
  margin-top: 3px;
}

.module-grid {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.module-card {
  padding: 18px;
}

.module-icon,
.quick-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.module-icon svg,
.quick-action-icon svg {
  width: 18px;
  height: 18px;
}

.module-card-placeholder {
  opacity: 0.88;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.module-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.module-name,
.quick-action-name,
.recent-content strong {
  font-size: 14px;
  font-weight: 600;
  color: #1f2a37;
}

.module-metrics {
  display: flex;
}

.module-metric {
  flex: 1;
  text-align: center;
  border-right: 1px solid #f1f5f9;
}

.module-metric:last-child { border-right: none; }

.module-metric-val {
  font-size: 18px;
  font-weight: 700;
  color: #003153;
}

.module-metric-label {
  font-size: 10px;
  margin-top: 2px;
}

.bottom-grid {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quick-action {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  background: #f8fafc;
}

.quick-action-name {
  font-size: 13px;
}

.quick-action-desc {
  margin-top: 2px;
}

.recent-content strong {
  font-size: 13px;
}

.quick-action:hover {
  background: #eef4ff;
  border-color: #003153;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.recent-list {
  display: flex;
  flex-direction: column;
}

.recent-item:last-child { border-bottom: none; }

.recent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.recent-content {
  flex: 1;
  font-size: 13px;
  color: #4b5563;
}

.module-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

.module-tab {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid #e8edf3;
  color: #4b5563;
  background: #fff;
}

.module-tab.active {
  background: #003153;
  color: #fff;
  border-color: #003153;
}

.content-operation-tabs {
  margin-bottom: 16px;
}

.content-operation-chip-grid {
  margin-top: 0;
}

.content-operation-chip {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.content-operation-chip:hover,
.content-operation-chip.is-active {
  border-color: #003153;
  box-shadow: 0 10px 24px rgba(0, 49, 83, 0.1);
  transform: translateY(-1px);
}

.content-operation-chip.is-active strong {
  color: #003153;
}

.content-operation-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.35fr) minmax(280px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.content-operation-list-card,
.content-operation-editor-card,
.content-operation-preview-card {
  min-width: 0;
}

.content-studio-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f7fbff 0%, #ffffff 58%, #fff7ed 100%);
}

.content-studio-hero h2 {
  margin-top: 10px;
  color: #1f2a37;
  font-size: 24px;
}

.content-studio-hero p {
  margin-top: 8px;
  color: #64748b;
  line-height: 1.7;
}

.content-studio-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 10px;
  min-width: 320px;
}

.content-studio-metrics div {
  padding: 14px;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.content-studio-metrics strong {
  display: block;
  color: #003153;
  font-size: 18px;
}

.content-studio-metrics span {
  color: #7b8794;
  font-size: 12px;
}

.content-studio-layout {
  grid-template-columns: 280px minmax(460px, 1.45fr) minmax(300px, 0.9fr);
}

.content-library-card,
.content-operation-preview-card {
  position: sticky;
  top: 76px;
}

.content-library-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.content-library-filter .field-input,
.content-library-filter .ghost-button {
  width: 100%;
}

.content-library-count {
  margin-bottom: 12px;
  color: #94a3b8;
  font-size: 12px;
}

.content-article-list {
  display: grid;
  gap: 12px;
}

.content-article-list-item {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  background: #ffffff;
  text-align: left;
  cursor: grab;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.content-card-delete-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.content-card-delete-btn:hover {
  background: #dc2626;
  color: #fff;
}

.content-library-add-row {
  display: grid;
  place-items: center;
  padding-top: 12px;
}

.content-library-add-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #003153;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 49, 83, 0.18);
}

.content-library-save-btn {
  white-space: nowrap;
}

.content-article-list-item:active {
  cursor: grabbing;
}

.content-article-list-item.is-dragging {
  opacity: 0.5;
}

.content-article-list-item.is-drag-over {
  border-color: #ff7d00;
  transform: translateY(2px);
}

.content-article-list-item:hover,
.content-article-list-item.is-active {
  border-color: #003153;
  box-shadow: 0 14px 28px rgba(0, 49, 83, 0.12);
  transform: translateY(-1px);
}

.content-article-thumb {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(0, 49, 83, 0.1), rgba(255, 125, 0, 0.16));
  color: #003153;
  font-weight: 800;
}

.content-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-article-list-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.content-article-list-copy strong,
.content-article-list-copy span,
.content-article-list-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-article-list-copy strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1f2a37;
  font-size: 14px;
}

.content-article-list-copy span,
.content-article-list-copy small {
  color: #7b8794;
  font-size: 12px;
}

.content-list-status {
  margin-right: 8px;
  font-style: normal;
  font-weight: 700;
}

.content-list-status.is-online {
  color: #147a52;
}

.content-list-status.is-offline {
  color: #94a3b8;
}

.content-unsaved-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff7d00;
  flex-shrink: 0;
}

.content-article-form {
  display: grid;
  gap: 18px;
}

.content-studio-form {
  gap: 16px;
}

.content-editor-commandbar {
  position: sticky;
  top: 76px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0, 49, 83, 0.08);
}

.content-editor-commandcopy {
  display: grid;
  gap: 3px;
}

.content-editor-commandcopy strong {
  color: #1f2a37;
  font-size: 15px;
}

.content-editor-commandcopy small {
  color: #7b8794;
  font-size: 12px;
}

.content-dirty-chip {
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: #d1fae5;
  color: #147a52;
  font-size: 11px;
  font-weight: 700;
}

.content-dirty-chip.is-dirty {
  background: #fff7ed;
  color: #c2410c;
}

.content-editor-title-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid #e8edf3;
  border-radius: 22px;
  background: #fbfdff;
}

.content-cover-dropzone,
.content-image-uploader {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1.5px dashed #cbd5e1;
  border-radius: 20px;
  background: linear-gradient(145deg, #eef4ff, #fff7ed);
  color: #003153;
  font-weight: 800;
  cursor: pointer;
}

.content-cover-dropzone {
  min-height: 220px;
}

.content-cover-dropzone img,
.content-image-uploader img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-cover-dropzone small {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 49, 83, 0.74);
  color: #fff;
  font-size: 11px;
}

.content-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.content-title-fields {
  display: grid;
  gap: 12px;
}

.content-title-input {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-bottom: 2px solid #dbe5ee;
  background: transparent;
  color: #1f2a37;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  outline: none;
  overflow: hidden;
  resize: none;
}

.content-title-input:focus {
  border-bottom-color: #003153;
}

.content-summary-input {
  min-height: 92px;
  padding: 12px;
  line-height: 1.7;
}

.content-editor-meta-grid {
  margin-bottom: 0;
}

.content-advanced-panel,
.content-block-advanced {
  border: 1px solid #eef2f6;
  border-radius: 14px;
  background: #ffffff;
}

.content-advanced-panel summary,
.content-block-advanced summary {
  padding: 10px 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.content-advanced-panel .form-row-grid,
.content-block-advanced .field-input {
  margin: 0;
}

.content-advanced-panel .form-row-grid {
  padding: 0 12px 12px;
}

.content-block-advanced .field-input {
  border-radius: 0 0 14px 14px;
}

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

.content-editor-wide {
  grid-column: 1 / -1;
}

.content-editor-switch .inline-readonly-tag {
  min-height: 40px;
  justify-content: flex-start;
}

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

.content-upload-row input[type="file"] {
  max-width: 190px;
  color: #7b8794;
  font-size: 12px;
}

.content-block-editor {
  display: grid;
  gap: 14px;
}

.content-canvas-paper {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e8edf3;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.content-block-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  background: #ffffff;
  cursor: grab;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.content-block-item:active {
  cursor: grabbing;
}

.content-block-item:hover {
  border-color: rgba(0, 49, 83, 0.28);
  box-shadow: 0 14px 28px rgba(0, 49, 83, 0.08);
}

.content-block-item.is-selected {
  border-color: #003153;
  box-shadow: 0 14px 30px rgba(0, 49, 83, 0.13);
}

.content-block-item.is-dragging {
  opacity: 0.46;
}

.content-block-item.is-editing {
  cursor: text;
}

.content-block-item.is-drag-over {
  border-color: #ff7d00;
  transform: translateY(2px);
}

.content-block-subtitle {
  background: linear-gradient(90deg, #f8fafc, #ffffff);
}

.content-block-image {
  background: #f8fafc;
}

.content-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.content-block-toolbar {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 12px;
  background: #f8fafc;
}

.content-block-item.is-selected .content-block-toolbar {
  display: flex;
}

.content-block-head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f2a37;
}

.content-block-handle {
  color: #cbd5e1;
  letter-spacing: -2px;
}

.content-text-block-input {
  min-height: 128px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
  overflow: hidden;
  resize: none;
  white-space: pre-wrap;
  outline: none;
}

.content-text-block-input:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
}

.content-text-block-input strong {
  font-weight: 800;
}

.content-text-block-input .content-edit-line {
  min-height: 1.8em;
}

.content-text-block-input .content-inline-heading {
  display: block;
  margin: 8px 0 4px;
  color: #203240;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.8;
}

.content-block-subtitle .content-text-block-input {
  min-height: 58px;
  font-size: 18px;
  font-weight: 800;
  color: #1f2a37;
}

.content-image-uploader {
  min-height: 220px;
}

.content-insert-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #dbe5ee;
  border-radius: 18px;
  background: #fbfdff;
}

.content-block-add-dock {
  position: relative;
  display: none;
  place-items: center;
  padding: 8px 0 2px;
}

.content-block-item.is-selected + .content-block-add-dock,
.content-block-add-dock.is-empty {
  display: grid;
}

.content-block-add-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #003153;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 49, 83, 0.18);
}

.content-block-add-menu {
  position: absolute;
  bottom: 56px;
  left: 50%;
  display: none;
  transform: translateX(-50%);
  gap: 8px;
  padding: 8px;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 49, 83, 0.13);
}

.content-block-add-dock.is-open .content-block-add-menu {
  display: flex;
}

.content-preview-head {
  align-items: flex-start;
}

.content-preview-switch {
  display: flex;
  gap: 6px;
}

.content-preview-switch .is-active {
  background: #003153;
  color: #fff;
  border-color: #003153;
}

.content-mini-preview {
  overflow: hidden;
  border: 10px solid #0d1d2c;
  border-radius: 30px;
  background: #f4f7f9;
  box-shadow: 0 24px 48px rgba(5, 36, 60, 0.16);
}

.content-mini-section-title {
  padding: 14px 16px 8px;
  color: #0d1d2c;
  font-size: 13px;
  font-weight: 800;
}

.content-mini-hero {
  position: relative;
  min-height: 168px;
  margin: 0 12px 12px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(145deg, #0c4d79, #36b37e);
}

.content-mini-hero img,
.content-mini-detail figure img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.content-mini-hero img {
  height: 168px;
}

.content-mini-hero-empty,
.content-mini-image-empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.content-mini-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.62) 100%);
}

.content-mini-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: grid;
  gap: 5px;
  color: #ffffff;
}

.content-mini-copy span,
.content-mini-copy small,
.content-mini-author,
.content-mini-detail figcaption {
  color: #7b8794;
  font-size: 12px;
}

.content-mini-copy span,
.content-mini-copy small {
  color: rgba(255, 255, 255, 0.82);
}

.content-mini-copy strong {
  font-size: 18px;
  line-height: 1.35;
}

.content-mini-detail {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
}

.content-mini-list-card {
  display: grid;
  gap: 8px;
  margin: 0 12px 14px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
}

.content-mini-list-card strong {
  color: #1f2a37;
  font-size: 15px;
}

.content-mini-list-card p,
.content-mini-summary {
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}

.content-mini-detail h4,
.content-mini-detail h5 {
  color: #1f2a37;
  font-size: 13px;
}

.content-mini-detail p {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.8;
}

.content-mini-detail figure {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #eef4f8;
}

.content-mini-detail figure img {
  max-height: 180px;
}

.content-mini-detail figcaption {
  padding: 8px 10px 10px;
}

.content-success-banner {
  border-color: rgba(54, 179, 126, 0.25);
  background: rgba(54, 179, 126, 0.1);
  color: #147a52;
}

.content-delete-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.42);
}

.content-delete-dialog {
  width: min(420px, calc(100vw - 40px));
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(5, 36, 60, 0.24);
}

.content-delete-dialog h3 {
  color: #1f2a37;
  font-size: 18px;
}

.content-delete-dialog p {
  color: #64748b;
  line-height: 1.7;
}

.content-delete-dialog strong {
  color: #003153;
}

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

.danger-btn {
  background: #dc2626;
}

.danger-btn:hover {
  background: #b91c1c;
}

.content-wysiwyg-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.content-wysiwyg-layout .content-operation-editor-card {
  padding: 18px;
}

.content-wysiwyg-layout .content-library-card {
  position: sticky;
  top: 76px;
}

.content-wysiwyg-layout .content-library-filter {
  grid-template-columns: 1fr;
}

.content-wysiwyg-form {
  display: block;
}

.content-wysiwyg-shell {
  display: grid;
  grid-template-columns: minmax(320px, 470px) 99px;
  justify-content: center;
  align-items: start;
  gap: 18px;
}

.content-wysiwyg-actions {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(0, 49, 83, 0.08);
  min-width: 99px;
}

.content-wysiwyg-actions .btn,
.content-wysiwyg-actions .ghost-button,
.content-wysiwyg-actions .inline-readonly-tag,
.content-wysiwyg-actions .content-dirty-chip {
  width: 100%;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.content-wysiwyg-actions .btn {
  min-height: 33px;
  padding: 4px 12px;
}

.content-action-upload {
  position: relative;
  overflow: hidden;
}

.content-wysiwyg-phone {
  overflow: hidden;
  border: 10px solid #0d1d2c;
  border-radius: 32px;
  background: #f4f7f9;
  box-shadow: 0 28px 58px rgba(5, 36, 60, 0.16);
}

.content-wysiwyg-cover {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 188px;
  margin: 0 12px 12px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(145deg, #0c4d79, #36b37e);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  cursor: pointer;
}

.content-wysiwyg-cover img {
  width: 100%;
  height: 188px;
  object-fit: cover;
}

.content-wysiwyg-body {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
}

.content-wysiwyg-body .content-title-input {
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid #e8edf3;
  font-size: 20px;
  line-height: 1.35;
}

.content-wysiwyg-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.content-wysiwyg-meta label,
.content-wysiwyg-meta input,
.content-wysiwyg-setting-row input,
.content-summary-input {
  width: 100%;
}

.content-wysiwyg-meta label {
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 12px;
}

.content-wysiwyg-meta input,
.content-wysiwyg-setting-row input,
.content-summary-input {
  border: 1px solid #e8edf3;
  border-radius: 10px;
  background: #fbfdff;
  color: #4b5563;
  font-size: 12px;
}

.content-wysiwyg-meta input {
  min-height: 34px;
  padding: 0 10px;
}

.content-wysiwyg-meta label:last-child {
  grid-column: 1 / -1;
}

.content-summary-input {
  min-height: 74px;
  padding: 10px;
  line-height: 1.7;
  resize: vertical;
}

.content-wysiwyg-setting-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #7b8794;
  font-size: 12px;
}

.content-wysiwyg-setting-row label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.content-wysiwyg-setting-row input[type="number"] {
  width: 74px;
  min-height: 30px;
  padding: 0 8px;
}

.content-wysiwyg-blocks {
  display: grid;
  gap: 12px;
}

.content-wysiwyg-blocks .content-block-item {
  padding: 12px;
  border-radius: 14px;
  box-shadow: none;
}

.content-wysiwyg-blocks .content-block-head,
.content-wysiwyg-blocks .content-block-toolbar {
  gap: 8px;
}

.content-wysiwyg-blocks .content-block-head strong {
  font-size: 12px;
}

.content-wysiwyg-blocks .table-action-row {
  gap: 4px;
}

.content-wysiwyg-blocks .filter-select,
.content-wysiwyg-blocks .mini-btn {
  min-height: 30px;
  padding: 3px 7px;
  font-size: 11px;
}

.content-wysiwyg-blocks .content-text-block-input {
  min-height: 118px;
  border-color: #edf2f7;
  background: #ffffff;
  font-size: 13px;
  overflow: hidden;
  resize: none;
}

.content-wysiwyg-blocks .content-block-subtitle .content-text-block-input {
  min-height: 50px;
  font-size: 13px;
}

.content-wysiwyg-blocks .content-image-uploader {
  min-height: 160px;
  border-radius: 14px;
}

.content-wysiwyg-blocks .content-image-uploader img {
  max-height: 220px;
}

.filter-bar,
.audit-filter-grid {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-input,
.filter-select,
.field-input,
.form-input,
.form-textarea,
.field-textarea {
  border: 1.5px solid #e8edf3;
  border-radius: 8px;
  background: #fff;
}

.field-input,
.form-input,
.filter-input,
.filter-select {
  min-height: 40px;
  padding: 0 12px;
}

.audit-apply-filter-bar {
  margin-bottom: 18px;
}

.audit-apply-filter-bar .filter-input {
  min-width: 260px;
}

.audit-apply-filter-bar .filter-select {
  min-width: 150px;
}

.module-backend-frame-shell {
  margin-top: 18px;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.module-backend-frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f7;
  background: #f8fafc;
}

.module-backend-frame-head strong,
.module-backend-frame-head span {
  display: block;
}

.module-backend-frame-head span {
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.module-backend-open-link {
  text-decoration: none;
  white-space: nowrap;
}

.module-backend-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 260px);
  min-height: 680px;
  border: 0;
  background: #fff;
}

.audit-table-scroll,
.table-wrap {
  overflow-x: auto;
}

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

.audit-table thead th,
table thead th {
  background: #f8fafc;
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #9aa4b2;
  border-bottom: 1px solid #e8edf3;
  white-space: nowrap;
}

.audit-table tbody td,
table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  color: #4b5563;
  vertical-align: middle;
}

.audit-table tbody tr:hover td,
table tbody tr:hover td {
  background: #fafbfc;
}

.action-btns,
.table-action-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.user-table-action-links {
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.user-search-btn {
  height: 34px;
  padding: 0 16px;
  border-radius: 6px;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
}

.user-search-btn span {
  display: inline-block;
  white-space: nowrap;
}

.user-search-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.table-action-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #003153;
  font-size: 13px;
  cursor: pointer;
}

.table-action-link:hover {
  color: #005a8e;
  text-decoration: underline;
}

.table-action-link.danger {
  color: #dc2626;
}

.table-action-link.success {
  color: #15803d;
}

.action-sep {
  color: #cbd5e1;
  font-size: 12px;
}

.ghost-button.mini-btn {
  padding: 4px 10px;
  font-size: 12px;
}

.list-pagination,
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.pager-summary,
.pagination-info {
  font-size: 13px;
  color: #9aa4b2;
}

.pager-number-row,
.pagination-btns {
  display: flex;
  gap: 4px;
  align-items: center;
}

.page-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #e8edf3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  color: #4b5563;
}

.page-btn.active,
.page-btn.is-active {
  background: #003153;
  color: #fff;
  border-color: #003153;
}

.detail-layout,
.profile-layout,
.panorama-grid {
  display: grid;
  gap: 16px;
}

.detail-layout { grid-template-columns: 1fr 320px; }
.profile-layout { grid-template-columns: 280px 1fr; }
.panorama-grid { grid-template-columns: 1fr 1fr; }

.asset-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.asset-table-wide {
  min-width: 860px;
}

.action-panel {
  position: sticky;
  top: 76px;
}

.login-left,
.login-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-left {
  flex: 1;
  background: linear-gradient(160deg, #003153, #0a4a7a);
  padding: 60px 48px;
  justify-content: space-between;
}

.login-right {
  width: 420px;
  background: #fff;
  padding: 56px 48px;
}

.login-title { font-size: 24px; font-weight: 700; color: #1f2a37; margin-bottom: 6px; }
.login-sub { font-size: 14px; color: #9aa4b2; margin-bottom: 24px; }
.captcha-row { display: flex; gap: 10px; }
.captcha-img { width: 110px; height: 44px; color: #fff; letter-spacing: 4px; }
.login-btn { width: 100%; height: 46px; }
.login-hint { margin-top: 20px; padding: 12px 14px; background: #f0f9ff; border-radius: 8px; border-left: 3px solid #0891b2; }
.login-hint p { font-size: 12px; color: #0369a1; line-height: 1.6; }

@media (max-width: 1280px) {
  .admin-login-page {
    padding: 24px;
  }

  .login-wrap {
    width: 100%;
  }

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

  .module-grid,
  .bottom-grid,
  .panorama-grid,
  .profile-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }

  .topbar-center {
    display: none;
  }

  .topbar-right {
    gap: 8px;
    margin-left: auto;
  }

  .topbar-username,
  .topbar-toolbar-btn {
    display: none;
  }

  .admin-login-page {
    padding: 16px;
  }

  .login-wrap {
    flex-direction: column;
    min-height: auto;
  }

  .admin-login-panel,
  .login-right {
    width: 100%;
  }

  .admin-login-hero,
  .admin-login-panel,
  .login-left,
  .login-right {
    min-height: auto;
  }

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

  .welcome-bar,
  .welcome-right,
  .card-head,
  .section-head-row,
  .detail-modal-head,
  .page-header,
  .page-header-actions,
  .list-pagination,
  .pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-actions,
  .todo-grid,
  .module-grid,
  .stat-grid,
  .bottom-grid,
  .form-row-grid,
  .detail-metadata,
  .detail-chip-grid,
  .history-list,
  .user-detail-info-grid,
  .user-enterprise-grid,
  .content-operation-layout,
  .content-editor-grid {
    grid-template-columns: 1fr;
  }

  .table-tag-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-trend-legend {
    width: 100%;
  }

  .user-trend-svg {
    min-width: 620px;
  }

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

  .content-studio-hero,
  .content-editor-commandbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-studio-metrics,
  .content-editor-title-card {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .content-library-card,
  .content-operation-preview-card,
  .content-editor-commandbar,
  .content-wysiwyg-layout .content-library-card,
  .content-wysiwyg-actions {
    position: static;
  }

  .content-wysiwyg-shell {
    grid-template-columns: 1fr;
  }

  .content-wysiwyg-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .content-wysiwyg-actions .btn,
  .content-wysiwyg-actions .ghost-button,
  .content-wysiwyg-actions .inline-readonly-tag,
  .content-wysiwyg-actions .content-dirty-chip {
    width: auto;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 0 10px;
  }

  .topbar-right {
    gap: 6px;
  }

  .main,
  .shell-main {
    padding: 16px;
  }

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

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

  .user-trend-card {
    padding: 16px;
  }

  .trend-legend-item {
    padding: 7px 9px;
  }

  .home-identity-main {
    flex-direction: column;
  }

  .home-identity-visual {
    width: 100%;
  }

  .welcome-right {
    width: 100%;
    gap: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .welcome-stat {
    padding: 10px 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    width: 100%;
  }

  .pagination-btns,
  .pager-number-row {
    flex-wrap: wrap;
  }

  .audit-filter-actions,
  .detail-modal-footer-actions,
  .action-btn-group,
  .user-hero-actions {
    width: 100%;
  }

  .audit-filter-actions .ghost-button,
  .audit-filter-actions .primary-cta,
  .detail-modal-footer-actions .ghost-button,
  .detail-modal-footer-actions .primary-cta,
  .user-hero-actions .btn,
  .user-hero-actions .ghost-button,
  .user-hero-actions .primary-cta {
    width: 100%;
  }

  .profile-meta-item {
    align-items: flex-start;
  }

  .product-img-cell {
    width: 40px;
    height: 40px;
  }

  .asset-table-more,
  .recent-time,
  .log-time {
    white-space: normal;
  }

  .content-upload-row {
    grid-template-columns: 1fr;
  }

  .content-upload-row input[type="file"] {
    max-width: 100%;
  }

  .content-mini-preview {
    border-width: 8px;
    border-radius: 24px;
  }

  .content-wysiwyg-phone {
    border-width: 8px;
    border-radius: 24px;
  }

  .content-library-filter,
  .content-insert-bar {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .content-title-input {
    font-size: 22px;
  }
}
