:root {
  --admin-ink: #1f2420;
  --admin-ink-soft: #5e665f;
  --admin-muted: #8b938d;
  --admin-line: #e7ebe7;
  --admin-line-strong: #d9dfd9;
  --admin-bg: #f7f8f6;
  --admin-card: #ffffff;
  --admin-brand: #1d735f;
  --admin-brand-deep: #0f5b4b;
  --admin-brand-soft: #e8f4ef;
  --admin-lilac: #6c58c7;
  --admin-lilac-soft: #efedff;
  --admin-amber: #b36a18;
  --admin-amber-soft: #fff5df;
  --admin-red: #bd4b4b;
  --admin-red-soft: #fff0ef;
  --admin-sidebar: #202522;
  --admin-sidebar-2: #2a302c;
  --admin-sidebar-text: #c4cec5;
  --admin-sidebar-muted: #839087;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(29 44 35 / 0.04), 0 8px 25px rgb(29 44 35 / 0.035);
  --shadow-strong: 0 14px 35px rgb(29 44 35 / 0.12);
  --sidebar-width: 252px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--admin-bg); color: var(--admin-ink); font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; }
svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: var(--sidebar-width); flex: 0 0 var(--sidebar-width); background: var(--admin-sidebar); color: var(--admin-sidebar-text); display: flex; flex-direction: column; padding: 20px 14px 14px; transition: width .22s ease, flex-basis .22s ease, transform .22s ease; position: relative; z-index: 40; }
.sidebar-top, .admin-brand, .workspace-switcher, .admin-user, .topbar-actions, .breadcrumbs, .mobile-brand { display: flex; align-items: center; }
.sidebar-top { justify-content: space-between; padding: 0 8px 20px; }
.admin-brand { gap: 10px; min-width: 0; }
.admin-brand .brand-dot { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; overflow: hidden; background: #d4efdf; }
.admin-brand img { width: 100%; height: 100%; object-fit: cover; }
.admin-brand strong { display: block; color: #f4f8f3; font-size: 15px; letter-spacing: -.02em; line-height: 1.05; }
.admin-brand em, .mobile-brand em { color: #78cfad; font-style: normal; }
.admin-brand small { display: block; color: var(--admin-sidebar-muted); font-size: 10px; margin-top: 3px; }
.icon-button { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; background: transparent; color: inherit; }
.icon-button:hover { background: rgb(255 255 255 / .08); }
.sidebar-collapse { color: var(--admin-sidebar-muted); }
.sidebar-collapse svg { width: 16px; height: 16px; transition: transform .22s ease; }
.workspace-switcher { gap: 9px; margin: 2px 4px 26px; padding: 10px 9px; border: 1px solid rgb(255 255 255 / .08); border-radius: 11px; background: rgb(255 255 255 / .035); }
.workspace-switcher:hover { background: rgb(255 255 255 / .065); }
.workspace-avatar { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: #3b7463; color: #e4fff0; font-size: 12px; font-weight: 750; }
.workspace-copy { min-width: 0; flex: 1; }
.workspace-copy strong, .workspace-copy small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-copy strong { color: #edf5ee; font-size: 12px; }
.workspace-copy small { color: var(--admin-sidebar-muted); font-size: 10px; margin-top: 1px; }
.workspace-switcher > svg { width: 15px; height: 15px; color: var(--admin-sidebar-muted); }
.nav-label { color: #758077; font-size: 10px; font-weight: 700; letter-spacing: .08em; margin: 0 10px 7px; text-transform: uppercase; }
.nav-label-spaced { margin-top: 26px; }
.admin-nav { flex: 1; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 10px; border-radius: 9px; color: var(--admin-sidebar-text); font-size: 12px; font-weight: 550; margin-bottom: 3px; transition: background .18s, color .18s; }
.nav-item svg { width: 17px; height: 17px; color: #95a199; }
.nav-item:hover { background: rgb(255 255 255 / .06); color: #f3f8f4; }
.nav-item.active { color: #e9fff1; background: #2d493d; box-shadow: inset 3px 0 0 #75c89f; }
.nav-item.active svg { color: #82d1ab; }
.nav-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: auto; border-radius: 999px; background: rgb(255 255 255 / .1); color: #b9c8bd; font-size: 10px; font-weight: 700; }
.nav-count.warning { background: #584626; color: #f3c778; }
.soon-tag { margin-left: auto; color: #758077; font-size: 9px; letter-spacing: .02em; }
.sidebar-bottom { padding-top: 12px; border-top: 1px solid rgb(255 255 255 / .07); }
.admin-user { gap: 9px; padding: 10px 8px 2px; }
.admin-user > span { flex: 1; min-width: 0; }
.admin-user strong, .admin-user small { display: block; }
.admin-user strong { color: #e7eee8; font-size: 12px; }
.admin-user small { color: var(--admin-sidebar-muted); font-size: 10px; }
.admin-user .icon-button { color: #88948b; }
.kebab { letter-spacing: 1px; font-size: 12px; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.avatar-indigo { background: #ddd9ff; color: #51439b; }
.avatar-green { background: #d7f1e2; color: #2c765b; }
.avatar-orange { background: #ffe8c3; color: #a76114; }
.avatar-pink { background: #f8dce5; color: #a64063; }
.avatar-blue { background: #d8e9fb; color: #3c6a9f; }

.admin-main-wrap { min-width: 0; flex: 1; }
.admin-topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 34px; background: rgb(255 255 255 / .78); border-bottom: 1px solid var(--admin-line); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); }
.breadcrumbs { gap: 9px; color: var(--admin-muted); font-size: 12px; }
.breadcrumbs svg { width: 14px; height: 14px; }
.breadcrumbs strong { color: var(--admin-ink); font-weight: 650; }
.topbar-actions { gap: 12px; }
.top-search { display: flex; align-items: center; gap: 8px; color: #8a928c; background: #f4f6f3; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; font-size: 11px; }
.top-search:hover { border-color: var(--admin-line-strong); background: white; }
.top-search svg { width: 15px; height: 15px; }
kbd { padding: 1px 4px; border: 1px solid #dde3dc; border-radius: 4px; color: #9aa29c; background: white; font-size: 9px; }
.notification-button { position: relative; color: #6d766f; }
.notification-button i { position: absolute; right: 7px; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: #c46a2c; box-shadow: 0 0 0 2px #fff; }
.view-site { display: inline-flex; align-items: center; gap: 5px; color: var(--admin-brand); font-size: 11px; font-weight: 650; padding: 8px 10px; border-radius: 7px; }
.view-site:hover { background: var(--admin-brand-soft); }
.view-site svg { width: 13px; height: 13px; }
.mobile-brand { display: none; gap: 10px; color: var(--admin-ink); }
.mobile-brand strong { font-size: 14px; }

.admin-content { max-width: 1440px; padding: 34px 38px 56px; margin: 0 auto; }
.view-panel { display: none; animation: panel-in .24s ease both; }
.view-panel.active { display: block; }
@keyframes panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-heading h1 { margin: 0; font-size: 25px; letter-spacing: -.045em; line-height: 1.2; font-weight: 760; }
.page-heading p { margin: 7px 0 0; color: var(--admin-muted); font-size: 12px; }
.page-heading-actions { display: flex; align-items: center; gap: 9px; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; color: var(--admin-brand); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 37px; padding: 0 14px; border: 1px solid var(--admin-line-strong); border-radius: 8px; background: white; color: var(--admin-ink); font-size: 12px; font-weight: 650; transition: all .16s ease; }
.btn:hover { border-color: #b6c0b7; box-shadow: 0 3px 10px rgb(30 54 39 / .07); }
.btn svg { width: 15px; height: 15px; }
.btn-primary { border-color: var(--admin-brand); background: var(--admin-brand); color: white; box-shadow: 0 5px 12px rgb(29 115 95 / .16); }
.btn-primary:hover { border-color: var(--admin-brand-deep); background: var(--admin-brand-deep); }
.btn-secondary { background: var(--admin-brand-soft); border-color: transparent; color: var(--admin-brand-deep); }
.btn-danger { color: var(--admin-red); background: var(--admin-red-soft); border-color: transparent; }
.btn-quiet { border-color: transparent; color: var(--admin-muted); background: transparent; }
.btn-quiet:hover { background: #f0f3ef; box-shadow: none; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 11px; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 20px; }
.metric-card { position: relative; overflow: hidden; padding: 17px 18px 15px; background: var(--admin-card); border: 1px solid var(--admin-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.metric-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -64px; top: -64px; border-radius: 50%; background: var(--metric-glow, var(--admin-brand-soft)); opacity: .7; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 1; }
.metric-label { color: var(--admin-muted); font-size: 11px; }
.metric-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--metric-soft, var(--admin-brand-soft)); color: var(--metric-color, var(--admin-brand)); }
.metric-icon svg { width: 16px; height: 16px; }
.metric-value { margin: 17px 0 4px; font-size: 28px; font-weight: 760; letter-spacing: -.06em; line-height: .95; position: relative; z-index: 1; }
.metric-foot { display: flex; align-items: center; gap: 6px; color: var(--admin-muted); font-size: 10px; position: relative; z-index: 1; }
.metric-foot .up { color: #329267; font-weight: 700; }
.metric-foot .down { color: var(--admin-red); font-weight: 700; }
.metric-green { --metric-color: #218362; --metric-soft: #e5f5ed; --metric-glow: #e5f5ed; }
.metric-purple { --metric-color: #6957c4; --metric-soft: #efedff; --metric-glow: #efedff; }
.metric-orange { --metric-color: #b16c19; --metric-soft: #fff3de; --metric-glow: #fff3de; }
.metric-red { --metric-color: #be5555; --metric-soft: #fff0ef; --metric-glow: #fff0ef; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(320px, .82fr); gap: 20px; }
.content-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--admin-card); border: 1px solid var(--admin-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 17px 19px 12px; }
.card-header h2 { margin: 0; font-size: 14px; letter-spacing: -.02em; }
.card-header p { margin: 4px 0 0; font-size: 10px; color: var(--admin-muted); }
.card-header .text-link { color: var(--admin-brand); font-size: 11px; font-weight: 650; white-space: nowrap; }
.card-header .text-link:hover { text-decoration: underline; }
.card-body { padding: 0 19px 19px; }

.chart-card { min-height: 303px; }
.chart-legend { display: flex; align-items: center; gap: 14px; padding: 0 19px 9px; color: var(--admin-muted); font-size: 10px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; background: var(--admin-brand); }
.legend-dot.light { background: #b9dace; }
.chart-wrap { height: 204px; padding: 3px 19px 0; position: relative; }
.chart-gridlines { position: absolute; inset: 12px 19px 31px; display: flex; flex-direction: column; justify-content: space-between; }
.chart-gridlines i { display: block; height: 1px; background: #edf1ed; }
.bar-chart { position: absolute; inset: 12px 19px 31px; display: flex; align-items: stretch; justify-content: space-between; gap: 2.3%; }
.chart-col { flex: 1; display: flex; align-items: flex-end; gap: 4px; position: relative; }
.chart-col::after { content: attr(data-label); position: absolute; bottom: -23px; left: 50%; transform: translateX(-50%); color: var(--admin-muted); font-size: 9px; }
.bar { width: 50%; min-height: 4px; border-radius: 4px 4px 2px 2px; background: #c8e6db; }
.bar.current { background: var(--admin-brand); }
.chart-axis { position: absolute; right: 19px; top: 0; bottom: 30px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; color: #aab3ac; font-size: 8px; }

.upcoming-list, .pending-list, .activity-list { list-style: none; margin: 0; padding: 0; }
.upcoming-item { display: grid; grid-template-columns: 45px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--admin-line); }
.upcoming-item:first-child { border-top: 0; }
.date-tile { width: 45px; height: 49px; display: grid; place-items: center; align-content: center; gap: 1px; background: #f2f6f2; border-radius: 9px; }
.date-tile b { color: var(--admin-brand); font-size: 9px; text-transform: uppercase; }
.date-tile strong { font-size: 19px; line-height: 1; letter-spacing: -.05em; }
.item-title { min-width: 0; }
.item-title strong, .item-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-title strong { font-size: 12px; font-weight: 650; }
.item-title small { margin-top: 3px; color: var(--admin-muted); font-size: 10px; }
.item-right { text-align: right; }
.item-right strong { display: block; font-size: 11px; }
.item-right small { display: block; color: var(--admin-muted); font-size: 9px; margin-top: 2px; }

.pending-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--admin-line); }
.pending-item:first-child { border-top: 0; }
.pending-copy { min-width: 0; flex: 1; }
.pending-copy strong, .pending-copy small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pending-copy strong { font-size: 11px; font-weight: 650; }
.pending-copy small { color: var(--admin-muted); font-size: 9px; margin-top: 2px; }
.pending-action { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--admin-brand-soft); color: var(--admin-brand); }
.pending-action:hover { background: #d7eee4; }
.pending-action svg { width: 14px; height: 14px; }

.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 20px; }
.quick-action { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--admin-line); border-radius: 11px; background: white; text-align: left; }
.quick-action:hover { border-color: #badacd; background: #fbfefc; }
.quick-action > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: var(--admin-brand-soft); color: var(--admin-brand); }
.quick-action svg { width: 15px; height: 15px; }
.quick-action strong, .quick-action small { display: block; }
.quick-action strong { font-size: 10px; }
.quick-action small { color: var(--admin-muted); font-size: 9px; margin-top: 2px; }

.filters-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 13px 15px; margin-bottom: 13px; background: white; border: 1px solid var(--admin-line); border-radius: 11px; }
.search-field { display: flex; align-items: center; gap: 7px; min-width: 220px; height: 34px; padding: 0 10px; border: 1px solid var(--admin-line-strong); border-radius: 7px; background: #fbfcfb; color: var(--admin-muted); }
.search-field:focus-within { border-color: #9fc7b6; box-shadow: 0 0 0 3px rgb(29 115 95 / .08); }
.search-field svg { width: 15px; height: 15px; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--admin-ink); font-size: 11px; }
.filter-select { height: 34px; padding: 0 26px 0 10px; border: 1px solid var(--admin-line-strong); border-radius: 7px; color: var(--admin-ink-soft); background: white; font-size: 11px; outline: 0; }
.filter-select:focus { border-color: #9fc7b6; }
.filter-spacer { flex: 1; }
.filter-summary { color: var(--admin-muted); font-size: 10px; }

.table-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 830px; border-collapse: collapse; }
.data-table th { padding: 12px 15px; color: #9aa39b; background: #fbfcfb; border-bottom: 1px solid var(--admin-line); font-size: 10px; font-weight: 650; text-align: left; white-space: nowrap; }
.data-table td { padding: 14px 15px; border-bottom: 1px solid var(--admin-line); vertical-align: middle; font-size: 11px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfefc; }
.data-table .event-cell { display: flex; align-items: center; gap: 10px; min-width: 250px; }
.table-cover { width: 45px; height: 31px; object-fit: cover; border-radius: 6px; background: linear-gradient(135deg, #dcefe7, #ede7ff); flex: 0 0 auto; }
.event-cell strong, .event-cell small { display: block; }
.event-cell strong { max-width: 250px; font-size: 11px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-cell small { margin-top: 2px; color: var(--admin-muted); font-size: 9px; }
.status { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-published { color: #277e5e; background: #e7f5ee; }
.status-draft { color: #69736b; background: #eff2ef; }
.status-pending { color: #aa681c; background: #fff3dc; }
.status-ended { color: #8d7f75; background: #f2efec; }
.status-approved { color: #277e5e; background: #e7f5ee; }
.status-rejected { color: #b64f4f; background: #fff0ef; }
.status-review { color: #aa681c; background: #fff3dc; }
.cell-muted { color: var(--admin-muted); }
.cell-strong { color: var(--admin-ink); font-weight: 650; }
.capacity { min-width: 74px; }
.capacity-text { display: flex; justify-content: space-between; gap: 7px; margin-bottom: 4px; font-size: 10px; }
.capacity-text span { color: var(--admin-muted); }
.progress { height: 4px; border-radius: 999px; background: #edf1ed; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--admin-brand); }
.progress i.over { background: var(--admin-amber); }
.actions { display: flex; align-items: center; gap: 4px; }
.table-action { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: var(--admin-muted); background: transparent; }
.table-action:hover { background: #eef5f0; color: var(--admin-brand); }
.table-action.delete:hover { color: var(--admin-red); background: var(--admin-red-soft); }
.table-action svg { width: 14px; height: 14px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 15px; border-top: 1px solid var(--admin-line); color: var(--admin-muted); font-size: 10px; }
.pagination { display: flex; gap: 4px; }
.page-btn { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--admin-line); border-radius: 6px; color: var(--admin-muted); background: white; font-size: 10px; }
.page-btn.active, .page-btn:hover { border-color: var(--admin-brand); color: white; background: var(--admin-brand); }

.publish-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .65fr); gap: 20px; align-items: start; }
.publish-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.publish-step { display: flex; align-items: center; gap: 7px; color: #a2aba4; font-size: 10px; font-weight: 650; }
.publish-step i { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #d8dfd9; border-radius: 50%; font-style: normal; font-size: 9px; }
.publish-step.active { color: var(--admin-brand); }
.publish-step.active i { border-color: var(--admin-brand); color: white; background: var(--admin-brand); }
.publish-step.done { color: #4a8c72; }
.publish-step.done i { border-color: #bfe2d1; color: #4a8c72; background: #e8f6ee; }
.publish-line { height: 1px; width: 34px; background: #e3e9e4; }
.form-card { padding: 20px; margin-bottom: 13px; }
.form-card h2 { margin: 0; font-size: 14px; letter-spacing: -.02em; }
.form-card > p { margin: 4px 0 19px; color: var(--admin-muted); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-group { min-width: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-label { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 6px; color: var(--admin-ink-soft); font-size: 10px; font-weight: 700; }
.form-label .optional { color: #b0b8b1; font-weight: 500; }
.form-control { width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--admin-line-strong); outline: none; border-radius: 7px; background: #fcfdfc; color: var(--admin-ink); font-size: 11px; transition: border .16s, box-shadow .16s; }
.form-control::placeholder { color: #b8c0b9; }
.form-control:focus { border-color: #83bda6; background: white; box-shadow: 0 0 0 3px rgb(29 115 95 / .08); }
textarea.form-control { height: 118px; padding-top: 10px; line-height: 1.6; resize: vertical; }
input[type="file"].form-control { padding-top: 9px; }
.form-hint { margin: 6px 0 0; color: #a3aba5; font-size: 9px; }
.input-prefix { position: relative; }
.input-prefix .prefix { position: absolute; left: 11px; top: 10px; color: var(--admin-muted); font-size: 11px; }
.input-prefix input { padding-left: 27px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 8px 0; border-bottom: 1px solid #f0f2ef; }
.toggle-row:last-child { border-bottom: 0; }
.toggle-copy strong, .toggle-copy small { display: block; }
.toggle-copy strong { font-size: 11px; font-weight: 650; }
.toggle-copy small { color: var(--admin-muted); font-size: 9px; margin-top: 2px; }
.toggle { position: relative; width: 34px; height: 20px; flex: 0 0 auto; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; border-radius: 99px; background: #dce2dd; transition: .2s; }
.toggle span::before { content: ""; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgb(0 0 0 / .12); transition: .2s; }
.toggle input:checked + span { background: var(--admin-brand); }
.toggle input:checked + span::before { transform: translateX(14px); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.publish-preview { position: sticky; top: 92px; }
.preview-label { display: flex; align-items: center; justify-content: space-between; margin: 0 0 9px; color: var(--admin-muted); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.preview-label span { color: #b2bbb4; font-weight: 500; letter-spacing: 0; text-transform: none; }
.preview-card { overflow: hidden; border: 1px solid var(--admin-line); border-radius: 15px; background: white; box-shadow: var(--shadow); }
.preview-cover { position: relative; height: 155px; background: linear-gradient(135deg, #d9efe3, #e9e3ff 56%, #f9e5e7); }
.preview-cover img { display: none; width: 100%; height: 100%; object-fit: cover; }
.preview-cover.has-image img { display: block; }
.preview-cover.has-image { background: #e6eee8; }
.preview-cover::after { content: "预览封面"; position: absolute; inset: 0; display: grid; place-items: center; color: rgb(43 90 72 / .46); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.preview-cover.has-image::after { display: none; }
.preview-body { padding: 17px; }
.preview-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.preview-badge { padding: 3px 7px; border-radius: 999px; background: var(--admin-brand-soft); color: var(--admin-brand); font-size: 9px; font-weight: 700; }
.preview-body h3 { margin: 0 0 11px; color: var(--admin-ink); font-size: 17px; line-height: 1.35; letter-spacing: -.04em; }
.preview-meta { display: grid; gap: 7px; padding: 12px 0; border-top: 1px solid var(--admin-line); border-bottom: 1px solid var(--admin-line); color: var(--admin-ink-soft); font-size: 10px; }
.preview-meta span { display: flex; align-items: center; gap: 7px; }
.preview-meta svg { width: 14px; height: 14px; color: var(--admin-brand); }
.preview-description { margin: 13px 0 0; color: var(--admin-muted); font-size: 10px; line-height: 1.7; }

.member-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-bottom: 18px; }
.member-stat { padding: 14px 16px; border: 1px solid var(--admin-line); border-radius: 11px; background: white; }
.member-stat small, .member-stat strong { display: block; }
.member-stat small { color: var(--admin-muted); font-size: 10px; }
.member-stat strong { margin-top: 7px; font-size: 21px; letter-spacing: -.05em; }
.member-stat strong span { margin-left: 4px; color: #329267; font-size: 9px; letter-spacing: 0; }
.tabs { display: flex; align-items: center; gap: 17px; margin-bottom: 12px; border-bottom: 1px solid var(--admin-line); }
.tab { position: relative; padding: 0 0 10px; color: var(--admin-muted); background: transparent; font-size: 11px; font-weight: 650; }
.tab::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; border-radius: 2px; }
.tab.active { color: var(--admin-brand); }
.tab.active::after { background: var(--admin-brand); }
.tab-badge { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 4px; padding: 0 4px; border-radius: 999px; background: var(--admin-amber-soft); color: var(--admin-amber); font-size: 9px; }
.member-table .member-cell { display: flex; align-items: center; gap: 9px; min-width: 160px; }
.member-cell strong, .member-cell small { display: block; }
.member-cell strong { font-size: 11px; }
.member-cell small { color: var(--admin-muted); font-size: 9px; margin-top: 2px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 3px; max-width: 170px; }
.mini-tag { padding: 3px 6px; border-radius: 4px; color: #6a726c; background: #f0f3f0; font-size: 9px; }

.empty-state { padding: 47px 24px; text-align: center; color: var(--admin-muted); }
.empty-state .empty-icon { display: grid; place-items: center; width: 43px; height: 43px; margin: 0 auto 12px; border-radius: 12px; color: var(--admin-brand); background: var(--admin-brand-soft); }
.empty-state h3 { margin: 0 0 4px; color: var(--admin-ink); font-size: 13px; }
.empty-state p { margin: 0; font-size: 10px; }

.insight-hero { padding: 25px; border-radius: 15px; color: #eff9f2; background: linear-gradient(120deg, #214f43, #316d5b 56%, #5d6990); box-shadow: var(--shadow-strong); }
.insight-hero h1 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.insight-hero p { max-width: 530px; margin: 8px 0 0; color: #c9ded2; font-size: 11px; }
.insight-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.insight-card { padding: 16px; border: 1px solid var(--admin-line); border-radius: 11px; background: white; }
.insight-card small { color: var(--admin-muted); font-size: 10px; }
.insight-card strong { display: block; margin-top: 5px; font-size: 23px; letter-spacing: -.05em; }
.insight-card p { margin: 4px 0 0; color: #339169; font-size: 10px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.settings-card { padding: 19px; }
.settings-card h2 { margin: 0; font-size: 14px; }
.settings-card > p { margin: 4px 0 16px; color: var(--admin-muted); font-size: 10px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--admin-line); }
.settings-row strong { font-size: 11px; font-weight: 650; }
.settings-row small { display: block; color: var(--admin-muted); font-size: 9px; margin-top: 2px; }

.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 70; background: rgb(24 34 28 / .34); backdrop-filter: blur(2px); }
.modal-backdrop.open { display: block; }
.drawer { position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(450px, 100vw); padding: 25px; overflow: auto; background: #fff; box-shadow: -12px 0 40px rgb(25 45 33 / .16); transform: translateX(105%); transition: transform .24s ease; }
.drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--admin-line); }
.drawer-header h2 { margin: 0; font-size: 18px; letter-spacing: -.04em; }
.drawer-header p { margin: 5px 0 0; color: var(--admin-muted); font-size: 10px; }
.drawer-section { padding: 18px 0; border-bottom: 1px solid var(--admin-line); }
.drawer-section h3 { margin: 0 0 10px; font-size: 11px; }
.profile-hero { display: flex; align-items: center; gap: 11px; }
.profile-hero .avatar { width: 43px; height: 43px; font-size: 15px; }
.profile-hero strong { display: block; font-size: 14px; }
.profile-hero small { display: block; margin-top: 3px; color: var(--admin-muted); font-size: 10px; }
.profile-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin-top: 15px; }
.profile-facts div { padding: 10px; border-radius: 8px; background: #f7f9f7; }
.profile-facts small, .profile-facts strong { display: block; }
.profile-facts small { color: var(--admin-muted); font-size: 9px; }
.profile-facts strong { margin-top: 4px; font-size: 11px; }
.profile-bio { color: var(--admin-ink-soft); font-size: 11px; line-height: 1.7; }
.drawer-actions { display: flex; gap: 8px; margin-top: 18px; }
.drawer-actions .btn { flex: 1; }

.toast-stack { position: fixed; right: 24px; bottom: 22px; z-index: 100; display: grid; gap: 8px; }
.toast-message { display: flex; align-items: center; gap: 9px; min-width: 230px; padding: 11px 13px; border: 1px solid #d6e8dc; border-radius: 9px; color: #275d48; background: #f2fbf5; box-shadow: var(--shadow-strong); font-size: 11px; animation: toast-in .22s ease both; }
.toast-message svg { width: 16px; height: 16px; }
.toast-message.error { border-color: #f2d4d0; color: #a94e4e; background: #fff7f6; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.sidebar-collapsed .admin-sidebar { width: 76px; flex-basis: 76px; }
.sidebar-collapsed .admin-brand > span:last-child, .sidebar-collapsed .workspace-copy, .sidebar-collapsed .workspace-switcher > svg, .sidebar-collapsed .nav-label, .sidebar-collapsed .nav-item > span, .sidebar-collapsed .admin-user > span, .sidebar-collapsed .admin-user .icon-button { display: none; }
.sidebar-collapsed .sidebar-top { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar-collapsed .sidebar-collapse svg { transform: rotate(180deg); }
.sidebar-collapsed .workspace-switcher { justify-content: center; padding: 10px 0; margin-left: 8px; margin-right: 8px; }
.sidebar-collapsed .nav-item { justify-content: center; padding: 0; }
.sidebar-collapsed .nav-count { display: inline-grid; position: absolute; margin: 0 0 23px 22px; min-width: 7px; width: 7px; height: 7px; padding: 0; font-size: 0; }
.sidebar-collapsed .admin-user { justify-content: center; padding-left: 0; padding-right: 0; }

@media (max-width: 1100px) {
  :root { --sidebar-width: 224px; }
  .admin-content { padding-left: 24px; padding-right: 24px; }
  .content-grid, .publish-layout { grid-template-columns: 1fr; }
  .publish-preview { position: static; max-width: 560px; }
}
@media (max-width: 820px) {
  .admin-sidebar { position: fixed; inset: 0 auto 0 0; transform: translateX(-105%); box-shadow: 15px 0 35px rgb(0 0 0 / .12); }
  .admin-sidebar.mobile-open { transform: translateX(0); }
  .admin-topbar { padding: 0 17px; }
  .mobile-brand { display: flex; }
  .breadcrumbs { display: none; }
  .top-search { width: 34px; padding: 0; justify-content: center; }
  .top-search span, .top-search kbd { display: none; }
  .view-site { display: none; }
  .admin-content { padding: 25px 16px 45px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid.equal, .settings-grid { grid-template-columns: 1fr; }
  .page-heading { margin-bottom: 21px; }
  .page-heading h1 { font-size: 22px; }
}
@media (max-width: 550px) {
  .page-heading { display: block; }
  .page-heading-actions { margin-top: 14px; }
  .metrics-grid { gap: 9px; }
  .metric-card { padding: 13px; }
  .metric-value { font-size: 23px; margin-top: 14px; }
  .quick-actions { grid-template-columns: 1fr; }
  .form-grid, .member-summary, .insight-cards { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
  .publish-progress { gap: 5px; overflow-x: auto; padding-bottom: 3px; }
  .publish-step { white-space: nowrap; }
  .publish-line { width: 18px; }
  .filters-bar { align-items: stretch; }
  .search-field { width: 100%; min-width: 0; }
  .filter-select { flex: 1; min-width: 0; }
  .filter-summary { width: 100%; }
  .drawer { padding: 20px; }
  .toast-stack { left: 16px; right: 16px; bottom: 16px; }
  .toast-message { min-width: 0; }
}
