.mobile-scrim {
  display:none;
}

@media(max-width:580px) {
  .sidebar {
    visibility:hidden;
  }
  .sidebar.open {
    visibility:visible;
  }
  .sidebar.open+.mobile-scrim {
    display:block;
    position:fixed;
    inset:0 0 0 220px;
    background:#2d1d3e25;
    z-index:29;
    backdrop-filter:blur(1px);
  }
}

:root {
  --purple:#7955d9;
  --purple-hover:#6843c7;
  --purple-soft:#f0ebfc;
  --ink:#282733;
  --secondary:#747382;
  --muted:#aaa8b5;
  --border:#ececf2;
  --bg:#f8f9fc;
  --green:#45a786;
  --radius:12px;
  --shadow:0 3px 18px #30244a05;
  font-family:"Inter",system-ui,-apple-system,"Noto Sans CJK SC","Microsoft YaHei",sans-serif;
  font-synthesis:none;
  color:var(--ink);
  font-size:14px;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--bg);
}

button,input,textarea,select {
  font:inherit;
}

button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent;
}

button,a {
  touch-action:manipulation;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:not-allowed;
  opacity:.55;
}

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

button {
  color:inherit;
}

input,textarea,select {
  outline:none;
}

button:focus-visible,a:focus-visible {
  outline:3px solid #b5a0ed;
  outline-offset:3px;
}

svg.icon {
  width:19px;
  height:19px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0;
}

span[data-icon] {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.muted {
  color:var(--secondary);
}

.green-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#49ad8f;
}

.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:232px;
  background:white;
  border-right:1px solid var(--border);
  padding:30px 18px 0;
  display:flex;
  flex-direction:column;
  z-index:30;
}

.logo {
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 14px;
  font-size:23px;
  font-weight:750;
  letter-spacing:1px;
  white-space:nowrap;
}

.logo b {
  font-size:19px;
  color:var(--purple);
  letter-spacing:-.6px;
  margin-left:4px;
}

.logo small {
  display:block;
  font-size:10px;
  letter-spacing:2px;
  font-weight:400;
  color:#a6a2b3;
  margin-top:6px;
}

.logo-mark {
  width:32px;
  height:32px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3px;
  transform:rotate(-3deg);
  flex-shrink:0;
}

.logo-mark i {
  background:var(--purple);
  border-radius:3px;
}

.logo-mark i:last-child {
  background:#b9a2ee;
}

.workspace {
  margin:31px 8px 26px;
  border:1px solid var(--border);
  padding:11px 10px;
  border-radius:9px;
  display:flex;
  align-items:center;
  gap:10px;
}

.workspace-icon {
  padding:7px;
  background:#f4f2f9;
  color:#8c7faa;
  border-radius:7px;
}

.workspace-icon .icon {
  width:17px;
  height:17px;
}

.workspace strong {
  font-size:12px;
  font-weight:600;
  display:block;
}

.workspace small {
  font-size:10px;
  color:#aaa6b5;
  display:block;
  margin-top:3px;
}

.workspace-arrow {
  color:#b1aebc;
  margin-left:auto;
}

.workspace-arrow .icon {
  width:13px;
}

.nav-caption {
  font-size:10px;
  letter-spacing:1.2px;
  color:#b1adba;
  margin:0 18px 11px;
}

.main-nav {
  display:flex;
  flex-direction:column;
  gap:6px;
}

.main-nav a,.main-nav>button {
  display:flex;
  align-items:center;
  gap:12px;
  border:0;
  background:transparent;
  height:45px;
  border-radius:8px;
  padding:0 16px;
  font-size:13px;
  color:#74717f;
  text-align:left;
}

.main-nav a:hover,.main-nav>button:hover {
  background:#f8f6fc;
}

.main-nav a.active {
  color:var(--purple);
  background:#f1ecfc;
  font-weight:600;
}

.main-nav em {
  margin-left:auto;
  background:#e5daf9;
  border-radius:5px;
  color:var(--purple);
  padding:2px 7px;
  font-style:normal;
  font-size:10px;
}

.nav-external {
  margin-left:auto;
  color:#b6b2c0;
}

.nav-external .icon {
  width:13px;
}

.management-caption {
  margin-top:29px;
}

.sidebar-bottom {
  margin-top:auto;
}

.sidebar-tip {
  margin:22px 6px 24px;
  padding:17px 13px;
  background:linear-gradient(130deg,#f9f6ff,#f3f0fc);
  border:1px solid #ece5fb;
  border-radius:11px;
}

.tip-spark {
  color:#9675d9;
  margin-bottom:11px;
}

.sidebar-tip strong {
  font-size:11px;
  display:block;
  font-weight:600;
}

.sidebar-tip p {
  font-size:10px;
  color:#a39aac;
  line-height:1.8;
  margin:7px 0 14px;
}

.sidebar-tip a {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  color:var(--purple);
}

.sidebar-tip .icon {
  width:14px;
  height:14px;
}

.sidebar-user {
  display:flex;
  align-items:center;
  gap:10px;
  padding:18px 10px;
  border-top:1px solid var(--border);
}

.avatar {
  background:#eee8fa;
  border:1px solid #e6dcf7;
  color:#8260bb;
  width:35px;
  height:35px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:650;
  font-size:13px;
  flex-shrink:0;
}

.sidebar-user strong {
  font-size:12px;
  font-weight:600;
}

.sidebar-user small {
  font-size:10px;
  color:#aaa6b4;
  display:block;
  margin-top:4px;
}

.sidebar-user .icon-button {
  margin-left:auto;
  color:#a29cab;
}

.icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  border:0;
  border-radius:7px;
  width:31px;
  height:31px;
  padding:5px;
  color:#9591a2;
}

.icon-button:hover {
  background:#f0ecf8;
  color:var(--purple);
}

.icon-button .icon {
  width:17px;
  height:17px;
}

.app-shell {
  margin-left:232px;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.topbar {
  height:77px;
  flex-shrink:0;
  background:#fff;
  border-bottom:1px solid var(--border);
  padding:0 34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.breadcrumb {
  display:flex;
  align-items:center;
  gap:16px;
  font-size:12px;
  color:#6c667b;
}

.breadcrumb-home {
  color:#9c94aa;
}

.breadcrumb-home .icon {
  width:16px;
  height:16px;
}

.breadcrumb-divider {
  color:#d0cbd9;
}

.breadcrumb strong {
  font-weight:500;
}

.topbar-actions {
  display:flex;
  align-items:center;
  gap:22px;
}

.global-search {
  display:flex;
  gap:9px;
  align-items:center;
  color:#aaa5b6;
}

.global-search input {
  width:183px;
  font-size:11px;
  border:0;
  background:transparent;
  padding:8px 0;
  color:var(--ink);
}

.global-search input::placeholder {
  color:#aaa5b6;
}

.global-search .icon {
  width:16px;
  height:16px;
}

kbd {
  font-family:inherit;
  font-size:9px;
  background:#f8f8fb;
  border:1px solid #ecebf2;
  border-radius:4px;
  padding:2px 5px;
  color:#a8a1b4;
}

.topbar-preview {
  font-size:11px;
  display:flex;
  gap:7px;
  align-items:center;
  color:#777081;
}

.topbar-preview .icon {
  width:14px;
  height:14px;
}

.notification-button {
  position:relative;
}

.notification-button i {
  width:5px;
  height:5px;
  background:#9873df;
  position:absolute;
  right:6px;
  top:4px;
  border-radius:50%;
  border:1px solid white;
}

.topbar-divider {
  width:1px;
  height:22px;
  background:var(--border);
}

.topbar-avatar {
  width:32px;
  height:32px;
  font-size:12px;
}

.mobile-toggle {
  display:none;
}

.main-content {
  padding:31px 34px 24px;
  flex:1;
  min-width:0;
}

.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:25px;
}

.page-heading h1 {
  font-size:23px;
  font-weight:650;
  letter-spacing:-.7px;
  line-height:1.5;
  margin:0;
}

.page-heading p {
  color:#9a93a5;
  font-size:11px;
  margin:7px 0 0;
  line-height:1.7;
}

.page-heading-actions {
  display:flex;
  align-items:center;
  gap:15px;
  flex-shrink:0;
}

.date-label {
  font-size:10px;
  color:#aaa3b2;
  display:flex;
  gap:6px;
  align-items:center;
}

.date-label .icon {
  width:14px;
  height:14px;
}

.button {
  padding:10px 15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid var(--border);
  background:white;
  border-radius:7px;
  font-size:11px;
  line-height:1.6;
  font-weight:500;
  white-space:nowrap;
  transition:background .15s,transform .15s;
}

.button:hover {
  border-color:#d7cbea;
  background:#fbf9ff;
}

.button.primary {
  background:var(--purple);
  color:white;
  border-color:var(--purple);
  box-shadow:0 3px 8px #7955d917;
}

.button.primary:hover {
  background:var(--purple-hover);
}

.button .icon {
  width:15px;
  height:15px;
}

.button.small {
  padding:6px 11px;
  font-size:10px;
}

.button.ghost {
  border:0;
  color:#8a74ad;
  background:transparent;
  padding:4px 0;
  font-size:10px;
}

.button.ghost:hover {
  color:var(--purple);
}

.button.danger {
  color:#c66168;
  border-color:#efdcdf;
  background:#fff8f9;
}

.stats-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:17px;
  margin-bottom:22px;
}

.stat-card {
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px 21px 16px;
  box-shadow:var(--shadow);
}

.stat-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.stat-title {
  font-size:11px;
  color:#8a8296;
}

.stat-icon {
  width:34px;
  height:34px;
  border-radius:9px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f1ebfc;
  color:#9c79dc;
}

.stat-icon.green {
  color:#78b9a2;
  background:#eef8f4;
}

.stat-icon.blue {
  color:#799cce;
  background:#f0f5fc;
}

.stat-icon.orange {
  color:#d5a36d;
  background:#fdf5eb;
}

.stat-icon .icon {
  width:17px;
  height:17px;
}

.stat-value {
  font-size:31px;
  font-weight:650;
  letter-spacing:-1.2px;
  display:flex;
  align-items:baseline;
  gap:9px;
  margin:7px 0 13px;
  font-variant-numeric:tabular-nums;
}

.stat-value small {
  font-size:10px;
  letter-spacing:0;
  color:#aaa3b1;
  font-weight:400;
}

.stat-bottom {
  border-top:1px solid #f4f1f7;
  padding-top:11px;
  font-size:10px;
  color:#a19aa9;
  display:flex;
  align-items:center;
  gap:6px;
}

.stat-bottom .dot {
  width:5px;
  height:5px;
  border-radius:50%;
  background:#a389d4;
}

.stat-bottom .green-dot {
  width:5px;
  height:5px;
}

.dashboard-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 282px;
  gap:21px;
}

.dashboard-left,.dashboard-right {
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:22px;
}

.panel {
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  box-shadow:var(--shadow);
  min-width:0;
  overflow:hidden;
}

.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 21px 0;
  gap:12px;
}

.panel-heading h2 {
  font-size:13px;
  font-weight:600;
  margin:0;
}

.panel-heading p {
  font-size:10px;
  color:#a7a0ae;
  margin:6px 0 0;
}

.panel-heading .button {
  color:#98919f;
}

.panel-select {
  font-size:10px;
  color:#92879f;
  border:1px solid #eeeaf3;
  border-radius:5px;
  padding:6px 9px;
  background:#fff;
  max-width:100px;
}

.chart-summary {
  display:flex;
  align-items:baseline;
  gap:7px;
  margin:19px 23px 0;
}

.chart-summary strong {
  font-size:23px;
  font-weight:600;
  letter-spacing:-.5px;
}

.chart-summary span {
  font-size:10px;
  color:#a79dac;
}

.chart-legend {
  display:flex;
  align-items:center;
  gap:6px;
  margin-left:auto;
  font-size:10px;
}

.chart-legend i {
  background:#9b77e2;
  width:7px;
  height:7px;
  border-radius:50%;
}

.chart-wrap {
  padding:3px 19px 14px;
  height:193px;
}

.chart {
  width:100%;
  height:100%;
  overflow:visible;
}

.chart text {
  font-family:inherit;
  font-size:10px;
  fill:#b4abba;
}

.chart .grid-line {
  stroke:#f1edf6;
  stroke-dasharray:4 5;
  stroke-width:1;
}

.chart .trend-line {
  stroke:#9470dd;
  stroke-width:2.5;
  fill:none;
}

.chart .trend-dot {
  fill:#fff;
  stroke:#9470dd;
  stroke-width:2;
}

.quick-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:11px;
  padding:19px 19px 18px;
}

.quick-button {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  border:1px solid #eeeaf3;
  background:white;
  border-radius:8px;
  padding:13px;
  font-size:10px;
  color:#8f829f;
  text-align:left;
}

.quick-button:hover {
  background:#faf7ff;
  border-color:#d9cbed;
}

.quick-button .icon {
  color:#a080d6;
  width:18px;
  height:18px;
}

.quick-button:nth-child(2) .icon {
  color:#74af99;
}

.quick-button:nth-child(3) .icon {
  color:#729dc4;
}

.quick-button:nth-child(4) .icon {
  color:#cba077;
}

.quick-promo {
  margin:0 19px 19px;
  background:#faf5ee;
  border:1px solid #f4ebe0;
  position:relative;
  border-radius:8px;
  padding:15px 12px;
  overflow:hidden;
  min-height:83px;
}

.quick-promo strong {
  font-size:11px;
  font-weight:550;
  color:#85715a;
  position:relative;
  z-index:1;
}

.quick-promo p {
  font-size:9px;
  line-height:1.8;
  color:#b09b83;
  margin:7px 0 0;
  position:relative;
  z-index:1;
}

.promo-art {
  position:absolute;
  right:0;
  bottom:0;
  width:84px;
  height:85px;
  opacity:.65;
}

.table-scroll {
  overflow-x:auto;
}

table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:11px;
  white-space:nowrap;
}

th {
  font-size:10px;
  color:#a098a9;
  font-weight:400;
  background:#fcfbfe;
  padding:13px 18px;
  border-bottom:1px solid #f0edf5;
}

td {
  padding:15px 18px;
  border-bottom:1px solid #f2eff6;
  color:#8b8297;
}

tbody tr:last-child td {
  border-bottom:0;
}

tbody tr:hover {
  background:#fdfbff;
}

.recent-panel .panel-heading {
  padding-bottom:20px;
}

.article-cell {
  display:flex;
  align-items:center;
  gap:11px;
  min-width:190px;
}

.article-thumb {
  width:39px;
  height:39px;
  border-radius:6px;
  object-fit:cover;
  flex-shrink:0;
}

.article-info {
  min-width:0;
}

.article-title {
  background:none;
  border:0;
  padding:0;
  color:#4a405a;
  font-size:11px;
  font-weight:500;
  max-width:250px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  display:block;
  text-align:left;
}

.article-title:hover {
  color:var(--purple);
}

.article-info small {
  display:block;
  font-size:9px;
  color:#b0a7b9;
  margin-top:5px;
}

.category-label {
  font-size:10px;
  color:#9a8fa9;
  background:#f5f2fa;
  border-radius:4px;
  padding:4px 7px;
}

.badge {
  font-size:9px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 8px;
  background:#eff8f4;
  color:#79ab97;
  border-radius:4px;
}

.badge i {
  height:4px;
  width:4px;
  background:currentColor;
  border-radius:50%;
}

.badge.draft {
  color:#c7a369;
  background:#fcf7ee;
}

.badge.off {
  color:#a79aad;
  background:#f2eff6;
}

.table-actions {
  display:flex;
  align-items:center;
  gap:3px;
}

.table-actions .icon-button {
  width:25px;
  height:25px;
}

.table-actions .icon {
  width:13px;
  height:13px;
}

.recent-panel table th,.recent-panel table td {
  padding-left:19px;
  padding-right:13px;
}

.table-bottom {
  border-top:1px solid var(--border);
  padding:14px 21px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#aaa0b3;
  font-size:10px;
}

.text-link {
  color:#9a7dbe;
  font-size:10px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:transparent;
  border:0;
  cursor:pointer;
  padding:0;
}

.text-link .icon {
  width:12px;
  height:12px;
}

.activity-list {
  padding:8px 21px 19px;
}

.activity-item {
  display:flex;
  align-items:flex-start;
  gap:10px;
  position:relative;
  padding:15px 0 0;
}

.activity-item:not(:last-child):before {
  content:"";
  position:absolute;
  left:12px;
  top:38px;
  bottom:-15px;
  width:1px;
  background:#eee8f5;
}

.activity-icon {
  width:25px;
  height:25px;
  border-radius:50%;
  background:#f3edfc;
  color:#ad91d5;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:1;
  flex-shrink:0;
}

.activity-icon .icon {
  width:12px;
  height:12px;
}

.activity-item:nth-child(2n) .activity-icon {
  background:#edf6f2;
  color:#90b7a2;
}

.activity-item:nth-child(3n) .activity-icon {
  background:#f1f5fa;
  color:#8ba3c6;
}

.activity-copy {
  min-width:0;
  padding-top:1px;
}

.activity-copy strong {
  font-size:10px;
  color:#897b99;
  display:block;
  font-weight:500;
  line-height:1.7;
}

.activity-copy p {
  font-size:9px;
  color:#b3a6be;
  margin:3px 0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:205px;
}

.activity-copy small {
  font-size:9px;
  color:#c0b5c8;
}

.system-panel {
  padding:17px 20px;
}

.system-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
}

.system-title .badge {
  font-size:8px;
  padding:3px 6px;
}

.system-meta {
  display:flex;
  justify-content:space-between;
  font-size:9px;
  color:#afa3bd;
  margin-top:13px;
}

.system-meta strong {
  font-weight:400;
  color:#9684a9;
}

.app-footer {
  padding:5px 34px 21px;
  display:flex;
  justify-content:space-between;
  font-size:9px;
  color:#b7afc1;
  gap:15px;
}

.app-footer>span:last-child {
  display:flex;
  align-items:center;
  gap:6px;
}

.app-footer .green-dot {
  width:4px;
  height:4px;
}

.footer-version {
  margin-left:10px;
  color:#c2bacb;
}

.page-tabs {
  display:flex;
  align-items:center;
  gap:27px;
  padding:0 22px;
  border-bottom:1px solid var(--border);
  height:56px;
}

.tab-button {
  background:transparent;
  border:0;
  height:100%;
  position:relative;
  padding:0;
  font-size:12px;
  color:#97909f;
  display:flex;
  align-items:center;
  gap:7px;
}

.tab-button.active {
  color:var(--purple);
  font-weight:500;
}

.tab-button.active:after {
  content:"";
  position:absolute;
  bottom:-1px;
  left:0;
  right:0;
  height:2px;
  background:var(--purple);
}

.tab-button em {
  font-style:normal;
  font-size:9px;
  padding:2px 6px;
  background:#f5f2f9;
  border-radius:4px;
  color:#a395b5;
}

.tab-button.active em {
  background:#ede5fc;
  color:var(--purple);
}

.filter-bar {
  display:flex;
  gap:12px;
  align-items:center;
  padding:19px 22px;
  flex-wrap:wrap;
}

.search-field {
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--border);
  border-radius:7px;
  padding:0 10px;
  height:35px;
  min-width:240px;
  color:#b2a7be;
}

.search-field input {
  border:0;
  background:transparent;
  width:100%;
  font-size:11px;
  color:var(--ink);
}

.search-field .icon {
  width:15px;
  height:15px;
}

.search-field:focus-within {
  border-color:#bca7e8;
}

.filter-select {
  border:1px solid var(--border);
  background:white;
  border-radius:7px;
  font-size:11px;
  color:#9a8aa9;
  padding:8px 10px;
  max-width:150px;
}

.filter-spacer {
  flex:1;
}

.view-toggle {
  display:flex;
  align-items:center;
  border:1px solid var(--border);
  border-radius:6px;
  padding:3px;
  gap:3px;
}

.view-toggle button {
  border:0;
  padding:5px;
  border-radius:4px;
  background:white;
  color:#baadca;
}

.view-toggle button.active {
  background:#f1ebfc;
  color:#8c65cc;
}

.view-toggle .icon {
  width:14px;
  height:14px;
}

.checkbox-cell {
  width:35px;
  padding-right:0;
}

input[type=checkbox] {
  accent-color:var(--purple);
  width:13px;
  height:13px;
  cursor:pointer;
}

.featured-star {
  font-size:12px;
  color:#bc9a55;
  margin-left:4px;
}

.pagination {
  display:flex;
  gap:5px;
  align-items:center;
}

.pagination button {
  border:1px solid var(--border);
  height:26px;
  min-width:26px;
  padding:3px 7px;
  border-radius:5px;
  background:white;
  font-size:10px;
  color:#aca0ba;
}

.pagination button.active {
  background:#f0e9fc;
  color:var(--purple);
  border-color:#e0d4f6;
}

.pagination .icon {
  width:11px;
  height:11px;
}

.batch-bar {
  padding:12px 22px;
  display:flex;
  align-items:center;
  gap:12px;
  background:#faf7ff;
  border-bottom:1px solid #efe7f9;
  font-size:11px;
  color:#9d80bf;
}

.batch-bar strong {
  font-weight:500;
  margin-right:8px;
}

.empty-state {
  padding:62px 25px;
  text-align:center;
  color:#b4a6c3;
}

.empty-state .empty-icon {
  display:inline-flex;
  padding:16px;
  background:#f6f1fb;
  border-radius:16px;
  margin-bottom:15px;
  color:#b49bd6;
}

.empty-state .icon {
  height:27px;
  width:27px;
}

.empty-state h3 {
  font-size:14px;
  color:#92819f;
  font-weight:500;
  margin:0 0 9px;
}

.empty-state p {
  font-size:11px;
  margin:0 0 20px;
  line-height:1.8;
}

.card-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.content-grid {
  padding:5px 22px 22px;
  grid-template-columns:repeat(3,1fr);
}

.content-card {
  border:1px solid var(--border);
  border-radius:10px;
  background:white;
  overflow:hidden;
}

.content-card>img {
  height:140px;
  width:100%;
  object-fit:cover;
}

.content-card-body {
  padding:16px;
}

.content-card-body h3 {
  font-size:12px;
  font-weight:500;
  margin:12px 0;
  color:#665373;
  line-height:1.7;
}

.content-card-body p {
  font-size:10px;
  color:#aa9db4;
  line-height:1.8;
  margin:0 0 16px;
  height:36px;
  overflow:hidden;
}

.content-card-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.template-card {
  padding:22px;
  background:white;
  border:1px solid var(--border);
  border-radius:11px;
  box-shadow:var(--shadow);
}

.template-card-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.template-visual {
  height:126px;
  margin:20px 0;
  background:#f7f4fc;
  border:1px solid #ede7f6;
  border-radius:7px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.mini-browser {
  width:72%;
  height:91px;
  background:#fff;
  box-shadow:0 3px 12px #8d69b610;
  border:1px solid #e9e2f2;
  border-radius:5px;
  overflow:hidden;
  padding:7px;
}

.mini-dots {
  display:flex;
  gap:3px;
  margin-bottom:8px;
  border-bottom:1px solid #f3eef8;
  padding-bottom:5px;
}

.mini-dots i {
  height:3px;
  width:3px;
  background:#d9cee7;
  border-radius:50%;
}

.mini-title {
  height:5px;
  background:#ceb9ea;
  width:55%;
  margin-bottom:5px;
  border-radius:2px;
}

.mini-line {
  height:3px;
  background:#ece7f4;
  width:90%;
  margin-top:4px;
  border-radius:1px;
}

.mini-cards {
  display:flex;
  gap:5px;
  margin-top:8px;
}

.mini-cards i {
  height:33px;
  width:33%;
  background:#eee8f7;
  border-radius:3px;
}

.mini-hero {
  height:29px;
  background:linear-gradient(125deg,#e3d7f5,#f2ecfa);
  border-radius:3px;
  margin:7px 0;
}

.template-card h3 {
  font-size:13px;
  font-weight:550;
  margin:0 0 8px;
  color:#695674;
}

.template-card p {
  font-size:10px;
  color:#ae9dbb;
  margin:0 0 20px;
  line-height:1.8;
}

.template-card-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:13px;
  border-top:1px solid #f0eaf6;
  font-size:9px;
  color:#b8a8c5;
}

.type-chip {
  font-size:9px;
  color:#a98ac9;
  background:#f2eafa;
  padding:4px 8px;
  border-radius:4px;
}

.type-chip.category {
  background:#edf6f2;
  color:#85ac98;
}

.type-chip.content {
  background:#edf2fa;
  color:#91a5c3;
}

.type-chip.page {
  background:#fbf4eb;
  color:#bf9f77;
}

.section-filter {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px;
  flex-wrap:wrap;
}

.segmented {
  display:flex;
  gap:4px;
  padding:4px;
  background:#f0edf5;
  border-radius:7px;
}

.segmented button {
  border:0;
  background:transparent;
  padding:7px 15px;
  border-radius:5px;
  color:#a295ac;
  font-size:11px;
}

.segmented button.active {
  background:white;
  color:#897099;
  box-shadow:0 1px 5px #69507608;
}

.category-name {
  display:flex;
  gap:9px;
  align-items:center;
  font-size:12px;
  color:#7d658f;
}

.category-name .icon {
  color:#ad8dc9;
  width:18px;
  height:18px;
}

.category-name .child-line {
  color:#d0bddc;
  margin-left:20px;
}

.mono {
  font-family:"SFMono-Regular",Consolas,monospace;
  font-size:10px;
  color:#a28db2;
}

.info-banner {
  display:flex;
  align-items:center;
  gap:10px;
  background:#f4f0fb;
  border:1px solid #eae1f6;
  border-radius:8px;
  padding:13px 16px;
  font-size:11px;
  color:#a08ab3;
  line-height:1.8;
  margin-top:20px;
}

.info-banner .icon {
  width:16px;
  height:16px;
}

.settings-layout {
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  gap:23px;
}

.settings-menu {
  align-self:start;
  display:flex;
  flex-direction:column;
  padding:8px;
  background:white;
  border:1px solid var(--border);
  border-radius:10px;
  gap:4px;
}

.settings-menu button {
  display:flex;
  align-items:center;
  gap:10px;
  border:0;
  border-radius:6px;
  background:transparent;
  padding:12px;
  text-align:left;
  color:#a491b1;
  font-size:11px;
}

.settings-menu button.active {
  background:#f2ebfc;
  color:var(--purple);
}

.settings-menu .icon {
  height:16px;
  width:16px;
}

.settings-panel {
  padding:26px;
  max-width:760px;
}

.settings-panel h2 {
  font-size:15px;
  font-weight:550;
  margin:0 0 8px;
  color:#705784;
}

.settings-panel>p {
  font-size:11px;
  line-height:1.8;
  color:#b09cbe;
  margin:0 0 27px;
}

.field {
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:18px;
  color:#856d99;
  font-size:11px;
}

.field label {
  font-weight:500;
}

.required {
  color:#ba82a3;
  margin-left:3px;
}

.field input:not([type=checkbox]):not([type=radio]),.field textarea,.field select,.form-input {
  width:100%;
  padding:10px 12px;
  border:1px solid #e9e0ef;
  border-radius:6px;
  color:#725a83;
  background:white;
  font-size:11px;
  line-height:1.7;
}

.field input:focus,.field textarea:focus,.field select:focus {
  border-color:#b698d4;
  box-shadow:0 0 0 3px #f5effb;
}

.field input::placeholder,.field textarea::placeholder {
  color:#c5b6cd;
}

.field small {
  font-size:10px;
  color:#b7a4c2;
  line-height:1.7;
}

.field textarea {
  resize:vertical;
  min-height:80px;
}

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

.form-error {
  font-size:11px;
  color:#c17781;
  line-height:1.7;
  margin:10px 0;
  min-height:0;
}

.form-error:empty {
  display:none;
}

.settings-form-footer {
  border-top:1px solid var(--border);
  padding-top:20px;
  margin-top:23px;
  display:flex;
  justify-content:flex-end;
}

.media-card {
  background:white;
  border:1px solid var(--border);
  border-radius:9px;
  overflow:hidden;
}

.media-card>img {
  height:165px;
  width:100%;
  object-fit:cover;
  background:#f4edf8;
}

.media-info {
  padding:14px;
}

.media-info strong {
  display:block;
  font-size:11px;
  color:#8c6c9b;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:500;
}

.media-info small {
  font-size:9px;
  color:#bda6c9;
  display:block;
  margin:7px 0 11px;
}

.media-actions {
  display:flex;
  align-items:center;
  gap:12px;
}

.upload-area {
  border:1px dashed #d4bce3;
  border-radius:10px;
  padding:27px;
  background:#fbf8fe;
  text-align:center;
  color:#b09ac2;
  cursor:pointer;
  margin-bottom:22px;
}

.upload-area:hover,.upload-area.dragging {
  background:#f3ecfb;
}

.upload-area>span {
  color:#ac8ccb;
  display:flex;
  justify-content:center;
  margin-bottom:10px;
}

.upload-area .icon {
  width:25px;
  height:25px;
}

.upload-area strong {
  font-size:12px;
  font-weight:500;
  color:#9676aa;
}

.upload-area p {
  font-size:10px;
  margin:8px 0 0;
}

.modal-backdrop {
  position:fixed;
  inset:0;
  background:#21122e59;
  backdrop-filter:blur(3px);
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:25px;
}

.modal {
  background:#fff;
  border-radius:13px;
  box-shadow:0 24px 100px #27153540;
  width:580px;
  max-width:100%;
  max-height:calc(100vh - 50px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.modal.wide {
  width:1040px;
}

.modal.medium {
  width:740px;
}

.modal-header {
  padding:20px 25px;
  border-bottom:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.modal-header h2 {
  font-size:16px;
  font-weight:550;
  margin:0;
  color:#725984;
}

.modal-header p {
  font-size:10px;
  color:#b29dbd;
  margin:6px 0 0;
}

.modal-header .icon-button {
  color:#b7a2c2;
}

.modal-body {
  padding:24px 25px;
  overflow-y:auto;
  min-height:0;
}

.modal-footer {
  padding:16px 25px;
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  background:#fefcff;
}

.modal-footer .footer-hint {
  margin-right:auto;
  font-size:10px;
  color:#bba5c8;
}

.editor-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 250px;
  gap:25px;
}

.editor-side {
  border-left:1px solid #f1e9f6;
  padding-left:23px;
}

.editor-section-title {
  font-size:11px;
  color:#9f7fb4;
  margin:0 0 16px;
  font-weight:550;
  display:flex;
  gap:7px;
  align-items:center;
}

.editor-section-title .icon {
  width:13px;
  height:13px;
}

.editor-toolbar {
  display:flex;
  align-items:center;
  gap:4px;
  padding:6px;
  border:1px solid #e9e0ef;
  border-bottom:0;
  border-radius:6px 6px 0 0;
  background:#fbf8fd;
}

.editor-toolbar button {
  border:0;
  background:transparent;
  padding:5px 8px;
  border-radius:4px;
  color:#a389b6;
  font-size:11px;
  min-width:26px;
}

.editor-toolbar button:hover {
  background:#efe4f7;
}

.editor-toolbar .editor-mode {
  margin-left:auto;
}

.editor-toolbar .editor-mode.active {
  color:#9768c5;
  background:#f1e7fa;
}

.body-editor {
  border-radius:0 0 6px 6px!important;
  min-height:300px!important;
  font-size:12px!important;
  line-height:1.95!important;
  padding:15px!important;
}

.cover-options {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
}

.cover-option {
  border:2px solid transparent;
  border-radius:6px;
  padding:2px;
  background:white;
  overflow:hidden;
  cursor:pointer;
}

.cover-option.selected {
  border-color:#b597d8;
}

.cover-option img {
  width:100%;
  height:39px;
  object-fit:cover;
  border-radius:3px;
  display:block;
}

.cover-selected {
  margin-top:8px;
}

.cover-selected img {
  width:100%;
  max-height:120px;
  object-fit:cover;
  border-radius:6px;
}

.check-label {
  display:flex;
  gap:8px;
  align-items:center;
  font-size:11px;
  color:#9d82b1;
  cursor:pointer;
  margin:14px 0;
}

.editor-tips {
  background:#faf5fd;
  border:1px solid #f0e5f8;
  border-radius:7px;
  padding:12px;
  font-size:10px;
  line-height:1.9;
  color:#b096c0;
}

.code-editor {
  min-height:350px!important;
  font-family:Consolas,"SFMono-Regular",monospace;
  font-size:11px!important;
  line-height:1.85!important;
  background:#292431!important;
  color:#d7c8e5!important;
  border-color:#3b304b!important;
  tab-size:2;
  white-space:pre;
}

.code-help {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}

.code-help button {
  border:1px solid #eadef1;
  background:#faf7fd;
  border-radius:4px;
  padding:4px 7px;
  font:10px Consolas,monospace;
  color:#aa84c1;
}

.template-editor-tabs {
  display:flex;
  gap:12px;
  margin-bottom:15px;
}

.template-editor-tabs button {
  padding:8px 13px;
  border:1px solid #e9ddf1;
  border-radius:6px;
  background:white;
  font-size:11px;
  color:#b29cc1;
}

.template-editor-tabs button.active {
  background:#f4ebfc;
  color:#9a70bc;
}

.preview-frame {
  width:100%;
  height:430px;
  border:1px solid #ede4f3;
  border-radius:7px;
  background:white;
}

.confirm-copy {
  color:#a387b3;
  font-size:12px;
  line-height:1.9;
}

.confirm-copy strong {
  color:#846493;
}

.context-menu {
  position:fixed;
  z-index:80;
  min-width:145px;
  background:white;
  border:1px solid #eae0f3;
  border-radius:8px;
  padding:5px;
  box-shadow:0 9px 25px #5338681a;
}

.context-menu button {
  display:flex;
  gap:8px;
  align-items:center;
  border:0;
  background:white;
  border-radius:5px;
  width:100%;
  padding:9px 10px;
  color:#977ca9;
  font-size:11px;
  text-align:left;
}

.context-menu button:hover {
  background:#f7f0fd;
}

.context-menu button.danger {
  color:#c87e99;
}

.context-menu .icon {
  height:13px;
  width:13px;
}

#toast-root {
  position:fixed;
  top:95px;
  right:32px;
  z-index:160;
  display:flex;
  flex-direction:column;
  gap:9px;
}

.toast {
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid #e8dcf3;
  background:white;
  color:#9c7eaf;
  border-radius:9px;
  padding:13px 18px;
  box-shadow:0 5px 28px #4127571a;
  font-size:12px;
  animation:toast-in .2s ease;
  max-width:420px;
}

.toast .icon {
  height:16px;
  width:16px;
  color:#87b39f;
}

.toast.error {
  border-color:#f2dfe7;
  color:#bf829b;
}

.toast.error .icon {
  color:#c9859f;
}

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

.loading-state {
  padding:150px 20px;
  text-align:center;
  font-size:12px;
  color:#b89bc7;
}

.spinner {
  display:inline-block;
  height:25px;
  width:25px;
  border:2px solid #eadcf4;
  border-top-color:#ab87cf;
  border-radius:50%;
  animation:spin .8s linear infinite;
}

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

.guide-step {
  display:flex;
  gap:15px;
  margin:20px 0;
}

.guide-step>span {
  background:#f1e7fb;
  color:#a180bc;
  width:28px;
  height:28px;
  border-radius:7px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  flex-shrink:0;
}

.guide-step h3 {
  font-size:12px;
  margin:0 0 7px;
  color:#9470a8;
  font-weight:550;
}

.guide-step p {
  font-size:11px;
  color:#b197c0;
  line-height:1.9;
  margin:0;
}

.shortcut-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  background:#faf6fd;
  padding:14px;
  border-radius:7px;
  font-size:10px;
  color:#b39ac1;
}

.shortcut-grid span {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.error-page {
  padding:150px 25px;
  text-align:center;
  color:#9a7aaa;
}

.error-page h1 {
  font-size:28px;
  color:#826294;
}

.error-page p {
  font-size:13px;
  margin-bottom:30px;
}

.error-symbol {
  font-size:70px;
  color:#baa2df;
}

.login-body {
  background:#f7f5fc;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:35px;
}

.login-shell {
  width:1080px;
  min-height:670px;
  display:grid;
  grid-template-columns:1fr 1fr;
  background:#fff;
  border:1px solid #e8e2f1;
  border-radius:19px;
  overflow:hidden;
  box-shadow:0 18px 80px #674a890b;
}

.login-story {
  background:linear-gradient(145deg,#f0eafb,#f4f0fb 65%,#ece6f8);
  padding:41px 42px;
  position:relative;
  overflow:hidden;
}

.login-story .logo {
  padding:0;
}

.story-copy {
  margin-top:75px;
}

.story-eyebrow {
  font-size:9px;
  color:#ac90cf;
  letter-spacing:2.5px;
}

.story-copy h1 {
  font-size:35px;
  line-height:1.65;
  letter-spacing:-1px;
  font-weight:600;
  color:#6b5287;
  margin:19px 0 15px;
}

.story-copy p {
  font-size:12px;
  color:#aa93bb;
  line-height:2;
}

.story-footer {
  font-size:8px;
  letter-spacing:2px;
  color:#b5a1c8;
  position:absolute;
  bottom:30px;
}

.login-art {
  position:relative;
  height:215px;
  margin-top:20px;
}

.art-sheet {
  position:absolute;
  width:180px;
  height:158px;
  background:white;
  border:1px solid #dfd2ef;
  border-radius:9px;
  box-shadow:0 9px 30px #9972bb0f;
  bottom:15px;
  left:135px;
  transform:rotate(8deg);
}

.sheet-back {
  background:#dccdeb;
  transform:rotate(-10deg);
  bottom:15px;
  left:115px;
}

.sheet-front {
  padding:18px;
}

.sheet-front i {
  display:block;
  height:62px;
  background:linear-gradient(135deg,#e3d6f5,#cdb8e9);
  border-radius:5px;
  position:relative;
  overflow:hidden;
}

.sheet-front i:before {
  content:"";
  position:absolute;
  border:8px solid #f1e9fa;
  border-radius:50%;
  width:60px;
  height:60px;
  right:10px;
  top:10px;
}

.sheet-front b {
  display:block;
  height:6px;
  width:70%;
  background:#cab6df;
  border-radius:2px;
  margin:12px 0 8px;
}

.sheet-front em {
  display:block;
  height:3px;
  background:#e5daef;
  width:90%;
  margin-top:4px;
}

.sheet-front em:last-of-type {
  width:60%;
}

.sheet-front small {
  font-size:6px;
  letter-spacing:.5px;
  color:#b097c5;
  display:block;
  margin-top:10px;
}

.art-spark {
  font-size:40px;
  color:#b39bd0;
  position:absolute;
  right:45px;
  top:14px;
}

.art-circle {
  width:35px;
  height:35px;
  border:7px solid #c5aee1;
  border-radius:50%;
  position:absolute;
  left:65px;
  bottom:15px;
}

.login-form-panel {
  padding:62px 65px 25px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.login-form-inner {
  margin:auto 0;
}

.login-welcome {
  font-size:11px;
  letter-spacing:1px;
  color:#b09aca;
}

.login-form-inner h2 {
  font-size:25px;
  color:#775887;
  letter-spacing:-.5px;
  font-weight:600;
  margin:12px 0;
}

.login-form-inner>.muted {
  font-size:11px;
  color:#b49cc1;
  line-height:1.8;
  margin-bottom:34px;
}

.login-form-inner label {
  font-size:11px;
  color:#9e81af;
  display:block;
  margin-bottom:21px;
}

.login-form-inner input {
  display:block;
  margin-top:9px;
  border:1px solid #e9def0;
  border-radius:7px;
  padding:12px 13px;
  font-size:12px;
  color:#8c6b9d;
  width:100%;
  background:#fff;
}

.login-form-inner input::placeholder {
  color:#c8b6d3;
}

.login-form-inner input:focus {
  border-color:#ba9bd5;
}

.password-wrap {
  position:relative;
}

.password-wrap input {
  padding-right:55px;
}

.password-wrap button {
  position:absolute;
  right:10px;
  top:12px;
  border:0;
  background:none;
  font-size:10px;
  color:#ba9dc9;
}

.login-submit {
  width:100%;
  font-size:12px;
  margin-top:6px;
  padding:12px 16px;
  justify-content:space-between;
}

.demo-login {
  border-top:1px solid #f0e8f6;
  margin-top:28px;
  padding-top:20px;
  font-size:11px;
  color:#baa1c8;
}

.demo-login button {
  border:0;
  background:transparent;
  color:#a480c1;
  padding:0 0 0 10px;
  font-size:11px;
}

.demo-login small {
  display:block;
  font-size:9px;
  color:#cbb8d5;
  margin-top:9px;
}

.login-footnote {
  font-size:10px;
  text-align:center;
  color:#b79bc9;
  line-height:2.2;
  margin:30px 0 0;
}

.login-footnote span {
  color:#c7b5d3;
  font-size:9px;
}

.login-copyright {
  font-size:9px;
  text-align:center;
  color:#c8b3d4;
  margin-top:35px;
}

@media(min-width:1550px) {
  .main-content {
    padding:36px 45px 28px;
    max-width:1570px;
    width:100%;
    align-self:center;
  }
  .dashboard-grid {
    grid-template-columns:minmax(0,1fr) 310px;
  }
  .chart-wrap {
    height:225px;
  }
  .topbar {
    padding:0 45px;
  }
  .stat-card {
    padding:24px;
  }
  .stat-value {
    font-size:35px;
  }
  .recent-panel table td {
    padding-top:18px;
    padding-bottom:18px;
  }
}

@media(max-width:1250px) {
  .dashboard-grid {
    grid-template-columns:minmax(0,1fr) 250px;
    gap:17px;
  }
  .main-content {
    padding:27px 24px 22px;
  }
  .topbar {
    padding:0 24px;
  }
  .date-label {
    display:none;
  }
  .recent-panel th:nth-child(4),.recent-panel td:nth-child(4) {
    display:none;
  }
  .stat-card {
    padding:16px;
  }
  .stat-value {
    font-size:28px;
  }
  .stats-grid {
    gap:13px;
  }
  .activity-copy p {
    max-width:170px;
  }
  .article-title {
    max-width:200px;
  }
  .card-grid {
    grid-template-columns:repeat(2,1fr);
  }
  .app-footer {
    padding-left:24px;
    padding-right:24px;
  }
  .global-search input {
    width:150px;
  }
  .topbar-actions {
    gap:15px;
  }
  .dashboard-grid .table-actions .icon-button:first-child {
    display:none;
  }
}

@media(max-width:1050px) {
  .sidebar {
    width:78px;
    padding:27px 10px 0;
  }
  .logo {
    padding:0 10px;
  }
  .logo>span:last-child,.workspace,.nav-caption,.main-nav a>span:nth-child(2),.main-nav>button>span:nth-child(2),.main-nav em,.nav-external,.sidebar-tip,.sidebar-user>div {
    display:none;
  }
  .main-nav {
    margin-top:30px;
    gap:10px;
  }
  .main-nav a,.main-nav>button {
    padding:0;
    justify-content:center;
  }
  .sidebar-user {
    padding:20px 0;
    justify-content:center;
    flex-direction:column;
  }
  .sidebar-user .icon-button {
    margin:0;
  }
  .app-shell {
    margin-left:78px;
  }
  .dashboard-grid {
    grid-template-columns:minmax(0,1fr) 250px;
  }
  .stat-card {
    padding:17px 15px;
  }
  .global-search input {
    width:165px;
  }
}

@media(max-width:800px) {
  .dashboard-grid {
    grid-template-columns:1fr;
  }
  .dashboard-right {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
  }
  .system-panel {
    grid-column:1/-1;
  }
  .stats-grid {
    grid-template-columns:repeat(2,1fr);
  }
  .global-search {
    display:none;
  }
  .page-heading h1 {
    font-size:21px;
  }
  .editor-layout {
    grid-template-columns:1fr;
  }
  .editor-side {
    border-left:0;
    padding:20px 0 0;
    border-top:1px solid var(--border);
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
  }
  .editor-side .editor-section-title {
    grid-column:1/-1;
    margin-bottom:0;
  }
  .cover-options {
    grid-template-columns:repeat(3,1fr);
  }
  .settings-layout {
    grid-template-columns:1fr;
  }
  .settings-menu {
    flex-direction:row;
    overflow:auto;
  }
  .settings-menu button {
    white-space:nowrap;
  }
  .article-title {
    max-width:210px;
  }
  .page-heading-actions {
    gap:9px;
  }
  .page-heading-actions .button {
    padding:9px 12px;
  }
  .modal-backdrop {
    padding:15px;
  }
  .modal {
    max-height:calc(100vh - 30px);
  }
  .recent-panel th:nth-child(4),.recent-panel td:nth-child(4) {
    display:table-cell;
  }
  .topbar-actions {
    gap:12px;
  }
  .template-card {
    padding:18px;
  }
}

@media(max-width:580px) {
  .sidebar {
    transform:translateX(-100%);
    transition:transform .2s;
    width:220px;
    padding:26px 15px 0;
    box-shadow:0 10px 40px #54306d20;
  }
  .sidebar.open {
    transform:translateX(0);
  }
  .sidebar.open .logo>span:last-child,.sidebar.open .nav-caption,.sidebar.open .main-nav a>span:nth-child(2),.sidebar.open .main-nav>button>span:nth-child(2),.sidebar.open .sidebar-user>div {
    display:block;
  }
  .sidebar.open .main-nav a,.sidebar.open .main-nav>button {
    justify-content:flex-start;
    padding:0 15px;
  }
  .sidebar.open .main-nav {
    margin-top:10px;
  }
  .sidebar.open .nav-caption {
    margin-top:30px;
  }
  .sidebar.open .sidebar-user {
    flex-direction:row;
    justify-content:flex-start;
  }
  .sidebar.open .sidebar-user .icon-button {
    margin-left:auto;
  }
  .app-shell {
    margin-left:0;
  }
  .mobile-toggle {
    display:inline-flex;
  }
  .topbar {
    height:64px;
    padding:0 16px;
  }
  .breadcrumb {
    gap:11px;
  }
  .breadcrumb-home,.breadcrumb-divider {
    display:none;
  }
  .topbar-actions {
    gap:9px;
  }
  .topbar-preview {
    font-size:10px;
  }
  .topbar-avatar {
    width:28px;
    height:28px;
  }
  .main-content {
    padding:24px 16px 20px;
  }
  .page-heading {
    align-items:flex-start;
    gap:12px;
    margin-bottom:21px;
  }
  .page-heading h1 {
    font-size:19px;
    line-height:1.6;
  }
  .page-heading p {
    font-size:10px;
    max-width:205px;
  }
  .page-heading-actions {
    align-self:flex-start;
    padding-top:2px;
  }
  .page-heading-actions .button {
    padding:8px 11px;
    font-size:10px;
  }
  .page-heading-actions .export-btn {
    display:none;
  }
  .stats-grid {
    gap:10px;
    margin-bottom:17px;
  }
  .stat-card {
    padding:14px;
  }
  .stat-title {
    font-size:10px;
  }
  .stat-icon {
    height:28px;
    width:28px;
  }
  .stat-icon .icon {
    height:14px;
    width:14px;
  }
  .stat-value {
    font-size:26px;
    margin-top:8px;
    margin-bottom:10px;
  }
  .stat-bottom {
    font-size:9px;
  }
  .dashboard-left,.dashboard-right {
    gap:17px;
  }
  .dashboard-right {
    grid-template-columns:1fr;
  }
  .chart-wrap {
    height:178px;
  }
  .quick-grid {
    grid-template-columns:repeat(4,1fr);
    gap:8px;
    padding:17px;
  }
  .quick-button {
    padding:10px 8px;
    font-size:9px;
    gap:8px;
  }
  .quick-promo {
    display:none;
  }
  .article-title {
    max-width:155px;
    font-size:10px;
  }
  .article-cell {
    min-width:190px;
  }
  .recent-panel th:nth-child(4),.recent-panel td:nth-child(4) {
    display:none;
  }
  .panel-heading {
    padding:17px 17px 0;
  }
  .recent-panel .panel-heading {
    padding-bottom:17px;
  }
  .recent-panel table td,.recent-panel table th {
    padding-left:17px;
  }
  .recent-panel th:nth-child(5),.recent-panel td:nth-child(5) {
    display:none;
  }
  .panel-heading h2 {
    font-size:12px;
  }
  .app-footer {
    padding:7px 16px 20px;
    font-size:8px;
  }
  .footer-version {
    display:none;
  }
  .page-tabs {
    gap:18px;
    padding:0 16px;
    overflow:auto;
    height:51px;
  }
  .tab-button {
    font-size:11px;
    white-space:nowrap;
  }
  .filter-bar {
    padding:16px;
    gap:9px;
  }
  .search-field {
    min-width:0;
    flex:1;
    min-width:170px;
  }
  .filter-select {
    max-width:115px;
    padding:8px;
  }
  .view-toggle {
    display:none;
  }
  .card-grid {
    grid-template-columns:1fr;
  }
  .content-grid {
    padding:0 16px 16px;
  }
  .template-visual {
    height:140px;
  }
  .mini-browser {
    height:102px;
  }
  .section-filter {
    gap:12px;
  }
  .section-filter>.search-field {
    max-width:none;
  }
  .segmented {
    width:100%;
    justify-content:space-between;
  }
  .segmented button {
    padding:7px 10px;
    font-size:10px;
  }
  .form-row {
    grid-template-columns:1fr;
    gap:0;
  }
  .modal-backdrop {
    padding:8px;
  }
  .modal {
    max-height:calc(100dvh - 16px);
  }
  .modal-header {
    padding:17px;
  }
  .modal-header h2 {
    font-size:15px;
  }
  .modal-body {
    padding:19px 17px;
  }
  .modal-footer {
    padding:13px 17px;
    gap:7px;
  }
  .modal-footer .footer-hint {
    display:none;
  }
  .editor-layout {
    gap:15px;
  }
  .editor-side {
    gap:13px;
    grid-template-columns:1fr;
  }
  .editor-toolbar {
    gap:0;
  }
  .editor-toolbar button {
    padding:5px 6px;
  }
  .field {
    margin-bottom:16px;
  }
  .settings-panel {
    padding:22px 18px;
  }
  .settings-menu button {
    padding:10px;
    font-size:10px;
  }
  .table-bottom {
    padding:13px 16px;
  }
  .batch-bar {
    padding:12px 16px;
    gap:8px;
    flex-wrap:wrap;
  }
  .pagination {
    gap:3px;
  }
  #toast-root {
    top:77px;
    right:16px;
    left:16px;
  }
  .toast {
    max-width:100%;
    font-size:11px;
  }
  .login-body {
    padding:18px;
    align-items:center;
  }
  .login-shell {
    display:block;
    min-height:0;
    max-width:440px;
    border-radius:15px;
  }
  .login-story {
    padding:30px;
    min-height:150px;
  }
  .login-story .logo {
    font-size:22px;
  }
  .story-copy {
    margin-top:25px;
  }
  .story-eyebrow,.story-copy h1,.story-copy p,.login-art,.story-footer {
    display:none;
  }
  .story-copy:after {
    content:"每一个好想法，都值得被看见。";
    font-size:12px;
    color:#a58abc;
  }
  .login-form-panel {
    padding:34px 30px 25px;
  }
  .login-form-inner h2 {
    font-size:23px;
  }
  .login-copyright {
    margin-top:28px;
  }
  .login-footnote {
    margin-top:22px;
  }
}
/* Search and content quality controls inherit the existing administrator UI. */
.seo-fields { margin: 20px 0; padding: 16px; border: 1px solid #e9e1ef; border-radius: 10px; background: #fcfaff; }
.seo-fields summary { cursor: pointer; font-weight: 600; color: #725984; }
.seo-fields[open] summary { margin-bottom: 18px; }
.field-help { color: #8d7b9a; font-size: 12px; line-height: 1.7; margin: 8px 0 18px; }
.seo-audit-section { border-top: 1px solid #e9e1ef; margin-top: 32px; padding-top: 24px; }
.seo-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.seo-audit-count { margin-top: 20px; }
.seo-audit-list { max-height: 480px; overflow: auto; }
.seo-audit-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid #efe8f5; }
.seo-audit-item a { color: #7955d9; font-weight: 600; }
.seo-audit-item p { font-size: 12px; margin: 5px 0 0; }
