@view-transition {
  navigation: none;
}

.admin-body {
  --work-red: #8c0000;
  --work-red-deep: #620000;
  --work-ink: #242725;
  --work-muted: #707571;
  --work-bg: #f2f3f1;
  --work-soft: #e7e9e6;
  --work-accent-soft: #f3e8e6;
  background:
    linear-gradient(90deg, rgba(36, 39, 37, 0.022) 1px, transparent 1px) 0 0 / 86px 100%,
    var(--work-bg);
  color: var(--work-ink);
  font-size: 14px;
}
.admin-body::before { display: none; }
.admin-body svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.65; vertical-align: middle; }
.admin-body button, .admin-body input, .admin-body select, .admin-body textarea { letter-spacing: 0; }
.admin-body input, .admin-body select, .admin-body textarea { min-width: 0; width: 100%; border: 0; border-radius: 5px; background: var(--work-soft); color: var(--work-ink); padding: 10px 12px; box-shadow: none; }
.admin-body input::placeholder, .admin-body textarea::placeholder { color: #949892; }
.admin-body input:focus, .admin-body select:focus, .admin-body textarea:focus { outline: 2px solid #bd777266; outline-offset: 2px; }
.admin-body :is(button,a):focus-visible { outline: 2px solid var(--work-red); outline-offset: 3px; }
.admin-body .button { border: 0; min-height: 38px; font-size: 13px; font-weight: 600; background: #e9ece8; color: var(--work-ink); border-radius: 5px; }
.admin-body .button.primary { color: white; background: var(--work-red); }
.admin-body .button:hover { filter: brightness(.96); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #626962; }
.icon-button:hover, .icon-button[aria-pressed="true"] { background: var(--work-accent-soft); color: var(--work-red); }
.icon-button:disabled { opacity: .3; cursor: default; }
.quiet-link { display: inline-flex; gap: 8px; align-items: center; padding: 7px 0; border: 0; background: none; text-decoration: none; color: #646b65; font-size: 13px; }
.quiet-link:hover { color: var(--work-red); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.admin-body .login-screen {
  background:
    linear-gradient(90deg, rgba(36, 39, 37, 0.025) 1px, transparent 1px) 0 0 / 86px 100%,
    linear-gradient(135deg, #f8f9f7, #eceeeb);
  isolation: isolate;
}
.login-screen::before { content: ""; position: absolute; top: 4%; right: -4%; width: min(640px, 56vw); height: 84%; background: url('./assets/dingxue-wanshitong-mark-full.png?v=20260915bv') center / contain no-repeat; opacity: .04; pointer-events: none; }
.login-screen::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--work-red) 0 38%, #242725 38% 47%, #c8cbc8 47% 100%); }
.admin-body .login-card { background: rgba(253,253,251,.97); border: 0; border-radius: 6px; box-shadow: 0 18px 70px rgba(36,39,37,.1); color: var(--work-ink); padding: 38px 42px 42px; width: min(600px,calc(100% - 32px)); gap: 19px; }
.login-brand-row { display: flex; align-items: center; justify-content: flex-start; gap: 12px; }
.login-brand { width: 220px; height: 56px; object-fit: contain; object-position: left center; }
.admin-site-brand { min-width: 0; display: inline-flex; align-items: center; gap: 6px; padding-left: 0; border-left: 0; color: var(--work-ink); text-decoration: none; }
.login-brand-row .admin-site-brand { padding-left: 0; border-left: 0; }
.workspace-branding .admin-site-brand { padding-left: 0; border-left: 0; }
.admin-site-brand > span { width: auto; display: grid; justify-items: start; align-content: center; gap: 1px; }
.admin-site-brand > span > img { display: block; width: auto; height: 40px; object-fit: contain; object-position: left center; }
.admin-site-brand > span > img.admin-brand-en { width: auto; height: 12px; }
.admin-site-brand > span > small { display: none; }
.admin-site-brand > img { display: block; width: auto; height: 48px; max-width: 76px; flex: 0 0 auto; object-fit: contain; }
.login-brand-row .admin-site-brand > img { display: none; }
.login-heading { margin: 22px 0 5px; padding-top: 20px; border-top: 1px solid #e3e5e2; }
.admin-body .login-card h1 { color: var(--work-ink); font: 600 28px/1.4 "Microsoft YaHei",sans-serif; margin: 8px 0; text-shadow: none; }
.admin-body .login-card p { color: var(--work-muted); font-size: 13px; }
.admin-body .login-card .eyebrow { color: var(--work-red); font-size: 12px; }
.admin-body .login-card label { display: grid; gap: 8px; color: #545e56; font-size: 13px; }
.admin-body .login-card input { height: 44px; }
.admin-body .login-card .login-opts {
  display: grid;
  gap: 8px;
  margin: -2px 0 2px;
}
.admin-body .login-card .login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #545e56;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.admin-body .login-card .login-remember input {
  width: auto;
  height: auto;
  margin: 0;
  accent-color: var(--work-red);
}
.password-field { position: relative; }
.password-field input { padding-right: 42px; }
.password-field button { position: absolute; right: 6px; top: 6px; }
.admin-body .login-card .login-error { color: var(--work-red); min-height: 17px; margin: -4px 0; }
.admin-body .login-card .login-hint { min-height: 17px; margin: -8px 0 0; color: #8a5a2b; font-size: 13px; }
.login-card .button { width: 100%; justify-content: space-between; }
.login-footer { position: absolute; bottom: 26px; color: #8d938c; font-size: 12px; }

.workspace-header { height: 83px; display: flex; align-items: center; gap: 22px; padding: 0 30px; background: rgba(253,253,251,.96); position: relative; isolation: isolate; overflow: hidden; box-shadow: 0 1px 0 rgba(36,39,37,.08); }
.submission-body .header-actions { z-index: 2; flex: 0 0 auto; min-width: 0; }
.submission-body .header-actions .quiet-link { max-width: 220px; min-width: 0; }
.submission-body .header-actions .quiet-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.submission-body .header-actions .account-trigger-avatar { width: 28px; height: 28px; flex: 0 0 28px; }
.workspace-header::before { content: ""; position: absolute; top: 0; right: 180px; width: 300px; height: 83px; background: url('./assets/cloud-gray-top.png') right -32px top -73px / 280px auto no-repeat; opacity: .1; z-index: -1; pointer-events: none; }
.workspace-header::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--work-red) 0 34%, #242725 34% 42%, #c8cbc8 42% 100%); }
.workspace-branding { min-width: 0; display: flex; align-items: center; gap: 17px; }
.workspace-brand { display: block; flex: 0 0 218px; width: 218px; height: 52px; }
.workspace-brand img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.workspace-branding .admin-site-brand > span { width: auto; }
.workspace-branding .admin-site-brand > span > img { width: auto; height: 40px; object-fit: contain; }
.workspace-branding .admin-site-brand > span > img.admin-brand-en { width: auto; height: 12px; }
.workspace-branding .admin-site-brand > img { width: auto; height: 48px; max-width: 76px; flex: 0 0 auto; }
.workspace-name { color: var(--work-red); font-size: 12px; font-weight: 700; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.admin-avatar { display: grid; place-items: center; width: 30px; height: 30px; background: #e9e9e0; color: #656c61; font-size: 12px; border-radius: 50%; }
.admin-role-label { padding: 5px 8px; border-radius: 3px; background: #f2e7e4; color: var(--work-red); font-size: 11px; font-weight: 700; }
.realtime-status { display: inline-flex; align-items: center; gap: 5px; color: #7a827b; font-size: 10px; white-space: nowrap; }
.realtime-status svg { width: 13px; height: 13px; }
.realtime-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8d958e; }
.realtime-status[data-status="connected"]::before { background: #4f8063; box-shadow: 0 0 0 3px rgba(79,128,99,.1); }
.realtime-status[data-status="reconnecting"]::before { background: #aa7b39; }
.realtime-status[data-status="offline"]::before,
.realtime-status[data-status="error"]::before { background: var(--work-red); }
.workspace-layout { max-width: 1720px; margin: auto; display: grid; grid-template-columns: 206px minmax(0,1fr); min-height: calc(100vh - 83px); }
.workspace-sidebar { position: sticky; top: 0; min-height: calc(100vh - 83px); max-height: calc(100vh - 83px); padding: 22px 16px 20px; display: flex; flex-direction: column; align-self: start; overflow-x: hidden; overflow-y: auto; border-right: 1px solid rgba(36,39,37,.06); background: rgba(231,233,230,.72); }
.workspace-sidebar::after { content: ""; position: absolute; right: 0; bottom: 48px; width: 185px; height: 145px; background: url('./assets/dingxue-wanshitong-mark-full.png?v=20260915bv') center / contain no-repeat; opacity: .025; pointer-events: none; }
.sidebar-compose { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; width: 100%; padding: 12px; background: var(--work-red); border: 0; border-radius: 4px; color: #fff; font-weight: 700; box-shadow: 0 7px 18px rgba(98,0,0,.13); }
.sidebar-compose svg:last-child { margin-left: auto; width: 15px; }
.sidebar-label { color: #91968f; font-size: 10px; margin: 16px 12px 4px; text-transform: uppercase; letter-spacing: .08em; }
.workspace-nav { display: grid; gap: 4px; }
.workspace-nav button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 5px; color: #646c65; background: none; text-align: left; font-size: 13px; }
.workspace-nav button small { margin-left: auto; font-size: 11px; color: #92978f; }
.workspace-nav button.active { color: var(--work-red-deep); background: #fff; box-shadow: inset 3px 0 var(--work-red), 0 3px 12px rgba(36,39,37,.035); }
.workspace-nav button:hover { background: #eaece6; }
.workspace-nav button > span { min-width: 0; display: inline-flex; align-items: center; gap: 7px; }
.nav-alert-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #b40009; box-shadow: 0 0 0 4px rgba(180,0,9,.1); }
.review-nav[data-has-pending="true"] { color: #8c0000; }
.review-nav[data-has-pending="true"] .review-count { min-width: 23px; padding: 2px 6px; border-radius: 10px; background: #8c0000; color: #fff; text-align: center; }
.sidebar-bottom { display: grid; gap: 12px; margin-top: auto; padding: 28px 12px 0; }
.draft-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; padding: 12px 14px; border-radius: 6px; background: #fff7ef; color: #6a4a2b; box-shadow: inset 3px 0 #c8843a; }
.draft-banner[hidden] { display: none; }
.draft-banner > div:first-child { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.draft-banner-actions { display: flex; align-items: center; gap: 12px; }
.dashboard-shortcuts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 4px 0 0; }
.dashboard-shortcuts button { position: relative; display: grid; align-content: start; gap: 12px; min-height: 188px; padding: 26px 24px 22px; overflow: hidden; border: 0; border-radius: 6px; background: #fff; box-shadow: 0 7px 26px rgba(36,39,37,.035); text-align: left; cursor: pointer; color: inherit; }
.dashboard-shortcuts button::before { content: ""; width: 46px; height: 4px; background: var(--work-red); }
.dashboard-shortcuts button::after { content: ""; position: absolute; top: -38px; right: -72px; width: 240px; height: 145px; background: url("./assets/cloud-gray-top.png") center / contain no-repeat; filter: grayscale(1); opacity: .055; pointer-events: none; }
.dashboard-shortcuts button:hover { box-shadow: 0 8px 22px rgba(140,0,0,.08); }
.dashboard-shortcuts i { color: var(--work-red); }
.dashboard-shortcuts strong { color: var(--work-ink); font: 800 24px/1.2 "Noto Serif SC","Songti SC",STSong,Georgia,serif; }
.dashboard-shortcuts small { max-width: 28em; color: #8b9289; font-size: 13px; line-height: 1.65; }
.dashboard-shortcuts em { color: var(--work-red); font-style: normal; font-weight: 700; }
.automation-toggles { display: grid; gap: 10px; }
.automation-toggles label { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 16px; border-radius: 5px; background: #f6f7f4; color: #3f4940; cursor: pointer; }
.automation-toggles input { width: auto; margin-top: 3px; accent-color: var(--work-red); }
.automation-toggles span { display: grid; gap: 3px; }
.automation-toggles small { color: #8b9289; font-size: 12px; }
.notify-pane.module-settings-form { grid-template-columns: minmax(0,1fr); }
.notify-pane.notify-split { grid-template-columns: minmax(280px,1fr) minmax(300px,.95fr); align-items: start; gap: 22px; padding: 0; background: transparent; box-shadow: none; }
.notify-editor { display: grid; gap: 22px; padding: 28px; border-radius: 6px; background: #fff; box-shadow: 0 7px 26px rgba(36,39,37,.035); }
.notify-pane .module-panel-actions { grid-column: auto; justify-content: flex-start; }
.mail-letter-board { display: grid; gap: 16px; }
.mail-letter-board figure { margin: 0; }
.mail-letter-board figcaption { margin: 0 0 8px; color: #8b9289; font-size: 12px; font-weight: 700; }
.mail-letter-board figure.is-empty-preview .mail-letter { opacity: .72; }
.mail-letter-board figure.is-empty-preview .mail-letter h1,
.mail-letter-board figure.is-empty-preview .mail-letter section > p:not(.mail-letter-hi):not(.mail-letter-cta) { color: #9aa18f; font-style: italic; font-weight: 500; }
.mail-letter { overflow: hidden; background: #fff; box-shadow: 0 12px 36px rgba(32,38,34,.08); }
.mail-letter-bar { height: 6px; background: #8c0000; }
.mail-letter header { padding: 26px 32px 18px; border-bottom: 1px solid #e5e7e3; }
.mail-letter header small { display: block; color: #8c0000; font-family: Georgia,"Times New Roman",serif; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.mail-letter header strong { display: block; margin-top: 7px; color: #242724; font: 700 24px/1.25 "Noto Serif SC","Songti SC",STKaiti,KaiTi,serif; }
.mail-letter section { display: grid; gap: 12px; padding: 26px 32px 22px; }
.mail-letter-hi { margin: 0; color: #3d423d; font-size: 15px; line-height: 1.9; }
.mail-letter h1 { margin: 0; color: #202320; font-size: 20px; line-height: 1.45; }
.mail-letter section p { margin: 0; color: #3d423d; font-size: 14px; line-height: 1.9; }
.mail-letter-cta { margin-top: 8px !important; }
.mail-letter-cta span { display: inline-block; padding: 10px 16px; background: #8c0000; color: #fff; font-size: 13px; font-weight: 700; }
.mail-letter-note { padding: 18px 32px; background: #f7f8f6; border-top: 1px solid #e5e7e3; color: #747b74; font-size: 12px; line-height: 1.8; }
.mail-letter-note p { margin: 0; }
.mail-letter-dark { padding: 16px 32px 18px; background: #202522; color: #bfc5bf; font-size: 11px; line-height: 1.75; }
.mail-letter-dark p, .mail-letter-dark small { margin: 0; }
.sidebar-bottom > span { font-size: 10px; color: #949a92; }
.workspace-main { min-width: 0; padding: 30px 34px 40px 26px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 25px; }
.workspace-heading h1 { font-family: "Noto Serif SC","Songti SC",STSong,Georgia,serif; font-size: 25px; font-weight: 800; margin: 9px 0 0; color: var(--work-ink); }
.workspace-description { max-width: 650px; margin: 7px 0 0; color: #8b9289; font-size: 12px; line-height: 1.65; }
.workspace-breadcrumb { display: flex; gap: 10px; font-size: 11px; color: #8d928b; }
.workspace-breadcrumb span { color: #b1b6ad; }
.module-subnav { display: flex; align-items: center; gap: 3px; width: fit-content; margin: -5px 0 24px; padding: 4px; border-radius: 5px; background: #e9ece8; }
.module-subnav button { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; border-radius: 3px; background: transparent; color: #707871; font-size: 12px; font-weight: 600; }
.module-subnav button svg { width: 15px; height: 15px; }
.module-subnav button:hover { color: var(--work-red); }
.module-subnav button.active { background: #fff; color: var(--work-red-deep); box-shadow: 0 2px 9px rgba(36,39,37,.07); }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.save-status { font-size: 11px; color: #7a8478; margin-right: 8px; }
.save-status::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #7f967c; margin-right: 6px; vertical-align: middle; }
.admin-body .article-title-input { width: 100%; background: transparent; border-radius: 0; padding: 6px 0 16px; color: var(--work-ink); font-family: "Noto Serif SC","Songti SC",STSong,Georgia,serif; font-size: 27px; font-weight: 800; }
.admin-body .article-title-input::placeholder { color: #a0a59b; }
.article-meta-fields { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 0 0 22px; }
.article-meta-fields label { display: flex; align-items: center; gap: 7px; color: #8c9288; font-size: 12px; }
.article-meta-fields select, .article-meta-fields input { font-size: 12px; width: auto; max-width: 180px; padding: 7px 8px; background: #edeFEa; }
.article-meta-fields .template-control { margin-left: auto; }

.markdown-workbench { background: white; border-radius: 6px; box-shadow: 0 4px 25px #27352205; overflow: hidden; }
.editor-menubar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; background: #fdfdfc; }
.editor-modes { display: flex; gap: 3px; padding: 3px; background: #eff1ec; border-radius: 5px; }
.editor-modes button { width: 50px; height: 28px; border: 0; border-radius: 3px; background: none; color: #8a9186; font-size: 12px; }
.editor-modes button.active { color: var(--work-red); background: white; box-shadow: 0 1px 4px rgba(36,39,37,.08); }
.editor-utilities { display: flex; gap: 3px; align-items: center; }
.sync-control { display: inline-flex; align-items: center; gap: 5px; color: #858c7f; font-size: 11px; margin-right: 10px; }
.admin-body .sync-control input { width: 12px; height: 12px; padding: 0; accent-color: #8a9c7b; }
.editor-toolbar { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 8px 14px; background: #f1f3ef; }
.format-tools { display: flex; gap: 1px; align-items: center; flex-wrap: wrap; }
.format-tools .icon-button { width: 30px; height: 29px; }
.format-tools .tool-break { margin-left: 10px; }
.copy-rich-button { display: flex; align-items: center; gap: 6px; background: transparent; border: 0; color: #8b3935; font-size: 12px; white-space: nowrap; padding: 7px 2px; }
.editor-panes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.source-pane, .preview-pane { min-width: 0; position: relative; }
.source-pane { background: #fbfcfa; }
.pane-heading, .preview-controls { min-height: 46px; padding: 8px 18px; display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 11px; color: #93998d; }
.file-type { color: #b1b7a9; }
.preview-controls { justify-content: flex-start; gap: 8px; padding-left: 16px; padding-right: 12px; background: #fff; flex-wrap: wrap; }
.theme-picker { display: flex; align-items: center; gap: 7px; margin-right: auto; }
.theme-picker > .theme-name { min-width: 56px; margin-right: 3px; color: #6f776b; font-size: 10px; text-align: right; white-space: nowrap; }
.theme-swatch { width: 13px; height: 13px; border: 1px solid rgba(39,45,41,.1); border-radius: 50%; background: var(--swatch); box-shadow: inset -5px 0 0 var(--swatch-secondary,var(--swatch)); padding: 0; }
.theme-swatch.active { outline: 1px solid var(--swatch); outline-offset: 3px; }
.admin-body #article-font { width: 55px; padding: 3px 0; font-size: 11px; background: transparent; }
.font-stepper { display: flex; gap: 1px; align-items: center; }
.font-stepper .icon-button { width: 22px; height: 24px; }
.font-stepper svg { width: 12px; }
.font-stepper output { min-width: 15px; text-align: center; }
.preview-controls > .icon-button { width: 24px; height: 26px; }
.preview-controls > .icon-button svg { width: 16px; }
.preview-scroll { height: 492px; overflow-y: auto; overflow-x: hidden; padding: 28px 32px 60px; scroll-behavior: auto; scrollbar-width: thin; }
.preview-scroll.mobile-preview { background: #f0f2ee; padding-left: 14px; padding-right: 14px; }
.preview-scroll.mobile-preview .markdown-article { width: min(100%,375px); padding: 20px; margin: auto; background: #fff; min-height: 100%; }
.preview-placeholder { color: #b8bdb3; padding: 45px 0; font-size: 14px; }
.editor-statusbar { display: flex; align-items: center; gap: 20px; min-height: 32px; background: #f1f3ef; padding: 6px 18px; font-size: 10px; color: #959d8b; }
.editor-statusbar span:last-child { margin-left: auto; }
.article-outline { position: absolute; z-index: 5; right: 12px; top: 50px; width: min(280px,90%); max-height: 300px; overflow-y: auto; padding: 12px; background: white; box-shadow: 0 10px 30px #25332220; border-radius: 5px; }
.article-outline button { display: block; width: 100%; text-align: left; background: none; border: 0; color: #6a7465; padding: 9px; line-height: 1.5; font-size: 12px; overflow-wrap: anywhere; }
.article-outline button:hover { color: var(--work-red); background: #f6f3ed; }
.article-outline p { color: #8f978b; font-size: 12px; padding: 6px; margin: 0; }
.markdown-workbench[data-mode="write"] .preview-pane, .markdown-workbench[data-mode="preview"] .source-pane { display: none; }
.markdown-workbench:not([data-mode="split"]) .editor-panes { grid-template-columns: minmax(0,1fr); }
.markdown-workbench[data-mode="preview"] .markdown-article { max-width: 760px; margin: auto; }
.markdown-workbench[data-mode="preview"] .format-tools { display: none; }
.markdown-workbench[data-mode="preview"] .copy-rich-button { margin-left: auto; }
.editor-focused { overflow: hidden; }
.editor-focused .markdown-workbench { position: fixed; inset: 0; z-index: 1400; display: flex; flex-direction: column; border-radius: 0; box-shadow: none; }
.editor-focused .editor-panes { flex: 1; min-height: 0; }
.editor-focused .source-pane, .editor-focused .preview-pane { display: flex; flex-direction: column; }
.editor-focused .CodeMirror, .editor-focused .preview-scroll { height: 0; flex: 1; }
.editor-focused .markdown-workbench[data-mode="write"] .preview-pane, .editor-focused .markdown-workbench[data-mode="preview"] .source-pane { display: none; }
.admin-body.editor-focused .workspace-header,
.admin-body.editor-focused .workspace-sidebar,
.admin-body.editor-focused .site-footer { display: none !important; }
.publication-settings { margin-top: 18px; }
.publication-settings summary { list-style: none; display: flex; gap: 12px; align-items: center; cursor: pointer; padding: 12px 2px; color: #626f5c; font-size: 12px; }
.publication-settings summary::-webkit-details-marker { display: none; }
.publication-settings summary > span:first-child { display: flex; gap: 8px; align-items: center; }
.settings-summary { color: #959d8d; margin-left: auto; font-size: 11px; }
.publication-settings summary > svg { width: 15px; }
.publication-settings[open] summary > svg { transform: rotate(180deg); }
.settings-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; padding: 16px 0; }
.settings-grid label { display: grid; gap: 8px; color: #7b8574; font-size: 12px; }
.settings-wide { grid-column: 1 / -1; }
.settings-grid textarea { min-height: 70px; resize: vertical; }

.editor-context-line { display: flex; align-items: center; gap: 11px; margin: -5px 0 14px; color: #92988f; font-size: 11px; }
.editor-context-line span { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 3px; background: #f1e5e3; color: var(--work-red); font-weight: 750; }
.topic-composer { padding: 17px 18px; border-left: 3px solid var(--work-red); border-radius: 0 5px 5px 0; background: #f7f8f5; }
.topic-composer-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.topic-composer-heading > div { display: grid; gap: 3px; }
.topic-composer-heading strong { color: #3f4940; font-size: 13px; }
.topic-composer-heading small, .topic-composer-heading > span { color: #92998e; font-size: 10px; }
.admin-body .topic-composer > input { background: #fff; border: 1px solid #dfe2dc; font-family: Consolas,"Microsoft YaHei",monospace; color: #6f1712; }
.topic-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.topic-suggestions button { min-height: 26px; padding: 3px 8px; border: 0; border-radius: 3px; background: #e9ece7; color: #6e776c; font-size: 10px; }
.topic-suggestions button:hover { background: #f0e2e0; color: var(--work-red); }

.quick-create-dialog { width: min(640px,calc(100% - 32px)); padding: 0; border: 0; border-radius: 6px; background: #fdfdfb; color: var(--work-ink); box-shadow: 0 22px 70px rgba(36,39,37,.2); overflow: hidden; }
.quick-create-dialog::backdrop { background: rgba(36,39,37,.42); backdrop-filter: blur(4px); }
.quick-create-heading { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px 26px 18px; border-bottom: 1px solid #e4e6e2; }
.quick-create-heading::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--work-red) 0 34%, #242725 34% 42%, #c8cbc8 42% 100%); }
.quick-create-heading > div { display: grid; gap: 4px; min-width: 0; }
.quick-create-heading .eyebrow { color: var(--work-red); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.quick-create-heading h2 { margin: 2px 0 0; color: var(--work-ink); font: 600 24px/1.35 "Microsoft YaHei",sans-serif; }
.quick-create-heading p { margin: 0; color: var(--work-muted); font-size: 13px; }
.quick-create-heading .icon-button { margin-top: 2px; }
.quick-create-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 18px 20px 22px; }
.quick-create-options > button { min-width: 0; min-height: 92px; display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; align-items: center; padding: 16px 15px; border: 1px solid #e2e4df; border-radius: 5px; background: #f7f8f5; color: inherit; text-align: left; cursor: pointer; }
.quick-create-options > button:hover { border-color: #d7b9b5; background: #f7efed; }
.quick-create-options > button:hover > i, .quick-create-options > button:hover strong { color: var(--work-red); }
.quick-create-options > button:disabled { opacity: .45; cursor: not-allowed; }
.quick-create-options > button > i, .quick-create-options > button > svg { width: 44px; height: 44px; padding: 11px; border-radius: 4px; background: #fff; color: var(--work-red); box-shadow: inset 0 0 0 1px #eceee9; }
.quick-create-options span { min-width: 0; display: grid; gap: 5px; }
.quick-create-options strong { color: #2f3830; font-size: 15px; font-weight: 700; }
.quick-create-options small { color: #848b82; font-size: 12px; line-height: 1.5; }

.team-editor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid #e0e3dd; }
.team-editor-toolbar > div { display: grid; gap: 3px; }
.team-editor-toolbar strong { color: #465047; font-size: 13px; }
.team-editor-toolbar small { color: #92998f; font-size: 10px; }
.team-member-editor { display: grid; gap: 9px; }
.team-editor-row { padding: 16px; border: 1px solid #e0e3dd; border-radius: 5px; background: #fafbf8; }
.team-editor-row > header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.team-editor-row > header > span { color: var(--work-red); font: 700 13px/1 Georgia,serif; }
.team-editor-row > header > strong { color: #424c43; font-size: 12px; }
.team-editor-row > header > div { display: flex; gap: 3px; margin-left: auto; }
.team-editor-row .icon-button { width: 29px; height: 29px; }
.team-editor-row .icon-button.danger:hover { background: #f2dedd; color: var(--work-red); }
.team-editor-fields { display: grid; grid-template-columns: .8fr 1fr 1.5fr; gap: 10px; }
.team-editor-fields label { display: grid; gap: 6px; color: #7c857b; font-size: 10px; }
.team-editor-portrait { display: flex; align-items: center; gap: 13px; margin-top: 13px; }
.team-editor-portrait > div:last-child { display: flex; align-items: center; gap: 10px; }
.team-editor-portrait .admin-portrait-preview { width: 58px; height: 66px; }

.admin-body .CodeMirror { background: #fbfcfa; color: #5a6754; height: 492px; font: 13px/1.95 Consolas,"Microsoft YaHei",monospace; }
.CodeMirror pre.CodeMirror-line, .CodeMirror pre.CodeMirror-line-like { padding: 0 22px 0 10px; }
.CodeMirror-lines { padding: 28px 0 60px; }
.CodeMirror-gutters { background: transparent; border: 0; }
.CodeMirror-linenumber { color: #c5cbbf; font-size: 10px; padding: 0 5px 0 12px; }
.cm-s-default .cm-header { color: var(--work-red); font-weight: 700; }
.cm-s-default .cm-formatting { color: #b9a292; }
.cm-s-default .cm-strong { color: #555e4d; }
.cm-s-default .cm-quote { color: #909a84; }
.cm-s-default .cm-link, .cm-s-default .cm-string { color: #60847d; }
.cm-s-default .cm-comment { color: #8e7155; }
.CodeMirror-empty { color: #adb5a4; }

.workspace-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; padding: 12px 0 30px; }
.workspace-metrics > div { display: grid; gap: 8px; }
.workspace-metrics span { color: #8b9483; font-size: 12px; }
.workspace-metrics strong { color: var(--work-ink); font-size: 28px; font-weight: 650; }
.workspace-metrics > div:nth-child(2) strong { color: #3f5550; }
.workspace-metrics > div:nth-child(3) strong { color: var(--work-red); }
.library-filters { display: flex; align-items: center; gap: 14px; margin: 10px 0 20px; }
.library-search { display: flex; align-items: center; gap: 8px; background: white; padding: 0 12px; width: min(450px,60%); color: #919988; border-radius: 5px; }
.admin-body .library-search input { background: transparent; }
.library-filters > select { max-width: 130px; }
#record-count { margin-left: auto; color: #919a88; white-space: nowrap; font-size: 12px; }
.batch-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: -4px 0 18px; padding: 12px 14px; background: #f4f5f1; border-radius: 6px; }
.batch-toolbar[hidden] { display: none !important; }
.batch-select-all { display: inline-flex; align-items: center; gap: 8px; color: #5f6758; font-size: 13px; cursor: pointer; user-select: none; }
.batch-select-all input { width: 15px; height: 15px; accent-color: var(--work-red); }
#batch-count { color: #7b8574; font-size: 12px; }
.batch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.batch-actions .button { min-height: 32px; padding: 0 12px; font-size: 12px; }
.batch-actions .quiet-link { font-size: 12px; }
.admin-body .record-select { position: absolute; top: 18px; left: 18px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 4px; background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(36,39,37,.08); cursor: pointer; }
.admin-body .record-select input { width: 15px; height: 15px; accent-color: var(--work-red); cursor: pointer; }
.admin-body .record-row:has(.record-select) { padding-left: 54px; }
.admin-body .record-row.is-selected { outline: 1px solid #e4c7c2; background: #fcf8f7; }
.admin-body .local-draft-card { background: #fffaf3; box-shadow: 0 7px 26px rgba(120, 78, 32, .06); }
.admin-body .local-draft-card::before { background: #c8843a; }
.admin-body .record-list { display: grid; gap: 16px; }
.admin-body .record-row { position: relative; display: grid; grid-template-columns: minmax(0,1fr); align-items: stretch; gap: 0; min-height: 188px; padding: 22px 22px 16px; overflow: hidden; background: #fff; border: 0; border-radius: 6px; box-shadow: 0 7px 26px rgba(36,39,37,.035); }
.admin-body .record-row::before { content: ""; display: block; width: 46px; height: 4px; margin-bottom: 14px; background: var(--work-red); }
.admin-body .record-row::after { content: ""; position: absolute; top: -38px; right: -72px; width: 240px; height: 145px; background: url("./assets/cloud-gray-top.png") center / contain no-repeat; filter: grayscale(1); opacity: .055; pointer-events: none; }
.admin-body .record-row h3 { position: relative; z-index: 1; color: var(--work-ink); margin: 10px 0 6px; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.admin-body .record-row p { position: relative; z-index: 1; font-size: 13px; color: #8c9585; line-height: 1.7; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.admin-body .record-row small { position: relative; z-index: 1; color: #9aa18f; font-size: 11px; }
.admin-body .record-main { position: relative; z-index: 1; }
.admin-body .record-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef0ea; }
.admin-body .record-action-spacer { flex: 1 1 24px; min-width: 16px; }
.admin-body .record-action[data-action="site-notify"],
.admin-body .record-action[data-action="reminder-notify"] {
  border-color: #ead4d1;
  background: #f8f1ef;
  color: #8c0000;
}
.admin-body .record-action[data-action="reminder-notify"] {
  background: #8c0000;
  border-color: #8c0000;
  color: #fff8f4;
}
.admin-body .record-action[data-action="reminder-notify"]:hover {
  filter: brightness(1.05);
}
.reminder-notify-title {
  margin: 0 0 8px;
  color: #2f342f;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.45;
}
.reminder-excerpt-field {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  color: #5f675f;
  font-size: 0.82rem;
}
.reminder-excerpt-field select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d8ddd6;
  border-radius: 6px;
  background: #fff;
  color: #2f342f;
  font: inherit;
}
.reminder-excerpt-field textarea {
  width: 100%;
  min-height: 72px;
  padding: 8px 10px;
  border: 1px solid #d8ddd6;
  border-radius: 6px;
  background: #fff;
  color: #2f342f;
  font: inherit;
  resize: vertical;
}
.reminder-excerpt-field small {
  color: #8a918b;
  font-size: 0.76rem;
  line-height: 1.45;
}
.reminder-notify-status {
  margin: 0 0 16px;
  color: #6d746f;
  font-size: 0.82rem;
  line-height: 1.55;
}
.reminder-notify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.admin-body .record-action,
.admin-body .pin-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 4px; background: #f3f4f1; color: #3f4940; font-size: 12px; font-weight: 600; cursor: pointer; }
.admin-body .record-action:hover,
.admin-body .pin-toggle:hover { background: #f2e5e3; color: var(--work-red); }
.admin-body .pin-toggle.is-on { background: #f2e5e3; color: var(--work-red); }
.admin-body .record-action[data-action="delete"],
.admin-body .record-action[data-interaction-action="delete"] { color: #8c0000; }
.admin-body .record-action svg,
.admin-body .pin-toggle svg { width: 14px; height: 14px; }
.admin-body .pin-toggle { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 9px; border: 1px solid #dfe4dc; border-radius: 4px; background: #fff; color: #5f675f; font-size: 12px; white-space: nowrap; cursor: pointer; }
.admin-body .pin-toggle svg { width: 14px; height: 14px; }
.admin-body .pin-toggle:hover, .admin-body .pin-toggle.is-on { border-color: #ead4d1; background: #f7eeec; color: #8c0000; }
.reminder-date-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.reminder-date-row label { display: grid; gap: 8px; color: #7b8574; font-size: 12px; }
.founder-only { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; color: #9a7b58; font-size: 10px; white-space: nowrap; }
.founder-only svg { width: 14px; height: 14px; }
.admin-body .chip { border: 0; border-radius: 3px; padding: 3px 6px; font-size: 10px; line-height: 1.4; background: #eef0e9; color: #7c8772; min-height: 0; }
.admin-body .chip.teal { background: #edf2ea; color: #628166; }
.admin-body .chip.gold { background: #f4eee4; color: #a07f52; }
.admin-body .chip.pin-chip { background: #f3e8e5; color: #8c0000; }
.admin-body .chip.blue { background: #f5e9e3; color: #b17251; }
.admin-body .meta-line { gap: 6px; }
.admin-body .record-date-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 2px 8px;
  color: #5d665e;
}
.admin-body .record-date-group:first-child { margin-top: 0; }
.admin-body .record-date-group strong {
  font-size: 13px;
  font-weight: 750;
}
.admin-body .record-date-group small {
  color: #9aa197;
  font-size: 11px;
}
.admin-body .record-row.is-recommended {
  box-shadow: inset 3px 0 0 #8c0000;
}
.admin-body .recommend-toggle.is-on {
  border-color: #ead4d1;
  background: #f7eeec;
  color: #8c0000;
}
.admin-body .medal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 9px 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.admin-body .medal i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
  flex: 0 0 auto;
}
.admin-body .medal-recommend {
  border: 1px solid rgba(140, 0, 0, 0.28);
  background: linear-gradient(135deg, #8c0000 0%, #b42318 58%, #c45a3a 100%);
  color: #fff8f4;
}
.admin-body .medal-recommend i {
  width: 0;
  height: 0;
  border-radius: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid #fff4ea;
  background: transparent;
  opacity: 1;
}
.admin-body .medal-hot {
  border: 1px solid rgba(166, 112, 28, 0.35);
  background: linear-gradient(135deg, #f4e4b8, #f7f0dc);
  color: #8a5a12;
}
.admin-body .medal-hot i {
  background: radial-gradient(circle at 30% 30%, #f0d27a, #c8922a 70%);
  box-shadow: inset 0 0 0 1px rgba(138, 90, 18, 0.25);
}
.admin-body .empty-state { background: transparent; border: 0; color: #8c977f; padding: 60px 20px; }
.collection-admin-list { display: grid; gap: 7px; }
.collection-admin-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: end; padding: 17px 18px; border-radius: 5px; background: #fff; }
.collection-admin-main { min-width: 0; display: grid; grid-template-columns: minmax(220px,360px) minmax(0,1fr); gap: 18px; align-items: end; }
.collection-admin-main label { display: grid; gap: 6px; color: #858d82; font-size: 10px; }
.collection-admin-main input { background: #f3f4f1; }
.collection-admin-main .meta-line { align-self: center; }
.collection-admin-actions { display: flex; gap: 5px; align-items: center; }
.admin-body .compact-state { display: grid; place-items: center; gap: 8px; min-height: 180px; }
.admin-body .compact-state svg { color: #9aa397; }
.admin-body .compact-state strong { color: #515b52; }
.admin-body .compact-state span { font-size: 12px; }
.admin-body .success-state svg { width: 25px; height: 25px; color: #64836b; }
.review-queue-label { display: flex; align-items: center; gap: 9px; margin: 18px 2px 8px; color: #5d665e; font-size: 12px; font-weight: 700; }
.review-queue-label:first-child { margin-top: 0; }
.review-queue-label::before { content: ""; width: 18px; height: 3px; background: var(--work-red); }
.review-queue-label small { color: #9aa197; font-size: 10px; font-weight: 500; }
.admin-body .review-queue-row { grid-template-columns: minmax(0,1fr); }
.review-kind-icon { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 4px; background: #f5e9e6; color: var(--work-red); }
.review-kind-icon svg { width: 15px; height: 15px; }
.review-lane-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.review-lane-filter button { height: 32px; padding: 0 10px; border: 1px solid #dfe4dc; border-radius: 4px; background: #fff; color: #5f675f; font-size: 12px; cursor: pointer; }
.review-lane-filter button small { margin-left: 6px; color: #9aa197; }
.review-lane-filter button.active, .review-lane-filter button:hover { border-color: #ead4d1; background: #f7eeec; color: #8c0000; }
.review-contact { display: block; margin-top: 4px; color: #8c665f; }
.admin-activity-fields { display: grid; gap: 16px; padding: 16px 16px 4px; border-radius: 6px; background: #f6f4f1; }
.admin-activity-fields-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
.admin-activity-fields-head strong { color: #3f4740; font-size: 13px; }
.admin-activity-fields-head small { color: #8b9387; font-size: 11px; line-height: 1.6; }
.admin-activity-kinds { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.admin-activity-kinds legend { padding: 0; color: #7b8574; font-size: 12px; }
.admin-activity-kind-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.admin-activity-kind-options label { display: block; }
.admin-activity-kind-options input { position: absolute; opacity: 0; pointer-events: none; }
.admin-activity-kind-options span { display: grid; gap: 4px; min-height: 92px; padding: 12px; border: 1px solid #e4ddd4; border-radius: 6px; background: #fff; color: #5d665e; cursor: pointer; }
.admin-activity-kind-options b { color: #354034; font-size: 13px; }
.admin-activity-kind-options small { color: #8c9585; font-size: 11px; line-height: 1.5; }
.admin-activity-kind-options input:checked + span { border-color: #d7b4ad; background: #f8eeeb; }
.admin-activity-kind-options input:checked + span b { color: #8c0000; }
.admin-activity-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-activity-preview { display: grid; gap: 8px; padding: 16px 18px; border-left: 3px solid var(--work-red); background: #fff; color: #5d665e; }
.admin-activity-preview-kind { width: fit-content; padding: 2px 7px; border-radius: 3px; background: #f3e8e5; color: #8c0000; font-size: 10px; font-weight: 700; }
.admin-activity-preview strong { color: #2f382f; font-size: 16px; }
.admin-activity-preview small { color: #7c857b; font-size: 12px; }
.admin-activity-preview em { color: #8c665f; font-size: 11px; font-style: normal; }
.reject-reason-dialog { width: min(460px, calc(100% - 32px)); }
.reject-reason-dialog textarea { min-height: 110px; resize: vertical; }
.permission-note { max-width: 420px; color: #858d82; font-size: 11px; line-height: 1.65; text-align: right; }
.role-permission-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin: 0 0 24px; overflow: hidden; border-radius: 5px; background: #dde0db; }
.role-permission-grid > div { min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 14px; align-items: center; padding: 17px 19px; background: #f8f9f7; }
.role-seal { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 4px; background: #e5e9e3; color: #59645a; font: 700 15px/1 "Noto Serif SC","Songti SC",serif; }
.role-seal.founder { background: #8c0000; color: #fff; }
.role-permission-grid strong { color: #343d35; font-size: 13px; }
.role-permission-grid p { margin: 4px 0 0; color: #858d83; font-size: 11px; line-height: 1.65; }
.user-list { display: grid; gap: 6px; }
.user-row { display: grid; grid-template-columns: 54px minmax(220px,1fr) minmax(360px,auto); gap: 16px; align-items: center; padding: 18px; border-radius: 5px; background: #fff; }
.user-row-compact { grid-template-columns: 54px minmax(0,1fr) auto; cursor: pointer; transition: background .15s ease; }
.user-row-compact:hover,
.user-row-compact:focus-visible { background: #f7f8f5; outline: none; }
.user-row-side { display: grid; justify-items: end; gap: 2px; color: #8a9285; min-width: 72px; }
.user-row-side strong { color: #354034; font: 700 18px/1 "Noto Serif SC","Songti SC",serif; }
.user-row-side span { font-size: 10px; }
.user-row-side svg { width: 16px; height: 16px; margin-top: 4px; color: #b0b7ab; }
.user-detail-view { display: grid; gap: 14px; }
.user-detail-toolbar { display: flex; align-items: center; gap: 12px; }
.user-detail-crumb { color: #858d82; font-size: 12px; }
.user-detail { display: grid; gap: 14px; }
.user-detail-hero { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 16px; align-items: start; padding: 20px; border-radius: 5px; background: #fff; }
.user-detail-hero .user-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 8px; border-top: 1px solid #eef0ec; }
.user-detail-hero h2 { margin: 0; color: #354034; font-size: 22px; }
.user-detail-note { grid-column: 1 / -1; margin: 0; color: #8c665f; font-size: 12px; }
.user-detail-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.user-detail-metrics > div { display: grid; gap: 4px; padding: 14px 16px; border-radius: 5px; background: #fff; }
.user-detail-metrics span { color: #8a9285; font-size: 11px; }
.user-detail-metrics strong { color: #354034; font: 700 20px/1 "Noto Serif SC","Songti SC",serif; }
.user-detail-section { display: grid; gap: 0; padding: 0; border-radius: 5px; background: #fff; overflow: hidden; }
.user-detail-section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #eef0ec; }
.user-detail-section > header h3 { margin: 0; color: #354034; font-size: 14px; }
.user-detail-section > header span { color: #9aa18f; font-size: 12px; }
.user-detail-section .empty-state { padding: 28px 18px; }
.user-detail-table { display: grid; }
.user-detail-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 16px; align-items: start; padding: 14px 18px; border-bottom: 1px solid #eef0ec; color: inherit; text-decoration: none; }
.user-detail-row:last-child { border-bottom: 0; }
a.user-detail-row:hover { background: #f7f8f5; }
.user-detail-row strong { display: block; color: #354034; font-size: 13px; }
.user-detail-row span,
.user-detail-row small { display: block; color: #8a9285; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.user-detail-row code { display: block; color: #4d5648; font: 600 12px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; }
.user-points-delta { color: #8c0000; font-size: 14px; white-space: nowrap; }
.user-pick { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.user-pick input { width: 15px; height: 15px; accent-color: #8c0000; }
.user-select-all { display: inline-flex; align-items: center; gap: 6px; color: #6f776c; font-size: 12px; white-space: nowrap; }
.user-select-all input { accent-color: #8c0000; }
.heading-actions { display: inline-flex; align-items: center; gap: 8px; }
.user-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #f2e5e2; color: var(--work-red); font: 700 16px/1 "Noto Serif SC","Songti SC",serif; }
.user-summary { min-width: 0; display: grid; gap: 5px; }
.user-summary h3 { margin: 0; color: #354034; font-size: 15px; }
.user-summary a { width: fit-content; color: #6c746b; font-size: 12px; text-decoration: none; overflow-wrap: anywhere; }
.user-summary a:hover { color: var(--work-red); text-decoration: underline; text-underline-offset: 3px; }
.user-summary small { color: #9aa18f; font-size: 10px; }
.user-summary p { margin: 2px 0 0; color: #8c665f; font-size: 11px; }
.user-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.user-control { display: grid; grid-template-columns: minmax(118px,1fr) auto; gap: 5px; align-items: center; }
.user-control > span { grid-column: 1 / -1; color: #92998e; font-size: 10px; }
.admin-body .user-control select { min-width: 118px; padding: 7px 8px; font-size: 11px; }
.admin-body .user-action-button { min-height: 32px; padding: 0 10px; font-size: 12px; white-space: nowrap; }
.admin-body .user-message-button { background: #f3f4f1; }
.admin-body .user-message-button:hover { background: #f2e5e3; color: var(--work-red); }
.user-role-readonly { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; color: #858d82; font-size: 11px; white-space: nowrap; }
.user-email { color: #6c746b; font-size: 12px; overflow-wrap: anywhere; }
.guest-user-row .user-actions { flex-wrap: wrap; justify-content: flex-end; }
.user-guest-control { min-width: 148px; }
.user-guest-revoke {
  border-color: #d9b4b0 !important;
  color: #8c0000 !important;
  background: #faf4f3 !important;
}
.user-guest-revoke:disabled {
  opacity: 0.55;
}
.guest-issue-dialog { width: min(460px, calc(100% - 32px)); }
.guest-issue-lead { margin: 0; color: #7c856f; font-size: 12px; line-height: 1.7; }
.guest-credential-list { display: grid; gap: 12px; margin: 0; }
.guest-credential-list > div { display: grid; gap: 4px; padding: 10px 12px; background: #f6f7f4; border-radius: 5px; }
.guest-credential-list dt { color: #8a9284; font-size: 10px; }
.guest-credential-list dd { margin: 0; color: #2f382d; font: 600 15px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; user-select: text; cursor: pointer; }
.guest-credential-list dd:hover { color: #8c0000; }
#guest-credential-dialog,
#guest-credential-dialog * { pointer-events: auto; }
#guest-credential-dialog .dialog-actions { position: relative; z-index: 2; gap: 8px; }
.user-role-readonly svg { width: 14px; height: 14px; }
.admin-body .toast { background: #fff; border: 0; border-radius: 5px; box-shadow: 0 8px 36px #2c382620; color: #535e49; z-index: 10000; font-size: 13px; max-width: calc(100vw - 36px); }
.insert-dialog { width: min(420px,calc(100% - 32px)); border: 0; border-radius: 8px; padding: 24px; box-shadow: 0 20px 60px #27382224; color: #4b5542; }
.insert-dialog::backdrop { background: #24302055; }
.insert-dialog form { display: grid; gap: 20px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; }
.dialog-heading h2 { font-size: 18px; margin: 0; }
.insert-dialog label { display: grid; gap: 8px; font-size: 12px; color: #7c856f; }
.dialog-actions { display: flex; justify-content: flex-end; }

.site-settings-form { display: grid; gap: 18px; }
.module-manage-panel { max-width: 980px; }
.module-settings-form { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 32px; padding: 28px; border-radius: 6px; background: #fff; box-shadow: 0 7px 26px rgba(36,39,37,.035); }
.module-settings-form > .site-settings-grid { min-width: 0; }
.module-panel-actions { grid-column: 2; display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.announcement-decoration-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding-top: 4px; }
.reminder-setting-row { display: grid; gap: 18px; }
.reminder-setting-row > label { display: grid; gap: 8px; color: #7b8574; font-size: 12px; }
.reminder-admin-preview { min-height: 120px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 22px; border-radius: 5px; background: #252a27; color: #d4d8d0; box-shadow: inset 0 0 0 5px #6d593d, inset 0 0 0 6px #937651; }
.reminder-admin-preview svg { width: 22px; height: 22px; color: #c9af78; }
.reminder-admin-preview strong { max-width: 520px; color: #fff; font: 700 18px/1.55 "Noto Serif SC","Songti SC",serif; text-align: center; }
.reminder-admin-preview span { color: #abb1aa; font-size: 11px; }
.audit-list { display: grid; gap: 0; background: #fff; border-radius: 5px; overflow: hidden; }
.audit-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 17px 18px; border-bottom: 1px solid #eef0ec; }
.audit-row:last-child { border-bottom: 0; }
.audit-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 4px; background: #f1f3ef; color: #657064; }
.audit-icon[data-kind="content"] { background: #f5e9e6; color: #8c0000; }
.audit-icon[data-kind="user"] { background: #edf2ea; color: #58735d; }
.audit-icon svg { width: 16px; height: 16px; }
.audit-main { min-width: 0; display: grid; gap: 4px; }
.audit-main strong { color: #3a433a; font-size: 13px; overflow-wrap: anywhere; }
.audit-main span { color: #8d948b; font-size: 11px; }
.audit-time { color: #9aa096; font-size: 10px; white-space: nowrap; }
#audit-count { margin-left: auto; color: #919a88; white-space: nowrap; font-size: 12px; }
.media-storage-status { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 15px 16px; border-radius: 5px; background: #f5f7f3; }
.media-storage-status > svg { width: 22px; height: 22px; color: #8c0000; }
.media-storage-status div { display: grid; gap: 3px; }
.media-storage-status strong { color: #364136; font-size: 13px; }
.media-storage-status small { color: #828b7d; line-height: 1.55; }
.media-storage-help { margin: 0; color: #7d8678; font-size: 12px; line-height: 1.7; }
@media (max-width: 720px) { .media-storage-status { grid-template-columns: 36px minmax(0,1fr); } .media-storage-status .button { grid-column: 2; justify-self: start; } }
.settings-section { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 32px; padding: 28px; border-radius: 6px; background: #fff; box-shadow: 0 7px 26px rgba(36,39,37,.035); }
.settings-section-heading { display: flex; gap: 14px; align-items: flex-start; }
.settings-section-heading > span { color: var(--work-red); font: 600 22px/1 Georgia,serif; }
.settings-section-heading h2 { margin: -3px 0 7px; color: #354034; font-size: 16px; font-weight: 650; }
.settings-section-heading p { margin: 0; color: #959c90; font-size: 11px; line-height: 1.7; }
.site-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.site-settings-grid label { display: grid; gap: 8px; align-content: start; color: #7b8574; font-size: 12px; }
.site-settings-grid label small { color: #a1a79d; font-size: 10px; line-height: 1.6; }
.site-settings-grid input, .site-settings-grid textarea, .site-settings-grid select { background: #f0f2ed; }
.site-settings-grid textarea { min-height: 88px; resize: vertical; line-height: 1.7; }
.settings-span { grid-column: 1 / -1; }
.portrait-setting { display: grid; grid-template-columns: minmax(150px,1fr) 110px auto auto; gap: 12px; align-items: center; padding: 14px; border-radius: 5px; background: #f0f2ed; }
.portrait-setting > div:first-child { display: grid; gap: 5px; }
.portrait-setting > div:first-child strong { color: #596355; font-size: 12px; }
.portrait-setting > div:first-child small { color: #969e92; font-size: 10px; line-height: 1.6; }
.portrait-setting > .button { justify-content: center; cursor: pointer; }
.admin-portrait-preview { width: 110px; height: 92px; display: grid; place-items: center; overflow: hidden; border-radius: 4px; background: #fff; color: #a0a79b; }
.admin-portrait-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.admin-portrait-preview svg { width: 24px; height: 24px; }
.qr-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,220px)); gap: 26px; }
.qr-setting { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.qr-setting > strong { grid-column: 1 / -1; color: #475244; font-size: 12px; }
.qr-setting > .button { justify-content: center; cursor: pointer; }
.qr-setting > .quiet-link { justify-content: center; }
.admin-qr-preview { grid-column: 1 / -1; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 5px; background: #f0f2ed; color: #a0a79b; }
.admin-qr-preview img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.admin-qr-preview svg { width: 26px; height: 26px; }
.admin-qr-preview span { margin-top: -62px; font-size: 11px; }
.interaction-row .record-main > p { display: block; max-width: 900px; padding: 10px 12px; border-radius: 4px; background: #f4f5f2; color: #65705f; white-space: pre-wrap; -webkit-line-clamp: initial; }

@media (min-width: 1560px) { .preview-scroll, .admin-body .CodeMirror { height: 560px; } }
@media (max-width: 1180px) {
  .workspace-layout { grid-template-columns: 174px minmax(0,1fr); }
  .workspace-sidebar { padding-left: 12px; padding-right: 12px; }
  .workspace-main { padding: 24px 18px 30px; }
  .preview-controls { gap: 6px; }
  .theme-picker > .theme-name { display: none; }
  .article-meta-fields { gap: 12px; }
  .article-meta-fields .template-control { margin-left: 0; }
  .preview-scroll { padding: 24px; }
  .user-row,
  .user-row-compact { grid-template-columns: 44px minmax(190px,1fr) auto; }
  .user-actions { flex-wrap: wrap; }
  .user-detail-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .workspace-header { padding: 0 20px; height: 73px; gap: 15px; }
  .workspace-brand { display: none; }
  .workspace-branding .admin-site-brand { padding-left: 0; border-left: 0; }
  .workspace-name { display: none; }
  .workspace-layout { grid-template-columns: 62px minmax(0,1fr); }
  .workspace-sidebar { padding: 22px 8px; min-height: calc(100vh - 73px); }
  .workspace-nav button { padding: 12px; justify-content: center; }
  .workspace-nav button span, .workspace-nav small, .sidebar-label, .sidebar-bottom, .sidebar-compose span, .sidebar-compose svg:last-child { display: none; }
  .workspace-nav { margin-top: 20px; }
  .sidebar-compose { justify-content: center; }
  .workspace-heading h1 { font-size: 22px; }
  .save-status { display: none; }
  .format-tools .tool-break { margin-left: 0; }
  .settings-section { grid-template-columns: 150px minmax(0,1fr); gap: 22px; padding: 22px; }
  .user-row,
  .user-row-compact { grid-template-columns: 48px minmax(0,1fr) auto; }
  .user-actions { grid-column: 2; justify-content: flex-start; }
  .permission-note { max-width: 300px; }
  .module-settings-form { grid-template-columns: 150px minmax(0,1fr); gap: 22px; padding: 22px; }
}
@media (max-width: 680px) {
  html { max-width: 100%; overflow-x: hidden; }
  .admin-app,
  .workspace-header,
  .workspace-layout,
  .workspace-sidebar,
  .workspace-main { width: 100%; max-width: 100%; min-width: 0; }
  .workspace-header { height: 68px; padding: 0 14px; }
  .workspace-branding .admin-site-brand > span { width: auto; }
  .workspace-branding .admin-site-brand > span > img { width: auto; height: 32px; }
  .workspace-branding .admin-site-brand > span > img.admin-brand-en { width: auto; height: 11px; }
  .workspace-branding .admin-site-brand > img { width: auto; height: 42px; max-width: 66px; flex-basis: auto; }
  .workspace-branding .admin-site-brand { gap: 8px; }
  .header-actions { gap: 7px; }
  .header-actions .quiet-link span, .admin-avatar { display: none; }
  .realtime-status span { display: none; }
  .workspace-header::before { display: none; }
  .workspace-layout { display: block; }
  .workspace-sidebar { min-height: 0; position: static; padding: 10px 12px 0; }
  .sidebar-compose { display: none; }
  .sidebar-label { display: none; }
  .draft-banner { grid-template-columns: 1fr 1fr; }
  .dashboard-shortcuts, .notify-pane.notify-split { grid-template-columns: 1fr; }
  .draft-banner { flex-direction: column; align-items: flex-start; }
  .workspace-nav { contain: inline-size; display: flex; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; gap: 5px; margin: 0; }
  .workspace-nav button { flex-shrink: 0; gap: 5px; padding: 8px 10px; font-size: 11px; }
  .workspace-nav button span { display: inline; }
  .workspace-nav button > span { display: inline-flex; }
  .workspace-nav button svg { width: 14px; height: 14px; }
  .workspace-main { padding: 22px 14px; }
  .workspace-heading { gap: 8px; margin-bottom: 18px; }
  .heading-actions { gap: 6px; }
  .heading-actions .button { min-height: 34px; padding: 7px 10px; font-size: 12px; }
  .heading-actions svg { width: 14px; height: 14px; }
  .admin-body .article-title-input { font-size: 22px; }
  .article-meta-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .article-meta-fields label { font-size: 11px; }
  .article-meta-fields label > input, .article-meta-fields label > select { width: 100%; flex: 1; max-width: none; }
  .article-meta-fields label { white-space: nowrap; }
  .editor-menubar { padding: 8px; gap: 5px; }
  .editor-modes button { width: 39px; }
  .sync-control { display: none; }
  .editor-toolbar { flex-wrap: wrap; padding: 7px 8px; gap: 5px; }
  .format-tools { contain: inline-size; flex: 1; max-width: 100%; overflow-x: auto; overflow-y: hidden; }
  .format-tools .icon-button { width: 28px; height: 30px; }
  .copy-rich-button { margin-left: auto; }
  .editor-panes { grid-template-columns: minmax(0,1fr); overflow-x: hidden; }
  .source-pane { min-width: 0; overflow-x: hidden; }
  .admin-body .CodeMirror-scroll { margin-right: 0; }
  .preview-scroll, .admin-body .CodeMirror { height: 400px; }
  .markdown-workbench[data-mode="split"] .preview-pane { border-top: 6px solid #f1f3ef; }
  .preview-controls { gap: 10px; padding: 8px 12px; }
  .theme-picker > .theme-name { display: none; }
  .preview-scroll { padding: 22px; }
  .editor-statusbar { gap: 10px; padding: 6px 10px; font-size: 9px; }
  .settings-grid { grid-template-columns: 1fr; gap: 16px; }
  .quick-create-heading { padding: 22px 18px 16px; }
  .quick-create-heading h2 { font-size: 20px; }
  .quick-create-options { grid-template-columns: 1fr; padding: 16px; }
  .team-editor-fields { grid-template-columns: 1fr; }
  .team-editor-portrait { align-items: flex-start; }
  .team-editor-portrait > div:last-child { align-items: flex-start; flex-direction: column; }
  .editor-focused .markdown-workbench { inset: 0; border-radius: 0; }
  .editor-focused .editor-panes { overflow: auto; }
  .editor-focused .markdown-workbench[data-mode="split"] .CodeMirror, .editor-focused .markdown-workbench[data-mode="split"] .preview-scroll { height: 360px; flex: none; }
  .admin-body .record-row { grid-template-columns: minmax(0,1fr); padding: 18px 14px; }
  .record-actions { justify-content: flex-end; }
  .admin-role-label { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .permission-note { display: none; }
  .module-subnav { max-width: 100%; overflow-x: auto; }
  .module-subnav button { flex-shrink: 0; }
  .module-settings-form { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px; }
  .module-panel-actions { grid-column: auto; }
  .announcement-decoration-fields { grid-template-columns: 1fr; }
  .role-permission-grid { grid-template-columns: 1fr; }
  .audit-row { grid-template-columns: 34px minmax(0,1fr); padding: 15px 13px; }
  .audit-time { grid-column: 2; }
  .user-row,
  .user-row-compact { grid-template-columns: 34px minmax(0,1fr) auto; padding: 15px 12px; gap: 11px; }
  .user-detail-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .user-detail-hero { grid-template-columns: 40px minmax(0,1fr); padding: 16px; }
  .user-avatar { width: 34px; height: 34px; font-size: 14px; }
  .user-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .user-control { min-width: 0; }
  .collection-admin-row, .collection-admin-main { grid-template-columns: 1fr; }
  .collection-admin-actions { justify-content: flex-end; }
  .admin-body .user-control select { min-width: 0; width: 100%; }
  .workspace-metrics { gap: 12px; }
  .workspace-metrics strong { font-size: 24px; }
  .workspace-metrics span { font-size: 11px; }
  .library-filters { flex-wrap: wrap; gap: 10px; }
  .library-search { width: 100%; }
  .admin-activity-kind-options, .admin-activity-meta-grid { grid-template-columns: 1fr 1fr; }
  .admin-body .login-card { padding: 28px; }
  .login-brand-row { align-items: flex-start; flex-direction: column; gap: 18px; }
  .login-brand { width: min(265px,100%); }
  .login-brand-row .admin-site-brand { padding: 14px 0 0; border-left: 0; border-top: 1px solid #d8dbd8; }
  .login-heading { margin-top: 8px; }
  .settings-section { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px; }
  .site-settings-grid { grid-template-columns: 1fr; }
  .settings-span { grid-column: auto; }
  .portrait-setting { grid-template-columns: 1fr auto; }
  .portrait-setting > div:first-child { grid-column: 1 / -1; }
  .admin-portrait-preview { grid-row: span 2; }
  .qr-settings-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
}
.academic-calendar { display: grid; gap: 14px; }
.academic-calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.academic-calendar-toolbar strong { font: 800 16px/1 "Noto Serif SC","Songti SC",serif; }
.academic-calendar-weekdays, .academic-calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; }
.academic-calendar-weekdays span { color: #7a807c; font-size: 11px; font-weight: 700; text-align: center; }
.academic-calendar-grid button { min-height: 44px; display: grid; place-items: center; align-content: center; gap: 2px; border: 0; border-radius: 5px; background: #eef1ed; color: #242725; font-weight: 700; }
.academic-calendar-grid button.muted { opacity: .38; }
.academic-calendar-grid button.holiday { background: #f3eee6; color: #7a5a28; }
.academic-calendar-grid button.makeup { background: #e7efe9; color: #2f5c3f; }
.academic-calendar-grid button.picked { outline: 2px solid #8c0000; }
.academic-calendar-grid small { display: block; min-height: 12px; font-size: 10px; }
.academic-calendar-pick { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 12px 14px; border-radius: 6px; background: #eef1ed; }
.academic-calendar-pick label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.academic-calendar-pick input[type="date"] { min-width: 150px; padding: 4px 8px; border: 1px solid #d5d8d3; border-radius: 4px; background: #fff; }
.academic-calendar-list { display: grid; gap: 8px; }
.academic-calendar-list article { display: grid; grid-template-columns: 110px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 5px; background: #f7f8f6; font-size: 13px; }
.academic-calendar-list button { border: 0; background: transparent; color: #8c0000; cursor: pointer; }

@media (max-width: 420px) {
  .workspace-header { gap: 8px; }
  .workspace-branding .admin-site-brand > span { width: auto; }
  .workspace-branding .admin-site-brand > span > img { width: auto; height: 28px; }
  .workspace-branding .admin-site-brand > span > img.admin-brand-en { width: auto; height: 10px; }
  .workspace-branding .admin-site-brand > img { width: auto; height: 38px; max-width: 60px; flex-basis: auto; }
  .workspace-branding .admin-site-brand { gap: 6px; }
  .header-actions > .quiet-link, .admin-role-label { display: none; }
  .realtime-status { display: none; }
  .header-actions .admin-avatar { display: grid; flex: 0 0 30px; }
}
