/* Workspace type hierarchy is independent of article and export typography. */
:root {
  --split:45%;
  --sidebar:376px;
  --preview-gutter:28px;
  --editor-inset:48px;
  --panel-inset:24px;
  --ui-body-size:14px;
  --ui-help-size:13px;
  --ui-meta-size:12px;
  --ui-panel-title-size:16px;
  --ease-ui:cubic-bezier(.2,.7,.2,1)
}
.topbar {
  height:74px;
  padding:0 32px;
  padding-right:24px;
  gap:24px;
  background:var(--bg)
}
.brand-logo {
  width:164px
}
.document-info #documentTitle {
  font-size:14px
}
.document-info #saveStatus {
  font-size:12px
}
.top-actions {
  margin-left:auto;
  gap:12px
}
.platform-button {
  height:42px;
  min-width:106px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--panel)
}
.platform-label,.platform-option-label {
  display:inline-flex;
  align-items:center;
  gap:8px;
  white-space:nowrap
}
.platform-icon {
  width:20px;
  height:20px;
  flex:none;
  object-fit:contain;
  border-radius:4px
}
.platform-button .platform-icon {
  width:18px;
  height:18px
}
#platformMenu {
  left:auto;
  right:0;
  width:244px
}
#platformMenu button {
  min-height:48px
}
#platformMenu .platform-option-label {
  gap:10px;
  color:inherit;
  font-size:14px
}
#platformMenu button[aria-pressed=true] {
  background:var(--selected);
  color:var(--accent-text);
  font-weight:600
}
#copyBtn {
  min-width:156px;
  min-height:42px;
  white-space:nowrap;
  font-size:14px
}
.workspace-tools {
  height:60px;
  background:var(--panel);
  position:relative;
  display:flex;
  padding:0 24px;
  align-items:center;
  justify-content:space-between
}
.insert-bar {
  padding:0;
  gap:6px;
  border:0
}
.view-tools {
  padding:0;
  border:0;
  width:auto;
  flex:1;
  justify-content:flex-end
}
.view-tabs {
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  background:var(--bg);
  border:0;
  border-radius:7px;
  padding:3px
}
.view-tabs button {
  font-size:14px;
  min-height:34px;
  min-width:76px
}
.style-toggle-button {
  font-size:14px;
  min-height:42px
}
.layout-preview-hint {
  display:none!important
}
.app-shell[data-view=preview] .workspace-tools {
  display:flex
}
.app-shell[data-view=preview] .insert-bar {
  display:flex;
  visibility:hidden
}
.app-shell[data-view=preview] .view-tabs {
  margin:0
}
.workspace {
  position:relative
}
.preview-pane {
  background:var(--surface-muted)
}
.phone-frame {
  flex:1;
  min-height:0;
  height:auto;
  padding:8px var(--preview-gutter) 32px;
  background:var(--surface-muted);
  scrollbar-gutter:stable
}
.wechat-preview,.app-shell[data-view=preview] .wechat-preview {
  width:100%;
  max-width:820px;
  border:1px solid var(--line);
  border-radius:4px;
  padding:32px 36px 50px;
  min-height:calc(100% - 1px);
  background:var(--panel);
  box-shadow:0 3px 14px #20332f0b
}
.app-shell[data-view=preview] .wechat-preview {
  padding:36px 48px 60px
}
#preview>section>h1,.theme-compare-paper h1 {
  text-wrap:balance
}
#editor,.app-shell[data-view=editor] #editor {
  font-size:16px;
  line-height:1.8;
  padding:40px var(--editor-inset) 48px;
  letter-spacing:normal
}
.app-shell[data-view=editor] #editor {
  padding-left:max(var(--editor-inset),calc((100vw - 900px)/2));
  padding-right:max(var(--editor-inset),calc((100vw - 900px)/2))
}
.editor-meta {
  height:54px;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 var(--editor-inset);
  border-bottom:1px solid var(--line)
}
.app-shell[data-view=editor] .editor-meta {
  padding-left:max(var(--editor-inset),calc((100vw - 900px)/2));
  padding-right:max(var(--editor-inset),calc((100vw - 900px)/2))
}
.editor-label {
  display:flex;
  align-items:center;
  gap:10px
}
.editor-label strong {
  font-size:14px;
  font-weight:500
}
.editor-label>span,.editor-focus-hint {
  color:var(--muted);
  font-size:var(--ui-meta-size)
}
.editor-focus-hint {
  visibility:hidden;
  padding:3px 7px;
  border-radius:4px;
  background:var(--surface-muted)
}
.editor-pane:focus-within .editor-focus-hint {
  visibility:visible
}
.preview-meta {
  height:54px;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0;
  padding:0 var(--preview-gutter);
  border-bottom:0;
  font-size:13px
}
.preview-label {
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap
}
.preview-label strong {
  font-size:14px;
  font-weight:500
}
.preview-label>span {
  color:var(--muted);
  font-size:var(--ui-help-size)
}
.preview-meta-end {
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0
}
.check-toggle {
  font-size:var(--ui-help-size);
  min-height:40px;
  white-space:nowrap;
  padding:0;
  max-width:180px
}
.device-control {
  display:flex;
  align-items:center;
  background:var(--surface-muted);
  border-radius:5px;
  padding:2px
}
.device-control button {
  padding:5px 8px;
  font-size:var(--ui-help-size);
  min-height:40px;
  border-radius:4px
}
.device-control button[aria-pressed=true] {
  background:var(--panel);
  color:var(--accent-text);
  box-shadow:0 1px 3px #172b1710
}
.preview-pane[data-device=mobile] .phone-frame {
  background:var(--surface-muted);
  padding:8px var(--preview-gutter) 32px
}
.preview-pane[data-device=mobile] .wechat-preview {
  max-width:390px;
  padding:28px 24px;
  border:1px solid var(--line)
}
.side-panel,.check-panel {
  width:var(--sidebar);
  background:var(--bg);
  box-shadow:none
}
.panel-head {
  height:54px;
  padding:0 24px;
  background:var(--bg)
}
.panel-head h2 {
  font-size:var(--ui-panel-title-size);
  font-weight:600;
  line-height:1.4
}
.panel-scroll {
  padding:24px;
  scrollbar-gutter:stable;
  overscroll-behavior-y:contain;
  scroll-padding-top:210px
}
.scheme-card {
  position:relative;
  padding:0 0 20px;
  border:0;
  border-bottom:1px solid var(--line);
  background:transparent;
  margin-bottom:20px
}
.scheme-card strong {
  font-size:15px;
  font-weight:600
}
.scheme-card p {
  font-size:13px;
  line-height:1.7;
  margin:7px 0 0;
  color:var(--muted)
}
.scheme-card>span {
  position:absolute;
  right:0;
  top:0;
  font-size:12px;
  color:var(--accent-text)
}
.wechat-theme-picker {
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:8px;
  margin-bottom:24px;
  overflow:visible
}
.wechat-theme-picker>summary {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  min-height:54px;
  padding:12px 14px;
  font-weight:600;
  font-size:14px;
  cursor:pointer
}
.wechat-theme-picker>summary span {
  font-size:var(--ui-help-size);
  font-weight:400;
  color:var(--accent-text)
}
.wechat-theme-picker>summary strong {
  font-size:14px;
  font-weight:600
}
.wechat-theme-picker[open]>summary {
  position:sticky;
  top:calc(-1 * var(--panel-inset));
  z-index:3;
  background:var(--panel);
  border-radius:8px 8px 0 0;
  box-shadow:0 1px 0 var(--line)
}
.app-shell[data-platform=wechat] .scheme-card {
  display:none
}
.theme-picker-head {
  position:sticky;
  top:calc(54px - var(--panel-inset));
  z-index:2;
  padding:8px 12px 1px;
  background:var(--panel);
  border:0;
  box-shadow:0 1px 0 var(--line)
}
.theme-picker-title h3 {
  font-size:14px
}
.theme-grid {
  padding:12px;
  gap:10px
}
.theme-library-note { margin:10px 12px 0; color:var(--muted); font-size:13px; line-height:1.65; }
.legacy-theme-picker { margin:10px 12px 14px; border-top:1px solid var(--line); padding-top:12px; }
.legacy-theme-picker > summary { cursor:pointer; color:var(--muted); font-size:13px; padding:6px 0; }
.legacy-theme-picker .theme-grid { padding:12px 0 0; }
.theme-card {
  min-width:0;
  display:grid;
  grid-template-rows:1fr auto auto;
  border-radius:8px;
  scroll-margin-top:12px
}
.theme-card>strong {
  font-size:var(--ui-body-size);
  line-height:1.5
}
.theme-card>small {
  font-size:var(--ui-meta-size);
  line-height:1.6;
  min-height:1.6em
}
.theme-filters button,.theme-status,.theme-picker-title button {
  font-size:var(--ui-help-size);
  line-height:1.6
}
.theme-sample {
  /* Real theme spacing and narrow-screen wrapping must stay in normal flow. */
  height:auto;
  min-height:124px
}
.theme-entry {
  min-width:0;
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel);
}
.theme-entry .theme-card {
  width:100%;
  flex:1;
  border-color:transparent;
  border-radius:7px 7px 0 0;
}
.theme-entry:has(.theme-card.active) { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
.theme-entry .theme-card.active { border-color:transparent; box-shadow:none; }
.theme-card-actions {
  display:flex;
  border-top:1px solid var(--line);
  padding:0 3px;
}
.theme-card-actions button {
  flex:1;
  min-width:44px;
  min-height:44px;
  padding:6px 2px;
  font-size:12px;
}
.theme-favorite[aria-pressed=true],#favoriteThemesBtn[aria-pressed=true] {
  color:var(--brand-accent-ink);
  background:var(--brand-accent-soft);
}
.theme-library-tools { display:flex; justify-content:space-between; gap:8px; margin:0 0 6px; flex-wrap:wrap; }
.theme-library-tools button { min-height:36px; font-size:12px; padding:4px 8px; }
.theme-empty { margin:0; padding:4px 16px 20px; color:var(--muted); font-size:13px; line-height:1.8; }
.theme-compare-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:16px 24px 0; font-size:13px; }
.theme-compare-toolbar select { min-height:44px; padding:8px 12px; border:1px solid var(--line); border-radius:6px; background:var(--panel); color:var(--text); font:inherit; }
.theme-compare-toolbar>span { color:var(--muted); }
.theme-apply { min-height:44px; font-size:13px; padding:8px; }
#themeCompareDialog[data-mode=single] .theme-compare-dialog { width:min(680px,calc(100vw - 16px)); }
#themeCompareDialog[data-mode=single] .theme-compare-grid { grid-template-columns:minmax(0,1fr); }
#themeCompareDialog[data-mode=single] .theme-compare-grid>section:nth-child(2) { display:none; }
@media(max-width:760px) {
  .theme-library-tools button { min-height:44px; }
  .theme-compare-toolbar { margin:12px; gap:8px; }
}
.wechat-theme-picker .control-group {
  margin:0;
  padding:0;
  border:0
}
.adjustment-title {
  font-size:14px;
  margin:0 0 16px
}
.control-group label {
  font-size:14px
}
.control-group {
  border:0;
  margin:0 0 24px;
  padding:0
}
.control-group small,.panel-note {
  font-size:var(--ui-help-size);
  line-height:1.65
}
.output-choice {
  display:flex;
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden;
  background:var(--panel);
  margin-top:12px
}
.output-choice button {
  flex:1;
  min-height:42px;
  padding:9px 8px;
  font-size:14px;
  border-radius:0
}
.output-choice button+button {
  border-left:1px solid var(--line)
}
.output-choice button[aria-pressed=true] {
  background:var(--selected);
  color:var(--accent-text);
  font-weight:600
}
#wechatAdvanced {
  margin-bottom:24px
}
#wechatAdvanced>summary {
  font-size:14px;
  cursor:pointer;
  padding:12px 0;
  color:var(--muted)
}
#wechatAdvanced .control-group {
  margin-top:18px
}
.output-title-control {
  margin-bottom:28px
}
.output-title-control>label {
  display:block;
  font-size:14px;
  font-weight:600;
  margin-bottom:12px
}
.output-title-control input {
  width:100%;
  min-height:44px;
  border:1px solid var(--line);
  border-radius:6px;
  padding:10px 12px;
  background:var(--panel);
  min-width:0
}
.output-title-control>div {
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-top:8px
}
.output-title-control small {
  font-size:var(--ui-help-size);
  line-height:1.65;
  color:var(--muted);
  display:block;
  margin-top:8px
}
#manualTitle {
  width:100%;
  height:80px;
  resize:vertical;
  margin-top:12px
}
.tips {
  background:transparent;
  padding:0;
  border:0
}
.tips-heading {
  font-size:14px
}
.copy-checks {
  font-size:13px;
  line-height:1.8
}
.copy-checks li {
  padding:12px 0;
  border-bottom:1px solid var(--line)
}
.copy-checks li.is-ok {
  color:var(--accent-text)
}
.image-section {
  margin-top:24px
}
.image-row {
  background:var(--panel)
}
.material-actions {
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:26px
}
.material-actions>button {
  min-height:44px
}
.material-actions p {
  font-size:var(--ui-help-size);
  line-height:1.65;
  margin:0;
  color:var(--muted)
}
.manual-copy-output {
  max-height:320px;
  overflow:auto;
  padding:24px;
  border:1px solid var(--line);
  background:var(--panel);
  margin:18px 0
}
.statusbar {
  height:34px;
  font-size:12px
}
@media(min-width:1251px) {
  .app-shell[data-panel=style] .workspace,.app-shell[data-panel=check] .workspace {
    padding-right:376px;
    grid-template-columns:var(--split) minmax(0,1fr)
  }
  .app-shell[data-view=preview] .workspace,.app-shell[data-view=editor] .workspace {
    grid-template-columns:1fr
  }
  .app-shell[data-view=preview] .preview-meta {
    max-width:708px;
    width:calc(100% - 112px);
    margin:0 auto;
    height:54px
  }
  .app-shell[data-panel=check][data-view=split] .preview-meta {
    height:54px;
    margin:0;
    padding:0 18px
  }
  .app-shell[data-panel=check][data-view=split] .preview-label>span,.app-shell[data-panel=check][data-view=split] .device-control {
    display:none
  }
  .app-shell[data-panel=check][data-view=split] .phone-frame {
    padding:8px 18px 28px;
    background:var(--surface-muted)
  }
  .app-shell[data-panel=check][data-view=split] .wechat-preview {
    padding:30px 28px;
    border:1px solid var(--line)
  }
}
@media(min-width:761px) and (max-width:1250px) {
  :root {
    --sidebar:340px;
    --preview-gutter:24px;
    --editor-inset:32px
  }
  .topbar {
    padding:0 22px;
    padding-right:18px;
    gap:16px
  }
  .document-info #saveStatus {
    display:none
  }
  .workspace-tools {
    padding:0 18px
  }
  .insert-bar {
    gap:2px
  }
  .view-tabs {
    left:54%
  }
  .preview-meta {
    margin:0
  }
  .preview-label>span {
    display:none
  }
  .wechat-preview {
    padding:28px 26px
  }
  .app-shell[data-panel=style] .workspace,.app-shell[data-panel=check] .workspace {
    padding-right:340px;
    grid-template-columns:minmax(0,1fr)
  }
  .app-shell[data-panel=style] .editor-pane,.app-shell[data-panel=check] .editor-pane {
    display:none
  }
  .panel-scroll {
    padding:24px
  }
  .panel-head {
    padding:0 24px
  }
  .app-shell[data-view=preview] .wechat-preview {
    padding:28px 40px
  }
  .app-shell[data-view=preview] .preview-meta {
    width:calc(100% - 80px);
    max-width:740px;
    margin:0 auto
  }
}
@media(min-width:761px) and (max-width:1000px) {
  :root {
    --sidebar:320px
  }
  .document-info {
    display:none
  }
  .topbar {
    gap:12px
  }
  .insert-bar>button span {
    display:none
  }
  .device-control {
    display:none
  }
  .view-tabs {
    left:50%
  }
  .app-shell[data-panel=style] .workspace,.app-shell[data-panel=check] .workspace {
    padding-right:320px
  }
  .brand-logo {
    width:148px
  }
}
@media(max-width:760px) {
  :root {
    --preview-gutter:12px;
    --editor-inset:22px;
    --panel-inset:24px
  }
  .topbar {
    height:66px;
    padding:0 14px;
    gap:8px
  }
  .brand-logo {
    width:116px
  }
  .file-anchor {
    padding:0;
    margin:0
  }
  .file-anchor>.text-button {
    min-height:44px;
    padding:6px;
    font-size:13px
  }
  .file-anchor .icon {
    display:none
  }
  .document-info {
    display:none
  }
  .top-actions {
    gap:8px
  }
  .platform-button {
    min-width:72px;
    padding:0 10px;
    gap:8px;
    height:44px;
    font-size:14px
  }
  .platform-button .icon {
    width:12px;
    height:12px
  }
  #copyBtn {
    min-width:0;
    min-height:44px;
    padding:0 10px;
    font-size:13px
  }
  .platform-label {
    gap:6px
  }
  .workspace-tools,.app-shell[data-view=preview] .workspace-tools {
    height:104px;
    padding:53px 14px 0;
    align-items:center
  }
  .insert-bar,.app-shell[data-view=preview] .insert-bar {
    position:absolute;
    top:4px;
    left:8px;
    right:8px;
    display:flex;
    visibility:visible;
    justify-content:space-around;
    height:44px;
    gap:0;
    padding:0
  }
  .insert-bar>button,.insert-bar>.menu-anchor>button {
    min-height:44px;
    padding:7px;
    font-size:13px
  }
  .insert-bar .icon {
    width:18px
  }
  .view-tools {
    width:100%;
    justify-content:space-between;
    min-height:44px
  }
  .view-tabs,.app-shell[data-view=preview] .view-tabs {
    position:static;
    transform:none;
    height:44px;
    left:auto;
    margin:0;
    display:flex
  }
  .view-tabs button {
    min-height:38px;
    font-size:14px;
    min-width:78px
  }
  #splitTab {
    display:none
  }
  .style-toggle-button {
    min-height:44px;
    padding:8px 10px;
    display:flex
  }
  .workspace,.app-shell[data-view=editor] .workspace,.app-shell[data-view=preview] .workspace,.app-shell[data-panel=style] .workspace,.app-shell[data-panel=check] .workspace {
    padding:0;
    grid-template-columns:1fr
  }
  .app-shell[data-mobile-view=editor] .editor-pane {
    display:flex
  }
  .app-shell[data-mobile-view=editor] .preview-pane {
    display:none
  }
  .app-shell[data-mobile-view=preview] .editor-pane {
    display:none
  }
  .app-shell[data-mobile-view=preview] .preview-pane {
    display:flex
  }
  .preview-pane {
    border:0
  }
  .preview-meta,.app-shell[data-view=preview] .preview-meta {
    height:50px;
    margin:0;
    width:auto;
    max-width:none;
    gap:8px
  }
  .preview-label>span,.device-control {
    display:none
  }
  .check-toggle {
    min-height:44px;
    font-size:var(--ui-help-size);
    max-width:170px
  }
  .preview-label strong {
    font-size:14px
  }
  #editor,.app-shell[data-view=editor] #editor,.app-shell[data-mobile-view=editor] #editor {
    font-size:16px;
    line-height:1.85;
    padding:26px 22px 36px
  }
  .editor-meta {
    height:50px
  }
  .wechat-preview,.app-shell[data-view=preview] .wechat-preview,.preview-pane[data-device=mobile] .wechat-preview {
    padding:26px 18px 40px;
    max-width:680px;
    border:1px solid var(--line)
  }
  .preview-pane[data-device=mobile] .phone-frame {
    background:var(--surface-muted);
    padding:8px var(--preview-gutter) 24px
  }
  .side-panel,.check-panel {
    position:absolute;
    inset:0;
    width:100%;
    z-index:16
  }
  .panel-head {
    height:64px;
    padding:0 22px;
    min-height:64px
  }
  .panel-head h2 {
    font-size:var(--ui-panel-title-size)
  }
  .panel-scroll {
    padding:24px 22px
  }
  .style-preview-button {
    display:inline-flex;
    margin-left:auto;
    margin-right:8px;
    min-height:44px
  }
  .side-panel .icon-button {
    min-width:44px;
    min-height:44px
  }
  .output-choice button,.theme-filters button,.output-title-control .text-button {
    min-height:44px
  }
  .statusbar {
    height:38px;
    padding:0 16px;
    font-size:var(--ui-meta-size);
    gap:10px
  }
  .storage-note {
    display:none
  }
  .mobile-save-status {
    display:inline-flex
  }
  .editor-paste-status {
    font-size:12px
  }
  .popup-menu {
    max-width:calc(100vw - 24px)
  }
  .file-anchor .popup-menu {
    top:66px;
    left:12px
  }
  #platformMenu {
    top:66px;
    right:12px;
    left:auto;
    width:244px;
    max-height:calc(100dvh - 90px)
  }
  .modal-backdrop {
    padding:12px
  }
  .copy-drawer-card {
    padding:18px
  }
  .copy-drawer-head {
    gap:12px;
    flex-wrap:wrap
  }
}
/* Keep the full platform/copy controls inside the header through phone widths. */
@media(max-width:440px) {
  .topbar {
    padding:0 10px;
    gap:3px
  }
  .brand-logo {
    width:88px
  }
  .file-anchor>.text-button {
    font-size:var(--ui-help-size);
    min-width:34px
  }
  .platform-button {
    min-width:63px;
    padding:0 7px;
    gap:5px;
    font-size:13px
  }
  .top-actions {
    gap:5px
  }
  #copyBtn {
    padding:0 8px;
    font-size:var(--ui-help-size)
  }
}
@media(max-width:374px) {
  .brand-logo {
    width:36px;
    height:36px;
    object-fit:contain
  }
  .brand-logo {
    content:url('/brand/logo/responsive-system/favicon.svg?v=2')
  }
}
/* QA refinement: formatting remains available in preview and selection is explicit. */
.app-shell[data-view=preview] .insert-bar {
  visibility:visible
}
.scheme-card {
  border-color:var(--line);
  background:transparent
}
.output-choice button[aria-pressed=true] {
  box-shadow:inset 0 0 0 1px var(--accent)
}
/* Inputs need a clearer boundary than decorative panel dividers. */
.output-title-control input,.control-group input[type=color],.confirm-card input,
.theme-compare-grid select,#manualHtml,#manualTitle {
  border-color:var(--control-line);
  background:var(--panel);
  color:var(--text)
}
.theme-selected {
  color:var(--accent-text)
}
#editor::selection,.output-title-control input::selection,#manualTitle::selection,#manualHtml::selection {
  background:var(--selected);
  color:var(--text)
}
#currentBodySize {
  font-size:var(--ui-help-size);
  color:var(--muted);
  font-weight:400
}

body {
  -webkit-font-smoothing: antialiased;
}

/* Feedback stays brief; article text never animates while typing or reflowing. */
button,.wechat-theme-picker>summary {
  transition:background-color 120ms var(--ease-ui),color 120ms var(--ease-ui),border-color 120ms var(--ease-ui),box-shadow 120ms var(--ease-ui)
}
.popup-menu {
  animation-timing-function:var(--ease-ui)
}
.side-panel {
  animation-timing-function:var(--ease-ui)
}
@media(hover:hover) {
  .theme-card:not(:disabled):hover {
    border-color:var(--control-line);
    background:var(--panel);
    box-shadow:0 2px 8px #27342e0a
  }
  .theme-card.active:not(:disabled):hover {
    border-color:var(--accent);
    background:var(--selected);
    box-shadow:inset 0 0 0 1px var(--accent)
  }
  .wechat-theme-picker>summary:hover {
    background:var(--surface-hover)
  }
}

/* Workspace color roles stay separate from article and export styles. */
.topbar { box-shadow:inset 0 2px 0 var(--accent); }
.workspace-tools { border-bottom-color:var(--line); }
.side-panel,.check-panel { box-shadow:-4px 0 18px #20332f05; }
.panel-head { background:var(--panel); }
.editor-meta { background:var(--panel); }
#copyBtn { box-shadow:0 2px 4px #20332f14; }
.wechat-theme-picker>summary span { color:var(--brand-accent-ink); }
.theme-card-actions { background:var(--bg); border-radius:0 0 7px 7px; }
.theme-entry:has(.theme-card.active) .theme-card-actions { background:var(--selected); }
.theme-favorite[aria-pressed=true]:hover,#favoriteThemesBtn[aria-pressed=true]:hover {
  background:var(--brand-accent-soft); color:var(--brand-accent-ink);
}
.theme-empty { border-left:2px solid var(--brand-accent); }
.preview-empty::before {
  content:""; display:block; width:28px; height:3px; margin:0 auto 18px;
  background:var(--brand-accent); border-radius:2px;
}
@media(hover:hover) {
  .theme-entry .theme-card.active:not(:disabled):hover { border-color:transparent; box-shadow:none; }
}
.reading-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.reading-palette button{min-height:44px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--text);font:inherit;font-size:13px;padding:8px;cursor:pointer}
.reading-palette button[aria-pressed="true"]{border-color:var(--accent);background:var(--selected);color:var(--accent-text);font-weight:600}
#moreMenu{max-height:min(70vh,560px);overflow-y:auto;overscroll-behavior:contain}
