/*
 * Jingying soft workspace
 * One calm shell, broad surfaces and color hierarchy instead of structural rules.
 * Loaded after the historical styles so this file is the single visual authority.
 */

:root {
  --jy-soft-primary: #1f23ab;
  --jy-soft-primary-strong: #171a87;
  --jy-soft-cyan: #42c8d0;
  --jy-soft-shell: #f2f4fa;
  --jy-soft-surface: #ffffff;
  --jy-soft-surface-muted: #f7f8fc;
  --jy-soft-surface-active: #eef0ff;
  --jy-soft-ink: #202333;
  --jy-soft-muted: #73798b;
  --jy-soft-faint: #a0a5b3;
  --jy-soft-danger: #ee5c63;
  --jy-soft-success: #36ad78;
  --jy-soft-radius-sm: 5px;
  --jy-soft-radius-md: 7px;
  --jy-soft-radius-lg: 8px;
  --jy-soft-shadow: 0 10px 30px rgba(35, 39, 78, 0.055);
  --jy-soft-shadow-hover: 0 14px 36px rgba(35, 39, 78, 0.09);
}

/*
 * 2026-09-02 unified workspace system
 *
 * The accepted dashboard, customer, group, calendar and Moments pages define
 * the product language: generous whitespace, quiet tinted regions, rounded
 * number bubbles, scrollable list rows and one indigo action per task.  The
 * selectors below bring every remaining workspace into that language without
 * changing its DOM hooks or operational behaviour.
 */
:is(#broadcasts, #agents, #content_overview, #topic_research, #content_assets, #knowledge, #team, #admin) {
  --workspace-lavender: #f0f1ff;
  --workspace-blue: #edf5ff;
  --workspace-mint: #edf9f4;
  --workspace-amber: #fff6e8;
  --workspace-rail: #f2f4fb;
  --workspace-shadow: 0 18px 48px rgba(31, 35, 70, 0.065);
  --workspace-radius: 18px;
}

:is(#broadcasts, #agents, #content_overview, #topic_research, #content_assets, #knowledge, #team, #admin) > .page-header {
  min-height: 120px;
  margin-bottom: 24px;
  padding: 18px 4px 26px;
}

:is(#broadcasts, #agents, #content_overview, #topic_research, #content_assets, #knowledge, #team, #admin) > .page-header .page-title {
  font-size: clamp(30px, 2.45vw, 38px);
  font-weight: 700;
}

:is(#broadcasts, #agents, #content_overview, #topic_research, #content_assets, #knowledge, #team, #admin) > .page-header .toolbar-right {
  gap: 10px;
}

:is(#broadcasts, #agents, #content_overview, #topic_research, #content_assets, #knowledge, #team, #admin) .btn {
  min-height: 40px;
  padding-inline: 16px;
  border-radius: 10px;
}

:is(#broadcasts, #agents, #content_overview, #topic_research, #content_assets, #knowledge, #team, #admin) .badge {
  padding: 7px 11px;
  border-radius: 999px;
}

/* Account assets: the status numbers use the same bubble language as groups. */
#agents .account-status-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 0;
}

#agents .account-status-metric {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  min-height: 104px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--workspace-lavender);
}

#agents .account-status-metric:nth-child(2) { background: var(--workspace-mint); }
#agents .account-status-metric:nth-child(3) { background: #fff0f1; }
#agents .account-status-metric:nth-child(4) { background: var(--workspace-amber); }

#agents .account-status-metric > .metric-icon,
#agents .account-status-metric > .metric-ring {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 35, 171, 0.09);
  color: #26329a;
}

#agents .account-status-metric:nth-child(2) > i { background: rgba(54, 173, 120, 0.12); color: #16815a; }
#agents .account-status-metric:nth-child(3) > i { background: rgba(238, 92, 99, 0.11); color: #cf4751; }
#agents .account-status-metric:nth-child(4) > i { background: rgba(225, 153, 47, 0.13); color: #9e6414; }
#agents .account-status-metric > i svg { width: 22px; height: 22px; }

#agents .account-status-metric > span {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  color: #303545;
  font-size: 14px;
  font-weight: 650;
}

#agents .account-status-metric > strong {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-top: 2px;
  font-size: 24px;
  line-height: 1;
}

#agents .account-status-metric > strong small { margin-left: 3px; font-size: 11px; font-weight: 500; }

#agents .account-list-toolbar {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--workspace-shadow);
}

#agents .account-list-toolbar .input {
  min-height: 42px;
  border-radius: 10px !important;
  background: #f1f3f8 !important;
}

#agents .account-list-table-shell {
  padding: 12px 14px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--workspace-shadow);
}

#agents .account-list-row,
#agents .account-table-row {
  margin-block: 6px;
  border: 0 !important;
  border-radius: 13px;
  background: #f6f7fb;
}

#agents .account-access-drawer,
#agents .account-capability-drawer {
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--workspace-shadow);
}

#agents .account-access-drawer > summary,
#agents .account-capability-drawer > summary {
  min-height: 50px;
  padding: 15px 18px;
  border: 0;
}

/* Broadcast: three clear tasks, expressed by surfaces rather than rules. */
#broadcasts .broadcast-workbench {
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: start;
}

#broadcasts .broadcast-compose,
#broadcasts .broadcast-preview-zone,
#broadcasts .broadcast-history-zone {
  overflow: hidden;
  border: 0;
  border-radius: var(--workspace-radius) !important;
  background: #fff;
  box-shadow: var(--workspace-shadow) !important;
}

#broadcasts .broadcast-monitor { display: grid; gap: 18px; }
#broadcasts .broadcast-section-head { padding: 24px 24px 14px; }
#broadcasts .broadcast-section-head h2 { font-size: 20px; }

#broadcasts .broadcast-step-label {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--workspace-lavender);
  color: #4a51a9;
}

#broadcasts .broadcast-form-section {
  gap: 12px;
  margin: 0 18px 12px;
  padding: 18px;
  border: 0;
  border-radius: 14px;
  background: #f7f8fc;
}

#broadcasts .broadcast-form-section + .broadcast-form-section { padding-top: 18px; }

#broadcasts .broadcast-compose input:not([type="checkbox"]):not([type="radio"]),
#broadcasts .broadcast-compose select,
#broadcasts .broadcast-compose textarea {
  padding-inline: 12px;
  border: 0 !important;
  border-radius: 10px !important;
  background: #fff !important;
}

#broadcasts .broadcast-compose-actions { padding: 12px 20px 24px; }
#broadcasts .broadcast-preview-result { padding: 10px 24px 26px; }
#broadcasts .broadcast-preview-empty { border: 0; border-radius: 14px; background: #f7f8fc; }

#broadcasts .broadcast-preview-metrics,
#broadcasts .broadcast-detail-stats { gap: 10px; }

#broadcasts .broadcast-preview-metrics > div,
#broadcasts .broadcast-detail-stats > div {
  padding: 14px;
  border-radius: 13px;
  background: var(--workspace-blue);
}

#broadcasts .broadcast-preview-metrics > div:nth-child(2),
#broadcasts .broadcast-detail-stats > div:nth-child(2) { background: var(--workspace-mint); }
#broadcasts .broadcast-preview-metrics > div:nth-child(3),
#broadcasts .broadcast-detail-stats > div:nth-child(3) { background: var(--workspace-amber); }

#broadcasts .broadcast-history-zone { margin-top: 0; }
#broadcasts .broadcast-history-layout { gap: 14px; padding: 0 18px 22px; }

#broadcasts .broadcast-campaign-row {
  margin-bottom: 7px;
  padding: 13px 14px;
  border: 0;
  border-radius: 12px;
  background: #f5f6fa;
}

/* Content overview: the journey is a set of readable colored stations. */
#content_overview .content-journey {
  gap: 10px;
  margin-bottom: 18px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

#content_overview .content-journey button,
#content_overview .content-journey button:last-child {
  min-height: 94px;
  padding: 17px 18px;
  border-radius: 16px;
  background: var(--workspace-lavender);
}

#content_overview .content-journey button:nth-child(2) { background: var(--workspace-blue); }
#content_overview .content-journey button:nth-child(3) { background: var(--workspace-mint); }
#content_overview .content-journey button:nth-child(4) { background: var(--workspace-amber); }
#content_overview .content-journey button:nth-child(5) { background: #f1f3f7; }

#content_overview .content-journey button > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #313999;
}

#content_overview .content-overview-workspace { gap: 18px; }

#content_overview .content-overview-focus,
#content_overview .content-overview-context {
  border-radius: var(--workspace-radius);
  box-shadow: var(--workspace-shadow);
}

#content_overview .content-overview-focus-row,
#content_overview .content-overview-schedule-row,
#content_overview .content-overview-assets button {
  margin-top: 7px;
  border-radius: 12px;
  background: #f7f8fb;
}

#content_overview .content-overview-context { display: grid; gap: 12px; padding: 14px; background: transparent; box-shadow: none; }
#content_overview .content-overview-context > section { padding: 22px; border-radius: var(--workspace-radius); background: #fff; box-shadow: var(--workspace-shadow); }

/* Topic library: statistics now match the rounded group overview instead of plain text. */
#topic_research .topic-library-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: -4px 0 24px;
  padding: 0;
}

#topic_research .topic-library-metrics > div {
  min-height: 84px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--workspace-lavender);
}

#topic_research .topic-library-metrics > div:nth-child(2) { background: var(--workspace-blue); }
#topic_research .topic-library-metrics > div:nth-child(3) { background: var(--workspace-mint); }
#topic_research .topic-library-metrics > div:nth-child(4) { background: var(--workspace-amber); }

#topic_research .topic-library-metrics strong {
  grid-column: 1;
  grid-row: 1 / 3;
  order: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  font-size: 20px;
}

#topic_research .topic-library-metrics span { grid-column: 2; color: #303545; font-size: 14px; font-weight: 650; }

#topic_research .topic-library-workspace { gap: 20px; }
#topic_research .topic-library-toolbar { border-radius: 16px; box-shadow: var(--workspace-shadow); }
#topic_research .topic-library-row { border-radius: 13px; background: rgba(255, 255, 255, 0.68); }
#topic_research .topic-library-row.active { box-shadow: var(--workspace-shadow); }
#topic_research .topic-library-detail-empty,
#topic_research .topic-library-primary-fields,
#topic_research .topic-library-seed-field { border-radius: var(--workspace-radius); }

/* Image assets: command strip, quiet folder rail and generous thumbnail grid. */
#content_assets .asset-command-strip {
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--workspace-shadow);
}

#content_assets .asset-search { min-height: 44px; border-radius: 11px; background: #f2f4f8; }
#content_assets .asset-workspace { gap: 18px; align-items: stretch; }

#content_assets .asset-folder-rail {
  padding: 20px 14px;
  border: 0;
  border-radius: var(--workspace-radius);
  background: var(--workspace-rail);
}

#content_assets .asset-folder-button,
#content_assets .asset-tag-button { min-height: 42px; border-radius: 11px; }

#content_assets .asset-library-main {
  min-height: 480px;
  border-radius: var(--workspace-radius) !important;
  box-shadow: var(--workspace-shadow) !important;
}

#content_assets .asset-library-image-shell { border-radius: 14px; }
#content_assets .asset-library-empty { border-radius: 14px; background: #f8f9fc; }
#content_assets .asset-upload-panel { border: 0; border-radius: var(--workspace-radius); box-shadow: var(--workspace-shadow); }

/* Knowledge: one selected rail, then summary, intake and fragments as calm surfaces. */
#knowledge .knowledge-workbench { gap: 18px; }

#knowledge .knowledge-base-rail {
  padding: 18px 14px;
  border-radius: var(--workspace-radius);
  background: var(--workspace-rail);
}

#knowledge .knowledge-base-rail-list { display: grid; gap: 8px; }

#knowledge .knowledge-base-item,
#knowledge .knowledge-base-row,
#knowledge [data-knowledge-base-id] {
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.64);
}

#knowledge .knowledge-base-detail.surface-focus { gap: 18px; }

#knowledge .kb-summary-card,
#knowledge .kb-create-card,
#knowledge .kb-list-card {
  overflow: hidden;
  border-radius: var(--workspace-radius) !important;
  box-shadow: var(--workspace-shadow) !important;
}

#knowledge .kb-summary-card { background: linear-gradient(135deg, #fff 0%, #f1f2ff 100%); }

#knowledge .kb-stats { display: flex; flex-wrap: wrap; gap: 10px; }
#knowledge .kb-stats > * { min-width: 92px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.78); }

#knowledge .knowledge-base-detail input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#knowledge .knowledge-base-detail select,
#knowledge .knowledge-base-detail textarea {
  padding-inline: 12px;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f3f5f9 !important;
}

#knowledge .knowledge-item-list { display: grid; gap: 8px; }
#knowledge .knowledge-item-row { padding: 14px 16px; border: 0 !important; border-radius: 12px; background: #f7f8fb; }

/* Team and tenant administration use the same master-list + action-panel pattern. */
:is(#team, #admin) .team-workbench,
#admin .admin-workbench { gap: 18px; align-items: start; }

:is(#team, #admin) .team-workbench > .card,
#admin .admin-workbench > .card {
  overflow: hidden;
  border-radius: var(--workspace-radius) !important;
  background: #fff;
  box-shadow: var(--workspace-shadow) !important;
}

#team .team-member-list,
#admin .admin-tenant-list { display: grid; gap: 9px; }

#team .team-member-row,
#admin .admin-tenant-row {
  padding: 16px;
  border: 0 !important;
  border-radius: 13px;
  background: #f6f7fb;
}

#team .team-member-form input:not([type="checkbox"]):not([type="radio"]),
#team .team-member-form select,
#admin .admin-tenant-form input:not([type="checkbox"]):not([type="radio"]),
#admin .admin-tenant-form select {
  padding-inline: 12px;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f2f4f8 !important;
}

#team .team-member-form .btn-primary,
#admin .admin-tenant-form .btn-primary { width: 100%; margin-top: 8px; }

/* The article editor keeps its focused step flow, but loses the ruled-sheet feel. */
#public_content.studio-view-editor { background: #f7f8fc; }

#public_content .studio-account-bar,
#public_content .editor-sheet,
#public_content .preview-sheet {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(31, 35, 70, 0.065);
}

#public_content .guided-creation-editor { gap: 14px; padding: 14px; background: #fff; }

#public_content .guided-creation-head {
  min-height: 532px;
  padding: 22px 16px;
  border: 0;
  border-radius: 14px;
  background: #f2f4fb;
}

#public_content .guided-stage.is-current,
#public_content .guided-stage.is-past.is-open {
  padding: 24px 26px 30px;
  border-radius: 14px;
  background: #fff;
}

#public_content .guided-stage-head,
#public_content .guided-stage.is-locked .guided-stage-head,
#public_content .guided-stage.is-past:not(.is-open) .guided-stage-head { padding-bottom: 0; border: 0; }

#public_content .topic-ideas-list:not(:empty),
#public_content .guided-knowledge-list { border: 0; border-radius: 13px; background: #f6f8f8; }
#public_content .guided-evidence-item { margin-bottom: 7px; padding: 12px 14px; border: 0; border-radius: 11px; background: #f6f8f8; }

/* Poster studio remains a specialist tool, but follows the same open three-zone grammar. */
#poster_studio .poster-workbench {
  gap: 16px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#poster_studio .poster-brief-panel,
#poster_studio .poster-preview-stage,
#poster_studio .poster-variant-panel {
  overflow: auto;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(31, 35, 70, 0.065);
}

#poster_studio .poster-preview-stage { background: #f0f2f7; }
#poster_studio .poster-panel-title { padding-top: 0; border: 0; }
#poster_studio .poster-panel-title:not(:first-child) { margin-top: 28px; }
#poster_studio .poster-history-head { padding-top: 0; border: 0; }
#poster_studio .poster-brand-summary,
#poster_studio .poster-variant-placeholder { border: 0; background: #f5f6fa; }

/* Messaging keeps its native four-pane model while sharing product colour and softness. */
#inbox > #inboxList,
#inbox .wechat-native-shell { border-radius: 18px; }
#inbox > #inboxList { box-shadow: 0 18px 48px rgba(31, 35, 70, 0.09); }
#inbox .wechat-account-rail { background: linear-gradient(180deg, #171a87, #2529af); }
#inbox .wechat-conversation-pane { background: #f0f2f7; }
#inbox .wechat-chat-pane,
#inbox .inbox-side-panel { background: #fff; }
#inbox .wechat-chat-pane .chat-compose { border: 0; background: #fafbfc; }

@media (max-width: 1100px) {
  #agents .account-status-board,
  #topic_research .topic-library-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  #broadcasts .broadcast-workbench { grid-template-columns: 1fr; }

  #poster_studio .poster-workbench { grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr); }
  #poster_studio .poster-variant-panel { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :is(#broadcasts, #agents, #content_overview, #topic_research, #content_assets, #knowledge, #team, #admin) > .page-header {
    min-height: 0;
    margin-bottom: 18px;
  }

  #agents .account-status-board,
  #topic_research .topic-library-metrics { grid-template-columns: 1fr; }

  #content_overview .content-journey { grid-template-columns: 1fr 1fr; }
  #knowledge .knowledge-workbench,
  #team .team-workbench,
  #admin .admin-workbench { grid-template-columns: 1fr; }

  #poster_studio .poster-workbench { grid-template-columns: 1fr; }
}

html,
body {
  background: var(--jy-soft-shell);
  color: var(--jy-soft-ink);
}

body {
  background-image: none;
}

.app-shell {
  min-height: 100vh;
  grid-template-columns: 220px minmax(0, 1fr);
  background: var(--jy-soft-shell);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 220px;
  height: 100vh;
  padding: 18px 12px 14px;
  overflow: auto;
  border: 0;
  background: linear-gradient(180deg, #2024ad 0%, #282cba 58%, #20249d 100%);
  box-shadow: 8px 0 30px rgba(31, 35, 171, 0.08);
  color: #fff;
}

.brand {
  min-height: 62px;
  padding: 7px 10px 15px;
  border: 0;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand strong {
  color: #fff;
  font-size: 15px;
  font-weight: 660;
}

.brand span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.nav-list {
  display: grid;
  gap: 3px;
  padding: 2px 0 14px;
}

.nav-section-label {
  margin: 15px 12px 5px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  font-weight: 620;
}

.nav-item {
  min-height: 39px;
  height: 39px;
  padding: 0 12px 0 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 540;
}

.nav-item::before {
  display: none;
}

.nav-item i,
.nav-item svg {
  color: rgba(255, 255, 255, 0.66);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateX(2px);
}

.nav-item.active {
  background: #fff;
  color: var(--jy-soft-primary);
  box-shadow: 0 8px 22px rgba(11, 14, 80, 0.18);
}

.nav-item.active i,
.nav-item.active svg {
  color: var(--jy-soft-primary);
}

.auth-user-panel {
  margin-top: 12px;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.auth-user-panel .eyebrow,
.auth-user-panel strong {
  color: #fff;
}

.auth-user-panel .badge {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
}

.auth-user-panel .btn {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.pwa-install-prompt {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: auto 4px 0;
  padding: 10px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  box-shadow: 0 12px 26px rgba(8, 10, 72, 0.16);
}

.pwa-install-prompt.hidden {
  display: none;
}

.pwa-install-prompt > img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #fff;
}

.pwa-install-prompt > div {
  min-width: 0;
}

.pwa-install-prompt strong,
.pwa-install-prompt span {
  display: block;
}

.pwa-install-prompt strong {
  font-size: 11px;
  font-weight: 660;
  line-height: 1.35;
}

.pwa-install-prompt span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
  line-height: 1.45;
}

.pwa-install-button {
  min-height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--jy-soft-primary);
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
}

.pwa-dismiss-button {
  position: absolute;
  top: -7px;
  right: -6px;
  display: grid;
  width: 18px;
  height: 18px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: #2529a9;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

@media (display-mode: standalone) {
  body {
    -webkit-user-select: none;
    user-select: none;
  }

  input,
  textarea,
  [contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
  }

  .pwa-install-prompt[data-mode="notification"] {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2000;
    width: min(320px, calc(100vw - 44px));
    margin: 0;
    padding: 14px 13px;
    border: 1px solid #e1e3eb;
    background: #fff;
    color: var(--jy-soft-ink);
    box-shadow: 0 18px 46px rgba(31, 35, 70, 0.18);
  }

  .pwa-install-prompt[data-mode="notification"] span {
    color: var(--jy-soft-muted);
  }

  .pwa-install-prompt[data-mode="notification"] .pwa-install-button {
    background: var(--jy-soft-primary);
    color: #fff;
  }

  .pwa-install-prompt[data-mode="notification"] .pwa-dismiss-button {
    border-color: #d8dbe5;
    background: #fff;
    color: #7d8292;
  }
}

.auth-brand-logo,
.auth-checking-logo {
  display: block;
  object-fit: contain;
}

.auth-brand-logo {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
}

.auth-checking-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
}

.main,
.main.main-compact {
  min-width: 0;
  padding: 24px 28px 52px;
  background: var(--jy-soft-shell);
}

.site-footer {
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(37, 40, 66, 0.06);
  background: rgba(255, 255, 255, 0.42);
  color: #a0a5b1;
  font-size: 11px;
  line-height: 24px;
  text-align: center;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--jy-soft-primary);
}

.view {
  width: min(100%, 1540px);
  margin-inline: auto;
  color: var(--jy-soft-ink);
}

.view > .page-header,
.view:not(#contacts) .page-header,
#contacts.view > .page-header {
  min-height: 88px;
  margin: 0;
  padding: 14px 4px 22px;
  border: 0;
  background: transparent;
}

.view .page-title,
#contacts .page-title,
#groups .page-header .page-title {
  color: var(--jy-soft-ink);
  font-size: 25px;
  font-weight: 650;
}

.view .page-subtitle {
  color: var(--jy-soft-muted);
}

.view .eyebrow {
  color: var(--jy-soft-primary);
}

.btn,
.view .btn {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
}

.btn-primary,
.view .btn-primary {
  background: var(--jy-soft-primary);
  color: #fff;
}

.btn-primary:hover,
.view .btn-primary:hover {
  background: var(--jy-soft-primary-strong);
  box-shadow: 0 8px 18px rgba(31, 35, 171, 0.2);
}

.btn-secondary,
.btn-plain,
.view .btn-secondary,
.view .btn-plain {
  background: var(--jy-soft-surface-muted);
  color: #4c5264;
}

.input,
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border: 0 !important;
  border-radius: 7px !important;
  background: #f0f2f7 !important;
  box-shadow: none !important;
}

.input:hover,
input:not([type="checkbox"]):not([type="radio"]):hover,
select:hover,
textarea:hover {
  background: #eceef5 !important;
}

.input:focus,
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(31, 35, 171, 0.12) !important;
}

.card,
.panel,
.surface-focus,
.surface-secondary,
.moments-panel,
.content-panel,
.agent-section {
  border: 0;
  border-radius: var(--jy-soft-radius-lg);
  background: var(--jy-soft-surface);
  box-shadow: var(--jy-soft-shadow);
}

.card-header,
.panel-head,
.section-head {
  border: 0;
}

.badge,
.tag,
.chip {
  border: 0;
  box-shadow: none;
}

.table-container,
.view table {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.view table {
  border-collapse: separate !important;
  border-spacing: 0 7px !important;
}

.view table th {
  border: 0 !important;
  background: transparent !important;
  color: var(--jy-soft-muted) !important;
}

.view table td {
  border: 0 !important;
  background: var(--jy-soft-surface-muted);
}

.view table tbody tr td:first-child {
  border-radius: 7px 0 0 7px;
}

.view table tbody tr td:last-child {
  border-radius: 0 7px 7px 0;
}

.view table tbody tr:hover td {
  background: var(--jy-soft-surface-active);
}

/* Dashboard: a strong visual anchor followed by broad, soft work surfaces. */
#dashboard {
  max-width: 1540px;
  padding-bottom: 54px;
  background: transparent;
}

#dashboard > .dashboard-hero {
  min-height: 176px;
  margin: 0 0 20px;
  padding: 34px 40px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 42%, rgba(87, 226, 218, 0.2), transparent 24%),
    linear-gradient(118deg, #171a86 0%, #1f23ab 55%, #3f5de1 100%);
  box-shadow: 0 18px 42px rgba(31, 35, 171, 0.16);
}

#dashboard > .dashboard-hero::after {
  position: absolute;
  top: 50%;
  right: 7%;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 26px rgba(255, 255, 255, 0.045),
    0 0 0 54px rgba(255, 255, 255, 0.025);
  content: "";
  transform: translateY(-50%);
}

#dashboard > .dashboard-hero .page-header-group {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

#dashboard #dashboardDate,
#dashboard > .dashboard-hero .eyebrow {
  color: #8ef1e4;
}

#dashboard > .dashboard-hero .page-title {
  color: #fff;
  font-size: 30px;
  font-weight: 650;
}

#dashboard #dashboardSmartSummary,
#dashboard #dashboardSmartSummary strong,
#dashboard #dashboardSmartSummary .summary-ok,
#dashboard #dashboardSmartSummary .summary-danger {
  color: rgba(255, 255, 255, 0.78);
}

#dashboard #dashboardSmartSummary strong {
  color: #fff;
}

#dashboard .dashboard-overview-stage {
  gap: 48px;
  margin: 0 0 20px;
  padding: 30px 34px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--jy-soft-shadow);
}

#dashboard .dashboard-stage-label {
  color: var(--jy-soft-muted);
}

#dashboard .dashboard-kpi-stage {
  gap: 18px;
  border: 0;
}

#dashboard .dashboard-primary-kpi,
#dashboard .dashboard-mini-kpi {
  border: 0;
  border-radius: 7px;
  background: var(--jy-soft-surface-muted);
}

#dashboard .dashboard-primary-kpi {
  padding: 18px 20px;
  background: linear-gradient(145deg, #eef0ff, #f7f8ff);
}

#dashboard .dashboard-primary-kpi:hover,
#dashboard .dashboard-mini-kpi:hover {
  background: var(--jy-soft-surface-active);
  box-shadow: var(--jy-soft-shadow-hover);
}

#dashboard .dashboard-primary-kpi strong,
#dashboard .dashboard-mini-kpi strong,
#dashboard .dashboard-asset-grid .stat-value {
  color: var(--jy-soft-ink);
}

#dashboard .dashboard-primary-kpi strong {
  color: var(--jy-soft-primary);
}

#dashboard .dashboard-asset-overview,
#dashboard .dashboard-asset-grid,
#dashboard .dashboard-asset-grid .stat-card,
#dashboard .dashboard-asset-grid .stat-card + .stat-card,
#dashboard #accountFriendStats,
#dashboard .dashboard-account-strip {
  border: 0;
  background: transparent;
}

#dashboard .dashboard-visual-stage {
  gap: 28px;
  margin: 0 0 20px;
  padding: 30px 34px 34px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--jy-soft-shadow);
}

#dashboard .dashboard-chart-panel,
#dashboard .dashboard-chart-wide,
#dashboard .dashboard-chart-panel:last-child {
  border: 0;
  background: transparent;
}

#dashboard .dashboard-insight-rail {
  gap: 18px;
}

#dashboard .dashboard-insight-rail .dashboard-chart-panel {
  padding: 18px 20px;
  border-radius: 7px;
  background: var(--jy-soft-surface-muted);
}

#dashboard .dashboard-chart-empty {
  border: 0;
  border-radius: 7px;
  background: var(--jy-soft-surface-muted);
}

#dashboard .dashboard-todo-section {
  max-width: none;
  margin: 0;
  padding: 26px 34px 30px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--jy-soft-shadow);
}

#dashboard .dashboard-section-head,
#dashboard .dashboard-task-row,
#dashboard .dashboard-task-empty,
#dashboard .dashboard-task-more {
  border: 0;
}

#dashboard .dashboard-task-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#dashboard .dashboard-task-row {
  min-height: 60px;
  padding: 12px 15px;
  border-radius: 7px;
  background: var(--jy-soft-surface-muted);
}

#dashboard .dashboard-task-row:hover {
  background: var(--jy-soft-surface-active);
}

/* Customer assets: one broad surface, soft rows and no table rules. */
#contacts.view,
#groups.view {
  background: transparent;
}

#contacts .contact-assets-hero {
  gap: 24px;
  padding: 24px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--jy-soft-shadow);
}

#contacts .contact-assets-statline,
#contacts .contact-assets-statline article,
#contacts .contact-assets-viz,
#contacts .contact-viz-panel,
#contacts .contact-filter-strip,
#contacts .asset-map-filter,
#contacts .contact-viz-empty {
  border: 0;
}

#contacts .contact-assets-statline {
  gap: 12px;
}

#contacts .contact-assets-statline article,
#contacts .asset-map-filter,
#contacts .contact-viz-panel {
  border-radius: 7px;
  background: var(--jy-soft-surface-muted);
}

#contacts .contacts-workbench {
  margin-top: 18px;
  padding: 18px 24px 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--jy-soft-shadow);
}

#contacts .contact-list-main,
#contacts .contact-list-main > .card-header,
#contacts #contactPagination {
  border: 0;
  background: transparent;
  box-shadow: none;
}

#contacts #contactTable th,
#contacts #contactTable td {
  border: 0;
}

#contacts #contactTable td {
  background: var(--jy-soft-surface-muted);
}

#contacts #contactTable tbody tr:hover td {
  background: var(--jy-soft-surface-active);
}

/* Group assets: separate rail and detail by tone, not a drawn divider. */
#groups .page-header {
  border: 0;
}

#groups .groups-workbench {
  gap: 14px;
  padding: 14px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--jy-soft-shadow);
}

#groups .group-assets-overview,
#groups .group-assets-viz,
#groups .group-workspace-toolbar,
#groups .group-list-rail,
#groups .group-detail-panel,
#groups .group-rail-head,
#groups .group-list-item,
#groups .group-detail-title,
#groups .group-detail-stats,
#groups .group-section-head,
#groups .group-member-row,
#groups .group-viz-empty {
  border: 0;
  box-shadow: none;
}

#groups .group-assets-overview,
#groups .group-assets-viz {
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--jy-soft-shadow);
}

#groups .group-assets-overview {
  gap: 8px;
  padding: 8px;
}

#groups .group-assets-overview article {
  border: 0;
  border-radius: 7px;
  background: var(--jy-soft-surface-muted);
}

#groups .group-list-rail {
  border-radius: 7px;
  background: var(--jy-soft-surface-muted);
}

#groups .group-detail-panel {
  border-radius: 7px;
  background: #fff;
}

#groups .group-list-item,
#groups .group-member-row {
  margin: 4px 7px;
  border-radius: 6px;
}

#groups .group-list-item.active {
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 35, 171, 0.08);
}

/* Topic library: two soft panes with whitespace between them. */
.topic-library-header,
.topic-library-metrics,
.topic-library-metrics > div,
.topic-library-workspace,
.topic-library-index,
.topic-library-toolbar,
.topic-library-list-head,
.topic-library-row {
  border: 0;
}

.topic-library-metrics {
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--jy-soft-shadow);
}

.topic-library-metrics > div {
  border-radius: 7px;
  background: var(--jy-soft-surface-muted);
}

.topic-library-workspace {
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--jy-soft-shadow);
}

.topic-library-index {
  border-radius: 7px;
  background: var(--jy-soft-surface-muted);
}

.topic-library-detail {
  border-radius: 7px;
  background: #fff;
}

.topic-library-row {
  width: calc(100% - 14px);
  margin: 4px 7px;
  border-radius: 6px;
}

.topic-library-row.active {
  border: 0;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 35, 171, 0.08);
}

/* Account list and remaining operational pages inherit the same broad surfaces. */
#agents .account-status-board,
#agents .account-list-toolbar,
#agents .account-list-table-shell,
#agents .account-access-drawer,
#agents .account-capability-drawer,
#agents .dev-zone,
.team-workbench > *,
.knowledge-workbench > *,
.moments-grid > *,
.content-assets-workbench,
.content-calendar-workspace,
.broadcast-workbench {
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--jy-soft-shadow);
}

#agents .account-status-board {
  gap: 10px;
  padding: 10px;
}

#agents .account-status-metric {
  border: 0;
  border-radius: 7px;
  background: var(--jy-soft-surface-muted);
}

#agents .account-list-toolbar,
#agents .account-list-table-shell,
#agents .account-access-drawer,
#agents .account-capability-drawer,
#agents .dev-zone {
  margin-top: 14px;
}

/* Messaging keeps three functional regions but removes the drawn seams. */
#inbox .inbox-shell,
#inbox .inbox-layout,
#inbox .inbox-workbench {
  gap: 12px;
  border: 0;
  background: transparent;
}

#inbox .inbox-list,
#inbox .chat-panel,
#inbox .inbox-side-panel {
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--jy-soft-shadow);
}

#inbox .inbox-list {
  background: var(--jy-soft-surface-muted);
}

#inbox .inbox-item,
#inbox .chat-header,
#inbox .chat-compose,
#inbox .panel-head,
#inbox .reply-variant-row {
  border: 0;
}

#inbox .inbox-item {
  margin: 4px 7px;
  border-radius: 6px;
  background: transparent;
}

#inbox .inbox-item.active {
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 35, 171, 0.08);
}

/* Final composition pass: broad work surfaces, quiet data bands, no ruled-sheet UI. */
#dashboard.view > .page-header.dashboard-hero {
  position: relative;
  min-height: 176px;
  margin: 0 0 18px;
  padding: 34px 40px;
  border: 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 42%, rgba(87, 226, 218, 0.2), transparent 24%),
    linear-gradient(118deg, #171a86 0%, #1f23ab 55%, #3f5de1 100%);
  box-shadow: 0 18px 42px rgba(31, 35, 171, 0.16);
}

#dashboard .dashboard-overview-stage,
#dashboard .dashboard-visual-stage,
#dashboard .dashboard-todo-section,
#contacts .contact-assets-hero,
#contacts .contacts-workbench,
#groups .group-assets-overview,
#groups .group-assets-viz,
#groups .groups-workbench,
.topic-library-metrics,
.topic-library-workspace,
#agents .account-status-board,
#agents .account-list-toolbar,
#agents .account-list-table-shell,
#inbox .inbox-list,
#inbox .chat-panel,
#inbox .inbox-side-panel,
.team-workbench > *,
.knowledge-workbench > *,
.moments-grid > *,
.content-assets-workbench,
.content-calendar-workspace,
.broadcast-workbench {
  border-radius: 8px;
}

/* The four primary metrics read as one data band, not four little cards. */
#dashboard .dashboard-kpi-stage {
  grid-template-columns: minmax(150px, 1.05fr) minmax(0, 2.3fr);
  column-gap: 0;
  row-gap: 12px;
}

#dashboard .dashboard-stage-label {
  grid-column: 1 / -1;
}

#dashboard .dashboard-primary-kpi,
#dashboard .dashboard-mini-kpi {
  min-height: 132px;
  padding: 18px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#dashboard .dashboard-primary-kpi {
  border-radius: 7px 0 0 7px;
  background: #eef0ff;
}

#dashboard .dashboard-secondary-kpis {
  gap: 0;
  border-radius: 0 7px 7px 0;
  overflow: hidden;
  background: var(--jy-soft-surface-muted);
}

#dashboard .dashboard-primary-kpi:hover,
#dashboard .dashboard-mini-kpi:hover {
  background: var(--jy-soft-surface-active);
  box-shadow: none;
  transform: translateY(-2px);
}

#dashboard .dashboard-insight-rail .dashboard-chart-panel,
#dashboard .dashboard-chart-empty,
#dashboard .dashboard-task-row {
  border-radius: 7px;
}

/* Customer overview is one surface; metrics and charts use whitespace, not nested tiles. */
#contacts .contact-assets-statline article,
#contacts .contact-viz-panel,
#contacts .asset-map-filter {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#contacts .contact-assets-statline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--jy-soft-surface-muted);
}

#contacts .contact-assets-statline article {
  min-height: 112px;
  padding: 20px;
}

#contacts .contact-assets-viz {
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding-inline: 12px;
}

#contacts .contact-viz-panel {
  padding: 20px 10px 8px;
}

#contacts .contact-filter-strip {
  margin: 14px 0 0;
  padding: 0;
  background: transparent;
}

#contacts .asset-map-filter {
  padding: 9px 14px;
  border-radius: 6px;
  background: #fff;
}

/* Group statistics now sit below the page title as a stable overview band. */
#groups .group-asset-stats {
  width: 100%;
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 14px;
}

#groups .group-assets-overview,
#groups .group-assets-viz {
  min-width: 0;
  border: 0;
  border-radius: 8px;
}

#groups .group-assets-overview {
  gap: 0;
  padding: 8px 10px;
}

#groups .group-assets-overview article {
  min-height: 118px;
  padding: 20px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#groups .group-assets-viz {
  padding: 20px;
}

#groups .group-workspace-toolbar {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--jy-soft-shadow);
}

#groups .group-list-rail,
#groups .group-detail-panel,
#groups .group-list-item,
#groups .group-member-row {
  border-radius: 7px;
}

/* Content overview: remove the spreadsheet grid and separate purpose by space and tone. */
.content-overview-view {
  background: transparent;
}

.content-overview-header {
  border: 0;
}

.content-journey {
  gap: 4px;
  margin-bottom: 16px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--jy-soft-shadow);
}

.content-journey button,
.content-journey button:last-child {
  min-height: 76px;
  padding: 14px 16px;
  border: 0;
  border-radius: 6px;
}

.content-journey button:hover {
  background: var(--jy-soft-surface-active);
}

.content-overview-workspace {
  min-height: calc(100vh - 280px);
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.72fr);
  gap: 16px;
}

.content-overview-focus,
.content-overview-context {
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--jy-soft-shadow);
}

.content-overview-focus {
  padding: 28px 26px 34px;
}

.content-overview-context {
  padding: 8px 20px;
}

.content-overview-context > section {
  padding: 22px 0;
  border: 0;
}

.content-overview-focus-list,
.content-overview-schedule,
.content-overview-assets {
  display: grid;
  gap: 4px;
  border: 0;
}

.content-overview-focus-row,
.content-overview-schedule-row,
.content-overview-assets button {
  border: 0;
  border-radius: 6px;
}

.content-overview-focus-row {
  min-height: 68px;
  padding: 11px 12px;
}

.content-overview-schedule-row,
.content-overview-assets button {
  padding-inline: 10px;
}

.content-overview-focus-row:hover,
.content-overview-schedule-row:hover,
.content-overview-assets button:hover {
  background: var(--jy-soft-surface-muted);
}

/* Infinite canvas: preserve useful node boundaries, remove shell and column rules. */
#public_content .studio-account-bar,
#public_content .editor-topbar,
#public_content .content-canvas-app,
#public_content .content-canvas-toolbar,
#public_content .content-canvas-library,
#public_content .content-canvas-inspector,
#public_content .content-canvas-library-head,
#public_content .content-canvas-library-tabs,
#public_content .content-canvas-library-actions,
#public_content .content-canvas-search,
#public_content .content-canvas-zone,
#public_content .content-ops-signal,
#public_content .content-ops-strategy-list,
#public_content .content-ops-strategy-row,
#public_content .content-ops-calendar-section,
#public_content .content-ops-calendar,
#public_content .content-ops-calendar-row,
#public_content .content-ops-metrics,
#public_content .content-ops-metric,
#public_content .content-ops-row,
#public_content .content-canvas-library-item {
  border: 0;
}

#public_content .studio-account-bar,
#public_content .editor-topbar,
#public_content .content-canvas-toolbar {
  border-radius: 8px;
  background: #fff;
}

#public_content .content-canvas-app {
  gap: 12px;
  box-sizing: border-box;
  max-width: 100%;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--jy-soft-shadow);
}

#public_content .content-canvas-library,
#public_content .content-canvas-inspector {
  border-radius: 7px;
  background: var(--jy-soft-surface-muted);
}

#public_content .content-canvas-stage {
  border-radius: 7px;
  overflow: hidden;
}

#public_content {
  overflow-x: hidden;
}

#broadcasts .broadcast-workbench,
#broadcasts .broadcast-monitor,
#broadcasts .broadcast-history-zone,
#broadcasts .broadcast-history-layout,
#broadcasts .broadcast-campaign-detail {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

#broadcasts .broadcast-workbench,
#broadcasts .broadcast-monitor,
#broadcasts .broadcast-history-zone {
  overflow-x: hidden;
}

#public_content .content-canvas-zone {
  background: transparent;
}

#public_content .content-canvas-node {
  border: 0;
  border-radius: 7px;
  box-shadow: 0 7px 20px rgba(35, 39, 78, 0.09);
}

#public_content .content-canvas-library-item,
#public_content .content-ops-row,
#public_content .content-ops-calendar-row,
#public_content .content-ops-strategy-row {
  border-radius: 5px;
}

#public_content .content-canvas-library-item:hover,
#public_content .content-ops-row:hover,
#public_content .content-ops-calendar-row:hover,
#public_content .content-ops-strategy-row:hover {
  background: var(--jy-soft-surface-active);
}

/* Keep the whole product within the same restrained corner system. */
.card,
.panel,
.surface-focus,
.surface-secondary,
.empty-state,
.modal-content,
.drawer,
.toast,
.login-card,
.scan-login-shell,
.group-integration-panel,
.content-ops-panel,
.content-ops-signal,
.content-canvas-status {
  border-radius: 8px !important;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 188px minmax(0, 1fr);
  }

  .sidebar {
    width: 188px;
  }

  #dashboard .dashboard-overview-stage,
  #dashboard .dashboard-visual-stage {
    grid-template-columns: 1fr;
  }

  #groups .group-asset-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .site-footer {
    padding: 16px 16px 20px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    height: auto;
    padding: 7px 10px 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    box-shadow: 0 8px 24px rgba(31, 35, 171, 0.16);
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-height: 42px;
    padding: 2px 4px 6px;
  }

  .brand-mark,
  .brand-mark img {
    width: 30px;
    height: 30px;
  }

  .brand span {
    display: none;
  }

  .nav-list {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    gap: 5px;
    padding: 3px 0 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-section-label {
    display: none;
  }

  .nav-list .admin-nav-group:not(.hidden) {
    display: contents;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 34px;
    height: 34px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .nav-item:hover {
    transform: none;
  }

  #authUserPanel:not(.hidden) {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 0;
    display: block;
    background: transparent;
  }

  #authUserPanel > div {
    display: none;
  }

  #logoutButton {
    min-height: 32px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.12);
  }

  .main,
  .main.main-compact {
    padding: 12px 10px 36px;
  }

  #dashboard > .dashboard-hero {
    min-height: 158px;
    padding: 28px 24px;
  }

  #dashboard > .dashboard-hero::after {
    right: -36px;
  }

  #dashboard .dashboard-overview-stage,
  #dashboard .dashboard-visual-stage,
  #dashboard .dashboard-todo-section {
    padding: 22px 18px;
  }

  #dashboard .dashboard-secondary-kpis,
  #dashboard .dashboard-asset-grid,
  #dashboard .dashboard-task-list {
    grid-template-columns: 1fr;
  }

  #contacts .contact-assets-hero,
  #contacts .contact-assets-statline,
  #contacts .contact-assets-viz {
    grid-template-columns: 1fr;
  }

  #dashboard .dashboard-kpi-stage,
  #dashboard .dashboard-secondary-kpis,
  .content-overview-workspace {
    grid-template-columns: 1fr;
  }

  #dashboard .dashboard-primary-kpi,
  #dashboard .dashboard-secondary-kpis {
    border-radius: 7px;
  }
}

/* 公众号创作：编辑器优先。参考 iA Writer 的专注模式与 Ghost 的内容优先编辑面。 */
#public_content.studio-view-editor {
  background: #fbfbfa;
}

#public_content .studio-account-bar {
  max-width: 1120px;
  margin: 24px auto 0;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid #e8e8e3;
  border-radius: 0;
  background: transparent;
}

#public_content .studio-account-bar .eyebrow {
  color: #8a8a82;
  letter-spacing: 0;
  text-transform: none;
}

#public_content .studio-account-chip {
  min-width: auto;
  padding: 6px 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #77776f;
}

#public_content .studio-account-chip + .studio-account-chip {
  margin-left: 18px;
}

#public_content .studio-account-chip.active {
  border-color: #1f23ab;
  background: transparent;
  box-shadow: none;
  color: #1f23ab;
}

#public_content .studio-account-chip .chip-meta,
#public_content .studio-account-chip .chip-persona {
  display: none;
}

#public_content .content-canvas-legacy-bridge {
  width: min(900px, calc(100% - 48px));
  max-width: 1120px;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin: 0 auto 64px;
}

#public_content.has-public-draft .content-canvas-legacy-bridge {
  width: min(1120px, calc(100% - 48px));
  grid-template-columns: minmax(480px, 0.94fr) minmax(500px, 1.06fr);
}

#public_content .editor-sheet,
#public_content .preview-sheet {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#public_content .guided-creation-editor {
  overflow: visible;
}

#public_content .guided-creation-head {
  display: grid;
  gap: 22px;
  padding: 48px 0 28px;
  border: 0;
}

#public_content .guided-creation-head h1 {
  margin: 5px 0 0;
  color: #1d1d1b;
  font-family: ui-serif, "Songti SC", "STSong", serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 650;
  letter-spacing: -0.04em;
}

#public_content .guided-flow-progress {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
}

#public_content .guided-flow-progress span {
  color: #a1a19a;
  font-size: 12px;
  transition: color .16s ease;
}

#public_content .guided-flow-progress span.is-done {
  color: #64645e;
}

#public_content .guided-flow-progress span.is-current {
  color: #1f23ab;
  font-weight: 650;
}

#public_content .guided-flow-progress i {
  color: #ccccC5;
  font-size: 11px;
  font-style: normal;
}

#public_content .guided-stage {
  display: block;
  padding: 30px 0 34px;
  border-bottom: 1px solid #e8e8e3;
  background: transparent;
}

#public_content .guided-stage:first-of-type {
  border-top: 1px solid #e8e8e3;
}

#public_content .guided-stage-index {
  display: none;
}

#public_content .guided-stage-head {
  align-items: baseline;
  margin-bottom: 24px;
}

#public_content .guided-stage-head h2 {
  margin: 0 0 5px;
  color: #20201e;
  font-family: ui-serif, "Songti SC", "STSong", serif;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

#public_content .guided-stage-head p {
  color: #8b8b84;
  font-size: 13px;
}

#public_content .guided-stage-status {
  padding: 0;
  background: transparent !important;
  color: #a1a19a !important;
  font-size: 11px;
}

#public_content .guided-stage.is-current .guided-stage-status {
  color: #1f23ab !important;
}

#public_content .guided-stage.is-locked,
#public_content .guided-stage.is-past:not(.is-open) {
  padding-block: 18px;
  opacity: 1;
}

#public_content .guided-stage.is-locked .guided-stage-head,
#public_content .guided-stage.is-past:not(.is-open) .guided-stage-head {
  margin: 0;
}

#public_content .guided-stage.is-locked .guided-stage-head p,
#public_content .guided-stage.is-past:not(.is-open) .guided-stage-head p,
#public_content .guided-stage.is-locked .guided-stage-body > :not(.guided-stage-head),
#public_content .guided-stage.is-past:not(.is-open) .guided-stage-body > :not(.guided-stage-head) {
  display: none;
}

#public_content .guided-stage.is-locked .guided-stage-head h2 {
  color: #aaa9a2;
  font-size: 16px;
  font-family: inherit;
  font-weight: 520;
}

#public_content .guided-stage.is-past:not(.is-open) .guided-stage-head {
  cursor: pointer;
}

#public_content .guided-stage.is-past:not(.is-open) .guided-stage-head h2 {
  color: #66665f;
  font-family: inherit;
  font-size: 16px;
  font-weight: 560;
}

#public_content .guided-stage.is-past:not(.is-open) .guided-stage-status {
  color: #16835c !important;
}

#public_content .editor-topic-row .form-label {
  display: none;
}

#public_content #publicArticleTopic {
  width: 100%;
  height: auto;
  padding: 10px 0 14px;
  border: 0;
  border-bottom: 1px solid #bdbdb5;
  border-radius: 0;
  background: transparent;
  color: #1d1d1b;
  font-family: ui-serif, "Songti SC", "STSong", serif;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.35;
  box-shadow: none;
}

#public_content #publicArticleTopic::placeholder {
  color: #c6c6bf;
}

#public_content #publicArticleTopic:focus {
  border-color: #1f23ab;
  outline: 0;
  box-shadow: none;
}

#public_content .guided-stage-actions {
  margin-top: 22px;
}

#public_content .guided-stage-actions .btn,
#public_content #runPublicAiCheckButton {
  min-height: 38px;
  padding-inline: 16px;
  border: 1px solid #1f23ab;
  border-radius: 5px;
  background: #1f23ab;
  color: #fff;
  box-shadow: none;
}

#public_content .guided-save-mix,
#public_content .guided-advanced-settings {
  display: none;
}

#public_content .guided-knowledge-list,
#public_content .topic-ideas-list:not(:empty) {
  margin-top: 0;
  border: 0;
  border-top: 1px solid #e8e8e3;
  border-radius: 0;
}

#public_content .knowledge-combo-item {
  min-height: 52px;
  border-bottom: 1px solid #eeeeea;
  background: transparent;
}

#public_content .knowledge-combo-item:hover,
#public_content .knowledge-combo-item:focus-within {
  background: transparent;
}

#public_content .guided-evidence-list {
  margin-top: 18px;
}

#public_content .guided-evidence-item {
  padding: 9px 0 9px 14px;
  border-left: 1px solid #b8b8df;
  background: transparent;
}

#public_content .guided-evidence-empty {
  padding: 10px 0;
  border-radius: 0;
  background: transparent;
}

#public_content .guided-evidence-empty.is-blocked {
  color: #a05c27;
  background: transparent;
}

#public_content #publicVoiceAccountSelect {
  max-width: 360px;
  border-color: #d7d7d1;
  border-radius: 5px;
  background: #fff;
}

#public_content .guided-account-summary,
#public_content .guided-data-direction {
  margin-top: 20px;
  padding: 16px 0;
  border: 0;
  border-top: 1px solid #e8e8e3;
  border-radius: 0;
}

#public_content .guided-guardrails {
  display: block;
  margin: 0;
  padding: 15px 0 0;
  border-top: 1px solid #e8e8e3;
  color: #676760;
  font-size: 12px;
  line-height: 1.7;
}

#public_content .content-ops-workflow {
  border-color: #e8e8e3;
}

#public_content .workflow-step {
  grid-template-columns: minmax(0, 1fr);
  border-color: #eeeeea;
}

#public_content .workflow-step-indicator {
  display: none;
}

#public_content .workflow-step-body {
  padding: 12px 0;
}

#public_content .studio-outline-editor,
#public_content .studio-draft-editor {
  border: 1px solid #deded8;
  border-radius: 5px;
  background: #fff;
  line-height: 1.75;
  box-shadow: none;
}

#public_content .editor-actions {
  justify-content: flex-start;
  border-top: 0;
}

#public_content .studio-col-preview {
  display: none;
}

#public_content.has-public-draft .studio-col-preview {
  display: block;
}

#public_content .studio-col-preview .preview-sheet {
  top: 24px;
}

#public_content .guided-final-check {
  display: block;
  padding: 48px 0 22px;
  border-bottom: 1px solid #e8e8e3;
  background: transparent;
}

#public_content .guided-final-check .guided-stage-head {
  margin-bottom: 16px;
}

#public_content .guided-ai-check-summary p {
  padding: 8px 0;
  border-radius: 0;
  background: transparent;
}

#public_content .guided-ai-check-summary .is-blocked,
#public_content .guided-ai-check-summary .is-passed {
  background: transparent;
}

#public_content .preview-toolbar {
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e8e8e3;
}

#public_content .preview-toolbar .btn {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #676760;
  box-shadow: none;
}

#public_content .preview-tabs {
  border-bottom: 1px solid #e8e8e3;
}

#public_content .studio-preview-stage {
  max-height: calc(100vh - 260px);
  padding: 28px 0;
}

#public_content .wechat-article-preview {
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

@media (max-width: 1180px) {
  #public_content.has-public-draft .content-canvas-legacy-bridge {
    grid-template-columns: 1fr;
    width: min(900px, calc(100% - 48px));
  }

  #public_content .studio-col-preview .preview-sheet {
    position: static;
  }
}

@media (max-width: 760px) {
  #public_content .studio-account-bar,
  #public_content .content-canvas-legacy-bridge,
  #public_content.has-public-draft .content-canvas-legacy-bridge {
    width: calc(100% - 28px);
    margin-inline: auto;
  }

  #public_content .guided-creation-head {
    padding-top: 32px;
  }

  #public_content .guided-stage,
  #public_content .guided-final-check {
    padding-inline: 0;
  }
}



@media (prefers-reduced-motion: reduce) {
  .nav-item,
  .card,
  .btn,
  #dashboard .dashboard-primary-kpi,
  #dashboard .dashboard-mini-kpi {
    transition: none;
  }
}

/* 2026-08-31: editorial subpages. Keep the dashboard character, remove nested SaaS cards elsewhere. */
.main,
.main.main-compact {
  background: #f8f9fc;
}

.view:not(#dashboard) {
  color: #242736;
}

.view:not(#dashboard) > .page-header {
  min-height: 112px;
  margin: 0 0 28px;
  padding: 16px 4px 24px;
  border: 0;
  background: transparent;
}

.view:not(#dashboard) > .page-header .page-title {
  margin-top: 5px;
  font-size: clamp(28px, 2.2vw, 34px);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.view:not(#dashboard) > .page-header .page-subtitle {
  max-width: 760px;
  margin-top: 9px;
  color: #777d8c;
  font-size: 13px;
  line-height: 1.75;
}

.view:not(#dashboard) .card,
.view:not(#dashboard) .panel,
.view:not(#dashboard) .surface-focus,
.view:not(#dashboard) .surface-secondary,
.view:not(#dashboard) .account-list-table-shell,
.view:not(#dashboard) .content-calendar-commandbar,
.view:not(#dashboard) .content-calendar-legend,
.view:not(#dashboard) .content-calendar-workspace,
.view:not(#dashboard) .content-assets-workbench,
.view:not(#dashboard) .broadcast-workbench,
.view:not(#dashboard) .broadcast-monitor,
.view:not(#dashboard) .broadcast-history-zone,
.view:not(#dashboard) .conversion-analytics-panel {
  border: 0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

.view:not(#dashboard) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.view:not(#dashboard) select,
.view:not(#dashboard) textarea {
  border-color: transparent;
  background: #f5f6f9;
  box-shadow: none;
}

.view:not(#dashboard) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.view:not(#dashboard) select:focus,
.view:not(#dashboard) textarea:focus {
  border-color: transparent;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(31, 35, 171, 0.12);
}

/* Topic library: compact index + naturally sized editorial sections. */
.topic-library-header,
.topic-library-metrics,
.topic-library-workspace,
.topic-library-index,
.topic-library-detail,
.topic-library-toolbar,
.topic-library-list-head,
.topic-library-form-head,
.topic-library-form-actions,
.topic-library-row {
  border: 0;
  box-shadow: none;
}

.topic-library-metrics {
  display: flex;
  gap: 34px;
  margin: -8px 0 28px;
  padding: 0 4px;
  border-radius: 0;
  background: transparent;
}

.topic-library-metrics > div {
  display: flex;
  min-height: 0;
  padding: 0;
  gap: 8px;
  align-items: baseline;
  border-radius: 0;
  background: transparent;
}

.topic-library-metrics span {
  color: #8b909d;
}

.topic-library-metrics strong {
  order: -1;
  font-size: 18px;
  font-weight: 620;
}

.topic-library-workspace {
  align-items: start;
  grid-template-columns: minmax(340px, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(28px, 2.5vw, 44px);
  height: auto;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.topic-library-index {
  display: block;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.topic-library-toolbar {
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(31, 35, 70, 0.055);
}

.topic-library-search,
.topic-library-toolbar .input {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: #f4f5f9 !important;
  box-shadow: none;
}

.topic-library-list-head {
  min-height: 36px;
  margin-top: 20px;
  padding: 0 6px 8px;
}

.topic-library-list {
  flex: none;
  max-height: 540px;
  overflow: auto;
}

.topic-library-row {
  width: 100%;
  margin: 2px 0 8px;
  padding: 16px 14px;
  border-radius: 11px;
}

.topic-library-row:hover,
.topic-library-row.active {
  padding-left: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(31, 35, 70, 0.05);
}

.topic-library-row.active {
  background: #fff;
}

.topic-library-row > strong {
  font-size: 15px;
  line-height: 1.55;
}

.topic-library-row > p {
  color: #777d8c;
  line-height: 1.65;
}

.topic-library-detail {
  min-height: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.topic-library-detail-empty {
  min-height: 260px;
  padding: 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 42px rgba(31, 35, 70, 0.045);
}

.topic-library-form {
  display: grid;
  height: auto;
  gap: 14px;
}

.topic-library-form-head {
  min-height: 0;
  padding: 2px 4px 12px;
}

.topic-library-form-head > div {
  gap: 5px;
}

.topic-library-form-head h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

#topicLibraryEditorStatus {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 35, 171, 0.065);
  color: var(--jy-soft-primary);
}

.topic-library-form-body {
  gap: 14px;
  max-width: none;
  width: 100%;
  padding: 0;
  overflow: visible;
}

.topic-library-form-body label {
  gap: 10px;
  color: #646a79;
  font-size: 12px;
}

.topic-library-primary-fields {
  display: grid;
  gap: 28px;
  padding: 30px 34px 32px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(31, 35, 70, 0.05);
}

#topicLibraryForm input,
#topicLibraryForm textarea,
#topicLibraryForm select {
  border: 0;
  border-bottom: 1px solid rgba(35, 39, 78, 0.1);
  border-radius: 0 !important;
  background: transparent !important;
  line-height: 1.75;
  padding: 10px 0 12px;
}

#topicLibraryForm input:focus,
#topicLibraryForm textarea:focus,
#topicLibraryForm select:focus {
  border-bottom-color: var(--jy-soft-primary);
  box-shadow: none !important;
  outline: 0;
}

.topic-library-title-field input {
  font-size: 24px;
  font-weight: 580;
  letter-spacing: -0.02em;
}

.topic-library-seed-field {
  min-height: 0;
  padding: 24px 28px 22px;
  border-radius: 16px;
  background: #eef0fb;
}

.topic-library-seed-field::before {
  content: "从这段材料开始写";
  color: #969bab;
  font-size: 11px;
  font-weight: 400;
  justify-self: end;
  margin-bottom: -25px;
}

.topic-library-seed-field textarea {
  min-height: 150px;
  resize: vertical;
}

#topicLibraryForm .topic-library-seed-field textarea {
  border-bottom: 0;
  padding-bottom: 0;
}

.topic-library-form-actions {
  margin-top: 0;
  padding: 4px;
  background: transparent;
}

/* Operational subpages: use open columns and whitespace instead of one bordered megacard. */
#broadcasts .broadcast-workbench,
#content_assets .content-assets-workbench,
#knowledge .knowledge-workbench,
#team .team-workbench {
  gap: 28px;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none;
}

#broadcasts .broadcast-workbench > *,
#content_assets .content-assets-workbench > *,
#knowledge .knowledge-workbench > *,
#team .team-workbench > * {
  border: 0 !important;
  border-radius: 6px !important;
  background: #fff;
  box-shadow: none !important;
}

#agents .account-status-board {
  gap: 32px;
  margin-bottom: 28px;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#agents .account-status-metric {
  min-height: 84px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#agents .account-list-toolbar {
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#agents .account-list-table-shell,
#groups .groups-workbench,
#inbox .inbox-list,
#inbox .chat-panel,
#inbox .inbox-side-panel,
.content-calendar-workspace {
  border: 0;
  box-shadow: none;
}

.content-calendar-commandbar,
.content-calendar-legend {
  margin-bottom: 14px;
  background: #fff;
}

/* Replace nested form blocks with calm writing lines on operational pages. */
#broadcasts .broadcast-compose input:not([type="checkbox"]):not([type="radio"]),
#broadcasts .broadcast-compose select,
#broadcasts .broadcast-compose textarea,
#content_assets .asset-upload-rail input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#content_assets .asset-upload-rail select,
#content_assets .asset-upload-rail textarea,
#knowledge .knowledge-base-detail input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#knowledge .knowledge-base-detail select,
#knowledge .knowledge-base-detail textarea,
#team .team-member-form input:not([type="checkbox"]):not([type="radio"]),
#team .team-member-form select,
#team .team-member-form textarea {
  padding-inline: 0;
  border: 0 !important;
  border-bottom: 1px solid rgba(35, 39, 78, 0.1) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#broadcasts .broadcast-compose input:focus,
#broadcasts .broadcast-compose select:focus,
#broadcasts .broadcast-compose textarea:focus,
#content_assets .asset-upload-rail input:focus,
#content_assets .asset-upload-rail select:focus,
#content_assets .asset-upload-rail textarea:focus,
#knowledge .knowledge-base-detail input:focus,
#knowledge .knowledge-base-detail select:focus,
#knowledge .knowledge-base-detail textarea:focus,
#team .team-member-form input:focus,
#team .team-member-form select:focus,
#team .team-member-form textarea:focus {
  border-bottom-color: var(--jy-soft-primary) !important;
  outline: 0;
}

/* Broadcast: separate the three jobs by space, not spreadsheet-like rules. */
#broadcasts .broadcast-workbench {
  min-height: 720px;
}

#broadcasts .broadcast-section-head,
#broadcasts .broadcast-form-section,
#broadcasts .broadcast-compose-actions,
#broadcasts .broadcast-preview-zone,
#broadcasts .broadcast-history-zone,
#broadcasts .broadcast-history-layout,
#broadcasts .broadcast-campaign-list,
#broadcasts .broadcast-campaign-detail,
#broadcasts .broadcast-detail-head,
#broadcasts .broadcast-detail-actions,
#broadcasts .broadcast-detail-stats,
#broadcasts .broadcast-preview-metrics {
  border: 0 !important;
}

#broadcasts .broadcast-section-head {
  min-height: 0;
  padding: 24px 24px 8px;
}

#broadcasts .broadcast-form-section {
  gap: 12px;
  padding: 24px;
}

#broadcasts .broadcast-form-section + .broadcast-form-section {
  padding-top: 28px;
}

#broadcasts .broadcast-compose-actions {
  padding: 26px 24px 30px;
}

#broadcasts .broadcast-preview-result {
  padding: 8px 24px 28px;
}

#broadcasts .broadcast-preview-metrics,
#broadcasts .broadcast-detail-stats {
  gap: 28px;
}

#broadcasts .broadcast-preview-metrics > div,
#broadcasts .broadcast-detail-stats > div {
  padding-inline: 0;
  border: 0;
}

#broadcasts .broadcast-history-zone {
  margin-top: 28px;
  border-radius: 6px !important;
}

#broadcasts .broadcast-history-layout {
  gap: 28px;
  padding: 0 24px 28px;
}

#broadcasts .broadcast-campaign-row {
  padding-inline: 4px;
  border-bottom-color: rgba(35, 39, 78, 0.06);
}

/* Assets, knowledge, and team: one workspace, not cards nested in cards. */
#content_assets .asset-workspace,
#content_assets .asset-upload-rail,
#content_assets .asset-library-main,
#knowledge .knowledge-base-rail,
#knowledge .knowledge-base-detail,
#knowledge .knowledge-base-detail.surface-focus,
#knowledge .kb-summary-card,
#knowledge .kb-create-card,
#knowledge .kb-list-card,
#team .team-workbench > .card,
#team .team-member-row {
  border: 0 !important;
  box-shadow: none !important;
}

/* 公众号创作：单线必经流程。保留旧画布 DOM 供兼容逻辑读取，但不再作为主界面。 */
#public_content.studio-view-editor {
  height: auto;
  min-height: calc(100vh - 28px);
  overflow: visible;
  background: #f6f7fb;
}

#public_content .content-canvas-app {
  display: none;
}

#public_content .studio-account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 24px 0;
  padding: 14px 16px;
  border: 1px solid rgba(35, 39, 78, 0.08);
  border-radius: 12px;
  background: #fff;
}

#public_content .studio-account-bar-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

#public_content .studio-account-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

#public_content .studio-account-chip {
  min-width: 150px;
  padding: 9px 12px;
  border: 1px solid rgba(35, 39, 78, 0.09);
  border-radius: 9px;
  background: #fff;
  text-align: left;
}

#public_content .studio-account-chip.active {
  border-color: rgba(31, 35, 171, 0.32);
  background: rgba(31, 35, 171, 0.05);
  box-shadow: inset 3px 0 0 #1f23ab;
}

#public_content .content-canvas-legacy-bridge {
  display: grid;
  grid-template-columns: minmax(560px, 1.18fr) minmax(390px, 0.82fr);
  gap: 18px;
  align-items: start;
  margin: 18px 24px 40px;
}

#public_content .studio-col-library {
  display: none;
}

#public_content .studio-col-compose,
#public_content .studio-col-preview {
  min-width: 0;
}

#public_content .editor-sheet,
#public_content .preview-sheet {
  border: 1px solid rgba(35, 39, 78, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(35, 39, 78, 0.05);
}

#public_content .guided-creation-editor {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

#public_content .guided-creation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border-bottom: 1px solid rgba(35, 39, 78, 0.08);
}

#public_content .guided-creation-head h1 {
  margin: 4px 0 6px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

#public_content .guided-creation-head p:last-child,
#public_content .guided-stage-head p,
#public_content .guided-stage-actions span,
#public_content .guided-ai-check-summary p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.6;
}

#public_content .guided-flow-progress {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 2px;
}

#public_content .guided-flow-progress strong {
  color: #1f23ab;
  font-size: 24px;
}

#public_content .guided-flow-progress span {
  color: #98a2b3;
  font-size: 11px;
}

#public_content .guided-outline-workspace {
  padding: 2px 0 0;
}

#public_content .guided-outline-workspace .form-label {
  margin-bottom: 10px;
  color: #50545e;
  font-size: 12px;
  font-weight: 650;
}

#public_content .guided-outline-workspace .studio-outline-editor {
  min-height: 260px;
  padding: 18px 20px;
  border: 0;
  border-radius: 12px;
  background: #f5f6fa;
  color: #252631;
  font-size: 14px;
  line-height: 1.9;
  box-shadow: none;
}

#public_content .guided-outline-workspace .studio-outline-editor:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(31, 35, 171, .13);
}

.content-project-outline pre {
  max-height: 300px;
  margin: 0;
  padding: 14px 16px;
  overflow: auto;
  border-radius: 10px;
  background: #f5f6fa;
  color: #343640;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

#public_content .guided-stage {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 26px 28px 28px;
  border-bottom: 1px solid rgba(35, 39, 78, 0.08);
  transition: background-color .18s ease, opacity .18s ease;
}

#public_content .guided-stage:last-child {
  border-bottom: 0;
}

#public_content .guided-stage.is-locked {
  background: #fbfbfd;
}

#public_content .guided-stage-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe2eb;
  border-radius: 50%;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
}

#public_content .guided-stage.is-complete .guided-stage-index,
#public_content .guided-final-check.is-complete .guided-stage-index {
  border-color: rgba(18, 183, 106, 0.28);
  background: rgba(18, 183, 106, 0.1);
  color: #07884c;
}

#public_content .guided-stage-body {
  min-width: 0;
}

#public_content .guided-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

#public_content .guided-stage-head h2 {
  margin: 0 0 4px;
  color: #23274e;
  font-size: 17px;
}

#public_content .guided-stage-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 99px;
  background: #f1f2f6;
  color: #7d8496;
  font-size: 11px;
}

#public_content .is-complete > .guided-stage-body .guided-stage-status,
#public_content .guided-final-check.is-complete .guided-stage-status {
  background: rgba(18, 183, 106, 0.1);
  color: #07884c;
}

#public_content .guided-context-grid {
  margin-top: 14px;
}

#public_content .guided-stage-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

#public_content .topic-ideas-list:not(:empty),
#public_content .guided-knowledge-list {
  margin-top: 14px;
  border: 1px solid rgba(35, 39, 78, 0.08);
  border-radius: 9px;
  overflow: hidden;
}

#public_content .guided-fallback-select,
#public_content .guided-quick-generate {
  display: none;
}

#public_content .guided-save-mix,
#public_content .guided-advanced-settings {
  margin-top: 14px;
  border-top: 1px solid rgba(35, 39, 78, 0.08);
  padding-top: 10px;
}

#public_content .guided-save-mix > summary,
#public_content .guided-advanced-settings > summary {
  color: #667085;
  font-size: 12px;
  cursor: pointer;
}

#public_content .guided-evidence-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

#public_content .guided-research-source {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(35, 39, 78, 0.08);
}

#public_content .guided-research-source:first-of-type {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

#public_content .guided-research-source-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

#public_content .guided-research-source-head > div {
  display: grid;
  gap: 3px;
}

#public_content .guided-research-source-head strong {
  color: #292d52;
  font-size: 13px;
}

#public_content .guided-research-source-head span,
#public_content .guided-research-status,
#public_content .guided-live-search-state {
  color: #7d8496;
  font-size: 11px;
  line-height: 1.5;
}

#public_content .guided-research-status {
  flex: 0 0 auto;
  color: #1f23ab;
}

#public_content .guided-live-search-state {
  margin-top: 9px;
}

#public_content .guided-live-search-state.is-error {
  color: #b54708;
}

#public_content .guided-evidence-count {
  color: #07884c;
  font-size: 11px;
  font-weight: 650;
}

#public_content .guided-evidence-group + .guided-evidence-group {
  margin-top: 14px;
}

#public_content .guided-evidence-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 8px 0 5px;
  color: #34385f;
  font-size: 12px;
}

#public_content .guided-evidence-group-head span {
  color: #8a8da3;
  font-size: 11px;
}

#public_content .guided-evidence-group[data-source-class="competitor"] .guided-evidence-group-head strong {
  color: #9a5b27;
}

#public_content .guided-evidence-item {
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  border-left: 2px solid rgba(31, 35, 171, 0.28);
  background: #f8f8fc;
}

#public_content .guided-evidence-item strong {
  color: #34385f;
  font-size: 12px;
}

#public_content .guided-evidence-item span,
#public_content .guided-evidence-empty {
  color: #7d8496;
  font-size: 11px;
  line-height: 1.5;
}

#public_content .guided-semantic-reason {
  color: #07884c;
  font-size: 11px;
  line-height: 1.5;
}

#public_content .guided-evidence-item a,
#public_content .guided-web-sources a {
  width: fit-content;
  color: #1f23ab;
  font-size: 11px;
  text-decoration: none;
}

#public_content .guided-evidence-item a:hover,
#public_content .guided-web-sources a:hover {
  text-decoration: underline;
}

#public_content .guided-web-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding-top: 5px;
}

#public_content .guided-web-sources strong {
  width: 100%;
  color: #697086;
  font-size: 11px;
}

#public_content .guided-evidence-empty {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f6f7fa;
}

#public_content .guided-evidence-empty.is-blocked,
#public_content .guided-ai-check-summary .is-blocked {
  color: #b54708;
  background: #fff6ed;
}

#public_content .guided-retrieval-diagnosis {
  display: grid;
  gap: 5px;
}

#public_content .guided-retrieval-diagnosis strong {
  color: inherit;
  font-size: 12px;
}

#public_content .guided-retrieval-diagnosis span {
  color: #8a5a2f;
}

#public_content .guided-account-summary,
#public_content .guided-data-direction {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(35, 39, 78, 0.08);
  border-radius: 9px;
}

#public_content .guided-account-summary p,
#public_content .guided-account-summary span,
#public_content .guided-data-direction p {
  margin: 3px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

#public_content .guided-data-head,
#public_content .guided-data-direction p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#public_content .guided-data-head span,
#public_content .guided-data-direction p span {
  color: #98a2b3;
  font-size: 11px;
}

#public_content .guided-guardrails {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

#public_content .guided-guardrails span {
  padding: 6px 9px;
  border-radius: 99px;
  background: rgba(31, 35, 171, 0.07);
  color: #30349a;
  font-size: 11px;
  font-weight: 600;
}

#public_content .editor-editors {
  display: grid;
  gap: 14px;
}

#public_content .content-ops-workflow .workflow-step[data-step="topic"] {
  display: none;
}

#public_content .guided-publish-at {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 11px;
}

#public_content .guided-publish-at .input {
  width: 190px;
}

#public_content .studio-col-preview .preview-sheet {
  position: sticky;
  top: 18px;
  overflow: hidden;
}

#public_content .guided-final-check {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid rgba(35, 39, 78, 0.08);
  background: #fbfbfd;
}

#public_content .guided-final-check .guided-stage-head {
  margin-bottom: 12px;
}

#public_content .guided-ai-check-summary {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

#public_content .guided-ai-check-summary p {
  padding: 8px 10px;
  border-radius: 7px;
  background: #f1f2f6;
}

#public_content .guided-ai-check-summary .is-passed {
  color: #07884c;
  background: #ecfdf3;
}

#public_content .preview-toolbar {
  flex-wrap: wrap;
}

#public_content .studio-preview-stage {
  min-height: 460px;
  max-height: calc(100vh - 330px);
  overflow: auto;
}

@media (max-width: 1180px) {
  #public_content .content-canvas-legacy-bridge {
    grid-template-columns: 1fr;
  }

  #public_content .studio-col-preview .preview-sheet {
    position: static;
  }
}

@media (max-width: 760px) {
  #public_content .studio-account-bar,
  #public_content .content-canvas-legacy-bridge {
    margin-inline: 12px;
  }

  #public_content .studio-account-bar,
  #public_content .guided-creation-head,
  #public_content .guided-stage-head,
  #public_content .guided-stage-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #public_content .guided-stage,
  #public_content .guided-final-check {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 20px 16px;
  }

  #public_content .guided-stage-index {
    width: 30px;
    height: 30px;
  }
}

/* 图片素材：文件夹导航 + 缩略图浏览，不使用表单墙。 */
#content_assets .asset-command-strip {
  display: grid;
  grid-template-columns: auto minmax(280px, 520px) 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

#content_assets .asset-command-strip > .btn {
  min-height: 42px;
  padding-inline: 18px;
}

#content_assets .asset-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 35, 70, 0.045);
}

#content_assets .asset-search svg {
  width: 16px;
  height: 16px;
  color: #9a9fad;
}

#content_assets .asset-search input,
#content_assets .asset-search input:focus {
  width: 100%;
  min-height: 40px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
}

#content_assets #contentAssetCount {
  justify-self: end;
  padding-right: 4px;
  white-space: nowrap;
}

#content_assets .asset-upload-panel {
  margin-bottom: 22px;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(31, 35, 70, 0.055);
}

#content_assets .asset-upload-panel.hidden {
  display: none;
}

#content_assets .asset-upload-panel-head,
#content_assets .asset-upload-panel-head > div {
  display: flex;
  align-items: center;
}

#content_assets .asset-upload-panel-head {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

#content_assets .asset-upload-panel-head > div {
  gap: 10px;
}

#content_assets .asset-upload-panel-head span {
  color: #202532;
  font-size: 16px;
  font-weight: 650;
}

#content_assets .asset-upload-panel-head strong {
  color: #9297a4;
  font-size: 12px;
  font-weight: 400;
}

#content_assets .asset-upload-panel-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(420px, 1.38fr);
  gap: 24px;
  align-items: stretch;
}

#content_assets .asset-drop-zone {
  cursor: pointer;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  min-height: 176px;
  padding: 24px;
  border: 1px dashed #cdd1dc;
  border-radius: 12px;
  background: #f8f9fc;
}

#content_assets .asset-drop-zone svg {
  width: 24px;
  height: 24px;
  color: #777ed4;
}

#content_assets .asset-upload-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

#content_assets .asset-upload-fields .form-label {
  display: grid;
  gap: 7px;
}

#content_assets .asset-channel-checks {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 9px 0 0;
  border: 0;
}

#content_assets .asset-channel-checks legend {
  margin-bottom: 7px;
}

#content_assets .asset-upload-submit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

#content_assets .asset-upload-submit .form-hint {
  flex: 1;
  text-align: right;
}

#content_assets { position: relative; min-height: 70vh; }
#content_assets [hidden] { display: none !important; }
#content_assets .asset-drop-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: block;
  min-height: 360px;
  border: 2px dashed #7776e9;
  border-radius: 22px;
  background: rgba(245, 246, 255, .94);
  backdrop-filter: blur(5px);
  pointer-events: none;
}
#content_assets .asset-drop-overlay > div { position: sticky; top: 60px; min-height: min(540px, 70vh); display: grid; place-content: center; justify-items: center; gap: 18px; color: #3029b7; }
#content_assets .asset-drop-overlay svg { width: 64px; height: 64px; padding: 20px; box-sizing: content-box; border-radius: 28px; background: #e8e7ff; }
#content_assets .asset-drop-overlay strong { font-size: 26px; font-weight: 650; }
#content_assets .asset-drop-overlay span { font-size: 14px; color: #777b98; }
#content_assets .asset-batch-status { margin: 0 0 12px; padding: 14px 18px; border-radius: 14px; background: #eeedff; color: #48428e; font-size: 13px; overflow-wrap: anywhere; }
#content_assets #retryContentAssetUploadButton { margin-bottom: 16px; }
#content_assets .asset-folder-heading { gap: 4px; padding-right: 0; }
#content_assets .asset-folder-heading > span { white-space: nowrap; }
#content_assets .asset-category-form { display: grid; gap: 10px; padding: 12px; margin-bottom: 12px; border-radius: 12px; background: #f2f2fc; }
#content_assets .asset-category-form > div { display: flex; gap: 8px; }
#content_assets .asset-category-form p, #contentAssetMoveStatus { color: #b54839; font-size: 12px; margin: 0; overflow-wrap: anywhere; }
#content_assets .asset-folder-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#content_assets .asset-category-label { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; max-width: 100%; margin-top: 8px; padding: 5px 10px; border: 0; border-radius: 8px; background: #efeff9; color: #63638d; font-size: 12px; cursor: pointer; overflow-wrap: anywhere; }
#content_assets .asset-category-label:hover { background: #e4e3fc; color: #3029b7; }
#content_assets .asset-category-dialog { width: min(400px, calc(100vw - 32px)); max-height: 85vh; overflow-y: auto; box-sizing: border-box; margin: auto; padding: 24px; border: 0; border-radius: 18px; box-shadow: 0 24px 90px #19164026; color: #303347; }
#content_assets .asset-category-dialog::backdrop { background: #14152f40; backdrop-filter: blur(2px); }
#content_assets .asset-category-dialog h2 { margin: 0 0 6px; font-size: 20px; font-weight: 650; }
#content_assets .asset-category-dialog > p { margin: 0 0 18px; overflow-wrap: anywhere; }
#content_assets #contentAssetCategoryAssetName { color: #9093a3; font-size: 13px; line-height: 1.5; }
#content_assets .asset-category-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; padding: 0; border: 0; background: transparent; }
#content_assets .asset-category-dialog-actions .btn { min-width: 64px; min-height: 36px; padding: 8px 16px; border-radius: 9px; }
#content_assets .asset-move-category-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; width: 100%; max-height: 40vh; overflow-y: auto; }
#content_assets .asset-move-option { display: grid; grid-template-columns: 18px minmax(0, 1fr) 16px; align-items: center; gap: 12px; width: 100%; min-height: 46px; margin: 0; padding: 12px; border: 0; border-radius: 10px; background: transparent; box-shadow: none; color: #606474; text-align: left; font: inherit; font-size: 14px; line-height: 22px; cursor: pointer; }
#content_assets .asset-move-option:hover { background: #f5f5fa; }
#content_assets .asset-move-option[aria-pressed="true"] { color: #3830ba; background: #f0efff; }
#content_assets .asset-move-option:focus-visible { outline: 2px solid #8580df; outline-offset: -2px; }
#content_assets .asset-move-option > span { min-width: 0; overflow-wrap: anywhere; }
#content_assets .asset-move-option .asset-move-folder { width: 18px; height: 18px; }
#content_assets .asset-move-option .asset-move-check { width: 16px; height: 16px; visibility: hidden; }
#content_assets .asset-move-option[aria-pressed="true"] .asset-move-check { visibility: visible; }
#content_assets #contentAssetMoveStatus:empty { display: none; }
#content_assets #contentAssetMoveStatus:not(:empty) { margin: 12px 0 0; }
#content_assets .asset-rename-label { display: block; margin: 22px 0 8px; color: #727588; font-size: 13px; }
#content_assets #contentAssetRenameInput { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 10px; background: #f5f5fa; font-size: 14px; }
#content_assets #contentAssetRenameInput:focus { outline: 2px solid #8580df; outline-offset: 1px; }
#content_assets #contentAssetRenameStatus { margin: 12px 0 0; color: #b45309; font-size: 13px; overflow-wrap: anywhere; }
#content_assets #contentAssetRenameStatus:empty { display: none; }

#content_assets .asset-workspace {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 28px;
  min-height: 0;
  align-items: start;
  overflow: visible;
  border: 0;
  background: transparent;
}

#content_assets .asset-folder-rail {
  min-width: 0;
  padding: 12px 0;
}

#content_assets .asset-folder-heading,
#content_assets .asset-tag-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px 10px;
}

#content_assets .asset-folder-heading span,
#content_assets .asset-tag-heading span {
  color: #343a49;
  font-size: 16px;
  font-weight: 650;
}

#content_assets .asset-folder-heading small,
#content_assets .asset-tag-heading small {
  color: #a0a5b1;
  font-size: 10px;
}

#content_assets .asset-folder-list,
#content_assets .asset-tag-list {
  display: grid;
  gap: 4px;
}

#content_assets .asset-folder-button,
#content_assets .asset-tag-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #666d7b;
  cursor: pointer;
  text-align: left;
}

#content_assets .asset-folder-button svg {
  width: 16px;
  height: 16px;
  color: #9ba0ad;
}

#content_assets .asset-folder-button strong,
#content_assets .asset-tag-button strong {
  color: #a1a6b2;
  font-size: 11px;
  font-weight: 500;
}

#content_assets .asset-folder-button:hover,
#content_assets .asset-folder-button.active,
#content_assets .asset-tag-button:hover,
#content_assets .asset-tag-button.active {
  background: rgba(31, 35, 171, 0.065);
  color: #292e63;
}

#content_assets .asset-folder-button.active svg {
  color: #1f23ab;
}

#content_assets .asset-tag-heading {
  margin-top: 24px;
}

#content_assets .asset-tag-button {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 34px;
  padding-left: 36px;
  font-size: 12px;
}

#content_assets .asset-tag-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#content_assets .asset-tag-empty {
  margin: 0;
  padding: 8px 10px 0;
  color: #a0a5b1;
  font-size: 11px;
  line-height: 1.65;
}

#content_assets .asset-library-main {
  min-width: 0;
  min-height: 420px;
  padding: 24px;
  border: 0 !important;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(31, 35, 70, 0.05) !important;
}

#content_assets .asset-use-hint {
  min-height: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  color: #8d929e;
  font-size: 12px;
}

#content_assets .asset-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 24px 18px;
  align-content: start;
  background: transparent;
}

#content_assets .asset-library-item {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 0;
  background: transparent;
}

#content_assets .asset-library-image-shell {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #f2f4f7;
}

#content_assets .asset-library-image {
  aspect-ratio: 4 / 3;
  border-radius: inherit;
  background: transparent;
}

#content_assets .asset-library-image img,
#content_assets .asset-card img {
  object-fit: contain;
  background: transparent;
}

#content_assets .asset-library-actions {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 5px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(24, 28, 62, 0.16);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

#content_assets .asset-library-item:hover .asset-library-actions,
#content_assets .asset-library-actions:focus-within {
  opacity: 1;
  transform: translateY(0);
}

#content_assets .asset-library-actions button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #555c6b;
  cursor: pointer;
}

#content_assets .asset-library-actions button:hover {
  background: #eef0fa;
  color: #1f23ab;
}

#content_assets .asset-library-actions svg {
  width: 15px;
  height: 15px;
}

#content_assets .asset-library-item figcaption {
  padding: 10px 2px 0;
}

#content_assets .asset-library-copy {
  gap: 4px;
}

#content_assets .asset-library-copy > strong {
  font-size: 12px;
  font-weight: 600;
}

#content_assets .asset-library-copy > span,
#content_assets .asset-library-copy em {
  font-size: 10px;
}

#content_assets .asset-library-copy em + em {
  margin-left: 7px;
}

#content_assets .asset-library-empty {
  min-height: 320px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 40px;
  background: transparent;
}

@media (max-width: 900px) {
  #content_assets .asset-upload-panel-body {
    grid-template-columns: 1fr;
  }

  #content_assets .asset-workspace {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 700px) {
  #content_assets .asset-command-strip {
    grid-template-columns: auto 1fr;
  }

  #content_assets .asset-search,
  #content_assets #contentAssetCount {
    grid-column: 1 / -1;
  }

  #content_assets #contentAssetCount {
    justify-self: start;
  }

  #content_assets .asset-upload-fields,
  #content_assets .asset-workspace {
    grid-template-columns: 1fr;
  }

  #content_assets .asset-folder-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #content_assets .asset-folder-button {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #content_assets .asset-folder-button svg {
    display: none;
  }

  #content_assets .asset-tag-list {
    display: flex;
    flex-wrap: wrap;
  }

  #content_assets .asset-tag-button {
    width: auto;
    min-height: 32px;
    padding: 0 10px;
  }
}

@media (hover: none) {
  #content_assets .asset-library-actions {
    opacity: 1;
    transform: none;
  }
}

#knowledge .knowledge-workbench {
  grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
}

#knowledge .knowledge-base-rail {
  padding: 20px 4px;
  background: transparent;
}

#knowledge .knowledge-base-detail.surface-focus {
  gap: 28px;
  padding: 0;
  background: transparent;
}

#knowledge .kb-summary-card,
#knowledge .kb-create-card,
#knowledge .kb-list-card {
  border-radius: 6px !important;
  background: #fff;
}

#knowledge .knowledge-item-list {
  gap: 0;
}

#knowledge .knowledge-item-row {
  padding-inline: 4px;
  border: 0;
  border-bottom: 1px solid rgba(35, 39, 78, 0.06);
  border-radius: 0;
  box-shadow: none;
}

#team .team-workbench {
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
}

#team .team-workbench > .card {
  padding-bottom: 12px;
}

#team .team-member-row {
  padding: 16px 4px;
  border-bottom: 1px solid rgba(35, 39, 78, 0.07) !important;
  border-radius: 0;
}

@media (max-width: 900px) {
  .topic-library-metrics {
    flex-wrap: wrap;
    gap: 12px 24px;
  }

  .topic-library-workspace {
    gap: 28px;
    grid-template-columns: minmax(300px, 0.78fr) minmax(420px, 1.22fr);
  }
}

@media (max-width: 760px) {
  .view:not(#dashboard) > .page-header {
    min-height: 0;
    margin-bottom: 20px;
    padding: 12px 2px 16px;
  }

  .topic-library-workspace {
    height: auto;
    grid-template-columns: 1fr;
  }

  .topic-library-primary-fields,
  .topic-library-seed-field {
    padding-inline: 22px;
  }
}

/* Final precedence for the focused公众号 editor. */
#public_content #publicArticleTopic,
#public_content #publicArticleTopic:hover,
#public_content #publicArticleTopic:focus {
  padding: 10px 0 14px;
  border: 0 !important;
  border-bottom: 1px solid #bdbdb5 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#public_content #publicArticleTopic:focus {
  border-bottom-color: #1f23ab !important;
}

#public_content .topic-ideas-list:not(:empty) {
  margin-top: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#public_content .topic-ideas-empty {
  padding: 0;
  color: #96968f;
}

#public_content .studio-account-bar {
  max-width: 1120px;
  margin: 24px auto 0;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid #e8e8e3;
  border-radius: 0;
  background: transparent;
}

#public_content .content-canvas-legacy-bridge,
#public_content.has-public-draft .content-canvas-legacy-bridge {
  width: min(900px, calc(100% - 48px));
  max-width: 1120px;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin: 0 auto 64px;
}

#public_content.has-public-draft .content-canvas-legacy-bridge {
  width: min(1120px, calc(100% - 48px));
  grid-template-columns: minmax(480px, 0.94fr) minmax(500px, 1.06fr);
}

#public_content .editor-sheet,
#public_content .preview-sheet {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#public_content .guided-creation-head {
  display: grid;
  gap: 22px;
  padding: 48px 0 28px;
  border: 0;
}

#public_content .guided-flow-progress {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

#public_content .guided-stage {
  display: block;
  padding: 30px 0 34px;
  border-bottom: 1px solid #e8e8e3;
  background: transparent;
}

#public_content .guided-stage-index {
  display: none;
}

#public_content .guided-stage-head {
  margin-bottom: 24px;
}

#public_content .guided-stage-status {
  padding: 0;
  background: transparent !important;
  color: #a1a19a !important;
}

#public_content .guided-stage.is-locked,
#public_content .guided-stage.is-past:not(.is-open) {
  padding-block: 18px;
  background: transparent;
}

#public_content .guided-stage.is-locked .guided-stage-head,
#public_content .guided-stage.is-past:not(.is-open) .guided-stage-head {
  margin: 0;
}

#public_content .guided-stage.is-locked .guided-stage-head p,
#public_content .guided-stage.is-past:not(.is-open) .guided-stage-head p,
#public_content .guided-stage.is-locked .guided-stage-body > :not(.guided-stage-head),
#public_content .guided-stage.is-past:not(.is-open) .guided-stage-body > :not(.guided-stage-head) {
  display: none;
}

#public_content .guided-save-mix,
#public_content .guided-advanced-settings,
#public_content .studio-col-preview {
  display: none;
}

#public_content.has-public-draft .studio-col-preview {
  display: block;
}

#public_content .guided-final-check {
  display: block;
  padding: 48px 0 22px;
  border-bottom: 1px solid #e8e8e3;
  background: transparent;
}

@media (max-width: 1180px) {
  #public_content.has-public-draft .content-canvas-legacy-bridge {
    width: min(900px, calc(100% - 48px));
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #public_content .studio-account-bar,
  #public_content .content-canvas-legacy-bridge,
  #public_content.has-public-draft .content-canvas-legacy-bridge {
    width: calc(100% - 28px);
    margin-inline: auto;
  }

  #public_content .guided-stage,
  #public_content .guided-final-check {
    padding-inline: 0;
  }
}
/* 公众号创作：紧凑主编工作台。参考用户提供的成熟 SaaS 仪表盘，采用单一工作面、紧凑导航和轻量分区。 */
#public_content.studio-view-editor {
  min-height: calc(100vh - 28px);
  background: #f1f4f5;
}

#public_content .studio-account-bar {
  width: min(1120px, calc(100% - 40px));
  min-height: 54px;
  margin: 18px auto 0;
  padding: 8px 12px 8px 16px;
  border: 1px solid rgba(31, 35, 171, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(36, 48, 61, 0.055);
}

#public_content .studio-account-bar-left {
  gap: 10px;
}

#public_content .studio-account-label {
  color: #838b8b;
  font-size: 11px;
}

#public_content .studio-account-chips {
  gap: 4px;
}

#public_content .studio-account-chip {
  min-width: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
}

#public_content .studio-account-chip strong {
  font-size: 12px;
}

#public_content .studio-account-chip span {
  display: none;
}

#public_content .studio-account-chip.active {
  border: 0;
  background: #eef0ff;
  box-shadow: none;
}

#public_content .content-canvas-legacy-bridge,
#public_content.has-public-draft .content-canvas-legacy-bridge {
  width: min(1120px, calc(100% - 40px));
  max-width: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 14px auto 48px;
}

#public_content.has-public-draft .content-canvas-legacy-bridge {
  width: min(1320px, calc(100% - 40px));
  grid-template-columns: minmax(620px, 1.15fr) minmax(430px, 0.85fr);
}

#public_content .editor-sheet,
#public_content .preview-sheet {
  border: 1px solid rgba(32, 44, 48, 0.07);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(36, 48, 61, 0.065);
}

#public_content .guided-creation-editor {
  min-height: 560px;
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
}

#public_content .guided-creation-head {
  grid-column: 1;
  grid-row: 1;
  align-content: start;
  display: grid;
  gap: 24px;
  min-height: 560px;
  padding: 24px 16px;
  border: 0;
  border-right: 1px solid #edf0ee;
  background: #f7f9f7;
}

#public_content .guided-creation-head .eyebrow {
  margin: 0 0 3px;
  color: #1f23ab;
  font-size: 9px;
  letter-spacing: .09em;
}

#public_content .guided-creation-head h1 {
  margin: 0;
  color: #17201e;
  font-family: inherit;
  font-size: 21px;
  font-weight: 720;
  letter-spacing: -.03em;
}

#public_content .guided-creation-subtitle {
  margin: 4px 0 0;
  color: #8b9391;
  font-size: 11px;
}

#public_content .guided-flow-progress {
  display: grid;
  align-content: start;
  gap: 4px;
}

#public_content .guided-progress-step {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6f7775;
  font: inherit;
  text-align: left;
}

#public_content .guided-progress-step > span {
  color: #a4aaa8;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

#public_content .guided-progress-step > strong {
  color: inherit;
  font-size: 12px;
  font-weight: 620;
}

#public_content .guided-progress-step > small {
  color: #a4aaa8;
  font-size: 9px;
}

#public_content .guided-progress-step.is-current {
  background: #1f23ab;
  color: #fff;
  box-shadow: 0 7px 16px rgba(31, 35, 171, 0.18);
}

#public_content .guided-progress-step.is-current > span,
#public_content .guided-progress-step.is-current > small {
  color: rgba(255, 255, 255, 0.72);
}

#public_content .guided-progress-step.is-done {
  color: #27312f;
  cursor: pointer;
}

#public_content .guided-progress-step.is-done:hover {
  background: #edf1ed;
}

#public_content .guided-progress-step:disabled {
  opacity: .68;
  cursor: default;
}

#public_content .guided-flow-progress > i {
  display: none;
}

#public_content .guided-stage,
#public_content .guided-stage.is-locked,
#public_content .guided-stage.is-past:not(.is-open) {
  display: none;
}

#public_content .guided-stage.is-current,
#public_content .guided-stage.is-past.is-open {
  grid-column: 2;
  grid-row: 1;
  display: block;
  min-width: 0;
  padding: 30px 34px 36px;
  border: 0;
  background: #fff;
}

#public_content .guided-creation-editor:has(.guided-stage.is-past.is-open) .guided-stage.is-current {
  display: none;
}

#public_content .guided-stage-head,
#public_content .guided-stage.is-locked .guided-stage-head,
#public_content .guided-stage.is-past:not(.is-open) .guided-stage-head {
  align-items: flex-start;
  margin: 0 0 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf0ee;
}

#public_content .guided-stage-head h2,
#public_content .guided-stage.is-locked .guided-stage-head h2,
#public_content .guided-stage.is-past:not(.is-open) .guided-stage-head h2 {
  margin: 0 0 4px;
  color: #18201f;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.025em;
}

#public_content .guided-stage-head p {
  color: #7f8886;
  font-size: 12px;
}

#public_content .guided-stage-status {
  padding: 4px 7px;
  border-radius: 5px;
  background: #edf8f0 !important;
  color: #2a7853 !important;
  font-size: 9px;
}

#public_content .editor-topic-row {
  margin: 0;
  padding: 0;
  border: 0;
}

#public_content #publicArticleTopic,
#public_content #publicArticleTopic:hover,
#public_content #publicArticleTopic:focus {
  min-height: 48px;
  padding: 7px 0 10px;
  border: 0 !important;
  border-bottom: 1px solid #cfd5d2 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-family: inherit;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 650;
  box-shadow: none !important;
}

#public_content #publicArticleTopic:focus {
  border-bottom-color: #1f23ab !important;
}

#public_content .guided-stage-actions {
  margin-top: 18px;
}

#public_content .guided-stage-actions .btn,
#public_content #runPublicAiCheckButton {
  min-height: 34px;
  padding-inline: 13px;
  border-radius: 7px;
  font-size: 11px;
}

#public_content .topic-ideas-list:not(:empty),
#public_content .guided-knowledge-list {
  margin-top: 18px;
  border: 1px solid #edf0ee;
  border-radius: 10px;
  background: #fbfcfb;
}

#public_content .topic-ideas-empty {
  padding: 11px 13px;
  font-size: 11px;
}

#public_content .guided-evidence-list {
  gap: 0;
  margin-top: 16px;
}

#public_content .guided-evidence-item {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #edf0ee;
  background: transparent;
}

#public_content .guided-account-summary,
#public_content .guided-data-direction {
  margin-top: 16px;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid #edf0ee;
}

#public_content .guided-guardrails {
  margin-top: 14px;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: #f4f7f4;
  color: #56605e;
  font-size: 11px;
}

#public_content .editor-editors {
  gap: 14px;
}

#public_content .studio-outline-editor,
#public_content .studio-draft-editor {
  border: 1px solid #e3e8e5 !important;
  background: #fbfcfb !important;
}

#public_content .studio-col-preview {
  min-width: 0;
}

#public_content .preview-sheet {
  overflow: hidden;
}

#public_content .guided-final-check {
  padding: 22px 24px 18px;
  border-bottom: 1px solid #edf0ee;
}

#public_content .preview-toolbar,
#public_content .preview-tabs {
  padding-inline: 20px;
}

@media (max-width: 1220px) {
  #public_content.has-public-draft .content-canvas-legacy-bridge {
    width: min(1120px, calc(100% - 40px));
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #public_content .studio-account-bar,
  #public_content .content-canvas-legacy-bridge,
  #public_content.has-public-draft .content-canvas-legacy-bridge {
    width: calc(100% - 24px);
  }

  #public_content .guided-creation-editor {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  #public_content .guided-creation-head {
    grid-column: 1;
    grid-row: auto;
    min-height: 0;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid #edf0ee;
  }

  #public_content .guided-flow-progress {
    grid-template-columns: repeat(6, minmax(96px, 1fr));
    overflow-x: auto;
  }

  #public_content .guided-progress-step {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  #public_content .guided-progress-step > small {
    display: none;
  }

  #public_content .guided-stage.is-current,
  #public_content .guided-stage.is-past.is-open {
    grid-column: 1;
    grid-row: auto;
    padding: 24px 18px 28px;
  }
}
/* 公众号创作：使用侧栏之外的完整页面，不再居中收窄。 */
#public_content.studio-view-editor {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #fff;
}

#public_content .editor-topbar,
#public_content .cockpit-toggle {
  display: none;
}

#public_content .studio-account-bar {
  width: 100%;
  max-width: none;
  margin: 0 0 10px;
  border: 0;
  border-bottom: 1px solid #e8ece9;
  border-radius: 0;
  box-shadow: none;
}

#public_content .content-canvas-legacy-bridge,
#public_content.has-public-draft .content-canvas-legacy-bridge {
  width: 100%;
  max-width: none;
  margin: 0;
}

#public_content.has-public-draft .content-canvas-legacy-bridge {
  grid-template-columns: minmax(620px, 1.15fr) minmax(430px, .85fr);
}

#public_content .editor-sheet,
#public_content .preview-sheet {
  border-radius: 0;
  box-shadow: none;
}

#public_content .guided-creation-editor,
#public_content .guided-creation-head {
  min-height: calc(100vh - 112px);
}

#public_content .guided-stage.is-current,
#public_content .guided-stage.is-past.is-open {
  padding: 30px 36px 40px;
}

#public_content .public-topic-picker {
  display: grid;
  gap: 12px;
}

#public_content .public-topic-picker-toolbar {
  display: grid;
  grid-template-columns: auto minmax(180px, 280px) auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0ee;
}

#public_content .public-topic-picker-toolbar > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

#public_content .public-topic-picker-toolbar strong {
  color: #222b29;
  font-size: 13px;
}

#public_content .public-topic-picker-toolbar span {
  color: #8d9593;
  font-size: 10px;
}

#public_content .public-topic-picker-search {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #e2e7e4;
  border-radius: 7px;
  background: #f8faf8;
}

#public_content .public-topic-picker-search svg {
  width: 13px;
  height: 13px;
  color: #929a98;
}

#public_content #publicTopicPickerSearch,
#public_content #publicTopicPickerSearch:hover,
#public_content #publicTopicPickerSearch:focus {
  min-width: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: 11px;
  box-shadow: none !important;
  outline: 0;
}

#public_content .public-topic-picker-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-content: start;
}

#public_content .public-topic-option {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 0 12px;
  align-items: center;
  margin: 0;
  padding: 13px 15px;
  border: 0;
  border-radius: 12px;
  background: #f7f8fa;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

#public_content .public-topic-option:hover {
  background: #f2f3f7;
  transform: translateY(-1px);
}

#public_content .public-topic-option.is-selected {
  background: #eef0ff;
  box-shadow: inset 3px 0 0 #1f23ab;
}

#public_content .public-topic-choice,
#public_content .public-topic-choice:hover,
#public_content .public-topic-choice:focus {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  box-shadow: none !important;
  pointer-events: none;
}

#public_content .public-topic-check {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d5d8e0;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

#public_content .public-topic-choice:checked + .public-topic-check {
  background: #1f23ab;
  box-shadow: none;
}

#public_content .public-topic-choice:checked + .public-topic-check::after {
  content: "✓";
}

#public_content .public-topic-option:has(.public-topic-choice:focus-visible) {
  box-shadow: 0 0 0 3px rgba(31, 35, 171, 0.14), inset 3px 0 0 #1f23ab;
}

#public_content .public-topic-option-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

#public_content .public-topic-option-copy strong {
  color: #202826;
  font-size: 14px;
  font-weight: 660;
  line-height: 1.45;
}

#public_content .public-topic-option-copy > span {
  display: -webkit-box;
  overflow: hidden;
  color: #7e8784;
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#public_content .public-topic-option > small {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  color: #a0a7a5;
  font-size: 10px;
  white-space: nowrap;
}

#public_content .public-topic-picker-empty {
  min-height: 180px;
  grid-column: 1 / -1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  color: #929a98;
  text-align: center;
}

#public_content .public-topic-picker-empty strong {
  color: #5d6764;
  font-size: 13px;
}

#public_content .public-topic-picker-empty span {
  font-size: 11px;
}

@media (max-width: 1220px) {
  #public_content.has-public-draft .content-canvas-legacy-bridge {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  #public_content .public-topic-picker-toolbar {
    grid-template-columns: 1fr auto;
  }

  #public_content .public-topic-picker-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  #public_content .public-topic-picker-list {
    grid-template-columns: 1fr;
  }

  #public_content .public-topic-option {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  #public_content .public-topic-option > small {
    grid-column: 2;
    grid-row: auto;
    margin-top: 6px;
  }
}

/* 朋友圈滑选工作台 */
#moments .moment-creation-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(440px, 1.1fr);
  gap: 14px;
  margin: 16px 18px 0;
  align-items: start;
}

#moments .moment-creation-workspace .moment-candidate-stage,
#moments .moment-creation-workspace .moment-compose-output {
  margin: 0;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: #f6f7fb;
}

#moments .moment-creation-workspace .moment-compose-output {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

#moments .moment-creation-workspace .moment-compose-output > * {
  grid-column: 1;
  grid-row: auto;
}

#moments .moment-creation-workspace .moment-compose-output.is-awaiting-selection {
  display: grid;
}

#moments .moment-compose-output.is-awaiting-selection > :not(.moment-compose-stage-head) {
  opacity: 0.38;
  pointer-events: none;
}

#moments .moment-candidate-tabs {
  width: 100%;
}

#moments .moment-candidate-tab {
  flex: 1;
  justify-content: center;
}

#moments .moment-candidate-tab strong {
  min-width: auto;
  padding-inline: 5px;
}

#moments .moment-candidate-grid {
  display: block;
}

#moments .moment-swipe-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 2px 9px;
  color: #858a9d;
  font-size: 10px;
}

#moments .moment-swipe-deck {
  position: relative;
  isolation: isolate;
  padding: 0 7px 8px;
}

#moments .moment-swipe-deck::before,
#moments .moment-swipe-deck::after {
  position: absolute;
  right: 17px;
  bottom: 1px;
  left: 17px;
  height: 32px;
  border-radius: 0 0 14px 14px;
  background: #e9ebf4;
  content: "";
  z-index: -2;
}

#moments .moment-swipe-deck::after {
  right: 11px;
  bottom: 5px;
  left: 11px;
  background: #eff1f8;
  z-index: -1;
}

#moments .moment-swipe-deck .moment-candidate-card {
  position: relative;
  min-height: 330px;
  max-height: 520px;
  padding: 18px 19px;
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 15px 36px rgba(42, 46, 82, 0.11);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  will-change: transform;
}

#moments .moment-swipe-deck .moment-candidate-card:hover {
  background: #fff;
  box-shadow: 0 15px 36px rgba(42, 46, 82, 0.11);
  transform: none;
}

#moments .moment-swipe-deck .moment-candidate-card.is-dragging {
  cursor: grabbing;
  transition: none;
}

#moments .moment-swipe-deck .moment-candidate-card.is-leaving-left {
  animation: moment-card-reject .68s cubic-bezier(.45, 0, .3, 1) both;
}

#moments .moment-swipe-deck .moment-candidate-card.is-leaving-right {
  transform: translateX(125%) rotate(9deg) !important;
  opacity: 0;
  transition: transform 180ms ease-in, opacity 150ms ease-in;
}

#moments .moment-swipe-deck .moment-candidate-card p {
  max-height: 410px;
  padding-right: 4px;
  overflow-y: auto;
  color: #30344a;
  font-size: 13px;
  line-height: 1.78;
  user-select: text;
  scrollbar-width: thin;
}

#moments .moment-swipe-stamp {
  position: absolute;
  top: 56px;
  padding: 6px 10px;
  border: 2px solid currentColor;
  border-radius: 8px;
  opacity: var(--swipe-strength, 0);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 2;
}

#moments .moment-swipe-stamp-reject {
  left: 18px;
  color: #da6268;
  transform: rotate(-7deg);
}

#moments .moment-swipe-stamp-accept {
  right: 18px;
  color: #2c9a76;
  transform: rotate(7deg);
}

#moments .moment-swipe-deck .is-leaning-left .moment-swipe-stamp-accept,
#moments .moment-swipe-deck .is-leaning-right .moment-swipe-stamp-reject {
  opacity: 0;
}

#moments .moment-swipe-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}

#moments .moment-swipe-actions > span {
  color: #a0a4b4;
  font-size: 9px;
  white-space: nowrap;
}

#moments .moment-swipe-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
}

#moments .moment-swipe-button svg {
  width: 16px;
  height: 16px;
}

#moments .moment-swipe-button.is-reject {
  color: #b6535c;
  background: #fff0f1;
}

#moments .moment-swipe-button.is-accept {
  color: #18765b;
  background: #eaf8f2;
}

#moments .moment-swipe-complete {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

#moments .moment-swipe-complete-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #287e65;
  background: #e9f7f1;
}

#moments .moment-swipe-complete strong {
  color: #31354c;
  font-size: 15px;
}

#moments .moment-swipe-complete p {
  margin: 0 0 4px;
  color: #8c91a2;
  font-size: 11px;
}

#moments .moment-swipe-complete .btn {
  border: 0;
  border-radius: 10px;
}

@media (max-width: 1100px) {
  #moments .moment-creation-workspace {
    grid-template-columns: 1fr;
  }

  #moments .moment-swipe-deck .moment-candidate-card {
    min-height: 280px;
  }
}

@media (max-width: 680px) {
  #moments .moment-creation-workspace {
    margin-inline: 10px;
  }

  #moments .moment-creation-workspace .moment-candidate-stage,
  #moments .moment-creation-workspace .moment-compose-output {
    padding: 13px;
  }

  #moments .moment-swipe-actions > span {
    display: none;
  }

  #moments .moment-swipe-actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* 2026-09-01: moments workspace focused on generation, compact scheduling, and insight. */
#moments.moments-view {
  padding-top: 8px;
}

#moments .moments-grid {
  gap: 26px;
}

#moments .moments-compose-panel {
  border: 1px solid #e7e9ed;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

#moments .moments-panel-head {
  min-height: 62px;
  padding: 18px 22px;
}

#moments .moments-panel-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

#moments .moment-compose-config {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) minmax(120px, auto);
  align-items: end;
  gap: 12px;
  padding: 0 22px 18px;
  border-bottom: 1px solid #eff0f2;
}

#moments .moment-compose-config .form-group {
  margin: 0;
}

#moments .moment-compose-config .form-label {
  margin-bottom: 6px;
  color: #686f6c;
  font-size: 11px;
}

#moments .moment-compose-config .input {
  min-height: 36px;
  border: 1px solid #dfe2e6;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
}

#moments .moment-compose-config .moment-knowledge-settings {
  position: relative;
  margin: 0;
  border: 0;
}

#moments .moment-compose-config .moment-knowledge-settings summary {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 5px;
  color: #454b49;
  background: #f0f2f3;
  cursor: pointer;
}

#moments .moment-compose-config .moment-knowledge-settings[open] .form-group {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  width: min(320px, 78vw);
  padding: 14px;
  border: 1px solid #e2e5e8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(30, 35, 52, 0.13);
}

#moments .moments-compose-body {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 30px;
  padding: 24px 22px 22px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

#moments .moment-compose-stage,
#moments .moment-compose-output {
  min-height: 440px;
  padding: 0;
  gap: 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#moments .moment-compose-output {
  padding: 18px;
  border-radius: 6px;
  background: #f6f7f8;
}

#moments .moment-compose-stage-head {
  min-height: 26px;
  padding: 0 0 6px;
}

#moments .moment-compose-stage-head > strong {
  color: #2b302e;
  font-size: 14px;
  font-weight: 700;
}

#moments .moment-compose-brief #momentTopic {
  min-height: 46px;
  font-size: 17px;
}

#moments .moment-compose-brief #momentSeed {
  min-height: 215px;
}

#moments .moment-native-tools {
  margin-top: 4px;
}

#moments .moment-draft-box {
  min-height: 185px;
  max-height: 250px;
}

#moments .moments-compose-actions {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

#moments .moments-calendar-panel {
  margin-top: 0;
}

#moments .moments-calendar-panel > .moments-panel-head {
  padding-inline: 4px;
  padding-bottom: 12px;
}

#moments .moment-calendar {
  padding: 0 4px 10px;
}

#moments .moment-week-board {
  min-width: 980px;
  gap: 7px;
}

#moments .moment-day-column {
  min-height: 218px;
  border-radius: 6px;
  background: #f5f6f7;
}

#moments .moment-day-column-head {
  min-height: 42px;
  padding: 8px 9px;
}

#moments .moment-day-column-body {
  min-height: 176px;
  max-height: 244px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px;
  overflow-y: auto;
  scrollbar-width: thin;
}

#moments .moment-calendar-item,
#moments .moment-calendar-item.moment-status-scheduled,
#moments .moment-calendar-item.moment-status-published,
#moments .moment-calendar-item.moment-status-failed {
  min-width: 0;
  min-height: 27px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border: 0;
  border-left: 2px solid var(--moment-status-color);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  cursor: default;
}

#moments .moment-calendar-item:hover,
#moments .moment-calendar-item:focus-visible {
  background: #fff;
  box-shadow: 0 3px 10px rgba(32, 38, 55, 0.09);
  outline: none;
}

#moments .moment-calendar-item > time {
  color: #7e8582;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

#moments .moment-calendar-item .mc-topic {
  display: block;
  overflow: hidden;
  color: #343a38;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#moments .moment-calendar-item .retry-moment-button {
  min-height: 20px;
  padding: 1px 4px;
  font-size: 9px;
}

#moments .moment-empty-slot {
  padding: 8px 2px;
  color: #afb4b2;
  font-size: 10px;
}

.moment-calendar-tooltip {
  position: fixed;
  z-index: 1200;
  width: min(360px, calc(100vw - 16px));
  max-height: min(430px, calc(100vh - 16px));
  padding: 15px 16px;
  overflow: auto;
  border: 1px solid #e2e5e8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(25, 31, 47, 0.18);
  pointer-events: none;
}

.moment-calendar-tooltip .moment-tooltip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.moment-calendar-tooltip .moment-tooltip-head strong {
  color: #272c2a;
  font-size: 14px;
  line-height: 1.45;
}

.moment-calendar-tooltip .moment-tooltip-head span {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 3px;
  color: #5c6461;
  background: #eff1f2;
  font-size: 9px;
}

.moment-calendar-tooltip .moment-tooltip-copy {
  color: #454c49;
  font-size: 12px;
  line-height: 1.72;
  white-space: pre-wrap;
}

.moment-calendar-tooltip .moment-tooltip-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: #858b88;
  font-size: 9px;
}

#moments .moments-analytics-panel {
  margin-top: 28px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none !important;
  overflow: visible;
}

#moments .moments-analytics-panel > .moments-panel-head {
  padding: 12px 4px;
  border: 0;
}

#moments .moments-analytics-summary {
  gap: 34px;
  padding: 6px 4px 18px;
}

#moments .moments-analytics-summary > div {
  min-width: 96px;
}

#moments .moments-analytics-summary strong {
  font-size: 22px;
}

#moments .moments-review-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(420px, 1.12fr);
  gap: 14px;
}

#moments .moments-ranking-panel,
#moments .moments-ai-panel {
  min-width: 0;
  padding: 18px 19px;
  border: 1px solid #e7e9ed;
  border-radius: 8px;
  background: #fff;
}

#moments .moments-ai-panel {
  background: #fbfbff;
}

#moments .moments-review-title {
  min-height: 34px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

#moments .moments-review-title > div,
#moments .moments-review-title:not(:has(> div)) {
  min-width: 0;
}

#moments .moments-review-title strong,
#moments .moments-review-title span {
  display: block;
}

#moments .moments-review-title strong {
  color: #2e3431;
  font-size: 14px;
}

#moments .moments-review-title span {
  margin-top: 3px;
  color: #8b918f;
  font-size: 10px;
}

#moments .moments-analytics-ranking {
  max-height: 430px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#moments .moments-rank-row {
  min-height: 50px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 9px;
  padding: 8px 2px;
  border-bottom: 1px solid #f0f1f2;
}

#moments .moments-rank-row > span {
  grid-row: 1 / 3;
  color: #9ba09e;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

#moments .moments-rank-row > strong {
  min-width: 0;
  overflow: hidden;
  color: #353b38;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#moments .moments-rank-row > small {
  min-width: 0;
  overflow: hidden;
  color: #969b99;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#moments .moments-rank-row > em {
  grid-column: 3;
  grid-row: 1 / 3;
  color: #1f23ab;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

#moments .moments-analytics-list {
  display: block;
}

#moments .moments-ai-loading {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #737a77;
  font-size: 12px;
}

#moments .moments-ai-loading > span {
  width: 13px;
  height: 13px;
  border: 2px solid #d9dbef;
  border-top-color: #1f23ab;
  border-radius: 50%;
  animation: moments-ai-spin 760ms linear infinite;
}

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

#moments .moments-ai-summary {
  padding: 2px 0 14px;
  color: #373d3a;
  font-size: 13px;
  line-height: 1.75;
}

#moments .moments-ai-findings {
  margin: 0;
  padding: 0;
  list-style: none;
}

#moments .moments-ai-findings li {
  padding: 10px 0;
  border-top: 1px solid #e9eaf2;
}

#moments .moments-ai-findings strong,
#moments .moments-ai-findings span {
  display: block;
}

#moments .moments-ai-findings strong {
  margin-bottom: 3px;
  color: #343a38;
  font-size: 11px;
}

#moments .moments-ai-findings span {
  color: #707774;
  font-size: 11px;
  line-height: 1.6;
}

#moments .moments-ai-actions {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 5px;
  background: #f0f1ff;
}

#moments .moments-ai-actions > strong {
  color: #1f23ab;
  font-size: 11px;
}

#moments .moments-ai-actions ol {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

#moments .moments-ai-actions li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 7px;
  padding: 4px 0;
  color: #515855;
  font-size: 11px;
  line-height: 1.55;
}

#moments .moments-ai-actions li > span {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #1f23ab;
  font-size: 8px;
}

#moments .moments-ai-meta {
  margin-top: 12px;
  color: #9a9f9d;
  font-size: 9px;
}

#moments .moments-analytics-empty {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 18px;
  border-radius: 5px;
  background: #f6f7f8;
  color: #8a908e;
  font-size: 11px;
  line-height: 1.55;
}

#moments .moments-analytics-empty strong {
  color: #555c59;
  font-size: 12px;
}

@media (max-width: 1080px) {
  #moments .moment-compose-config {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #moments .moment-compose-config .moment-knowledge-settings {
    grid-column: 1 / -1;
  }

  #moments .moment-compose-config .moment-knowledge-settings summary {
    justify-content: flex-start;
  }

  #moments .moments-compose-body,
  #moments .moments-review-grid {
    grid-template-columns: 1fr;
  }

  #moments .moment-compose-stage,
  #moments .moment-compose-output {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  #moments.moments-view {
    padding-top: 0;
  }

  #moments .moments-panel-head,
  #moments .moment-compose-config,
  #moments .moments-compose-body {
    padding-inline: 14px;
  }

  #moments .moment-compose-config {
    grid-template-columns: 1fr;
  }

  #moments .moment-compose-config .moment-knowledge-settings {
    grid-column: 1;
  }

  #moments .moments-compose-body {
    gap: 20px;
  }

  #moments .moment-compose-output {
    padding: 14px;
  }

  #moments .moments-compose-actions {
    grid-template-columns: 1fr;
  }

  #moments .moments-review-grid {
    gap: 10px;
  }

  #moments .moments-ranking-panel,
  #moments .moments-ai-panel {
    padding: 15px;
  }
}

/* Poster studio: one continuous workbench, not a template-card gallery. */
#poster_studio {
  --poster-ink: #11131f;
  --poster-line: #e5e7ee;
  padding-bottom: 40px;
}

.poster-studio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0 22px;
}

.poster-header-actions,
.poster-brand-row,
.poster-history-head,
.poster-stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.poster-workbench {
  display: grid;
  grid-template-columns: minmax(285px, .88fr) minmax(390px, 1.2fr) minmax(250px, .72fr);
  min-height: 710px;
  overflow: hidden;
  border: 1px solid var(--poster-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(23, 27, 61, .07);
}

.poster-brief-panel,
.poster-variant-panel {
  padding: 24px;
  overflow: auto;
}

.poster-brief-panel { border-right: 1px solid var(--poster-line); }
.poster-variant-panel { border-left: 1px solid var(--poster-line); }
.poster-brief-panel > .form-label { margin-top: 14px; }

.poster-panel-title {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 4px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--poster-line);
}

.poster-panel-title:first-child { padding-top: 0; border-top: 0; }
.poster-panel-title > span { color: #777aa0; font: 700 11px/1.8 ui-monospace, monospace; }
.poster-panel-title div { display: grid; gap: 2px; }
.poster-panel-title strong { color: var(--poster-ink); font-size: 15px; }
.poster-panel-title small { color: #858897; font-size: 12px; }
.poster-brand-row .input { min-width: 0; }

.poster-brand-summary {
  min-height: 62px;
  margin: 12px 0 22px;
  padding: 13px;
  border-radius: 12px;
  background: #f6f7fa;
  color: #747785;
  font-size: 12px;
}

.poster-brand-identity { display: flex; align-items: center; gap: 10px; }
.poster-brand-identity > img,
.poster-brand-identity > span { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: white; display: grid; place-items: center; font-weight: 800; color: #1f23ab; }
.poster-brand-identity div { display: grid; gap: 3px; }
.poster-brand-identity strong { color: var(--poster-ink); font-size: 14px; }
.poster-brand-identity small { color: #777a88; }
.poster-color-swatches { display: flex; justify-content: flex-end; gap: 5px; margin-top: 10px; }
.poster-color-swatches i { width: 22px; height: 7px; border-radius: 999px; background: var(--swatch); }
.poster-form-grid { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }

.poster-upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.poster-upload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 9px;
  border: 1px dashed #c9ccda;
  border-radius: 10px;
  background: #fafafd;
  color: #474a5e;
  font-size: 12px;
  cursor: pointer;
}
.poster-upload-button:hover { border-color: #777be8; color: #1f23ab; background: #f6f6ff; }
.poster-upload-button svg { width: 16px; }
.poster-upload-button input { display: none; }
.poster-input-assets { display: flex; gap: 7px; overflow-x: auto; padding: 9px 0 2px; }
.poster-asset-chip { position: relative; flex: 0 0 70px; display: grid; gap: 3px; }
.poster-asset-chip img { width: 70px; height: 52px; object-fit: cover; border-radius: 7px; border: 1px solid var(--poster-line); }
.poster-asset-chip small { overflow: hidden; color: #777a88; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.poster-asset-chip button { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: #20222e; color: #fff; cursor: pointer; }
.poster-generate-button { width: 100%; min-height: 46px; margin-top: 18px; }

.poster-preview-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 22px 28px;
  background: #f2f3f6;
}
.poster-stage-toolbar { width: 100%; margin-bottom: 16px; }
.poster-stage-toolbar > div { display: grid; gap: 2px; }
.poster-stage-toolbar span { color: var(--poster-ink); font-weight: 700; }
.poster-stage-toolbar small { color: #818492; font-size: 12px; }
.poster-canvas-shell { width: min(100%, 470px); max-height: 610px; aspect-ratio: 3 / 4; transition: aspect-ratio .2s ease; }
.poster-canvas-shell.ratio-1-1 { aspect-ratio: 1 / 1; }
.poster-canvas-shell.ratio-4-5 { aspect-ratio: 4 / 5; }
.poster-canvas-shell.ratio-9-16 { aspect-ratio: 9 / 16; width: min(100%, 340px); }
.poster-canvas {
  --poster-primary: #1f23ab;
  --poster-secondary: #f4f5ff;
  --poster-accent: #ff6b35;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: radial-gradient(circle at 75% 20%, color-mix(in srgb, var(--poster-accent) 34%, transparent), transparent 32%), linear-gradient(145deg, var(--poster-primary), #111432 72%);
  box-shadow: 0 22px 48px rgba(20, 23, 45, .2);
  color: #fff;
}
.poster-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-canvas-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 7, 28, .13), rgba(4, 7, 28, .08) 42%, rgba(4, 7, 28, .82)); }
.poster-canvas-logo { position: absolute; top: 7%; left: 7%; width: 11%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,.92); padding: 4px; }
.poster-canvas-copy { position: absolute; right: 7%; bottom: 8%; left: 7%; }
.poster-canvas-copy p { margin: 0 0 8px; font-size: clamp(11px, 1.6vw, 18px); font-weight: 650; letter-spacing: .08em; }
.poster-canvas-copy h2 { max-width: 94%; margin: 0; color: #fff; font-size: clamp(30px, 4.8vw, 58px); line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
.poster-canvas-rule { width: 20%; height: 5px; margin: 18px 0 14px; border-radius: 9px; background: var(--poster-accent); }
.poster-canvas-copy strong { display: block; max-width: 92%; font-size: clamp(14px, 2vw, 23px); line-height: 1.45; }
.poster-canvas-mark { position: absolute; top: 7%; right: 7%; color: var(--poster-accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.poster-stage-empty { margin-top: 14px; color: #7d808e; font-size: 12px; text-align: center; }

.poster-variant-list { display: grid; gap: 10px; }
.poster-variant-card { position: relative; overflow: hidden; min-height: 126px; padding: 0; border: 2px solid transparent; border-radius: 11px; background: #20222e; cursor: pointer; text-align: left; }
.poster-variant-card.active { border-color: #5b60ea; box-shadow: 0 0 0 3px rgba(91,96,234,.13); }
.poster-variant-card img { width: 100%; height: 126px; object-fit: cover; opacity: .82; }
.poster-variant-card > span { position: absolute; right: 11px; bottom: 10px; left: 11px; display: flex; align-items: center; gap: 8px; color: #fff; text-shadow: 0 1px 8px #000; }
.poster-variant-card b { color: #babdff; font: 700 10px ui-monospace, monospace; }
.poster-variant-placeholder { display: grid; grid-template-columns: 25px 1fr; gap: 2px 8px; padding: 13px; border: 1px dashed #d5d7df; border-radius: 10px; color: #8a8c98; }
.poster-variant-placeholder span { grid-row: 1 / 3; font: 700 10px ui-monospace, monospace; }
.poster-variant-placeholder strong { color: #444755; font-size: 13px; }
.poster-variant-placeholder small { font-size: 11px; }
.poster-history-head { margin: 26px 0 10px; padding-top: 16px; border-top: 1px solid var(--poster-line); }
.poster-project-list { display: grid; gap: 3px; }
.poster-project-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 9px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.poster-project-item:hover,.poster-project-item.active { background: #f2f3f8; }
.poster-project-item span { min-width: 0; display: grid; gap: 2px; }
.poster-project-item strong,.poster-project-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-project-item strong { color: #252735; font-size: 12px; }
.poster-project-item small { color: #8a8d99; font-size: 10px; }
.poster-project-item em { color: #8a8d99; font-size: 10px; font-style: normal; white-space: nowrap; }
.poster-project-item em.is-ready { color: #16865a; }
.poster-project-item em.is-error { color: #c24747; }
.poster-history-empty { padding: 12px; color: #8a8d99; font-size: 12px; text-align: center; }
.poster-settings-modal { max-width: 600px; }
.poster-color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.poster-color-grid input[type="color"] { width: 100%; height: 40px; padding: 3px; border: 1px solid #daddE5; border-radius: 8px; background: white; }

@media (max-width: 1250px) {
  .poster-workbench { grid-template-columns: minmax(270px, .85fr) minmax(380px, 1.15fr); }
  .poster-variant-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 170px 1fr; gap: 18px; border-top: 1px solid var(--poster-line); border-left: 0; }
  .poster-variant-list { grid-template-columns: repeat(3, 1fr); }
  .poster-history-head,.poster-project-list { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .poster-studio-header { align-items: flex-start; flex-direction: column; }
  .poster-workbench { grid-template-columns: 1fr; }
  .poster-brief-panel,.poster-variant-panel { border: 0; border-top: 1px solid var(--poster-line); }
  .poster-preview-stage { padding: 18px 12px; }
  .poster-variant-panel { display: block; }
  .poster-variant-list { grid-template-columns: 1fr; }
}

/* Poster studio: one continuous workbench, not a template-card gallery. */
#poster_studio {
  --poster-ink: #11131f;
  --poster-line: #e5e7ee;
  padding-bottom: 40px;
}

.poster-studio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0 22px;
}

.poster-header-actions,
.poster-brand-row,
.poster-history-head,
.poster-stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.poster-workbench {
  display: grid;
  grid-template-columns: minmax(285px, .88fr) minmax(390px, 1.2fr) minmax(250px, .72fr);
  min-height: 710px;
  overflow: hidden;
  border: 1px solid var(--poster-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(23, 27, 61, .07);
}

.poster-brief-panel,
.poster-variant-panel {
  padding: 24px;
  overflow: auto;
}

.poster-brief-panel { border-right: 1px solid var(--poster-line); }
.poster-variant-panel { border-left: 1px solid var(--poster-line); }
.poster-brief-panel > .form-label { margin-top: 14px; }

.poster-panel-title {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 4px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--poster-line);
}

.poster-panel-title:first-child { padding-top: 0; border-top: 0; }
.poster-panel-title > span { color: #777aa0; font: 700 11px/1.8 ui-monospace, monospace; }
.poster-panel-title div { display: grid; gap: 2px; }
.poster-panel-title strong { color: var(--poster-ink); font-size: 15px; }
.poster-panel-title small { color: #858897; font-size: 12px; }
.poster-brand-row .input { min-width: 0; }

.poster-brand-summary {
  min-height: 62px;
  margin: 12px 0 22px;
  padding: 13px;
  border-radius: 12px;
  background: #f6f7fa;
  color: #747785;
  font-size: 12px;
}

.poster-brand-identity { display: flex; align-items: center; gap: 10px; }
.poster-brand-identity > img,
.poster-brand-identity > span { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: white; display: grid; place-items: center; font-weight: 800; color: #1f23ab; }
.poster-brand-identity div { display: grid; gap: 3px; }
.poster-brand-identity strong { color: var(--poster-ink); font-size: 14px; }
.poster-brand-identity small { color: #777a88; }
.poster-color-swatches { display: flex; justify-content: flex-end; gap: 5px; margin-top: 10px; }
.poster-color-swatches i { width: 22px; height: 7px; border-radius: 999px; background: var(--swatch); }
.poster-form-grid { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }

.poster-upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.poster-upload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 9px;
  border: 1px dashed #c9ccda;
  border-radius: 10px;
  background: #fafafd;
  color: #474a5e;
  font-size: 12px;
  cursor: pointer;
}
.poster-upload-button:hover { border-color: #777be8; color: #1f23ab; background: #f6f6ff; }
.poster-upload-button svg { width: 16px; }
.poster-upload-button input { display: none; }
.poster-template-upload { width: 100%; }
.poster-template-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 22px; }
.poster-template-card { min-width: 0; overflow: hidden; border: 1px solid var(--poster-line); border-radius: 10px; background: #fff; }
.poster-template-card.active { border-color: #5b60ea; box-shadow: 0 0 0 2px rgba(91,96,234,.12); }
.poster-template-select { position: relative; display: block; width: 100%; height: 92px; padding: 0; overflow: hidden; border: 0; background: #f1f2f6; cursor: pointer; }
.poster-template-select img { width: 100%; height: 100%; object-fit: cover; }
.poster-template-select span { position: absolute; right: 6px; bottom: 6px; padding: 3px 7px; border-radius: 999px; background: rgba(17,19,31,.78); color: #fff; font-size: 9px; }
.poster-template-card.active .poster-template-select span { background: #1f23ab; }
.poster-template-meta { display: grid; gap: 2px; padding: 7px 8px 4px; }
.poster-template-meta strong,.poster-template-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-template-meta strong { color: var(--poster-ink); font-size: 11px; }
.poster-template-meta small { color: #898c98; font-size: 9px; }
.poster-template-actions { display: flex; justify-content: space-between; gap: 6px; padding: 4px 8px 7px; }
.poster-template-actions a,.poster-template-actions button { padding: 0; border: 0; background: transparent; color: #626678; font: inherit; font-size: 9px; text-decoration: none; cursor: pointer; }
.poster-template-actions a:hover { color: #1f23ab; }
.poster-template-actions button:hover { color: #c24747; }
.poster-template-empty { grid-column: 1 / -1; display: grid; gap: 3px; padding: 12px; border-radius: 10px; background: #f7f7fa; color: #777a88; }
.poster-template-empty strong { color: #484b59; font-size: 12px; }
.poster-template-empty small { font-size: 10px; line-height: 1.5; }
.poster-input-assets { display: flex; gap: 7px; overflow-x: auto; padding: 9px 0 2px; }
.poster-asset-chip { position: relative; flex: 0 0 70px; display: grid; gap: 3px; }
.poster-asset-chip img { width: 70px; height: 52px; object-fit: cover; border-radius: 7px; border: 1px solid var(--poster-line); }
.poster-asset-chip small { overflow: hidden; color: #777a88; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.poster-asset-chip button { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: #20222e; color: #fff; cursor: pointer; }
.poster-generate-button { width: 100%; min-height: 46px; margin-top: 18px; }

.poster-preview-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 22px 28px;
  background: #f2f3f6;
}
.poster-stage-toolbar { width: 100%; margin-bottom: 16px; }
.poster-stage-toolbar > div { display: grid; gap: 2px; }
.poster-stage-toolbar span { color: var(--poster-ink); font-weight: 700; }
.poster-stage-toolbar small { color: #818492; font-size: 12px; }
.poster-canvas-shell { width: min(100%, 470px); max-height: 610px; aspect-ratio: 3 / 4; transition: aspect-ratio .2s ease; }
.poster-canvas-shell.ratio-1-1 { aspect-ratio: 1 / 1; }
.poster-canvas-shell.ratio-4-5 { aspect-ratio: 4 / 5; }
.poster-canvas-shell.ratio-9-16 { aspect-ratio: 9 / 16; width: min(100%, 340px); }
.poster-canvas {
  --poster-primary: #1f23ab;
  --poster-secondary: #f4f5ff;
  --poster-accent: #ff6b35;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: radial-gradient(circle at 75% 20%, color-mix(in srgb, var(--poster-accent) 34%, transparent), transparent 32%), linear-gradient(145deg, var(--poster-primary), #111432 72%);
  box-shadow: 0 22px 48px rgba(20, 23, 45, .2);
  color: #fff;
}
.poster-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-canvas-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 7, 28, .13), rgba(4, 7, 28, .08) 42%, rgba(4, 7, 28, .82)); }
.poster-canvas-logo { position: absolute; top: 7%; left: 7%; width: 11%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,.92); padding: 4px; }
.poster-canvas-copy { position: absolute; right: 7%; bottom: 8%; left: 7%; }
.poster-canvas-copy p { margin: 0 0 8px; font-size: clamp(11px, 1.6vw, 18px); font-weight: 650; letter-spacing: .08em; }
.poster-canvas-copy h2 { max-width: 94%; margin: 0; color: #fff; font-size: clamp(30px, 4.8vw, 58px); line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
.poster-canvas-rule { width: 20%; height: 5px; margin: 18px 0 14px; border-radius: 9px; background: var(--poster-accent); }
.poster-canvas-copy strong { display: block; max-width: 92%; font-size: clamp(14px, 2vw, 23px); line-height: 1.45; }
.poster-canvas-mark { position: absolute; top: 7%; right: 7%; color: var(--poster-accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.poster-stage-empty { margin-top: 14px; color: #7d808e; font-size: 12px; text-align: center; }

.poster-variant-list { display: grid; gap: 10px; }
.poster-variant-card { position: relative; overflow: hidden; min-height: 126px; padding: 0; border: 2px solid transparent; border-radius: 11px; background: #20222e; cursor: pointer; text-align: left; }
.poster-variant-card.active { border-color: #5b60ea; box-shadow: 0 0 0 3px rgba(91,96,234,.13); }
.poster-variant-card img { width: 100%; height: 126px; object-fit: cover; opacity: .82; }
.poster-variant-card > span { position: absolute; right: 11px; bottom: 10px; left: 11px; display: flex; align-items: center; gap: 8px; color: #fff; text-shadow: 0 1px 8px #000; }
.poster-variant-card b { color: #babdff; font: 700 10px ui-monospace, monospace; }
.poster-variant-placeholder { display: grid; grid-template-columns: 25px 1fr; gap: 2px 8px; padding: 13px; border: 1px dashed #d5d7df; border-radius: 10px; color: #8a8c98; }
.poster-variant-placeholder span { grid-row: 1 / 3; font: 700 10px ui-monospace, monospace; }
.poster-variant-placeholder strong { color: #444755; font-size: 13px; }
.poster-variant-placeholder small { font-size: 11px; }
.poster-history-head { margin: 26px 0 10px; padding-top: 16px; border-top: 1px solid var(--poster-line); }
.poster-project-list { display: grid; gap: 3px; }
.poster-project-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 9px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.poster-project-item:hover,.poster-project-item.active { background: #f2f3f8; }
.poster-project-item span { min-width: 0; display: grid; gap: 2px; }
.poster-project-item strong,.poster-project-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-project-item strong { color: #252735; font-size: 12px; }
.poster-project-item small { color: #8a8d99; font-size: 10px; }
.poster-project-item em { color: #8a8d99; font-size: 10px; font-style: normal; white-space: nowrap; }
.poster-project-item em.is-ready { color: #16865a; }
.poster-project-item em.is-error { color: #c24747; }
.poster-history-empty { padding: 12px; color: #8a8d99; font-size: 12px; text-align: center; }
.poster-settings-modal { max-width: 600px; }
.poster-color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.poster-color-grid input[type="color"] { width: 100%; height: 40px; padding: 3px; border: 1px solid #daddE5; border-radius: 8px; background: white; }

@media (max-width: 1250px) {
  .poster-workbench { grid-template-columns: minmax(270px, .85fr) minmax(380px, 1.15fr); }
  .poster-variant-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 170px 1fr; gap: 18px; border-top: 1px solid var(--poster-line); border-left: 0; }
  .poster-variant-list { grid-template-columns: repeat(3, 1fr); }
  .poster-history-head,.poster-project-list { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .poster-studio-header { align-items: flex-start; flex-direction: column; }
  .poster-workbench { grid-template-columns: 1fr; }
  .poster-brief-panel,.poster-variant-panel { border: 0; border-top: 1px solid var(--poster-line); }
  .poster-preview-stage { padding: 18px 12px; }
  .poster-variant-panel { display: block; }
  .poster-variant-list { grid-template-columns: 1fr; }
}

/* Inbox: the WeChat workspace is the page, not a card below a page title. */
body:has(#inbox.view.active) {
  overflow: hidden;
}

.main:has(#inbox.view.active),
.main.main-compact:has(#inbox.view.active) {
  padding: 16px;
  overflow: hidden;
  background: #f3f4f7;
}

#inbox.view.active {
  width: 100%;
  max-width: none;
  height: calc(100dvh - 32px);
  margin: 0;
  overflow: hidden;
  animation: none;
}

#inbox > #inboxSummary {
  display: none;
}

#inbox > #inboxList {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #f5f5f5;
  box-shadow: 0 10px 34px rgba(25, 31, 58, 0.08);
}

#inbox .wechat-native-shell {
  grid-template-columns: 56px minmax(250px, 310px) minmax(0, 1fr) minmax(260px, 320px);
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
}

#inbox .wechat-chat-pane .chat-compose {
  border-top: 1px solid #dedede;
}

#inbox .wechat-chat-pane {
  position: relative;
}

#inbox .inbox-live-message-notice {
  position: absolute;
  right: 24px;
  bottom: 132px;
  z-index: 4;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #1f23ab;
  box-shadow: 0 8px 24px rgba(31, 35, 171, 0.2);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

#inbox .wechat-chat-pane .reply-draft,
#inbox .wechat-chat-pane .reply-draft:hover,
#inbox .wechat-chat-pane .reply-draft:focus {
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#inbox .wechat-chat-pane .chat-bubble small {
  display: none;
}

@media (max-width: 1180px) {
  body:has(#inbox.view.active) {
    overflow: auto;
  }

  .main:has(#inbox.view.active),
  .main.main-compact:has(#inbox.view.active) {
    padding: 8px;
    overflow: visible;
  }

  #inbox.view.active,
  #inbox .wechat-native-shell {
    height: auto;
    min-height: calc(100dvh - 16px);
    overflow: visible;
  }

  #inbox > #inboxList,
  #inbox .wechat-native-shell {
    border-radius: 8px;
  }

  #inbox .wechat-native-shell {
    grid-template-columns: 52px minmax(220px, 280px) minmax(0, 1fr);
  }

  #inbox .wechat-native-shell .inbox-side-panel {
    grid-column: 2 / -1;
  }
}

/* 2026-09-01: single-month editorial schedule with a softer, responsive calendar surface. */
#content_calendar.content-calendar-view {
  width: 100%;
  max-width: none;
}

#content_calendar .content-calendar-month-banner {
  min-height: 94px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: #fff;
  background: #202329;
  border-radius: 8px;
}

#content_calendar .content-calendar-month-control {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 18px;
}

#content_calendar .content-calendar-month-control strong {
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3.1vw, 46px);
  font-weight: 540;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

#content_calendar .content-calendar-month-control .btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 24px;
  line-height: 1;
}

#content_calendar .content-calendar-banner-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

#content_calendar .content-calendar-banner-actions .btn-secondary {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
}

#content_calendar .content-calendar-banner-actions .btn-primary {
  color: #202329;
  background: #fff;
}

#content_calendar .content-calendar-commandbar {
  min-height: 62px;
  margin: 6px 0 0;
  padding: 10px 4px 8px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
}

#content_calendar .content-calendar-commandbar .eyebrow {
  margin: 0 0 2px;
  color: #30343b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

#content_calendar .content-calendar-hint {
  margin: 0;
  color: #858a93;
  font-size: 11px;
}

#content_calendar .content-calendar-filters .input {
  width: 126px;
  min-height: 34px;
  border: 1px solid #e1e3e7 !important;
  border-radius: 5px !important;
  background: #f7f8fa !important;
}

#content_calendar .content-calendar-legend {
  min-height: 40px;
  margin: 0;
  padding: 0 4px 10px;
  gap: 18px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
}

#content_calendar .content-calendar-legend-item {
  font-size: 11px;
}

#content_calendar .content-calendar-legend-item > span {
  width: 10px;
  height: 5px;
  border-radius: 2px;
}

#content_calendar .content-calendar-color-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: #5f6664;
  font-size: 11px;
  font-weight: 650;
}

#content_calendar .content-calendar-color-note i {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #f04444 0 25%, #1f23ab 25% 50%, #0f766e 50% 75%, #7c3aed 75%);
}

#content_calendar .content-calendar-workspace {
  margin: 0;
  padding: 8px;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff;
  box-shadow: none;
  overflow: auto;
}

#content_calendar .content-calendar-weekdays {
  height: 34px;
  min-width: 840px;
  padding: 0;
  column-gap: 0;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}

#content_calendar .content-calendar-weekdays span {
  border-right: 0;
  color: #626771;
  font-size: 12px;
  font-weight: 600;
}

#content_calendar .content-calendar-weekdays span:last-child {
  border-right: 0;
}

#content_calendar .content-calendar-weekdays span:nth-child(6),
#content_calendar .content-calendar-weekdays span:nth-child(7) {
  color: #4d535d;
  background: #eef0f3;
}

#content_calendar .content-calendar-grid {
  min-width: 840px;
}

#content_calendar .content-calendar-week {
  min-height: var(--calendar-height, 108px);
  margin-bottom: 0;
  column-gap: 0;
  border: 0;
  border-bottom: 1px solid #eff0f2;
  background: transparent;
}

#content_calendar .content-calendar-week:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

#content_calendar .content-calendar-day {
  position: relative;
  min-height: 100%;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  display: block;
  color: #34373d;
  background: transparent;
  box-shadow: none;
}

#content_calendar .content-calendar-day:hover {
  background: #f8f9fb;
}

#content_calendar .content-calendar-day:focus-visible {
  outline: 0;
}

#content_calendar .content-calendar-day:focus-visible > .content-calendar-date-number {
  outline: 2px solid #1f23ab;
  outline-offset: 2px;
}

#content_calendar .content-calendar-date-number {
  position: absolute;
  top: 0;
  right: 8px;
  display: grid;
  place-items: center;
  width: auto;
  height: 31px;
  border-radius: 4px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

#content_calendar .content-calendar-day.outside {
  color: #a8aaae;
  background: transparent;
}

#content_calendar .content-calendar-day.is-weekend {
  background: #f0f2f5;
}

#content_calendar .content-calendar-day.is-weekend:hover {
  background: #e9ecf0;
}

#content_calendar .content-calendar-day.outside.is-weekend {
  color: #9499a2;
  background: #f5f6f8;
}

#content_calendar .content-calendar-day.today > .content-calendar-date-number {
  padding-inline: 7px;
  color: #fff;
  background: #202329;
  border-radius: 4px;
}

#content_calendar .content-calendar-special-day {
  position: absolute;
  top: 0;
  left: 7px;
  z-index: 1;
  height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #555b59;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

#content_calendar .content-calendar-special-day i {
  font-style: normal;
}

#content_calendar .content-calendar-day.is-holiday {
  background: #e9edf1;
}

#content_calendar .content-calendar-day.is-holiday:hover {
  background: #e2e7ec;
}

#content_calendar .content-calendar-day.is-holiday .content-calendar-special-day {
  color: #373c3a;
}

#content_calendar .content-calendar-day.is-workday .content-calendar-special-day {
  color: #9a5b08;
}

#content_calendar .content-calendar-day.is-workday {
  background: transparent;
}

#content_calendar .content-calendar-events {
  inset: 36px 0 7px;
  grid-template-rows: repeat(var(--calendar-lanes), 21px);
  column-gap: 0;
  row-gap: 3px;
}

#content_calendar .content-calendar-event {
  height: 21px;
  margin-inline: 3px;
  padding: 0 7px;
  border-radius: 4px;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  text-align: center;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--calendar-color) 24%, transparent);
  transition: filter 120ms ease, transform 120ms ease;
}

#content_calendar .content-calendar-event:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
}

#content_calendar .content-calendar-event.continues-before {
  margin-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

#content_calendar .content-calendar-event.continues-after {
  margin-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

#content_calendar .content-calendar-event > span {
  font-weight: 600;
}

#content_calendar .content-calendar-event small {
  margin-left: 0;
}

#content_calendar .content-calendar-event.event-tone-0 { --calendar-color: #f04444; }
#content_calendar .content-calendar-event.event-tone-1 { --calendar-color: #1f23ab; }
#content_calendar .content-calendar-event.event-tone-2 { --calendar-color: #0f766e; }
#content_calendar .content-calendar-event.event-tone-3 { --calendar-color: #9f1239; }
#content_calendar .content-calendar-event.event-tone-4 { --calendar-color: #2563eb; }
#content_calendar .content-calendar-event.event-tone-5 { --calendar-color: #16a34a; }
#content_calendar .content-calendar-event.event-tone-6 { --calendar-color: #7c3aed; }
#content_calendar .content-calendar-event.event-tone-7 { --calendar-color: #d97706; }

@media (max-width: 900px) {
  #content_calendar .content-calendar-month-banner {
    grid-template-columns: 1fr auto;
    padding: 16px;
  }

  #content_calendar .content-calendar-month-control {
    grid-column: 1;
    justify-self: start;
  }

  #content_calendar .content-calendar-banner-actions {
    grid-column: 2;
  }

  #content_calendar .content-calendar-commandbar {
    flex-direction: column;
    align-items: flex-start;
  }

  #content_calendar .content-calendar-legend {
    width: 100%;
  }

  #content_calendar .content-calendar-filters {
    width: 100%;
    flex-wrap: wrap;
  }

  #content_calendar .content-calendar-workspace {
    padding: 6px;
  }

  #content_calendar .content-calendar-weekdays,
  #content_calendar .content-calendar-grid {
    min-width: 720px;
  }
}

@media (max-width: 620px) {
  #content_calendar .content-calendar-month-banner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #content_calendar .content-calendar-month-control {
    grid-column: 1;
    justify-self: center;
  }

  #content_calendar .content-calendar-month-control strong {
    font-size: 26px;
  }

  #content_calendar .content-calendar-banner-actions {
    grid-column: 1;
    width: 100%;
    justify-self: stretch;
  }

  #content_calendar .content-calendar-banner-actions .btn-primary {
    flex: 1;
  }
}

/* Thirty-candidate selector: ten options per type without a thirty-card wall. */
#moments .moment-candidate-tabs {
  display: flex;
  gap: 24px;
  margin: 0 0 14px;
  border-bottom: 1px solid #e4e7ea;
}

#moments .moment-candidate-tab {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #747b85;
  background: transparent;
  cursor: pointer;
}

#moments .moment-candidate-tab:hover,
#moments .moment-candidate-tab.is-active {
  color: #2026aa;
  border-bottom-color: #2026aa;
}

#moments .moment-candidate-tab span {
  font-size: 13px;
  font-weight: 700;
}

#moments .moment-candidate-tab strong {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 10px;
  color: currentColor;
  background: #f0f1f4;
  font-size: 10px;
  text-align: center;
}

#moments .moment-candidate-tab.is-active strong {
  background: #eceeff;
}

#moments .moment-candidate-tab em {
  color: #27805d;
  font-size: 10px;
  font-style: normal;
}

#moments .moment-candidate-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#moments .moment-candidate-card {
  min-height: 194px;
}

#moments .moment-candidate-card.is-scheduled {
  border-color: #cfe2d9;
  background: #fbfdfc;
}

#moments .moment-candidate-number {
  flex: 0 0 auto;
  color: #a0a6ae;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

#moments .moment-candidate-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#moments .moment-candidate-actions .btn {
  align-self: auto;
}

#moments .moment-candidate-actions .btn-secondary {
  color: #fff;
  border-color: #242aaf;
  background: #242aaf;
}

#moments .moment-candidate-actions .btn:disabled {
  color: #7f998d;
  border-color: #d8e6df;
  background: #eef6f2;
  opacity: 1;
}

@media (max-width: 820px) {
  #moments .moment-candidate-grid {
    grid-template-columns: 1fr;
  }

  #moments .moment-candidate-tabs {
    gap: 14px;
    overflow-x: auto;
  }

  #moments .moment-candidate-tab {
    flex: 0 0 auto;
  }
}

/* 2026-09-01: moments workspace — wide creation flow and readable seven-day schedule. */
#moments.moments-view {
  width: 100%;
  max-width: none;
}

#moments > .page-header {
  min-height: 96px;
  margin-bottom: 16px;
  padding-bottom: 18px;
}

#moments > .page-header .page-subtitle {
  max-width: 900px;
}

#moments .moments-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#moments .moments-panel {
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(29, 35, 52, 0.055);
  overflow: hidden;
}

#moments .moments-compose-panel {
  max-height: none;
  overflow: visible;
  border: 0;
}

#moments .moments-panel-head {
  min-height: 68px;
  padding: 14px 20px;
  border: 0;
  border-bottom: 1px solid #eceef2;
}

#moments .moments-panel-head .eyebrow {
  margin: 0 0 3px;
  color: #1f23ab;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

#moments .moments-panel-title {
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

#moments .moments-panel-head > .badge {
  padding: 5px 9px;
  border-radius: 4px;
  color: #69706e;
  background: #f1f3f2;
  font-size: 10px;
  font-weight: 600;
}

#moments .moments-compose-body {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(330px, 1.18fr) minmax(360px, 1.35fr);
  gap: 0;
  padding: 0;
}

#moments .moment-compose-stage {
  min-width: 0;
  min-height: 430px;
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid #eceef2;
  background: #fff;
}

#moments .moment-compose-stage:last-child {
  border-right: 0;
}

#moments .moment-compose-output {
  background: #f8f9fb;
}

#moments .moment-compose-stage-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 3px;
}

#moments .moment-compose-stage-head > span {
  flex: 0 0 auto;
  color: #9a9fa9;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#moments .moment-compose-stage-head > div {
  display: grid;
  gap: 2px;
}

#moments .moment-compose-stage-head strong {
  color: #252b2a;
  font-size: 14px;
  font-weight: 680;
}

#moments .moment-compose-stage-head small {
  color: #929896;
  font-size: 10px;
}

#moments .moment-compose-stage .form-group {
  min-width: 0;
  margin: 0;
}

#moments .moment-compose-stage .form-label {
  margin-bottom: 6px;
  color: #656c6a;
  font-size: 11px;
  font-weight: 620;
}

#moments .moment-compose-stage .input,
#moments .moment-compose-stage select,
#moments .moment-compose-stage textarea {
  width: 100%;
  border-radius: 5px !important;
  background: #f2f4f6 !important;
}

#moments .moment-compose-stage textarea {
  line-height: 1.65;
  resize: vertical;
}

#moments .moment-knowledge-settings {
  margin-top: auto;
  border-top: 1px solid #eceef2;
}

#moments .moment-knowledge-settings summary {
  padding: 13px 0 4px;
  color: #666d6b;
  font-size: 11px;
  font-weight: 620;
  cursor: pointer;
}

#moments .moment-knowledge-settings .form-group {
  padding-top: 10px;
}

#moments .moment-knowledge-settings select + select {
  margin-top: 8px;
}

#moments .moment-compose-brief #momentSeed {
  min-height: 178px;
}

#moments .moment-native-tools {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

#moments .moment-emoji-row {
  grid-column: 1 / -1;
}

#moments .moment-emoji-button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 5px;
  background: #f2f4f6;
}

#moments .moment-image-uploader,
#moments #openMomentAssetLibraryButton {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #424a48;
  background: #f2f4f6;
  font-size: 11px;
}

#moments .moment-image-preview {
  grid-column: 1 / -1;
}

#moments .moment-draft-box {
  min-height: 190px;
  max-height: 270px;
  padding: 15px 16px;
  overflow: auto;
  border: 0;
  border-radius: 6px;
  color: #303634;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e7e9ed;
  font-size: 12px;
  line-height: 1.75;
}

#moments .moment-draft-box:empty::before {
  content: "生成后的文案会出现在这里，可继续调整后再排程。";
  color: #a0a5ad;
}

#moments .moment-publish-settings {
  gap: 10px;
}

#moments .moment-visibility-options {
  padding: 12px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e7e9ed;
}

#moments .moment-pacing-warning {
  min-height: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 10px;
}

#moments .moments-compose-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
}

#moments .moments-compose-actions .btn {
  width: 100%;
}

#moments .moments-calendar-panel {
  min-width: 0;
  background: #fff;
}

#moments .moment-calendar {
  max-height: 560px;
  padding: 0;
  overflow: auto;
  background: #fff;
}

#moments .moment-calendar-grid {
  grid-template-columns: 132px repeat(7, minmax(176px, 1fr));
  min-width: 1364px;
}

#moments .moment-calendar-head {
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid #e3e5e9;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

#moments .moment-calendar-row {
  border-bottom: 1px solid #eceef2;
}

#moments .moment-account-cell,
#moments .moment-day-cell {
  min-height: 148px;
  padding: 13px;
  border-right: 1px solid #eceef2;
}

#moments .moment-calendar-head .moment-account-cell,
#moments .moment-calendar-head .moment-day-cell {
  min-height: 44px;
  padding-block: 10px;
}

#moments .moment-calendar-head .moment-account-cell,
#moments .moment-calendar-row .moment-account-cell {
  position: sticky;
  left: 0;
  z-index: 3;
}

#moments .moment-calendar-head .moment-account-cell {
  z-index: 6;
  background: #f5f6f8;
}

#moments .moment-calendar-row .moment-account-cell {
  background: #f8f9fa;
}

#moments .moment-calendar-head .moment-day-cell {
  color: #747b79;
  font-size: 11px;
}

#moments .moment-calendar-head .moment-day-cell strong {
  color: #343a38;
  font-size: 12px;
}

#moments .moment-day-slot {
  gap: 8px;
  background: #fff;
}

#moments .moment-empty-slot {
  color: #d0d3d8;
  font-size: 12px;
}

#moments .moment-calendar-item {
  min-width: 0;
  padding: 11px 12px 12px;
  border: 0;
  border-left: 3px solid #a8adb5;
  border-radius: 5px;
  gap: 8px;
  background: #f6f7f8;
  box-shadow: none;
}

#moments .moment-calendar-item.moment-status-scheduled {
  border-left-color: #1f23ab;
  background: #f2f3ff;
}

#moments .moment-calendar-item.moment-status-published {
  border-left-color: #19956b;
  background: #eef9f4;
}

#moments .moment-calendar-item.moment-status-failed {
  border-left-color: #ce3f4f;
  background: #fff2f3;
}

#moments .moment-calendar-item .mc-head {
  align-items: center;
}

#moments .moment-calendar-item .mc-head time {
  color: #6f7674;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

#moments .moment-calendar-item .mc-head .badge {
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 9px;
}

#moments .moment-calendar-item .mc-topic {
  display: -webkit-box;
  overflow: hidden;
  color: #252b29;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#moments .moment-calendar-item .mc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  color: #818784;
  font-size: 9px;
  line-height: 1.45;
}

#moments .moment-calendar-item .mc-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: #b0b4b8;
}

#moments .moments-analytics-panel,
#moments .conversion-analytics-panel {
  margin-top: 20px;
  border: 0 !important;
  border-radius: 8px !important;
  background: #fff;
  box-shadow: 0 12px 32px rgba(29, 35, 52, 0.045) !important;
  overflow: hidden;
}

#moments .moments-analytics-summary,
#moments .conversion-analytics-summary {
  border-bottom-color: #eceef2;
}

#moments .moments-analytics-summary > div,
#moments .conversion-analytics-summary > div {
  border-right-color: #eceef2;
}

@media (max-width: 1180px) {
  #moments .moments-compose-body {
    grid-template-columns: minmax(220px, 0.85fr) minmax(330px, 1.15fr);
  }

  #moments .moment-compose-output {
    grid-column: 1 / -1;
    min-height: 0;
    border-top: 1px solid #eceef2;
  }
}

@media (max-width: 820px) {
  #moments .moments-compose-body {
    grid-template-columns: 1fr;
  }

  #moments .moment-compose-stage,
  #moments .moment-compose-output {
    grid-column: 1;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #eceef2;
  }

  #moments .moment-calendar-grid {
    min-width: 1300px;
  }
}

/* 2026-09-01: moments workspace simplified around writing, scheduling, and review. */
#moments.moments-view {
  color: #242927;
}

#moments > .page-header {
  min-height: 82px;
  margin-bottom: 8px;
  padding: 10px 4px 16px;
  border-bottom: 0;
}

#moments > .page-header .page-subtitle {
  margin-top: 7px;
  color: #777e7b;
}

#moments .moments-grid {
  gap: 18px;
}

#moments .moments-panel,
#moments .moments-compose-panel,
#moments .moments-calendar-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

#moments .moments-panel-head {
  min-height: 58px;
  padding: 12px 4px 14px;
  border: 0;
}

#moments .moments-panel-head .eyebrow {
  margin-bottom: 4px;
  color: #1f23ab;
}

#moments .moments-panel-title {
  font-size: 19px;
}

#moments .moments-panel-head > .badge {
  padding: 5px 8px;
  border-radius: 4px;
  color: #656c69;
  background: #ecefed;
}

#moments .moments-compose-body {
  grid-template-columns: minmax(210px, 0.68fr) minmax(340px, 1.22fr) minmax(340px, 1.1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid #e7e9ec;
  border-radius: 8px;
  background: #fff;
}

#moments .moment-compose-stage {
  min-height: 500px;
  padding: 18px;
  gap: 17px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#moments .moment-compose-identity,
#moments .moment-compose-output {
  border-radius: 6px;
  background: #f5f6f7;
}

#moments .moment-compose-brief {
  padding-inline: 4px;
}

#moments .moment-compose-stage-head {
  align-items: flex-start;
  gap: 9px;
  padding-bottom: 5px;
}

#moments .moment-compose-stage-head > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #1f23ab;
  background: #e9eaff;
}

#moments .moment-compose-stage-head strong {
  font-size: 15px;
}

#moments .moment-compose-stage-head small {
  margin-top: 2px;
  color: #8a908e;
  line-height: 1.45;
}

#moments .moment-compose-stage .form-label {
  margin-bottom: 7px;
  color: #5d6461;
  font-size: 11px;
}

#moments .moment-compose-stage .input,
#moments .moment-compose-stage select,
#moments .moment-compose-stage textarea {
  border: 1px solid #dfe2e6 !important;
  border-radius: 5px !important;
  background: #fff !important;
  box-shadow: none !important;
}

#moments .moment-compose-brief #momentTopic,
#moments .moment-compose-brief #momentSeed {
  padding-inline: 0;
  border: 0 !important;
  border-bottom: 1px solid #dfe2e6 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

#moments .moment-compose-brief #momentTopic {
  min-height: 42px;
  font-size: 16px;
  font-weight: 620;
}

#moments .moment-compose-brief #momentSeed {
  min-height: 230px;
  line-height: 1.78;
}

#moments .moment-knowledge-settings {
  margin-top: 4px;
  border-top-color: #dde0e3;
}

#moments .moment-knowledge-settings summary {
  padding-top: 13px;
}

#moments .moment-native-tools {
  margin-top: auto;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
}

#moments .moment-emoji-row {
  grid-column: 1 / -1;
}

#moments .moment-emoji-button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 5px;
  background: #f0f2f3;
}

#moments .moment-image-uploader,
#moments #openMomentAssetLibraryButton {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  background: #eef0f2;
}

#moments .moment-image-uploader:hover,
#moments #openMomentAssetLibraryButton:hover {
  background: #e4e7e9;
}

#moments .moment-image-preview {
  grid-column: 1 / -1;
}

#moments .moment-draft-box {
  min-height: 230px;
  max-height: 310px;
  padding: 17px 18px;
  border: 1px solid #e0e3e6;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.8;
}

#moments .moment-visibility-options {
  padding: 12px;
  border: 1px solid #e0e3e6;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
}

#moments .moment-pacing-warning {
  padding: 4px 1px;
  border-radius: 0;
}

#moments .moments-compose-actions {
  gap: 9px;
}

#moments .moments-compose-actions .btn {
  min-height: 38px;
  border-radius: 5px;
}

#moments .moments-calendar-panel {
  margin-top: 4px;
}

#moments .moment-calendar {
  max-height: none;
  padding: 4px 4px 12px;
  overflow-x: auto;
  overflow-y: visible;
  background: transparent;
}

#moments .moment-week-board {
  min-width: 1000px;
  display: grid;
  grid-template-columns: repeat(7, minmax(136px, 1fr));
  gap: 8px;
}

#moments .moment-day-column {
  min-width: 0;
  min-height: 210px;
  border: 0;
  border-radius: 6px;
  background: #f5f6f7;
  overflow: hidden;
}

#moments .moment-day-column.is-weekend {
  background: #f1f3f4;
}

#moments .moment-day-column.is-today {
  background: #eef0ff;
}

#moments .moment-day-column-head {
  min-height: 46px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(49, 55, 65, 0.07);
}

#moments .moment-day-column-head span {
  color: #777e7b;
  font-size: 10px;
  font-weight: 650;
}

#moments .moment-day-column-head strong {
  color: #313735;
  font-size: 14px;
  font-weight: 680;
}

#moments .moment-day-column.is-today .moment-day-column-head span,
#moments .moment-day-column.is-today .moment-day-column-head strong {
  color: #1f23ab;
}

#moments .moment-day-column-body {
  min-height: 164px;
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 8px;
}

#moments .moment-empty-slot {
  min-height: 112px;
  display: grid;
  place-items: center;
  color: #afb4b2;
  font-size: 10px;
}

#moments .moment-calendar-item,
#moments .moment-calendar-item.moment-status-scheduled,
#moments .moment-calendar-item.moment-status-published,
#moments .moment-calendar-item.moment-status-failed {
  --moment-status-color: #9ba09e;
  min-width: 0;
  padding: 10px;
  border: 0;
  border-top: 2px solid var(--moment-status-color);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(27, 32, 45, 0.045);
}

#moments .moment-calendar-item.moment-status-scheduled {
  --moment-status-color: #1f23ab;
}

#moments .moment-calendar-item.moment-status-published {
  --moment-status-color: #168765;
}

#moments .moment-calendar-item.moment-status-failed {
  --moment-status-color: #c13f4e;
}

#moments .moment-calendar-item .mc-head time {
  color: #666d6a;
  font-size: 10px;
  font-weight: 650;
}

#moments .moment-calendar-item .mc-head .badge {
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 8px;
}

#moments .moment-calendar-item .mc-topic {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.5;
  -webkit-line-clamp: 3;
}

#moments .moment-calendar-item .mc-account {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: #555d5a;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#moments .moment-calendar-item .mc-account > span {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--moment-status-color);
}

#moments .moment-calendar-item .mc-meta {
  margin-top: 6px;
  gap: 2px 6px;
  color: #8a908e;
  font-size: 8px;
}

#moments .moment-calendar-empty {
  min-height: 168px;
  padding: 30px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border-radius: 6px;
  color: #8a918e;
  background: #f5f6f7;
  text-align: center;
}

#moments .moment-calendar-empty strong {
  color: #4c5350;
  font-size: 14px;
}

#moments .moment-calendar-empty span {
  font-size: 11px;
}

#moments .moments-analytics-panel,
#moments .conversion-analytics-panel {
  margin-top: 30px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none !important;
  overflow: visible;
}

#moments .moments-analytics-panel > .moments-panel-head,
#moments .conversion-analytics-panel > .moments-panel-head {
  padding: 12px 4px 16px;
  border-bottom: 1px solid #e8eaed;
}

#moments .moments-analytics-summary,
#moments .conversion-analytics-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 18px 4px 24px;
  border: 0;
}

#moments .moments-analytics-summary > div,
#moments .conversion-analytics-summary > div {
  min-width: 92px;
  padding: 0;
  border: 0;
}

#moments .moments-analytics-summary strong,
#moments .conversion-analytics-summary strong {
  font-size: 24px;
}

#moments .moments-analytics-empty {
  padding: 18px;
  border-radius: 6px;
  background: #f5f6f7;
}

@media (max-width: 1180px) {
  #moments .moments-compose-body {
    grid-template-columns: minmax(220px, 0.78fr) minmax(340px, 1.22fr);
  }

  #moments .moment-compose-output {
    grid-column: 1 / -1;
    min-height: 0;
    border-top: 0;
  }
}

@media (max-width: 820px) {
  #moments > .page-header {
    min-height: 74px;
    padding-inline: 0;
  }

  #moments .moments-compose-body {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  #moments .moment-compose-stage,
  #moments .moment-compose-output {
    grid-column: 1;
    min-height: 0;
    border: 0;
  }

  #moments .moment-compose-brief {
    padding: 18px 8px;
  }

  #moments .moment-week-board {
    min-width: 980px;
  }

  #moments .moments-analytics-summary,
  #moments .conversion-analytics-summary {
    gap: 20px 28px;
  }
}

/* Final cascade guard for the focused moments layout. */
#moments .moments-grid {
  gap: 26px;
}

#moments .moments-compose-panel {
  border: 1px solid #e7e9ed;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

#moments .moments-panel-head {
  min-height: 62px;
  padding: 18px 22px;
}

#moments .moments-compose-body {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 30px;
  padding: 24px 22px 22px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

#moments .moment-compose-stage,
#moments .moment-compose-output {
  min-height: 440px;
  padding: 0;
  gap: 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#moments .moment-compose-output {
  padding: 18px;
  border-radius: 6px;
  background: #f6f7f8;
}

#moments .moment-compose-stage-head {
  min-height: 26px;
  padding: 0 0 6px;
}

#moments .moment-compose-brief #momentTopic {
  min-height: 46px;
}

#moments .moment-compose-brief #momentSeed {
  min-height: 215px;
}

#moments .moment-native-tools {
  margin-top: 4px;
}

#moments .moment-draft-box {
  min-height: 185px;
  max-height: 250px;
}

#moments .moments-calendar-panel {
  margin-top: 0;
}

#moments .moments-calendar-panel > .moments-panel-head {
  padding-inline: 4px;
  padding-bottom: 12px;
}

#moments .moment-calendar {
  max-height: none;
  padding: 0 4px 10px;
  overflow-x: auto;
  overflow-y: visible;
  background: transparent;
}

#moments .moment-week-board {
  min-width: 980px;
  gap: 7px;
}

#moments .moment-day-column {
  min-height: 218px;
}

#moments .moment-day-column-head {
  min-height: 42px;
  padding: 8px 9px;
}

#moments .moment-day-column-body {
  min-height: 176px;
  max-height: 244px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px;
  overflow-y: auto;
}

#moments .moment-calendar-item,
#moments .moment-calendar-item.moment-status-scheduled,
#moments .moment-calendar-item.moment-status-published,
#moments .moment-calendar-item.moment-status-failed {
  min-height: 27px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border: 0;
  border-left: 2px solid var(--moment-status-color);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

#moments .moment-calendar-item .mc-topic {
  display: block;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#moments .moments-analytics-panel {
  margin-top: 28px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none !important;
  overflow: visible;
}

#moments .moments-analytics-panel > .moments-panel-head {
  padding: 12px 4px;
  border: 0;
}

#moments .moments-analytics-summary {
  gap: 34px;
  padding: 6px 4px 18px;
}

#moments .moments-analytics-summary > div {
  min-width: 96px;
}

#moments .moments-analytics-summary strong {
  font-size: 22px;
}

@media (max-width: 1080px) {
  #moments .moments-compose-body,
  #moments .moments-review-grid {
    grid-template-columns: 1fr;
  }

  #moments .moment-compose-stage,
  #moments .moment-compose-output {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  #moments .moments-compose-body {
    gap: 20px;
    padding-inline: 14px;
  }

  #moments .moment-compose-output {
    padding: 14px;
  }
}

/* Circle-to-circle composer: choose from real-history candidates instead of briefing the AI. */
#moments .moments-compose-body {
  display: block;
  padding: 0;
}

#moments .moment-circle-source {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 22px;
  border-bottom: 1px solid #e9ebee;
}

#moments .moment-circle-source > div:first-child {
  display: grid;
  gap: 4px;
}

#moments .moment-circle-source strong {
  color: #20252d;
  font-size: 16px;
}

#moments .moment-circle-source span {
  color: #7a808b;
  font-size: 12px;
}

#moments .moment-type-list {
  display: flex;
  gap: 6px;
}

#moments .moment-type-list span {
  padding: 5px 9px;
  border: 1px solid #e2e5e9;
  border-radius: 5px;
  color: #4f5662;
  background: #fafbfb;
}

#moments .moment-candidate-stage {
  padding: 22px;
  border-bottom: 1px solid #e9ebee;
}

#moments .moment-candidate-stage .moment-compose-stage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

#moments .moment-candidate-stage .moment-compose-stage-head span {
  width: auto;
  height: auto;
  display: inline;
  flex: 0 1 auto;
  overflow: hidden;
  border-radius: 0;
  color: #858b95;
  background: transparent;
  font-size: 11px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#moments .moment-candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#moments .moment-candidate-card {
  position: relative;
  min-height: 218px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

#moments .moment-candidate-card:hover {
  border-color: #bfc6d0;
  box-shadow: 0 8px 22px rgb(28 38 52 / 7%);
  transform: translateY(-1px);
}

#moments .moment-candidate-card.is-selected {
  border-color: #2f36b8;
  box-shadow: 0 0 0 1px #2f36b8;
}

#moments .moment-candidate-head {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

#moments .moment-candidate-head > span:last-child {
  overflow: hidden;
  color: #8a9099;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#moments .moment-candidate-type {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 4px;
  color: #2f36b8;
  background: #eef0ff;
  font-size: 11px;
  font-weight: 700;
}

#moments .moment-candidate-type-work {
  color: #17634d;
  background: #e9f7f0;
}

#moments .moment-candidate-type-knowledge {
  color: #845217;
  background: #fff4de;
}

#moments .moment-candidate-card p {
  display: -webkit-box;
  flex: 1;
  margin: 0;
  overflow: hidden;
  color: #303640;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

#moments .moment-candidate-card .btn {
  align-self: flex-start;
}

#moments .moment-candidate-empty,
#moments .moment-candidate-loading {
  grid-column: 1 / -1;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px dashed #dfe3e8;
  border-radius: 6px;
  color: #8a9099;
  background: #fafbfb;
  font-size: 13px;
  text-align: center;
}

#moments .moment-candidate-loading::before {
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid #d7daec;
  border-top-color: #3037b7;
  border-radius: 50%;
  content: "";
  animation: spin 0.8s linear infinite;
}

#moments .moment-compose-output {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 12px 24px;
  padding: 22px;
  border-radius: 0;
  background: #f7f8f9;
}

#moments .moment-compose-output > .moment-compose-stage-head,
#moments .moment-compose-output > .moment-draft-box,
#moments .moment-compose-output > .moment-draft-evidence,
#moments .moment-compose-output > .moment-native-tools {
  grid-column: 1;
}

#moments .moment-compose-output > .moment-publish-settings,
#moments .moment-compose-output > .moment-visibility-options,
#moments .moment-compose-output > .moment-pacing-warning,
#moments .moment-compose-output > .moments-compose-actions {
  grid-column: 2;
}

#moments .moment-compose-output > .moment-publish-settings {
  grid-row: 1 / span 2;
  align-self: start;
}

#moments .moment-compose-output .moment-compose-stage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

#moments .moment-compose-output .moment-compose-stage-head span {
  width: auto;
  height: auto;
  display: inline;
  flex: 0 1 auto;
  border-radius: 0;
  color: #858b95;
  background: transparent;
  font-size: 11px;
}

#moments .moment-draft-box {
  min-height: 156px;
  max-height: none;
  padding: 16px;
  overflow-y: auto;
  border: 1px solid #dfe3e7;
  border-radius: 5px;
  outline: none;
  background: #fff;
  color: #252b33;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}

#moments .moment-draft-box:empty::before {
  color: #a0a6ae;
  content: "选中候选后，可在这里继续修改";
}

#moments .moment-draft-box:focus {
  border-color: #9da4dc;
  box-shadow: 0 0 0 3px rgb(47 54 184 / 8%);
}

#moments .moment-draft-evidence {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#moments .moment-draft-evidence .moment-evidence-head,
#moments .moment-draft-evidence p {
  margin: 0;
}

#moments .moments-compose-actions {
  align-self: end;
}

#moments .moments-compose-actions .btn {
  width: 100%;
}

@media (max-width: 1080px) {
  #moments .moment-circle-source {
    grid-template-columns: 1fr auto;
  }

  #moments .moment-type-list {
    display: none;
  }

  #moments .moment-candidate-grid {
    grid-template-columns: 1fr;
  }

  #moments .moment-candidate-card {
    min-height: 0;
  }

  #moments .moment-compose-output {
    grid-template-columns: 1fr;
  }

  #moments .moment-compose-output > * {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

@media (max-width: 620px) {
  #moments .moment-circle-source {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 14px;
  }

  #moments .moment-circle-source .btn {
    width: 100%;
  }

  #moments .moment-candidate-stage,
  #moments .moment-compose-output {
    padding: 18px 14px;
  }

  #moments .moment-candidate-stage .moment-compose-stage-head {
    display: grid;
  }

  #moments .moment-candidate-stage .moment-compose-stage-head span {
    text-align: left;
  }
}

/* Group assets: soft metrics and scrollable lists, without structural rules. */
#groups.view {
  background: transparent;
}

#groups .page-header {
  margin-bottom: 18px;
  padding-bottom: 0;
  border: 0 !important;
}

#groups .group-asset-stats {
  display: block;
  width: 100%;
  margin: 0 0 20px;
}

#groups #groupAssetStats {
  border: 0 !important;
  box-shadow: none;
  background: transparent;
}

#groups .group-assets-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  padding: 0;
  overflow: visible;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#groups .group-assets-overview article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: 1fr;
  column-gap: 11px;
  align-items: center;
  min-height: 78px;
  padding: 12px 14px;
  border: 0 !important;
  border-radius: 18px;
  background: #f6f6ff;
}

#groups .group-assets-overview article:nth-child(2) { background: #f1f8fb; }
#groups .group-assets-overview article:nth-child(3) { background: #f2f6ff; }
#groups .group-assets-overview article:nth-child(4) { background: #f1faf6; }
#groups .group-assets-overview article:nth-child(5) { background: #fff8ed; }

#groups .group-assets-overview article > strong {
  display: grid;
  grid-row: auto;
  width: 48px;
  height: 48px;
  margin: 0;
  place-items: center;
  border-radius: 999px;
  background: #e5e6ff;
  color: var(--jy-soft-primary);
  font-size: 20px;
  font-weight: 650;
  line-height: 1;
}

#groups .group-assets-overview article:nth-child(2) > strong { background: #dff3f5; color: #217c84; }
#groups .group-assets-overview article:nth-child(3) > strong { background: #e2ecff; color: #3564a9; }
#groups .group-assets-overview article:nth-child(4) > strong { background: #dff3e8; color: #25734f; }
#groups .group-assets-overview article:nth-child(5) > strong { background: #fcedd2; color: #93621f; }

#groups .group-assets-overview article > span {
  align-self: center;
  color: var(--jy-soft-ink);
  font-size: 15px;
  font-weight: 680;
}

#groups .group-workspace-toolbar {
  margin: 0 0 16px;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#groups .group-workspace-toolbar .input {
  border: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 39, 78, 0.045);
}

#groups .groups-workbench {
  display: grid;
  grid-template-columns: minmax(300px, 352px) minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
}

#groups .group-list-rail,
#groups .group-detail-panel,
#groups .group-rail-head,
#groups .group-list-item,
#groups .group-detail-header,
#groups .group-detail-title,
#groups .group-detail-stats,
#groups .group-member-section,
#groups .group-section-head,
#groups .group-member-row {
  border: 0 !important;
}

#groups .group-list-rail {
  min-height: 470px;
  max-height: clamp(470px, 62vh, 720px);
  padding: 8px;
  overflow-y: auto;
  border-radius: 18px;
  background: #f3f4fa;
  box-shadow: none;
  scrollbar-width: thin;
}

#groups .group-rail-head {
  position: sticky;
  top: -8px;
  z-index: 2;
  height: auto;
  margin: 0 0 6px;
  padding: 13px 12px 10px;
  background: #f3f4fa;
  color: var(--jy-soft-muted);
}

#groups .group-list-item {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 7px 10px;
  min-height: 0;
  margin: 0 0 6px;
  padding: 12px;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

#groups .group-list-item:hover {
  background: rgba(255, 255, 255, 0.68);
}

#groups .group-list-item.active {
  background: #fff;
  box-shadow: 0 9px 24px rgba(31, 35, 171, 0.075);
  transform: none;
}

#groups .group-list-main {
  min-width: 0;
}

#groups .group-list-main small {
  margin-top: 3px;
}

#groups .group-list-stats {
  display: flex;
  grid-column: 2;
  grid-template-columns: none;
  gap: 5px;
  min-width: 0;
}

#groups .group-list-stats b,
#groups .group-section-counts b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef0f7;
  color: var(--jy-soft-ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  line-height: 1;
}

#groups .group-list-stats b em,
#groups .group-section-counts b em {
  color: var(--jy-soft-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

#groups .group-list-time {
  display: none;
}

#groups .group-detail-panel {
  min-height: 470px;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--jy-soft-shadow);
}

#groups .group-detail-header {
  display: grid;
  gap: 10px;
  padding: 0 2px 18px;
}

#groups .group-detail-title {
  min-height: 0;
  padding: 0;
}

#groups .group-detail-title h2 {
  margin-top: 2px;
}

#groups .group-detail-title .eyebrow {
  color: var(--jy-soft-primary);
}

#groups .group-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}

#groups .group-detail-stats > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  background: #f0f1f8;
  color: var(--jy-soft-muted);
  font-size: 12px;
}

#groups .group-detail-stats > span:nth-child(2) { background: #eaf7f0; }
#groups .group-detail-stats > span:nth-child(3) { background: #fff5e7; }

#groups .group-detail-stats b {
  display: inline;
  color: var(--jy-soft-ink);
  font-size: 15px;
  font-weight: 680;
  line-height: 1;
}

#groups .group-detail-stats em {
  font-style: normal;
}

#groups .group-detail-header > .row-meta {
  margin: 0;
}

#groups .group-member-section {
  padding: 12px;
  border-radius: 16px;
  background: var(--jy-soft-surface-muted);
}

#groups .group-section-head {
  display: flex;
  height: auto;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 12px;
}

#groups .group-section-head > div {
  display: grid;
  gap: 3px;
}

#groups .group-section-head strong {
  font-size: 16px;
  font-weight: 680;
}

/* Overview metrics use only a number and a clear title. */
#dashboard .dashboard-mini-kpi .pulse-label,
#dashboard .dashboard-asset-grid .stat-label,
#contacts .contact-assets-statline article > span,
#public_content .content-ops-metric > span,
#agents .account-status-metric > span {
  color: var(--jy-soft-ink, #202431);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.3;
}

.content-overview-assets button > span {
  color: var(--jy-soft-ink, #202431);
  font-size: 14px;
  font-weight: 680;
}

#groups .group-section-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

#groups .group-section-counts b:first-child { background: #e5e6ff; color: var(--jy-soft-primary); }
#groups .group-section-counts b:nth-child(2) { background: #e1f3e9; color: #25734f; }
#groups .group-section-counts b:nth-child(3) { background: #fcedd2; color: #93621f; }

#groups .group-member-list {
  display: grid;
  gap: 6px;
  max-height: clamp(330px, 48vh, 560px);
  margin: 0;
  padding-right: 3px;
  overflow-y: auto;
  scrollbar-width: thin;
}

#groups .group-member-row {
  grid-template-columns: 38px minmax(0, 1fr) auto minmax(84px, auto);
  min-height: 58px;
  margin: 0;
  padding: 9px 11px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(35, 39, 78, 0.035);
}

#groups .group-member-row:hover {
  background: #fff;
  box-shadow: 0 7px 18px rgba(35, 39, 78, 0.07);
}

#groups .group-member-row .badge {
  padding: 5px 8px;
  border-radius: 999px;
}

#groups .group-potential-list:empty {
  display: none;
}

@media (max-width: 1180px) {
  #groups .group-assets-overview {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  #groups .groups-workbench {
    grid-template-columns: 1fr;
  }

  #groups .group-list-rail {
    min-height: 0;
    max-height: 360px;
  }
}

@media (max-width: 720px) {
  #groups .group-assets-overview {
    grid-template-columns: 1fr 1fr;
  }

  #groups .group-assets-overview article:last-child {
    grid-column: 1 / -1;
  }

  #groups .group-detail-panel {
    padding: 14px;
  }

  #groups .group-section-head,
  #groups .group-member-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  #groups .group-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  #groups .group-section-counts {
    justify-content: flex-start;
  }

  #groups .group-member-row > .badge,
  #groups .group-member-row > small {
    grid-column: 2;
  }
}

/* Moments workspace: compact soft surfaces inspired by content marketplaces. */
#moments.moments-view {
  width: 100%;
  max-width: none;
  padding: 10px 12px 38px;
  background:
    radial-gradient(circle at 12% 0%, rgba(222, 235, 255, 0.72), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(239, 228, 255, 0.62), transparent 25%),
    #f7f8fc;
}

#moments .moments-grid {
  display: grid;
  gap: 18px;
}

#moments .moments-panel,
#moments .moments-compose-panel,
#moments .moments-calendar-panel {
  border: 0 !important;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(44, 48, 91, 0.07);
}

#moments .moments-compose-panel {
  overflow: visible;
}

#moments .moments-panel-head {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border: 0;
  background: transparent;
}

#moments .moments-title-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

#moments .moments-title-lockup > div {
  min-width: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
}

#moments .moments-title-lockup h2 {
  display: block;
}

#moments .moments-panel-title {
  margin: 0;
  color: #252947;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

#moments .moments-title-lockup > .moments-title-icon {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #3438b9;
  background: linear-gradient(145deg, #e4e9ff, #f1ecff);
  box-shadow: inset 0 0 0 1px rgba(72, 79, 195, 0.06);
}

#moments .moments-title-lockup > .moments-title-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  align-self: center;
  justify-self: center;
}

#moments .moments-title-icon-calendar {
  color: #13735b;
  background: linear-gradient(145deg, #dff7ee, #edf9f4);
}

#moments .moments-title-icon-insight {
  color: #956120;
  background: linear-gradient(145deg, #fff0d6, #fff8e9);
}

#moments .moments-panel-head > .badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 0;
  border-radius: 9px;
  color: #565bb2;
  background: #f0f1ff;
  font-size: 10px;
}

#moments .moment-compose-config {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) minmax(110px, auto);
  align-items: end;
  gap: 10px;
  margin: 0 18px 12px;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: #f5f6fb;
}

#moments .moment-compose-config .form-group {
  margin: 0;
}

#moments .moment-compose-config .form-label,
#moments .moment-publish-settings .form-label {
  margin-bottom: 5px;
  color: #777d91;
  font-size: 10px;
  font-weight: 650;
}

#moments .moment-compose-config .input,
#moments .moment-publish-settings .input {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(47, 52, 91, 0.055);
}

#moments .moment-compose-config .input:focus,
#moments .moment-publish-settings .input:focus {
  outline: 2px solid rgba(49, 54, 184, 0.16);
  outline-offset: 0;
}

#moments .moment-corpus-scope {
  min-height: 38px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 12px;
  border-radius: 10px;
  color: #4f5570;
  background: #fff;
  box-shadow: 0 3px 12px rgba(47, 52, 91, 0.055);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#moments .moment-compose-config .moment-knowledge-settings {
  margin: 0;
  border: 0;
}

#moments .moment-compose-config .moment-knowledge-settings summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  color: #555b72;
  background: #ebeef7;
  font-size: 11px;
}

#moments .moment-compose-config .moment-knowledge-settings[open] .form-group {
  border: 0;
  border-radius: 13px;
  box-shadow: 0 18px 42px rgba(42, 47, 87, 0.16);
}

#moments .moments-compose-body {
  display: block;
  padding: 0 0 18px;
  background: transparent;
}

#moments .moment-circle-source {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  margin: 0 18px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(110deg, #eef2ff 0%, #f5f1ff 48%, #eef9f7 100%);
}

#moments .moment-circle-source > div:first-child {
  display: grid;
  gap: 2px;
}

#moments .moment-circle-source strong {
  color: #2e3253;
  font-size: 14px;
  font-weight: 720;
}

#moments .moment-circle-source span {
  color: #7b8197;
  font-size: 10px;
}

#moments .moment-type-list {
  display: flex;
  gap: 5px;
}

#moments .moment-type-list span {
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  color: #626784;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 650;
}

#moments .moment-circle-source .btn-primary {
  min-height: 38px;
  padding-inline: 16px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 7px 17px rgba(31, 35, 171, 0.18);
}

#moments .moment-candidate-stage {
  padding: 16px 18px 18px;
  border: 0;
}

#moments .moment-compose-stage-head {
  min-height: 28px;
  margin: 0 0 10px;
  padding: 0;
}

#moments .moment-compose-stage-head > strong {
  color: #333753;
  font-size: 13px;
}

#moments .moment-candidate-stage .moment-compose-stage-head span {
  color: #9296a8;
  font-size: 10px;
}

#moments .moment-candidate-tabs {
  width: fit-content;
  display: flex;
  gap: 3px;
  margin: 0 0 10px;
  padding: 3px;
  border-radius: 11px;
  background: #f0f2f8;
}

#moments .moment-candidate-tab {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 0;
  border-radius: 8px;
  color: #73798e;
  background: transparent;
  box-shadow: none;
}

#moments .moment-candidate-tab:hover {
  color: #343956;
  background: rgba(255, 255, 255, 0.64);
}

#moments .moment-candidate-tab.is-active {
  color: #2d32a8;
  background: #fff;
  box-shadow: 0 3px 10px rgba(48, 53, 93, 0.08);
}

#moments .moment-candidate-tab span,
#moments .moment-candidate-tab strong,
#moments .moment-candidate-tab em {
  color: inherit;
  font-size: 11px;
}

#moments .moment-candidate-tab strong {
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #eef0f8;
}

#moments .moment-candidate-tab.is-active strong {
  color: #fff;
  background: #3439b7;
}

#moments .moment-candidate-tab em {
  color: #31846a;
  font-style: normal;
}

#moments .moment-candidate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 9px;
}

#moments .moment-candidate-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px 14px 11px;
  border: 0;
  border-radius: 14px;
  background: #f4f6ff;
  box-shadow: inset 0 0 0 1px rgba(65, 70, 133, 0.025);
  transition: box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
}

#moments .moment-candidate-card.moment-candidate-work {
  background: #f0f8f5;
}

#moments .moment-candidate-card.moment-candidate-knowledge {
  background: #fff7eb;
}

#moments .moment-candidate-card:hover {
  border: 0;
  background: #fff;
  box-shadow: 0 10px 26px rgba(45, 49, 88, 0.1);
  transform: translateY(-1px);
}

#moments .moment-candidate-card.is-selected {
  border: 0;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(47, 52, 184, 0.7), 0 10px 25px rgba(47, 52, 184, 0.1);
}

#moments .moment-candidate-card.is-scheduled {
  opacity: 0.62;
  background: #f0f4f2;
}

#moments .moment-candidate-head {
  display: flex;
  align-items: center;
  gap: 7px;
}

#moments .moment-candidate-number {
  min-width: 24px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: #545ab8;
  background: rgba(255, 255, 255, 0.82);
  font-size: 9px;
  font-weight: 750;
}

#moments .moment-candidate-angle {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #7d8297;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#moments .moment-candidate-length {
  flex: 0 0 auto;
  color: #9a9eb0;
  font-size: 9px;
}

#moments .moment-candidate-card p {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  overflow: visible;
  color: #353950;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  -webkit-line-clamp: unset;
}

#moments .moment-candidate-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

#moments .moment-candidate-actions .btn {
  min-height: 28px;
  padding: 4px 9px;
  border: 0;
  border-radius: 8px;
  font-size: 10px;
}

#moments .moment-candidate-actions .btn-plain {
  color: #696e83;
  background: rgba(255, 255, 255, 0.64);
}

#moments .moment-candidate-actions .btn-secondary {
  color: #3035aa;
  background: rgba(232, 234, 255, 0.9);
}

#moments .moment-candidate-empty,
#moments .moment-candidate-loading {
  min-height: 92px;
  padding: 18px;
  border: 0;
  border-radius: 14px;
  color: #8d92a5;
  background: linear-gradient(110deg, #f3f5fb, #f7f5fc);
  font-size: 11px;
}

#moments .moment-compose-output {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 10px 18px;
  margin: 0 18px;
  padding: 15px;
  border: 0;
  border-radius: 15px;
  background: #f4f5fa;
}

#moments .moment-compose-output.is-awaiting-selection {
  display: none;
}

#moments .moment-compose-output .moment-compose-stage-head {
  margin-bottom: 0;
}

#moments .moment-draft-box {
  min-height: 132px;
  max-height: 250px;
  padding: 13px 14px;
  border: 0;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(45, 50, 88, 0.055);
  color: #30344b;
  font-size: 13px;
  line-height: 1.72;
}

#moments .moment-draft-box:focus {
  border: 0;
  outline: 2px solid rgba(47, 52, 184, 0.18);
  box-shadow: 0 3px 14px rgba(45, 50, 88, 0.055);
}

#moments .moment-native-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

#moments .moment-emoji-row {
  display: flex;
  gap: 4px;
}

#moments .moment-emoji-button,
#moments .moment-image-uploader,
#moments #openMomentAssetLibraryButton {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

#moments .moment-image-source-row {
  flex: 1 1 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.76);
}

#moments .moment-image-source-label {
  color: #4d5268;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

#moments .moment-image-source-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

#moments .moment-image-source-row .moment-image-uploader,
#moments .moment-image-source-row #openMomentAssetLibraryButton {
  min-height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  color: #3e435c;
  background: #f1f2f8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

#moments .moment-image-source-row .moment-image-uploader:hover,
#moments .moment-image-source-row #openMomentAssetLibraryButton:hover {
  color: #2f34b8;
  background: #e9eaff;
  transform: translateY(-1px);
}

#moments .moment-image-source-row svg {
  width: 14px;
  height: 14px;
}

#moments .moment-image-source-status {
  color: #8c91a4;
  font-size: 10px;
  white-space: nowrap;
}

#moments .moment-image-preview {
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

#moments .moment-image-preview:empty {
  display: none;
}

#moments .moment-selected-asset {
  position: relative;
  width: 68px;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  background: #eef0f6;
}

#moments .moment-selected-asset img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#moments .moment-selected-asset button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(22, 25, 38, 0.68);
  cursor: pointer;
}

#moments .moment-selected-asset figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 9px 5px 4px;
  color: #fff;
  background: linear-gradient(transparent, rgba(18, 21, 33, 0.66));
  font-size: 9px;
  text-align: center;
}

.moment-asset-picker-modal {
  width: min(880px, calc(100vw - 32px));
  min-width: 0;
  max-width: none;
  max-height: min(760px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(35, 39, 73, 0.2);
}

.moment-asset-picker-header {
  padding: 20px 22px 11px;
  align-items: flex-start;
}

.moment-asset-picker-body {
  min-height: 0;
  padding: 10px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.moment-asset-picker-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.moment-asset-picker-search {
  min-width: 0;
  flex: 1;
  height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  color: #8d91a3;
  background: #f4f5f9;
}

.moment-asset-picker-search svg {
  width: 15px;
  height: 15px;
}

.moment-asset-picker-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #34384d;
  background: transparent;
  font: inherit;
  font-size: 12px;
}

#momentAssetPickerLimit {
  color: #777c91;
  font-size: 11px;
  white-space: nowrap;
}

.moment-asset-picker-grid {
  min-height: 250px;
  max-height: min(480px, calc(100vh - 245px));
  padding: 2px 4px 4px 2px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.moment-asset-picker-item {
  min-width: 0;
  padding: 6px 6px 9px;
  display: grid;
  gap: 4px;
  border: 0;
  border-radius: 11px;
  color: #3f4358;
  background: #f6f7fa;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.moment-asset-picker-item:hover {
  background: #f0f1f8;
  transform: translateY(-1px);
}

.moment-asset-picker-item.is-selected {
  background: #eceeff;
  box-shadow: inset 0 0 0 2px rgba(47, 52, 184, 0.72);
}

.moment-asset-picker-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1.25;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #e9ebf2;
}

.moment-asset-picker-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.moment-asset-picker-image > svg {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  color: #fff;
  background: #3035b8;
  box-shadow: 0 3px 10px rgba(31, 35, 171, 0.25);
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 150ms ease, transform 150ms ease;
}

.moment-asset-picker-item.is-selected .moment-asset-picker-image > svg {
  opacity: 1;
  transform: scale(1);
}

.moment-asset-picker-item strong,
.moment-asset-picker-item small {
  min-width: 0;
  padding: 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moment-asset-picker-item strong {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 650;
}

.moment-asset-picker-item small {
  color: #969aad;
  font-size: 9px;
}

.moment-asset-picker-empty {
  grid-column: 1 / -1;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #969aad;
  text-align: center;
}

.moment-asset-picker-empty svg {
  width: 25px;
  height: 25px;
  color: #8c91cc;
}

.moment-asset-picker-empty strong {
  color: #555a70;
  font-size: 13px;
}

.moment-asset-picker-empty span {
  font-size: 10px;
}

.moment-asset-picker-empty.is-loading svg {
  animation: moment-asset-picker-spin 900ms linear infinite;
}

@keyframes moment-asset-picker-spin {
  to { transform: rotate(360deg); }
}

.moment-asset-picker-footer {
  padding: 13px 22px 16px;
  align-items: center;
  border-top-color: #f0f1f5;
  background: #fafafd;
}

#momentAssetPickerCount {
  color: #61667c;
  font-size: 11px;
  font-weight: 600;
}

.moment-asset-picker-footer .btn {
  min-height: 34px;
  border-radius: 8px;
}

@media (max-width: 900px) {
  #moments .moment-image-source-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  #moments .moment-image-source-status {
    white-space: normal;
  }

  .moment-asset-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .moment-asset-picker-modal {
    width: calc(100vw - 20px);
  }

  .moment-asset-picker-header,
  .moment-asset-picker-body {
    padding-inline: 14px;
  }

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

  .moment-asset-picker-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

#moments .moment-publish-settings {
  gap: 8px;
}

#moments .moments-compose-actions .btn {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
}

#moments .moments-calendar-panel {
  margin-top: 0;
  padding-bottom: 15px;
}

#moments .moments-calendar-panel > .moments-panel-head {
  padding: 15px 18px 11px;
}

#moments .moment-calendar {
  max-height: none;
  padding: 0 14px;
  overflow-x: auto;
  overflow-y: visible;
  background: transparent;
}

#moments .moment-week-board {
  min-width: 900px;
  display: grid;
  grid-template-columns: repeat(7, minmax(116px, 1fr));
  gap: 7px;
}

#moments .moment-day-column {
  min-height: 172px;
  border: 0;
  border-radius: 13px;
  background: #f4f6fb;
  overflow: hidden;
}

#moments .moment-day-column:nth-child(3n + 2) {
  background: #f2f8f6;
}

#moments .moment-day-column.is-weekend {
  background: #faf6f1;
}

#moments .moment-day-column.is-today {
  background: #eceeff;
  box-shadow: inset 0 0 0 1px rgba(58, 64, 183, 0.12);
}

#moments .moment-day-column-head {
  min-height: 40px;
  padding: 8px 9px 5px;
  border: 0;
  background: transparent;
}

#moments .moment-day-column-head span {
  color: #858a9d;
  font-size: 9px;
}

#moments .moment-day-column-head strong {
  color: #3e435d;
  font-size: 12px;
}

#moments .moment-day-column-body {
  min-height: 128px;
  max-height: 214px;
  gap: 4px;
  padding: 5px 7px 8px;
}

#moments .moment-calendar-item,
#moments .moment-calendar-item.moment-status-scheduled,
#moments .moment-calendar-item.moment-status-published,
#moments .moment-calendar-item.moment-status-failed {
  min-height: 29px;
  padding: 5px 6px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 3px 0 0 var(--moment-status-color), 0 2px 7px rgba(48, 53, 91, 0.04);
}

#moments .moment-calendar-item:hover,
#moments .moment-calendar-item:focus-visible {
  background: #fff;
  box-shadow: inset 3px 0 0 var(--moment-status-color), 0 7px 16px rgba(48, 53, 91, 0.11);
}

#moments .moment-calendar-item .mc-topic {
  font-size: 10px;
}

#moments .moment-empty-slot {
  padding: 7px 2px;
  color: #b1b5c2;
}

.moment-calendar-tooltip {
  border: 0;
  border-radius: 13px;
  box-shadow: 0 20px 48px rgba(31, 36, 72, 0.2);
}

#moments .moments-analytics-panel {
  margin-top: 18px;
  padding-bottom: 18px;
  border: 0 !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(44, 48, 91, 0.07) !important;
  overflow: hidden;
}

#moments .moments-analytics-panel > .moments-panel-head {
  padding: 15px 18px 11px;
  border: 0;
}

#moments .moments-analytics-panel .btn {
  border: 0;
  border-radius: 9px;
}

#moments .moments-analytics-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px 12px;
}

#moments .moments-analytics-summary > div {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #f0f3ff;
}

#moments .moments-analytics-summary > div:nth-child(2) {
  background: #eef8f4;
}

#moments .moments-analytics-summary > div:nth-child(3) {
  background: #fff6e8;
}

#moments .moments-analytics-summary strong {
  color: #303555;
  font-size: 20px;
}

#moments .moments-analytics-summary span {
  color: #858a9d;
  font-size: 10px;
}

#moments .moments-review-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(400px, 1.12fr);
  gap: 10px;
  padding: 0 18px;
}

#moments .moments-ranking-panel,
#moments .moments-ai-panel {
  min-width: 0;
  padding: 14px;
  border: 0;
  border-radius: 14px;
  background: #f5f6fb;
}

#moments .moments-ai-panel {
  background: #f5f3fb;
}

#moments .moments-review-title {
  min-height: 30px;
  margin-bottom: 9px;
}

#moments .moments-review-title strong {
  color: #363a54;
  font-size: 12px;
}

#moments .moments-review-title span {
  margin-top: 1px;
  color: #9296a7;
  font-size: 9px;
}

#moments .moments-analytics-ranking {
  display: grid;
  gap: 5px;
  max-height: 390px;
}

#moments .moments-rank-row {
  min-height: 47px;
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.78);
}

#moments .moments-rank-row > span {
  color: #7075a5;
  font-weight: 700;
}

#moments .moments-ai-summary {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.65;
}

#moments .moments-ai-findings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}

#moments .moments-ai-findings li {
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.7);
}

#moments .moments-ai-actions {
  border-radius: 10px;
  background: #e9ebff;
}

#moments .moments-analytics-empty {
  min-height: 108px;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1080px) {
  #moments .moment-compose-config {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #moments .moment-compose-config .moment-knowledge-settings {
    grid-column: 1 / -1;
  }

  #moments .moment-compose-config .moment-knowledge-settings summary {
    justify-content: flex-start;
  }

  #moments .moment-compose-output,
  #moments .moments-review-grid {
    grid-template-columns: 1fr;
  }

  #moments .moment-compose-output > * {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

@media (max-width: 760px) {
  #moments.moments-view {
    padding: 4px 0 28px;
    background: #f7f8fc;
  }

  #moments .moments-panel,
  #moments .moments-compose-panel,
  #moments .moments-calendar-panel,
  #moments .moments-analytics-panel {
    border-radius: 14px !important;
  }

  #moments .moment-compose-config {
    grid-template-columns: 1fr;
    margin-inline: 12px;
  }

  #moments .moment-compose-config .moment-knowledge-settings {
    grid-column: 1;
  }

  #moments .moment-circle-source {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-inline: 12px;
  }

  #moments .moment-type-list {
    display: flex;
  }

  #moments .moment-circle-source .btn-primary {
    width: 100%;
  }

  #moments .moment-candidate-stage {
    padding-inline: 12px;
  }

  #moments .moment-candidate-stage .moment-compose-stage-head {
    display: grid;
    gap: 2px;
  }

  #moments .moment-candidate-stage .moment-compose-stage-head span {
    text-align: left;
  }

  #moments .moment-candidate-tabs {
    width: 100%;
  }

  #moments .moment-candidate-tab {
    flex: 1;
    justify-content: center;
    padding-inline: 7px;
  }

  #moments .moment-candidate-tab em {
    display: none;
  }

  #moments .moment-candidate-grid,
  #moments .moments-analytics-summary,
  #moments .moments-ai-findings {
    grid-template-columns: 1fr;
  }

  #moments .moment-candidate-card {
    min-height: 0;
  }

  #moments .moment-compose-output {
    margin-inline: 12px;
    padding: 12px;
  }

  #moments .moments-calendar-panel > .moments-panel-head,
  #moments .moments-analytics-panel > .moments-panel-head {
    padding-inline: 13px;
  }

  #moments .moments-analytics-summary,
  #moments .moments-review-grid {
    padding-inline: 12px;
  }
}

/* Final cascade lock for the shared workspaces. Keep later feature CSS from
   reintroducing borders, flat metrics or ruled form fields. */
#agents .account-status-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
}

#agents .account-status-metric,
#agents .account-status-metric:first-child,
#agents .account-status-metric:last-child {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  min-height: 104px;
  padding: 16px 18px;
  border: 0;
  border-radius: 18px;
  background: #f0f1ff;
}

#agents .account-status-metric:nth-child(2) { background: #edf9f4; }
#agents .account-status-metric:nth-child(3) { background: #fff0f1; }
#agents .account-status-metric:nth-child(4) { background: #fff6e8; }

#agents .account-status-metric > .metric-icon,
#agents .account-status-metric > .metric-ring,
#agents .account-status-metric:last-child > .metric-ring {
  position: static;
  inset: auto;
  grid-column: 1;
  grid-row: 1 / 3;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 35, 171, 0.09);
  transform: none;
}

#agents .account-status-metric > span { grid-column: 2; grid-row: 1; align-self: end; }
#agents .account-status-metric > strong { grid-column: 2; grid-row: 2; align-self: start; }

#knowledge .knowledge-workbench,
#knowledge .knowledge-base-detail,
#knowledge .kb-summary-card,
#knowledge .kb-create-card,
#knowledge .kb-list-card,
#team .team-workbench,
#team .team-workbench > .card {
  border: 0 !important;
}

#knowledge .knowledge-base-detail input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#knowledge .knowledge-base-detail select,
#knowledge .knowledge-base-detail textarea,
#team .team-member-form input:not([type="checkbox"]):not([type="radio"]),
#team .team-member-form select,
#admin .admin-tenant-form input:not([type="checkbox"]):not([type="radio"]),
#admin .admin-tenant-form select {
  padding-inline: 12px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f2f4f8 !important;
}

#team .team-member-row,
#admin .admin-tenant-row,
#knowledge .knowledge-item-row {
  border: 0 !important;
  border-radius: 13px !important;
}

#public_content .studio-account-bar,
#public_content .editor-sheet,
#public_content .preview-sheet,
#public_content .guided-creation-editor,
#public_content .guided-creation-head,
#public_content .guided-stage,
#public_content .guided-stage.is-current,
#public_content .guided-stage.is-past.is-open,
#public_content .guided-stage-head,
#public_content .guided-stage.is-locked .guided-stage-head,
#public_content .guided-stage.is-past:not(.is-open) .guided-stage-head,
#public_content .guided-topic-picker,
#public_content .guided-topic-list,
#public_content .guided-final-check {
  border: 0 !important;
}

#public_content .editor-sheet,
#public_content .preview-sheet {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(31, 35, 70, 0.065);
}

#public_content .guided-creation-editor {
  gap: 14px;
  padding: 14px;
  background: #fff;
}

#public_content .guided-creation-head {
  min-height: 532px;
  border-radius: 14px;
  background: #f2f4fb;
}

#public_content .guided-stage.is-current,
#public_content .guided-stage.is-past.is-open {
  padding: 24px 26px 30px;
  border-radius: 14px;
  background: #fff;
}

#public_content .guided-topic-picker,
#public_content .guided-topic-list { border-radius: 13px; }

@media (max-width: 1100px) {
  #agents .account-status-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  #agents .account-status-board { grid-template-columns: 1fr; }
}

/* 2026-09-02 message broadcast: WeChat preview + send configuration. */
#broadcasts {
  width: min(100%, 1460px);
  padding-top: 14px;
  padding-bottom: 56px;
}

#broadcasts .broadcast-workbench {
  display: grid;
  grid-template-columns: minmax(310px, 350px) minmax(0, 1fr);
  gap: 24px;
  min-height: 0;
  align-items: start;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none !important;
}

#broadcasts .broadcast-phone-panel {
  position: sticky;
  top: 24px;
  min-width: 0;
  padding: 20px 20px 18px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
  box-shadow: 0 22px 58px rgba(31, 35, 70, 0.085);
}

#broadcasts .broadcast-phone-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

#broadcasts .broadcast-phone-panel-head h2 {
  margin: 3px 0 0;
  color: #202333;
  font-size: 20px;
  letter-spacing: -0.02em;
}

#broadcasts #broadcastPhoneTypeBadge {
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf9f1;
  color: #248254;
  font-size: 11px;
  font-weight: 650;
}

#broadcasts .broadcast-phone-shell {
  width: min(100%, 286px);
  margin: 0 auto;
  padding: 9px;
  border-radius: 38px;
  background: #17191d;
  box-shadow: 0 24px 42px rgba(19, 23, 34, 0.22);
}

#broadcasts .broadcast-phone-hardware {
  position: relative;
  z-index: 2;
  height: 22px;
  margin-bottom: -22px;
  display: grid;
  place-items: start center;
}

#broadcasts .broadcast-phone-hardware span {
  width: 82px;
  height: 20px;
  border-radius: 0 0 14px 14px;
  background: #17191d;
}

#broadcasts .broadcast-phone-screen {
  min-height: 574px;
  display: grid;
  grid-template-rows: 28px 48px minmax(0, 1fr) 54px;
  overflow: hidden;
  border-radius: 30px;
  background: #ededed;
}

#broadcasts .broadcast-phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 15px 0;
  color: #1d1d1f;
  font-size: 9px;
}

#broadcasts .broadcast-phone-status strong { font-size: 11px; }
#broadcasts .broadcast-phone-status span { font-size: 7px; letter-spacing: .04em; }

#broadcasts .broadcast-phone-nav {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  padding: 0 10px;
  color: #171717;
}

#broadcasts .broadcast-phone-nav > span { font-size: 30px; font-weight: 300; line-height: 1; }
#broadcasts .broadcast-phone-nav strong { overflow: hidden; font-size: 14px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
#broadcasts .broadcast-phone-nav b { font-size: 15px; font-weight: 700; text-align: right; letter-spacing: 1px; }

#broadcasts .broadcast-phone-chat {
  min-height: 0;
  padding: 16px 12px;
  overflow-y: auto;
  background: #ededed;
}

#broadcasts .broadcast-phone-chat > time {
  display: block;
  margin-bottom: 16px;
  color: #a3a3a3;
  font-size: 9px;
  text-align: center;
}

#broadcasts .broadcast-phone-message {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
}

#broadcasts .broadcast-phone-avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: linear-gradient(145deg, #2b33b7, #54bde1);
  color: #fff;
  font-size: 13px;
  font-weight: 720;
}

#broadcasts .broadcast-phone-bubble {
  position: relative;
  max-width: calc(100% - 48px);
  min-width: 46px;
  padding: 9px 11px;
  border-radius: 5px;
  background: #95ec69;
  color: #1f2320;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
}

#broadcasts .broadcast-phone-bubble::after {
  position: absolute;
  top: 11px;
  right: -6px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #95ec69;
  content: "";
}

#broadcasts .broadcast-phone-bubble p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

#broadcasts .broadcast-phone-image-preview {
  width: 162px;
  min-height: 124px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.68);
}

#broadcasts .broadcast-phone-image-preview img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

#broadcasts .broadcast-phone-image-preview span {
  display: grid;
  place-items: center;
  gap: 6px;
  color: #66716b;
  font-size: 10px;
}

#broadcasts .broadcast-phone-image-preview svg { width: 22px; height: 22px; }

#broadcasts .broadcast-phone-link-preview {
  width: 178px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.84);
}

#broadcasts .broadcast-phone-link-preview > div { min-width: 0; display: grid; gap: 4px; }
#broadcasts .broadcast-phone-link-preview strong,
#broadcasts .broadcast-phone-link-preview small { overflow: hidden; text-overflow: ellipsis; }
#broadcasts .broadcast-phone-link-preview strong { color: #222; font-size: 11px; white-space: nowrap; }
#broadcasts .broadcast-phone-link-preview small { max-height: 30px; color: #858585; font-size: 9px; line-height: 1.5; }
#broadcasts .broadcast-phone-link-preview img,
#broadcasts .broadcast-phone-link-preview > span { width: 46px; height: 46px; border-radius: 3px; object-fit: cover; }
#broadcasts .broadcast-phone-link-preview > span { display: grid; place-items: center; background: #eceef3; color: #7c8190; }
#broadcasts .broadcast-phone-link-preview svg { width: 18px; height: 18px; }

#broadcasts .broadcast-phone-composer {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  background: #f7f7f7;
  color: #383838;
}

#broadcasts .broadcast-phone-composer > div { height: 34px; border-radius: 5px; background: #fff; }
#broadcasts .broadcast-phone-composer span,
#broadcasts .broadcast-phone-composer b { font-size: 20px; font-weight: 400; text-align: center; }

#broadcasts .broadcast-phone-context {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}

#broadcasts .broadcast-phone-context span {
  max-width: 100%;
  overflow: hidden;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef0f6;
  color: #6f7585;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#broadcasts .broadcast-config-workspace {
  min-width: 0;
  display: grid;
  gap: 18px;
}

#broadcasts .broadcast-compose,
#broadcasts .broadcast-preview-zone,
#broadcasts > .broadcast-history-zone {
  overflow: hidden;
  border: 0 !important;
  border-radius: 22px !important;
  background: #fff;
  box-shadow: 0 18px 48px rgba(31, 35, 70, 0.065) !important;
}

#broadcasts .broadcast-section-head {
  min-height: 0;
  padding: 24px 26px 15px;
  border: 0 !important;
}

#broadcasts .broadcast-section-head h2 { margin-top: 3px; font-size: 22px; letter-spacing: -0.025em; }

#broadcasts .broadcast-step-label {
  padding: 7px 11px;
  border-radius: 999px;
  background: #f0f1ff;
  color: #3c439d;
  font-size: 11px;
  font-weight: 650;
}

#broadcasts .broadcast-form-section,
#broadcasts .broadcast-form-section + .broadcast-form-section {
  gap: 14px;
  margin: 0 20px 12px;
  padding: 18px;
  border: 0 !important;
  border-radius: 16px;
  background: #f6f7fb;
}

#broadcasts .broadcast-basic-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#broadcasts .broadcast-basic-fields #broadcastAccountMeta { grid-column: 1 / -1; }

#broadcasts .broadcast-section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

#broadcasts .broadcast-section-label > span { color: #252936; font-size: 14px; font-weight: 680; }
#broadcasts .broadcast-section-label > small { color: #959aa8; font-size: 10px; font-weight: 450; }

#broadcasts .broadcast-tag-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

#broadcasts .broadcast-tag-option {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 36px;
  padding: 8px 14px 8px 10px;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e6e8f0;
  color: #555c6c;
  font-size: 12px;
  font-weight: 540;
  line-height: 1.2;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

#broadcasts .broadcast-tag-option::before {
  content: "";
  display: grid;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: #f1f2f7;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

#broadcasts .broadcast-tag-option:hover {
  color: #2f3442;
  box-shadow: inset 0 0 0 1px #cfd2df, 0 5px 14px rgba(35, 39, 59, 0.06);
  transform: translateY(-1px);
}

#broadcasts .broadcast-tag-option:has(input:checked) {
  background: #eef0ff;
  box-shadow: inset 0 0 0 1px rgba(31, 35, 171, 0.18);
  color: #1f23ab;
}

#broadcasts .broadcast-tag-option:has(input:checked)::before {
  content: "✓";
  background: #1f23ab;
}

#broadcasts .broadcast-tag-option:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(31, 35, 171, 0.14), inset 0 0 0 1px #1f23ab;
}

#broadcasts .broadcast-tag-option input[type="checkbox"] {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
}

#broadcasts .broadcast-tag-option > span {
  display: block;
  min-width: 0;
  white-space: nowrap;
  word-break: keep-all;
}

#broadcasts .broadcast-compose .form-label {
  display: grid;
  gap: 8px;
  color: #5f6574;
  font-size: 11px;
}

#broadcasts .broadcast-compose input:not([type="checkbox"]):not([type="radio"]),
#broadcasts .broadcast-compose select,
#broadcasts .broadcast-compose textarea {
  min-height: 42px;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
}

#broadcasts .broadcast-compose input:focus,
#broadcasts .broadcast-compose select:focus,
#broadcasts .broadcast-compose textarea:focus {
  box-shadow: 0 0 0 3px rgba(31, 35, 171, 0.11) !important;
}

#broadcasts .broadcast-message-fields { position: relative; padding-top: 22px; }
#broadcasts .broadcast-message-type { width: min(220px, 100%); }
#broadcasts .broadcast-content-input { min-height: 186px; font-size: 14px; line-height: 1.7; resize: vertical; }
#broadcasts .broadcast-type-fields { display: grid; gap: 12px; }
#broadcasts .broadcast-link-url-grid,
#broadcasts .broadcast-timing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

#broadcasts .broadcast-number-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; }
#broadcasts .broadcast-number-field > span { color: #717786; font-size: 11px; }
#broadcasts .broadcast-risk-copy { margin: 0; color: #8a909f; font-size: 10px; line-height: 1.65; }

#broadcasts .broadcast-compose-actions {
  display: grid;
  grid-template-columns: auto minmax(200px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 22px 24px;
  border: 0 !important;
}

#broadcasts .broadcast-confirm-check {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #646a78;
  font-size: 11px;
}

#broadcasts .broadcast-preview-empty {
  min-height: 132px;
  margin: 0 20px 22px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 0;
  border-radius: 16px;
  background: #f6f7fb;
  color: #9398a5;
  line-height: 1.7;
  text-align: center;
}

#broadcasts .broadcast-preview-result { padding: 8px 22px 24px; }
#broadcasts .broadcast-preview-metrics { gap: 10px; }
#broadcasts .broadcast-preview-metrics > div { border: 0; border-radius: 14px; background: #eef4ff; }
#broadcasts .broadcast-preview-metrics > div:nth-child(2) { background: #edf9f4; }
#broadcasts .broadcast-preview-metrics > div:nth-child(3) { background: #fff6e8; }

#broadcasts > .broadcast-history-zone {
  margin-top: 24px;
}

#broadcasts .broadcast-history-layout {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: 18px;
  padding: 0 22px 24px;
  border: 0 !important;
}

#broadcasts .broadcast-campaign-list,
#broadcasts .broadcast-campaign-detail { min-width: 0; border: 0 !important; }

#broadcasts .broadcast-campaign-row {
  margin-bottom: 8px;
  padding: 14px;
  border: 0 !important;
  border-radius: 13px;
  background: #f5f6fa;
}

#broadcasts .broadcast-campaign-row.active { background: #eef0ff; box-shadow: inset 3px 0 0 #1f23ab; }

@media (max-width: 1080px) {
  #broadcasts .broadcast-workbench { grid-template-columns: minmax(290px, 320px) minmax(0, 1fr); gap: 18px; }
  #broadcasts .broadcast-basic-fields,
  #broadcasts .broadcast-link-url-grid,
  #broadcasts .broadcast-timing-grid { grid-template-columns: 1fr; }
  #broadcasts .broadcast-compose-actions { grid-template-columns: 1fr 1fr; }
  #broadcasts .broadcast-confirm-check { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
}

@media (max-width: 820px) {
  #broadcasts .broadcast-workbench { grid-template-columns: 1fr; }
  #broadcasts .broadcast-phone-panel { position: static; }
  #broadcasts .broadcast-phone-shell { width: min(100%, 300px); }
  #broadcasts .broadcast-history-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  #broadcasts .broadcast-form-section,
  #broadcasts .broadcast-form-section + .broadcast-form-section { margin-inline: 12px; padding: 15px; }
  #broadcasts .broadcast-section-head { padding-inline: 16px; }
  #broadcasts .broadcast-compose-actions { grid-template-columns: 1fr; padding-inline: 14px; }
  #broadcasts .broadcast-confirm-check { grid-column: auto; grid-row: auto; }
  #broadcasts .broadcast-compose-actions .btn { width: 100%; }
}

/* 公众号创作：知识库选择使用统一的轻量选择卡，隐藏浏览器原生复选框。 */
#public_content .guided-knowledge-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding: 10px;
  border: 0 !important;
  border-radius: 16px;
  overflow: visible;
  background: #f5f6fa;
}

#public_content .guided-knowledge-list .knowledge-combo-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) minmax(118px, 140px);
  gap: 11px;
  align-items: center;
  min-height: 66px;
  padding: 12px 13px;
  border: 0 !important;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(36, 41, 66, 0.045);
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

#public_content .guided-knowledge-list .knowledge-combo-item:hover {
  background: #fafaff;
  box-shadow: 0 8px 22px rgba(36, 41, 66, 0.07);
  transform: translateY(-1px);
}

#public_content .guided-knowledge-list .guided-knowledge-checkbox {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

#public_content .guided-knowledge-list .knowledge-combo-check {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #eef0f5;
  color: transparent;
  box-shadow: inset 0 0 0 1px rgba(44, 50, 73, 0.08);
  transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

#public_content .guided-knowledge-list .knowledge-combo-check::after {
  content: "✓";
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-0.5px);
}

#public_content .guided-knowledge-list .knowledge-combo-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

#public_content .guided-knowledge-list .knowledge-combo-copy strong {
  overflow: hidden;
  color: #262a38;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#public_content .guided-knowledge-list .knowledge-combo-copy em {
  color: #989daa;
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
}

  #public_content .guided-knowledge-list .knowledge-role-select {
  width: 100%;
  min-height: 34px;
  padding: 0 30px 0 11px;
  border: 0 !important;
  border-radius: 9px !important;
  background-color: #f5f6fa !important;
  box-shadow: none !important;
  color: #646978;
  font-size: 11px;
  cursor: pointer;
}

#public_content .guided-knowledge-list .knowledge-combo-item:has(.guided-knowledge-checkbox:checked) {
  background: #f2f3ff;
  box-shadow: inset 0 0 0 1px rgba(47, 45, 190, 0.13), 0 7px 20px rgba(47, 45, 190, 0.07);
}

#public_content .guided-knowledge-list .knowledge-combo-item:has(.guided-knowledge-checkbox:checked) .knowledge-combo-check {
  background: #2f2dbe;
  color: #fff;
  box-shadow: 0 5px 12px rgba(47, 45, 190, 0.2);
}

#public_content .guided-knowledge-list .knowledge-combo-item:has(.guided-knowledge-checkbox:checked) .knowledge-role-select {
  background-color: rgba(255, 255, 255, 0.72) !important;
  color: #343849;
}

#public_content .guided-knowledge-list .guided-knowledge-checkbox:focus-visible + .knowledge-combo-check {
  box-shadow: 0 0 0 3px rgba(47, 45, 190, 0.18);
}

@media (max-width: 820px) {
  #public_content .guided-knowledge-list {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  #public_content .guided-knowledge-list .knowledge-combo-item {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  #public_content .guided-knowledge-list .knowledge-role-select {
    grid-column: 2;
  }
}

/* Keep the swipe surface authoritative over earlier moment-grid layers. */
#moments .moment-candidate-tabs {
  width: 100%;
  display: flex;
}

#moments .moment-candidate-grid {
  display: block;
}

#moments .moment-creation-workspace .moment-compose-output > * {
  grid-column: 1 !important;
  grid-row: auto !important;
}

/* 朋友圈分拣流水线：待分拣 → 储备 → 发布排期 */
#moments .moment-flow-step {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  border-radius: 8px;
  color: #4c51bd;
  background: #e9ebff;
  font-size: 9px;
  font-weight: 800;
  vertical-align: middle;
}

#moments .moment-creation-workspace {
  grid-template-columns: minmax(330px, .7fr) minmax(560px, 1.3fr);
  gap: 16px;
}

#moments .moment-candidate-stage,
#moments .moment-compose-output {
  position: relative;
}

#moments .moment-candidate-stage::after {
  position: absolute;
  top: 50%;
  right: -23px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #7176c9;
  background: #fff;
  box-shadow: 0 7px 18px rgba(47, 52, 120, .12);
  content: "→";
  font-size: 14px;
  z-index: 4;
}

#moments .moment-compose-output.is-awaiting-selection > .moment-reserve-list {
  opacity: 1;
  pointer-events: auto;
}

#moments .moment-reserve-list {
  height: clamp(380px, 54vh, 580px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  padding: 3px 7px 18px 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(78, 83, 137, .24) transparent;
}

#moments .moment-reserve-empty {
  grid-column: 1 / -1;
  min-height: 112px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #9b9fb0;
  background: linear-gradient(135deg, #f1f3fb, #f5f7f5);
  font-size: 11px;
}

#moments .moment-reserve-card {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 14px 15px 12px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(44, 49, 89, .055);
  cursor: grab;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

#moments .moment-reserve-card:hover,
#moments .moment-reserve-card.is-selected {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(44, 49, 89, .1);
}

#moments .moment-reserve-card.is-selected {
  background: #f1f2ff;
  box-shadow: inset 0 0 0 1px rgba(52, 57, 183, .16), 0 8px 22px rgba(44, 49, 89, .08);
}

#moments .moment-reserve-card.is-dragging {
  opacity: .55;
  cursor: grabbing;
}

#moments .moment-reserve-card-head,
#moments .moment-reserve-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

#moments .moment-reserve-card-head {
  justify-content: space-between;
}

#moments .moment-reserve-card-head span,
#moments .moment-reserve-card-head em {
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

#moments .moment-reserve-card-head span {
  color: #4f55af;
}

#moments .moment-reserve-card-head em {
  padding: 3px 6px;
  border-radius: 6px;
  color: #8b8fa0;
  background: #f1f2f6;
}

#moments .moment-reserve-card-head em.moment-status-published {
  color: #187056;
  background: #e8f7f0;
}

#moments .moment-reserve-card-head em.moment-status-scheduled {
  color: #4b51b4;
  background: #e9ebff;
}

#moments .moment-reserve-card p {
  min-height: 38px;
  margin: 0;
  overflow: hidden;
  color: #3b3f55;
  font-size: 12px;
  line-height: 1.72;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

#moments .moment-reserve-card.is-entering {
  position: relative;
  z-index: 3;
  animation: moment-reserve-enter .72s cubic-bezier(.18, .9, .22, 1.18) both;
}

#moments .moment-reserve-card.is-entering::after {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 7px;
  color: #147454;
  background: #dff7eb;
  content: "已入库";
  font-size: 9px;
  font-weight: 800;
  animation: moment-reserve-badge .72s ease-out both;
}

#moments .moment-reserve-card.is-shifting {
  animation: moment-reserve-shift .58s cubic-bezier(.2, .8, .2, 1) both;
}

#moments .moment-compose-output.is-receiving {
  animation: moment-reserve-receive .7s ease-out both;
}

#moments .moment-reserve-card-actions {
  justify-content: flex-start;
}

#moments .moment-reserve-card-actions button {
  min-height: 25px;
  padding: 3px 8px;
  border: 0;
  border-radius: 7px;
  color: #5156b0;
  background: #eef0ff;
  font-size: 9px;
  cursor: pointer;
}

#moments .moment-reserve-card-actions .moment-reserve-delete {
  color: #9d5d64;
  background: transparent;
}

#moments .moment-reserve-card-actions .moment-reserve-delete:hover {
  color: #b42331;
  background: #fff0f1;
}

#moments .moment-reserve-head-actions,
#moments .moment-manual-reserve-actions,
#moments .moment-reserve-editor-title {
  display: flex;
  align-items: center;
}

#moments .moment-reserve-head-actions {
  gap: 9px;
}

#moments .moment-reserve-head-actions > span {
  color: #989cab;
  font-size: 9px;
}

#moments .moment-reserve-head-actions .btn {
  min-height: 28px;
  padding: 4px 9px;
  border: 0;
  border-radius: 8px;
  background: #eef0ff;
  color: #4c51bd;
  font-size: 10px;
}

#moments .moment-reserve-head-actions .btn.is-active {
  color: #fff;
  background: #3439b7;
}

#moments .moment-reserve-head-actions svg {
  width: 12px;
  height: 12px;
  margin-right: 4px;
}

#moments .moment-reserve-card-actions span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  color: #a2a6b3;
  font-size: 8px;
}

#moments .moment-reserve-card-actions svg {
  width: 11px;
  height: 11px;
}

#moments .moment-reserve-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  padding-top: 11px;
  border-top: 1px solid rgba(73, 78, 121, .08);
}

#moments .moment-reserve-editor-title {
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

#moments .moment-manual-reserve-actions {
  flex: 0 0 auto;
  gap: 6px;
}

#moments .moment-manual-reserve-actions .form-select-control {
  width: 92px;
}

#moments .moment-manual-reserve-actions .form-select-trigger,
#moments .moment-manual-reserve-actions .btn {
  min-height: 30px;
  border-radius: 8px;
  font-size: 10px;
}

#moments .moment-reserve-editor-head strong {
  color: #3a3e55;
  font-size: 11px;
}

#moments .moment-reserve-editor-head span {
  color: #989cab;
  font-size: 9px;
}

#moments .moments-compose-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

#moments .moment-quick-schedule-drop {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  color: #7e8398;
  background: #ebeef7;
  font-size: 9px;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}

#moments .moment-quick-schedule-drop svg {
  width: 14px;
  height: 14px;
}

#moments .moment-quick-schedule-drop.is-drop-target {
  color: #126b4f;
  background: #dcf4e9;
  box-shadow: inset 0 0 0 2px rgba(31, 143, 104, .24);
  transform: scale(1.015);
}

#moments .moments-compose-actions #addMomentButton {
  width: auto;
  padding-inline: 18px;
}

#moments .moment-calendar-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

#moments .moment-calendar-status {
  padding: 2px 5px;
  border-radius: 5px;
  color: var(--moment-status-color);
  background: color-mix(in srgb, var(--moment-status-color) 9%, white);
  font-size: 8px;
  white-space: nowrap;
}

#moments .moment-day-column.is-drop-target {
  background: #e8f7f0;
  box-shadow: inset 0 0 0 2px rgba(31, 143, 104, .32), 0 9px 24px rgba(31, 143, 104, .12);
  transform: translateY(-2px);
}

#moments .moment-day-column.is-drop-target .moment-day-column-body::after {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 9px;
  color: #187056;
  background: rgba(255, 255, 255, .76);
  content: "放到这一天";
  font-size: 10px;
  font-weight: 700;
}

#moments .moment-decision-effect {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 20;
}

#moments .moment-decision-effect strong {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #27a477;
  box-shadow: 0 10px 28px rgba(39, 164, 119, .25);
  animation: moment-effect-pop .62s ease-out both;
}

#moments .moment-decision-effect i {
  position: absolute;
  top: 34px;
  left: 34px;
  width: 7px;
  height: 13px;
  border-radius: 3px;
  background: hsl(calc(var(--particle) * 36deg), 78%, 62%);
  animation: moment-confetti .7s cubic-bezier(.2, .8, .2, 1) both;
}

#moments .moment-decision-effect.is-rejected strong {
  inset: 12px 16px 40px;
  border: 2px solid rgba(255, 255, 255, .88);
  color: #fff;
  background: #d85c68;
  box-shadow: 0 12px 32px rgba(184, 66, 77, .28), 0 0 0 7px rgba(216, 92, 104, .1);
  font-size: 25px;
  animation: moment-reject-mark .78s cubic-bezier(.2, .8, .2, 1) both;
}

#moments .moment-decision-effect.is-rejected i {
  width: 8px;
  height: 4px;
  border-radius: 2px;
  background: #d97a83;
  box-shadow: 0 2px 5px rgba(125, 52, 60, .12);
  animation: moment-reject-shard .82s cubic-bezier(.2, .65, .25, 1) both;
}

#moments .moment-decision-effect.is-rejected {
  top: 43%;
  width: 108px;
  height: 96px;
}

#moments .moment-decision-effect.is-rejected span {
  position: absolute;
  right: 12px;
  bottom: 15px;
  left: 12px;
  color: #a94751;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-align: center;
  animation: moment-reject-label .78s ease-out both;
}

#moments .moment-swipe-deck .moment-candidate-card.is-celebrating {
  animation: moment-card-accept .43s cubic-bezier(.2, .8, .2, 1) both;
}

#moments .moment-swipe-deck .moment-candidate-card.is-disappointed {
  animation: moment-card-reject .68s cubic-bezier(.45, 0, .3, 1) both;
}

#moments .moment-swipe-deck .moment-candidate-card.is-disappointed::after,
#moments .moment-swipe-deck .moment-candidate-card.is-leaving-left::after {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 74px;
  padding: 8px 13px;
  border: 3px solid #d75b67;
  border-radius: 9px;
  color: #c94e5a;
  background: rgba(255, 248, 248, .9);
  content: "不可用";
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .12em;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-7deg);
  animation: moment-reject-stamp .68s ease-out both;
  pointer-events: none;
  z-index: 5;
}

#moments .moment-candidate-stage.is-rejecting {
  animation: moment-stage-reject .68s ease-out both;
}

@keyframes moment-card-accept {
  35% { transform: translateY(-10px) scale(1.015); }
  100% { transform: translateX(115%) rotate(7deg); opacity: 0; }
}

@keyframes moment-card-reject {
  0% { transform: translateX(0) rotate(0); opacity: 1; filter: none; }
  11% { transform: translateX(-7px) rotate(-1.2deg); }
  21% { transform: translateX(7px) rotate(1.2deg); }
  31% { transform: translateX(-5px) rotate(-.8deg); }
  41% { transform: translateX(4px) rotate(.5deg); }
  55% { transform: translateY(9px) scale(.985); opacity: 1; filter: grayscale(.4); }
  72% { transform: translate(-24px, 18px) rotate(-2deg) scale(.97); opacity: .88; filter: grayscale(.72); }
  100% { transform: translate(-118%, 46px) rotate(-10deg) scale(.9); opacity: 0; filter: grayscale(1) blur(2px); }
}

@keyframes moment-effect-pop {
  0% { transform: scale(.45); opacity: 0; }
  35% { transform: scale(1.16); opacity: 1; }
  100% { transform: scale(.94); opacity: 0; }
}

@keyframes moment-reject-mark {
  0% { transform: scale(.35) rotate(-18deg); opacity: 0; }
  23% { transform: scale(1.18) rotate(5deg); opacity: 1; }
  36% { transform: scale(.98) rotate(-5deg); }
  49% { transform: scale(1.04) rotate(3deg); }
  68% { transform: translateY(2px) scale(1) rotate(-2deg); opacity: 1; }
  100% { transform: translate(-16px, 24px) scale(.72) rotate(-12deg); opacity: 0; }
}

@keyframes moment-confetti {
  0% { transform: rotate(calc(var(--particle) * 36deg)) translateY(0) scale(.5); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: rotate(calc(var(--particle) * 36deg)) translateY(-58px) rotate(160deg); opacity: 0; }
}

@keyframes moment-reject-shard {
  0%, 20% { transform: translate(16px, 0) rotate(0); opacity: 0; }
  34% { opacity: .95; }
  100% { transform: translate(calc((var(--particle) - 5.5) * 11px), calc(35px + var(--particle) * 2px)) rotate(calc(var(--particle) * 43deg)); opacity: 0; }
}

@keyframes moment-reject-label {
  0%, 24% { transform: translateY(-5px); opacity: 0; }
  40%, 68% { transform: translateY(0); opacity: 1; }
  100% { transform: translate(-12px, 12px); opacity: 0; }
}

@keyframes moment-reject-stamp {
  0%, 14% { transform: translate(-50%, -50%) rotate(-16deg) scale(1.45); opacity: 0; }
  29% { transform: translate(-50%, -50%) rotate(-6deg) scale(.92); opacity: 1; }
  43%, 63% { transform: translate(-50%, -50%) rotate(-7deg) scale(1); opacity: 1; }
  100% { transform: translate(-72%, -30%) rotate(-12deg) scale(.76); opacity: 0; }
}

@keyframes moment-stage-reject {
  0%, 100% { background-color: transparent; }
  24%, 55% { background-color: rgba(220, 91, 103, .045); }
}

@keyframes moment-reserve-enter {
  0% { transform: translateX(-90px) translateY(-18px) scale(.82); opacity: 0; }
  55% { transform: translateX(8px) translateY(0) scale(1.025); opacity: 1; box-shadow: 0 14px 34px rgba(32, 157, 111, .2); }
  78% { transform: translateX(-3px) scale(.995); }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes moment-reserve-shift {
  0% { transform: translateY(-22px); opacity: .72; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes moment-reserve-receive {
  0%, 100% { background: #f6f7fb; }
  38% { background: #eef8f4; box-shadow: inset 0 0 0 2px rgba(38, 157, 112, .14), 0 12px 28px rgba(38, 157, 112, .08); }
}

@keyframes moment-reserve-badge {
  0% { transform: scale(.6) rotate(-5deg); opacity: 0; }
  32%, 70% { transform: scale(1); opacity: 1; }
  100% { transform: translateY(-5px); opacity: 0; }
}

@media (max-width: 1100px) {
  #moments .moment-candidate-stage::after { display: none; }
}

@media (max-width: 680px) {
  #moments .moment-reserve-list { height: min(60vh, 520px); grid-template-columns: 1fr; }
  #moments .moment-reserve-card-actions span { display: none; }
  #moments .moments-compose-actions { grid-template-columns: 1fr; }
  #moments .moments-compose-actions #addMomentButton { width: 100%; }
  #moments .moment-reserve-editor-head { align-items: flex-start; gap: 8px; }
  #moments .moment-manual-reserve-actions { width: 100%; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  #moments .moment-decision-effect { display: none; }
  #moments .moment-swipe-deck .moment-candidate-card.is-celebrating,
  #moments .moment-swipe-deck .moment-candidate-card.is-disappointed,
  #moments .moment-swipe-deck .moment-candidate-card.is-leaving-left,
  #moments .moment-reserve-card,
  #moments .moment-day-column { animation: none; transition: none; }
}

/* 公众号正文：以稿纸为中心，终检与正文在同一编辑场景完成。 */
#public_content.has-public-draft .content-canvas-legacy-bridge {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0 30px 54px;
  background: #f6f7fa;
}

#public_content .guided-stage[data-guided-stage="write"].is-current,
#public_content .guided-stage[data-guided-stage="write"].is-past.is-open {
  padding: 24px 34px 46px;
  background: #f6f7fa;
}

#public_content .public-article-editor-shell {
  padding: 8px 0 0;
}

#public_content .public-article-paper {
  width: min(100%, 820px);
  min-height: 860px;
  margin: 0 auto;
  padding: 50px clamp(38px, 6vw, 74px) 82px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(35, 39, 64, 0.075);
}

#public_content .public-article-paper-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  color: #a0a3ae;
  font-size: 11px;
  letter-spacing: .03em;
}

#public_content .public-article-title {
  margin: 0;
  color: #1f2027;
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 680;
  line-height: 1.35;
  letter-spacing: -.035em;
}

#public_content .public-article-author {
  margin: 14px 0 34px;
  color: #9295a0;
  font-size: 12px;
}

#public_content .public-article-body,
#public_content .public-article-body:hover,
#public_content .public-article-body:focus {
  display: block;
  width: 100%;
  min-height: 620px;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #2a2b31;
  font-size: 17px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: .01em;
  resize: none;
}

#public_content .public-article-body::placeholder {
  color: #b4b6bf;
}

#public_content .public-article-actionbar {
  width: min(100%, 820px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px auto 0;
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 26px rgba(35, 39, 64, .045);
}

#public_content .public-article-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#public_content .public-article-actionbar .guided-stage-actions {
  margin: 0;
}

#public_content .public-article-hidden-actions {
  display: none;
}

#public_content .guided-final-check {
  width: min(100%, 820px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin: 12px auto 0;
  padding: 18px 20px !important;
  border: 0 !important;
  border-radius: 10px;
  background: #eef0f7;
}

#public_content .guided-final-check-copy,
#public_content .guided-final-check-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

#public_content .guided-final-check-copy {
  align-items: flex-start;
}

#public_content .guided-final-check h3 {
  margin: 0 0 4px;
  color: #252733;
  font-size: 15px;
  font-weight: 660;
}

#public_content .guided-final-check p,
#public_content .guided-ai-check-summary p {
  margin: 0;
  color: #777b89;
  font-size: 11px;
  line-height: 1.6;
}

#public_content .guided-final-check .guided-stage-status {
  flex: 0 0 auto;
  margin-top: 1px;
}

#public_content .guided-ai-check-summary {
  max-width: 360px;
  padding: 0;
}

#public_content .guided-ai-check-summary .is-blocked {
  color: #a44d42;
}

#public_content .guided-ai-check-summary .is-passed {
  color: #287653;
}

#public_content .studio-col-preview {
  top: 84px;
  padding-top: 26px;
}

#public_content.has-public-draft .studio-col-preview {
  display: none;
}

#public_content.is-generation-active .guided-creation-editor > .guided-stage,
#public_content.is-generation-active .studio-col-preview {
  display: none;
}

#public_content .public-generation-activity {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 532px;
  padding: 72px 36px;
  color: #242634;
  text-align: center;
  background: radial-gradient(ellipse 280px 220px at 50% 42%, #f1f5ff 0%, transparent 100%);
}

#public_content .public-generation-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

#public_content .public-generation-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 46px rgba(77, 108, 222, .1);
}

#public_content .public-generation-orb::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(81, 109, 224, .1);
  border-top-color: #7589ef;
  border-right-color: rgba(83, 194, 211, .45);
  border-radius: 50%;
  animation: public-generation-orbit 5s linear infinite;
}

#public_content .public-generation-orb img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  animation: public-generation-breathe 2.8s ease-in-out infinite;
}

#public_content .public-generation-hero h2 {
  margin: 0;
  color: #292d42;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 650;
  letter-spacing: .025em;
}

#public_content .public-generation-running {
  width: 176px;
  height: 3px;
  margin: 28px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceefa;
}

#public_content .public-generation-running span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #748be9, #373ccc, #75cad7);
  animation: public-generation-sweep 2.2s ease-in-out infinite;
}

#public_content .public-generation-stream {
  width: min(520px, 100%);
  height: 32px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #7b8196;
  font-size: 13px;
  line-height: 32px;
}

#public_content .public-generation-ticker-line {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  animation: public-generation-entry .45s ease-out both;
}

@keyframes public-generation-entry {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes public-generation-orbit {
  to { transform: rotate(360deg); }
}

@keyframes public-generation-breathe {
  0%, 100% { transform: translateY(2px); }
  50% { transform: translateY(-3px); }
}

@keyframes public-generation-sweep {
  from { transform: translateX(-110%); }
  to { transform: translateX(340%); }
}

@media (prefers-reduced-motion: reduce) {
  #public_content .public-generation-orb::before,
  #public_content .public-generation-orb img,
  #public_content .public-generation-running span,
  #public_content .public-generation-ticker-line {
    animation: none;
  }
}

@media (max-width: 1220px) {
  #public_content.has-public-draft .content-canvas-legacy-bridge {
    grid-template-columns: 1fr;
  }

  #public_content .studio-col-preview {
    width: min(100%, 820px);
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  #public_content .public-generation-activity {
    grid-column: 1;
    grid-row: auto;
    padding: 28px 18px;
  }

  #public_content.has-public-draft .content-canvas-legacy-bridge,
  #public_content .guided-stage[data-guided-stage="write"].is-current,
  #public_content .guided-stage[data-guided-stage="write"].is-past.is-open {
    padding-inline: 12px;
  }

  #public_content .public-article-paper {
    min-height: 720px;
    padding: 34px 24px 54px;
  }

  #public_content .public-article-actionbar,
  #public_content .guided-final-check,
  #public_content .guided-final-check-action {
    align-items: stretch;
    flex-direction: column;
  }

  #public_content .guided-final-check {
    grid-template-columns: 1fr;
  }

  #public_content .guided-flow-progress {
    grid-template-columns: repeat(4, minmax(96px, 1fr));
  }
}

/* 文章创作：左侧设置，右侧只展示运行状态或最终文章。 */
#public_content .studio-col-compose {
  /* Undo the old viewport-limited canvas column; the article scrolls with the page. */
  height: auto;
  max-height: none;
  overflow: visible;
}

#public_content .content-canvas-legacy-bridge,
#public_content.has-public-draft .content-canvas-legacy-bridge {
  padding: 0;
  background: #fff;
}

#public_content .guided-creation-editor {
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  min-height: calc(100vh - 72px);
  padding: 16px;
  /* Let the settings rail stick to the document viewport, not a clipped grid. */
  overflow: visible;
}

#public_content .guided-creation-head {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: start;
  gap: 26px;
  height: calc(100dvh - 96px);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 26px 20px 20px;
  background: #f6f7fc;
}

#public_content .guided-creation-head > * { flex-shrink: 0; }

#public_content .guided-creation-head h1 { font-size: 23px; }
#public_content .article-settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
#public_content .article-settings-heading h2 { margin: 0; font-size: 15px; font-weight: 650; }
#public_content .article-settings-heading .btn { min-height: 0; padding: 4px 0; font-size: 12px; background: transparent; color: #737b9a; }
#public_content .guided-creation-head .studio-account-bar {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
#public_content .guided-creation-head .studio-account-chips { display: grid; gap: 8px; width: 100%; }
#public_content .guided-creation-head .studio-account-chip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 15px 14px;
  border-radius: 12px;
  color: #424860;
  background: #fff;
  text-align: left;
}
#public_content .guided-creation-head .studio-account-chip.active { color: #272bad; background: #ededff; }
#public_content .studio-account-chip strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
#public_content .studio-account-chip .article-account-check {
  display: grid;
  place-items: center;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #edf0f8;
  color: #fff;
  font-size: 11px;
}
#public_content .active .article-account-check { background: #3538bd; }
#public_content .public-topic-picker-toolbar { grid-template-columns: minmax(0, 1fr) auto; padding: 0; border: 0; gap: 10px; }
#public_content .public-topic-picker-search { width: 100%; min-width: 0; padding: 9px 11px; background: #fff; border: 0; }
#public_content #publicTopicPickerCount { color: #8a90a4; font-size: 11px; white-space: nowrap; }
#public_content .public-topic-picker-list { display: grid; grid-template-columns: 1fr; gap: 8px; max-height: 290px; overflow-y: auto; }
#public_content .public-topic-option {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 15px 13px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}
#public_content .public-topic-option.is-selected { background: #ededff; }
#public_content .public-topic-option-copy strong { white-space: normal; font-size: 13px; line-height: 1.65; }
#public_content .public-topic-option-copy > span,
#public_content .public-topic-option > small { display: none; }
#public_content .public-topic-check { margin-top: 2px; width: 19px; height: 19px; }
#public_content .public-topic-picker-empty { padding: 20px 8px; background: transparent; font-size: 12px; }
#public_content .article-seed-settings { padding: 0; border: 0; background: transparent; }
#public_content .article-seed-settings summary { color: #515971; font-size: 14px; cursor: pointer; }
#public_content .article-seed-settings textarea {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #515971;
  font: inherit;
  font-size: 12px;
  line-height: 1.8;
  resize: vertical;
}
#public_content .article-creation-start { margin-top: auto; padding-top: 18px; }
#public_content #startPublicCreationButton { width: 100%; min-height: 46px; border-radius: 11px; font-size: 14px; }
#public_content .public-creation-empty {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 532px;
  padding: 40px;
  text-align: center;
  background: radial-gradient(ellipse at center, #f8f9ff, #fff 66%);
}
#public_content .public-creation-empty img { width: 58px; height: 58px; object-fit: contain; margin-bottom: 22px; }
#public_content .public-creation-empty h2 { font-size: 23px; font-weight: 600; color: #454c64; }
#public_content .public-creation-empty p { max-width: 480px; font-size: 13px; line-height: 1.9; color: #959aae; }
#public_content #publicCreationError { color: #ad5640; }
#public_content .guided-final-check[hidden],
#public_content #publicDraftActions[hidden],
#public_content #publicGuidedFlowProgress[hidden] { display: none; }
#public_content .guided-stage[data-guided-stage="write"].is-current { padding: 12px 16px 36px; }
#public_content .guided-creation-head button:focus-visible { outline: 2px solid #888cf0; outline-offset: 3px; }

@media (max-width: 1000px) and (min-width: 761px) {
  #public_content .guided-creation-editor { grid-template-columns: 270px minmax(0, 1fr); gap: 12px; padding: 10px; }
  #public_content .guided-creation-head { padding-inline: 15px; }
}
@media (max-width: 760px) {
  #public_content .guided-creation-editor { grid-template-columns: 1fr; gap: 16px; padding: 12px; }
  #public_content .guided-creation-head { position: static; height: auto; min-height: 0; overflow: visible; padding: 22px 18px; }
  #public_content .public-creation-empty { grid-column: 1; grid-row: auto; min-height: 320px; padding: 28px 18px; }
  #public_content .public-topic-picker-list { max-height: 220px; }
}
/* A failed check must not replace a completed article with an empty canvas. */
#public_content .public-draft-notice { margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; background: #fff8eb; color: #8c631d; font-size: 13px; line-height: 1.7; }
#public_content .public-draft-notice p { margin: 0; }
#public_content .public-draft-notice details { margin-top: 6px; }
#public_content .public-draft-notice details:has(ul:empty) { display: none; }
#public_content .public-draft-notice summary { cursor: pointer; }

/* Shared form-select: Feishu-style controls, never the platform-native popup. */
.form-select-control {
  position: relative;
  width: 100%;
  min-width: 0;
  display: inline-flex;
  vertical-align: middle;
}

select.form-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-select-trigger {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid #dfe2e8;
  border-radius: 7px;
  color: #292f3d;
  background: #f7f8fa;
  box-shadow: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.form-select-trigger:hover { background: #f2f3f6; border-color: #cfd3dd; }
.form-select-control.is-open .form-select-trigger,
.form-select-trigger:focus-visible {
  border-color: #5b63d8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(91, 99, 216, 0.12);
  outline: none;
}
.form-select-trigger:disabled { color: #a6aab5; background: #f3f4f6; cursor: not-allowed; }
.form-select-trigger.is-placeholder .form-select-trigger-text { color: #9297a5; }
.form-select-trigger-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-select-chevron {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 1.5px solid #7b8190;
  border-bottom: 1.5px solid #7b8190;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 140ms ease;
}
.form-select-control.is-open .form-select-chevron { transform: translateY(2px) rotate(225deg); }

.form-select-portal {
  position: fixed;
  z-index: 3200;
  max-height: min(320px, calc(100vh - 16px));
  padding: 5px;
  overflow-y: auto;
  border: 1px solid #e1e4ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 35, 52, 0.15), 0 2px 8px rgba(31, 35, 52, 0.06);
}
.form-select-portal.hidden { display: none; }
.form-select-option {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  color: #292f3d;
  background: transparent;
  font: inherit;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
.form-select-option:hover,
.form-select-option:focus-visible { background: #f2f3f8; outline: none; }
.form-select-option.is-selected { color: #2f36b4; background: #eef0ff; font-weight: 600; }
.form-select-option > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-select-option > i { color: #3941c6; font-style: normal; text-align: center; opacity: 0; }
.form-select-option.is-selected > i { opacity: 1; }
.form-select-option:disabled { color: #b0b4be; cursor: not-allowed; }

.content-calendar-filters > .form-select-control,
.topic-library-toolbar > .form-select-control,
.account-list-toolbar > .form-select-control { width: auto; min-width: 148px; flex: 0 1 210px; }

/* Moment editor source buttons share one box model and baseline. */
#moments .moment-image-source-actions { align-items: stretch; }
#moments .moment-image-source-row .moment-image-uploader,
#moments .moment-image-source-row #openMomentAssetLibraryButton {
  width: auto;
  height: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0 11px;
  box-sizing: border-box;
  border: 0;
  line-height: 1;
  vertical-align: middle;
}

/* Account identity is a first-class dimension in the seven-day publishing board. */
#moments .moment-calendar-summary { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
#moments .moment-account-legend { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; overflow-x: auto; }
#moments .moment-account-legend-item {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 6px;
  color: #555b6e;
  background: var(--moment-account-bg);
  font-size: 9px;
  white-space: nowrap;
}
#moments .moment-account-legend-item i,
#moments .moment-calendar-item .mc-account i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--moment-account-color); }
#moments .moment-account-legend-item b { max-width: 88px; overflow: hidden; font-weight: 650; text-overflow: ellipsis; }
#moments .moment-account-legend-item em { color: var(--moment-account-color); font-style: normal; font-weight: 750; }

.account-tone-0 { --moment-account-color: #3769cf; --moment-account-bg: #edf3ff; }
.account-tone-1 { --moment-account-color: #168765; --moment-account-bg: #eaf7f2; }
.account-tone-2 { --moment-account-color: #a45b17; --moment-account-bg: #fff4e7; }
.account-tone-3 { --moment-account-color: #7d52c7; --moment-account-bg: #f3edff; }
.account-tone-4 { --moment-account-color: #bf4e6b; --moment-account-bg: #ffedf2; }
.account-tone-5 { --moment-account-color: #247f9e; --moment-account-bg: #e9f7fb; }

#moments .moment-calendar-item,
#moments .moment-calendar-item.moment-status-scheduled,
#moments .moment-calendar-item.moment-status-published,
#moments .moment-calendar-item.moment-status-failed {
  grid-template-columns: auto minmax(42px, auto) minmax(0, 1fr) auto;
  gap: 5px;
  border: 0;
  background: color-mix(in srgb, var(--moment-account-bg) 74%, white);
  box-shadow: inset 3px 0 0 var(--moment-account-color), 0 2px 7px rgba(48, 53, 91, 0.04);
}
#moments .moment-calendar-item:hover,
#moments .moment-calendar-item:focus-visible {
  background: var(--moment-account-bg);
  box-shadow: inset 3px 0 0 var(--moment-account-color), 0 7px 16px rgba(48, 53, 91, 0.1);
}
#moments .moment-calendar-item .mc-account {
  min-width: 0;
  max-width: 66px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: var(--moment-account-color);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#moments .moment-calendar-item .moment-calendar-status { flex: 0 0 auto; }

@media (max-width: 900px) {
  #moments .moments-calendar-panel > .moments-panel-head { align-items: flex-start; }
  #moments .moment-calendar-summary { align-items: flex-end; flex-direction: column-reverse; }
  #moments .moment-account-legend { max-width: min(68vw, 520px); justify-content: flex-start; }
}

/* 2026-09-14: focused manual Moments publisher, reusing the broadcast phone + editor rhythm. */
#moments .moment-publisher-panel {
  margin-bottom: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(44, 48, 91, 0.055);
}

#moments .moment-publisher-head {
  padding: 15px 18px 11px;
  border: 0;
}

#moments .moment-publisher-title-icon {
  color: #315fca;
  background: #edf3ff;
}

#moments .moment-publisher-capability {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #26765b;
  font-size: 10px;
  font-weight: 650;
}

#moments .moment-publisher-capability svg { width: 14px; height: 14px; }

#moments .moment-publisher-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(560px, 1.8fr);
  min-height: 440px;
  border-top: 1px solid rgba(61, 68, 111, 0.06);
}

#moments .moment-publisher-phone-wrap {
  display: grid;
  place-items: center;
  padding: 26px 28px;
  border-right: 1px solid #eef0f4;
  background: #fafbfc;
}

/* Device proportions reference: apple.com/iphone-16/specs (71.6 x 147.6 mm).
   Keep a fixed shell; only the WeChat preview content may scroll. */
#moments .moment-publisher-phone {
  position: relative;
  width: min(100%, 270px);
  aspect-ratio: 71.6 / 147.6;
  min-height: 0;
  padding: 5px;
  border: 1px solid #73767d;
  border-radius: 39px;
  background: #18191c;
  box-shadow: 0 0 0 1px #d7d8dc, 0 18px 28px -16px rgba(25, 29, 40, .3);
}

#moments .moment-publisher-phone::before,
#moments .moment-publisher-phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #777a80;
}
#moments .moment-publisher-phone::before { left: -3px; top: 105px; height: 31px; box-shadow: 0 43px #777a80; }
#moments .moment-publisher-phone::after { right: -3px; top: 127px; height: 49px; }

#moments .moment-publisher-phone-screen {
  position: absolute;
  inset: 5px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 33px;
  background: #fff;
}

#moments .moment-publisher-phone-home {
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  background: #fff;
}
#moments .moment-publisher-phone-home::after {
  content: "";
  width: 86px;
  height: 4px;
  border-radius: 4px;
  background: #151618;
}

#moments .moment-publisher-phone-status,
#moments .moment-publisher-phone-nav,
#moments .moment-publisher-phone-account,
#moments .moment-publisher-phone-option {
  display: flex;
  align-items: center;
}

#moments .moment-publisher-phone-status {
  position: relative;
  flex: 0 0 43px;
  justify-content: space-between;
  padding: 0 19px;
  color: #15171b;
  font-size: 8px;
}

#moments .moment-publisher-phone-status strong { font-size: 10px; }
#moments .moment-publisher-phone-island {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 73px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 18px;
  background: #111214;
}
#moments .moment-publisher-phone-island::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #192336;
  box-shadow: inset 0 0 0 1px #202e44;
}
#moments .moment-publisher-phone-indicators { display: flex; align-items: center; gap: 3px; }
#moments .moment-publisher-phone-indicators svg { width: 12px; height: 12px; stroke-width: 2.5; }
#moments .moment-publisher-phone-indicators svg:last-child { width: 17px; height: 13px; }

#moments .moment-publisher-phone-nav {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  flex: 0 0 38px;
  padding: 0 15px;
  text-align: center;
}

#moments .moment-publisher-phone-nav .moment-publisher-phone-cancel {
  justify-self: start;
  padding: 0;
  border: 0;
  color: #4a4e57;
  background: transparent;
  font-size: 11px;
  text-align: left;
}

#moments .moment-publisher-phone-nav strong { font-size: 12px; }

#moments #momentPublisherPhoneSend {
  justify-self: end;
  padding: 5px 9px;
  border-radius: 5px;
  color: #fff;
  background: #07c160;
  font-size: 10px;
}

#moments .moment-publisher-phone-editor {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 17px 15px 20px;
}

#moments .moment-publisher-phone-account { gap: 9px; }

#moments .moment-publisher-phone-account > span {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 5px;
  color: #fff;
  background: #3137b5;
  font-size: 13px;
  font-weight: 750;
}

#moments .moment-publisher-phone-account strong {
  overflow: hidden;
  color: #25272e;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#moments #momentPublisherPhoneContent {
  min-height: 90px;
  margin: 0 0 12px;
  color: #32343a;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

#moments #momentPublisherPhoneContent.is-placeholder { color: #a7abb3; }

#moments .moment-publisher-phone-images {
  display: grid;
  grid-template-columns: repeat(3, 62px);
  gap: 4px;
  min-height: 62px;
  margin-bottom: 14px;
}

#moments .moment-publisher-phone-images:empty::before {
  content: "+";
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: #a4a7ad;
  background: #f3f4f6;
  font-size: 26px;
  font-weight: 300;
}

#moments .moment-publisher-phone-images img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 3px;
  object-fit: cover;
}

#moments .moment-publisher-phone-options { border-top: 1px solid #f0f1f3; }

#moments .moment-publisher-phone-option {
  min-height: 38px;
  gap: 8px;
  border-bottom: 1px solid #f0f1f3;
  color: #535761;
  font-size: 10px;
}

#moments .moment-publisher-phone-option svg { width: 14px; height: 14px; color: #80858f; }
#moments .moment-publisher-phone-option span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#moments .moment-publisher-phone-option em { color: #8b8f98; font-size: 9px; font-style: normal; white-space: nowrap; }
#moments .moment-publisher-phone-option b { color: #b3b6bd; font-size: 17px; font-weight: 400; }

#moments .moment-publisher-form {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px 24px 18px;
}

#moments .moment-publisher-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#moments .moment-publisher-fields:has(#momentPublisherScheduledGroup:not(.hidden)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#moments .moment-publisher-form .form-label {
  display: grid;
  gap: 7px;
  color: #555b6a;
  font-size: 11px;
  font-weight: 650;
}

#moments .moment-publisher-form :is(.input, .form-select-trigger) {
  min-height: 38px;
  border: 1px solid #e4e7ef;
  border-radius: 9px;
  background: #f8f9fc;
  box-shadow: none;
}

#moments .moment-publisher-form :is(.input, .form-select-trigger):focus,
#moments .moment-publisher-form .form-select-control.is-open .form-select-trigger {
  border-color: #aeb5ec;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(55, 62, 183, 0.08);
}

#moments .moment-publisher-content-label { position: relative; }

#moments #momentPublisherContent {
  height: 116px;
  min-height: 116px;
  max-height: 150px;
  padding: 12px 14px 26px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.7;
}

#moments #momentPublisherContentCount {
  position: absolute;
  right: 12px;
  bottom: 9px;
  color: #a0a4b1;
  font-size: 9px;
  font-weight: 500;
}

#moments .moment-publisher-images-field {
  display: grid;
  grid-template-columns: 34px max-content minmax(80px, 1fr);
  align-items: center;
  gap: 8px;
}

#moments .moment-publisher-images-field > .form-label {
  height: 34px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
#moments .moment-publisher-images-field .moment-image-source-actions {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
}
#moments .moment-publisher-images-field :is(.moment-image-uploader, #openMomentPublisherAssetLibraryButton) {
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0 11px;
  box-sizing: border-box;
  border: 0;
  border-radius: 8px;
  color: #555b72;
  background: #f1f3f8;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}

#moments .moment-publisher-images-field .moment-image-source-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

#moments .moment-publisher-images-field :is(.moment-image-uploader, #openMomentPublisherAssetLibraryButton):hover { background: #e9ecf5; }
#moments .moment-publisher-images-field svg { width: 13px; height: 13px; }
#moments .moment-publisher-images-field .moment-image-preview { grid-column: 1 / -1; }

#moments .moment-publisher-visibility-row { display: grid; gap: 10px; }

#moments .moment-publisher-audience {
  overflow: hidden;
  border-radius: 11px;
  background: #f7f8fb;
}

#moments .moment-publisher-audience-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
}

#moments .moment-publisher-audience-head .input { min-height: 36px; flex: 1; background: #fff; }
#moments .moment-publisher-audience-head span { color: #73798c; font-size: 10px; white-space: nowrap; }

#moments .moment-publisher-audience-list {
  max-height: 168px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0 10px 10px;
  overflow-y: auto;
}

#moments .moment-publisher-audience-option {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border-radius: 8px;
  color: #555a69;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

#moments .moment-publisher-audience-option:has(input:checked) { color: #2e35ad; background: #eceeff; }
#moments .moment-publisher-audience-option input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  margin: 0;
  appearance: none;
  border: 1px solid #c9cedb;
  border-radius: 4px;
  background: #fff;
}
#moments .moment-publisher-audience-option input:checked {
  border-color: #343ab8;
  background: #343ab8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m4 8 2.5 2.5L12 5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
#moments .moment-publisher-audience-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#moments .moment-publisher-audience-empty { grid-column: 1 / -1; padding: 16px; color: #8d92a1; font-size: 10px; text-align: center; }

#moments .moment-publisher-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 0;
}

#moments #momentPublisherStatus { color: #8a8f9d; font-size: 10px; }
#moments #publishManualMomentButton { min-width: 118px; min-height: 38px; border: 0; border-radius: 8px; }

@media (max-width: 1120px) {
  #moments .moment-publisher-layout { grid-template-columns: 270px minmax(0, 1fr); }
  #moments .moment-publisher-phone-wrap { padding-inline: 20px; }
  #moments .moment-publisher-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #moments .moment-publisher-audience-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  #moments .moment-publisher-layout { grid-template-columns: 1fr; }
  #moments .moment-publisher-phone-wrap { padding: 24px; }
  #moments .moment-publisher-phone { width: min(100%, 270px); }
  #moments .moment-publisher-form { padding: 22px 18px; }
}

@media (max-width: 560px) {
  #moments .moment-publisher-capability { display: none; }
  #moments .moment-publisher-fields,
  #moments .moment-publisher-audience-list { grid-template-columns: 1fr; }
  #moments .moment-publisher-images-field { grid-template-columns: 1fr; align-items: start; }
  #moments .moment-publisher-images-field .moment-image-preview { grid-column: 1; }
  #moments .moment-publisher-actions { align-items: stretch; flex-direction: column; }
  #moments #publishManualMomentButton { width: 100%; }
}
/* Daily customer overview: four indicators and one focused time series. */
#dashboard.daily-dashboard { padding: 30px 32px 38px; background: #fbfcff; }
#dashboard .daily-dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
#dashboard .daily-dashboard-heading h1 { margin: 8px 0 0; color: #252b3d; font-size: 26px; letter-spacing: -.6px; }
#dashboard .daily-dashboard-heading #dashboardDate { color: #8990a3; font-size: 12px; font-weight: 400; }
#dashboard .daily-dashboard-update { display: flex; align-items: center; gap: 16px; color: #8b91a2; font-size: 12px; }
#dashboard .daily-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
#dashboard .daily-metric-card { display: flex; flex-direction: column; align-items: flex-start; position: relative; min-width: 0; min-height: 166px; padding: 24px; border: 1px solid #edf0f7; border-radius: 12px; background: #fff; color: #252b3d; text-align: left; cursor: pointer; box-shadow: 0 3px 12px #20264703; transition: background .16s, border-color .16s; }
#dashboard .daily-metric-card:hover { background: #f7f8ff; border-color: #d8daf2; }
#dashboard .daily-metric-card.is-selected { background: #f1f2fe; border-color: #dfe1fa; }
#dashboard .daily-metric-card.is-selected::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: #1f23ab; }
#dashboard .daily-metric-label { font-size: 14px; font-weight: 500; }
#dashboard .daily-metric-card strong { margin: 14px 0 12px; font-size: clamp(28px, 2.5vw, 38px); font-weight: 600; line-height: 1.1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
#dashboard .daily-metric-card.is-selected strong { color: #1f23ab; }
#dashboard .daily-metric-help { font-size: 11px; color: #9298aa; line-height: 1.6; }
#dashboard .daily-status { margin: 16px 0 30px; font-size: 12px; color: #969bae; min-height: 18px; }
#dashboard .daily-status.is-error { color: #ad5719; }
#dashboard .daily-trend-panel { padding: 28px; border: 1px solid #edf0f7; border-radius: 12px; background: #fff; }
#dashboard .daily-trend-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 32px; }
#dashboard .daily-trend-heading h2 { margin: 0; font-size: 18px; font-weight: 600; }
#dashboard #dashboardTrendSource { margin: 8px 0 0; color: #9399ab; font-size: 12px; }
#dashboard .daily-trend-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#dashboard .daily-trend-controls label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#dashboard .daily-trend-controls select { width: 142px; min-height: 36px; border: 1px solid #e7e9f3; border-radius: 7px; background: #fff; color: #40465a; padding: 6px 12px; font-size: 12px; }
#dashboard .daily-range-control { display: flex; background: #f5f6fa; border-radius: 7px; padding: 3px; gap: 3px; }
#dashboard .daily-range-control button { min-width: 65px; padding: 7px 9px; border: none; border-radius: 5px; background: transparent; color: #858ca1; font-size: 12px; cursor: pointer; }
#dashboard .daily-range-control button.is-selected { background: #fff; color: #1f23ab; box-shadow: 0 1px 4px #1f23ab0c; }
#dashboard .daily-chart-canvas { position: relative; height: 365px; min-height: 0; width: 100%; }
#dashboard .daily-chart-empty { display: grid; place-items: center; min-height: 365px; color: #9197a8; font-size: 13px; }
#dashboard .daily-chart-empty.hidden, #dashboard .daily-chart-canvas.hidden { display: none; }
#dashboard .daily-trend-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 20px; color: #969bae; font-size: 11px; }
#dashboard .daily-data-details { margin-top: 20px; font-size: 12px; color: #878ea0; }
#dashboard .daily-data-details summary { cursor: pointer; width: fit-content; }
#dashboard .daily-data-scroll { max-height: 320px; overflow: auto; margin-top: 12px; }
#dashboard .daily-data-scroll table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
#dashboard .daily-data-scroll th, #dashboard .daily-data-scroll td { padding: 10px 14px; text-align: right; border-bottom: 1px solid #f0f1f6; white-space: nowrap; }
#dashboard .daily-data-scroll th:first-child, #dashboard .daily-data-scroll td:first-child { text-align: left; }
#dashboard [data-daily-metric]:focus-visible, #dashboard [data-daily-range]:focus-visible { outline: 2px solid #1f23ab; outline-offset: 3px; }
@media (max-width: 1100px) {
  #dashboard .daily-metric-grid { gap: 12px; }
  #dashboard .daily-metric-card { padding: 20px 16px; }
  #dashboard .daily-trend-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 680px) {
  #dashboard.daily-dashboard { padding: 20px 14px; }
  #dashboard .daily-dashboard-heading { align-items: flex-start; flex-direction: column; }
  #dashboard .daily-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #dashboard .daily-metric-card { min-height: 146px; }
  #dashboard .daily-metric-card strong { font-size: 30px; }
  #dashboard .daily-trend-panel { padding: 20px 14px; }
  #dashboard .daily-chart-canvas, #dashboard .daily-chart-empty { height: 300px; min-height: 300px; }
  #dashboard .daily-trend-footer { flex-direction: column; gap: 6px; }
}
