.product-view { min-width: 0; min-height: 0; width: 100%; height: 100%; display: flex; flex-direction: column; }
.product-view[hidden] { display: none; }
.wechat-service-main { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.wechat-service-main[hidden] { display: none; }

.wechat-rules-screen {
  min-height: 0; flex: 1; display: flex; flex-direction: column; background: #f6f7f9;
}
.wechat-rules-screen[hidden] { display: none; }

.grow-rules-global-head {
  height: 56px; flex: 0 0 56px; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid #e4e8f0; background: rgba(255,255,255,.96);
}
.grow-rules-global-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.grow-rules-global-icon { width: 18px; height: 18px; display: grid; place-items: center; color: #a8b2c1; }
.grow-rules-global-icon svg { width: 16px; height: 16px; }
.grow-rules-global-title > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.grow-rules-global-title strong { color: #1b1e26; font-size: 14px; font-weight: 650; line-height: 18px; }
.grow-rules-global-title small { overflow: hidden; color: #9aa1ad; font-size: 10px; line-height: 14px; text-overflow: ellipsis; white-space: nowrap; }
.grow-rules-scope {
  height: 28px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; background: #f0f2f5; color: #667085; font-size: 10px; white-space: nowrap;
}
.grow-rules-scope i { width: 6px; height: 6px; border-radius: 50%; background: #2b4acb; }
.grow-rules-bar {
  width: 100%; max-width: 886px; margin: 0 auto; flex-shrink: 0;
  display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 14px;
  padding: 24px 0 18px; border-bottom: 0; background: transparent;
}
.grow-rules-back {
  height: 30px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #dfe4ed; border-radius: 8px; background: #fff; color: #536075;
  font: inherit; font-size: 11px; font-weight: 500; white-space: nowrap; cursor: pointer;
}
.grow-rules-back svg { width: 13px; height: 13px; }
.grow-rules-back:hover { border-color: #cdd5df; background: #f7f8fa; color: #344054; }
.grow-rules-bar-main { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.grow-rules-heading { display: inline-flex; align-items: center; gap: 8px; }
.grow-rules-heading > span:first-child { width: 24px; height: 24px; display: grid; place-items: center; color: #2b4acb; }
.grow-rules-heading svg { width: 21px; height: 21px; }
.grow-rules-bar-title { font-size: 20px; line-height: 26px; font-weight: 700; color: #1b1e26; }
.grow-rules-bar-sub { color: #718096; font-size: 11px; line-height: 16px; }
.grow-rules-saved { color: #8a96a8; font-size: 10px; line-height: 15px; white-space: normal; }

.grow-rules-form {
  min-height: 0; flex: 1; display: flex; flex-direction: column; overflow: hidden;
}
.grow-rules-scroll {
  min-height: 0; flex: 1; overflow: auto; padding: 0 16px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; overflow-anchor: none;
}
.grow-rule-card {
  width: 100%; max-width: 886px; padding: 18px 20px;
  border: 1px solid #e8edf5; border-radius: 12px; background: #fff;
}
.grow-rule-card-head { padding-bottom: 6px; }
.grow-rule-card-head--split {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.grow-rule-title { margin: 0; font-size: 14px; font-weight: 700; color: #1b1e26; }
.grow-rule-desc { margin: 6px 0 0; font-size: 11px; line-height: 1.6; color: #9aa1ad; }
.grow-rule-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid #f1f5f9;
}
.grow-rule-row--stack { align-items: flex-start; }
.grow-rule-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 200px; flex: 1; }
.grow-rule-row-label { font-size: 13px; font-weight: 600; color: #1b1e26; }
.grow-rule-row-hint { font-size: 11px; color: #9aa1ad; }
.grow-rule-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.grow-rule-pills { display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.grow-rule-pill {
  min-width: 40px; height: 30px; padding: 0 10px; border: 1px solid #dbe3ef; border-radius: 8px;
  background: #fff; color: #465064; font: inherit; font-size: 12px; font-weight: 500; cursor: pointer;
}
.grow-rule-pill:hover { background: #f6f8ff; }
.grow-rule-pill.is-on { border-color: #2b4acb; background: #ecf0fd; color: #1d4ed8; font-weight: 600; }
.grow-rule-channel-tag {
  padding: 4px 8px; border-radius: 6px; background: #eaf7f0; color: #31704f;
  font-size: 10px; font-weight: 600; white-space: nowrap;
}
#wechat-rule-modules .grow-rule-modules-layout {
  --rule-phone-compact-w: 216px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(var(--rule-phone-compact-w) + 12px);
  gap: 14px;
  align-items: start;
}
.grow-rule-modules-stack { display: grid; gap: 10px; min-width: 0; }
#wechat-rule-modules .grow-rule-module {
  padding: 12px 14px; border: 1px solid #dfe6f0; border-radius: 10px; background: #fff;
  cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#wechat-rule-modules .grow-rule-module--compound {
  cursor: default; padding: 12px; background: #f4f7fb; border-color: #d5dde9;
}
#wechat-rule-modules .grow-rule-module-head--compound {
  padding-bottom: 10px; border-bottom: 1px solid #dbe3ef;
}
.grow-rule-compound-hint {
  margin: 0; width: 100%; color: #8d98aa; font-size: 10px; line-height: 1.4;
}
.grow-rule-submodule-stack { display: grid; gap: 10px; margin-top: 10px; }
#wechat-rule-modules .grow-rule-submodule {
  display: flex; flex-direction: column; gap: 10px;
  margin: 0; padding: 12px; border: 1px solid #e2e8f0; border-radius: 10px;
  background: #fff; cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#wechat-rule-modules .grow-rule-submodule.is-preview-active {
  border-color: #8ca5ed;
  box-shadow: 0 0 0 2px rgba(43, 74, 203, 0.08);
}
.grow-rule-submodule-head { display: grid; gap: 4px; }
.grow-rule-submodule-kicker {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  padding: 2px 8px 2px 0; color: #2b4acb; font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
}
.grow-rule-submodule-kicker::before {
  content: ""; width: 3px; height: 12px; border-radius: 2px; background: #2b4acb;
}
.grow-rule-submodule-kicker--nudge::before { background: #2b4acb; }
.grow-rule-submodule-kicker--nudge { color: #3655b4; }
.grow-rule-submodule-title { margin: 0; color: #1b1e26; font-size: 12px; font-weight: 650; }
.grow-rule-submodule-desc { margin: 0; color: #8d98aa; font-size: 10px; line-height: 1.45; }
.grow-rule-module-template--split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) {
  .grow-rule-module-template--split { grid-template-columns: 1fr; }
}
#wechat-rule-modules .grow-rule-module.is-preview-active {
  border-color: #8ca5ed; box-shadow: 0 0 0 2px rgba(43, 74, 203, 0.07);
}
.grow-rule-module-head {
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  padding-bottom: 10px; border-bottom: 1px solid #eef2f7;
}
.grow-rule-module-title-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%;
}
.grow-rule-module-name { margin: 0; color: #1b1e26; font-size: 13px; font-weight: 650; white-space: nowrap; }
.grow-rule-module-tag {
  padding: 2px 8px; border-radius: 999px; background: #eaf7f0; color: #31704f;
  font-size: 10px; font-weight: 600; white-space: nowrap;
}
.grow-rule-module-desc { margin: 0; color: #9aa1ad; font-size: 9px; white-space: nowrap; }
.grow-rule-module-switch { flex-shrink: 0; margin-left: auto; }
.grow-rule-module-timing-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; width: 100%;
  padding: 8px 10px; border-radius: 8px; background: #f8fafc; border: 1px solid #eef2f7;
}
.grow-rule-module-timing-row--stack { align-items: flex-start; flex-direction: column; gap: 8px; }
.grow-rule-module-timing-row--stack .grow-rule-pills--compact { justify-content: flex-start; width: 100%; }
.grow-rule-module-timing {
  display: inline-flex; align-items: center; gap: 6px; flex: 1 1 auto; justify-content: flex-end; min-width: 0;
}
.grow-rule-timing-label {
  color: #8d98aa; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
.grow-rule-timing-scene {
  padding: 2px 8px; border-radius: 6px; background: #fff; border: 1px solid #e2e8f0;
  color: #5c687a; font-size: 10px; font-weight: 600; white-space: nowrap;
}
.grow-rule-timing-row .grow-rule-pills--compact,
.grow-rule-module-timing-row .grow-rule-pills--compact {
  flex: 1 1 auto; gap: 5px; flex-wrap: wrap; justify-content: flex-start; min-width: 0;
}
.grow-rule-pills--compact { gap: 4px; flex-wrap: wrap; justify-content: flex-start; }
.grow-rule-pills--compact .grow-rule-pill {
  min-width: 0; height: 26px; padding: 0 9px; font-size: 10px;
}
.grow-rule-module-template { padding-top: 2px; }
#wechat-rule-modules .grow-rule-module > .grow-rule-module-template { padding-top: 10px; }
.grow-rule-field--compact { gap: 4px; }
.grow-rule-field--compact > span { font-size: 9px; }
.grow-rule-field--compact small { font-size: 9px; line-height: 1.35; }
.grow-rule-module-template .grow-rule-field textarea {
  min-height: 40px; padding: 6px 8px; font-size: 11px; line-height: 1.45; resize: vertical;
}
#wechat-rule-modules .grow-rule-phone-preview {
  position: static; display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0;
}
.grow-rule-phone-caption {
  width: 100%; color: #8d98aa; font-size: 9px; font-weight: 600; text-align: center;
}
/* 配置页预览：复用抽屉同款手机 DOM/样式，仅在本区块缩小尺寸 */
#wechat-rule-modules .wechat-phone-shell.rule-phone-shell--compact {
  width: var(--rule-phone-compact-w, 188px);
  height: calc(var(--rule-phone-compact-w, 188px) * 760 / 350);
  min-height: 0;
  max-height: none;
  border-width: 5px;
  border-radius: 22px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12), 0 0 0 1px #2f6cef;
  pointer-events: none;
}
#wechat-rule-modules .rule-phone-shell--compact .wechat-phone-notch {
  height: 20px;
  flex: 0 0 20px;
}
#wechat-rule-modules .rule-phone-shell--compact .wechat-phone-nav {
  height: 34px;
  flex: 0 0 34px;
  padding: 0 20px;
  font-size: 11px;
}
#wechat-rule-modules .rule-phone-shell--compact .wechat-phone-msgs {
  padding: 6px;
  overflow: hidden;
}
#wechat-rule-modules .rule-phone-shell--compact .wx-row {
  margin: 4px 0;
  gap: 6px;
}
#wechat-rule-modules .rule-phone-shell--compact .wx-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}
#wechat-rule-modules .rule-phone-shell--compact .wx-sender {
  font-size: 9px;
}
#wechat-rule-modules .rule-phone-shell--compact .wx-bubble {
  max-width: calc(var(--rule-phone-compact-w, 216px) * 0.62);
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.42;
}
#wechat-rule-modules .rule-phone-shell--compact .wx-bubble::before {
  top: 10px;
  border-width: 4px;
}
#wechat-rule-modules .rule-phone-shell--compact .wechat-phone-home {
  height: 14px;
  flex: 0 0 14px;
}
@media (max-width: 720px) {
  #wechat-rule-modules .grow-rule-modules-layout { grid-template-columns: 1fr; }
  #wechat-rule-modules .grow-rule-phone-preview { flex-direction: row; justify-content: flex-end; width: 100%; }
  .grow-rule-module-timing,
  .grow-rule-module-timing-row { justify-content: flex-start; width: 100%; }
  .grow-rule-module-desc,
  .grow-rule-module-tag { white-space: normal; }
}
.grow-rule-select {
  min-width: 160px; height: 32px; padding: 0 10px; border: 1px solid #dbe3ef; border-radius: 8px;
  background: #fff; color: #364152; font: inherit; font-size: 12px;
}
.grow-rule-checks { display: flex; flex-wrap: wrap; gap: 14px; color: #5c687a; font-size: 12px; }
.grow-rule-checks input { accent-color: #2b4acb; }
.grow-rule-tag-grid {
  display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: flex-end; max-width: 520px; margin-left: auto;
}
.grow-rule-tag-check {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 11px; border: 1px solid #e2e7ee; border-radius: 8px;
  background: #fff; color: #5c687a; font-size: 11px; font-weight: 600; cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
button.grow-rule-tag-check {
  margin: 0; font: inherit; line-height: 1.2;
}
.grow-rule-tag-check input { accent-color: #2b4acb; margin: 0; width: 13px; height: 13px; }
.grow-rule-tag-check:hover { border-color: #d4dceb; background: #f9fafb; }
.grow-rule-tag-check:has(input:checked),
button.grow-rule-tag-check.is-on {
  border-color: #b8c8ef; background: #f4f6fd; color: #2b4acb;
  box-shadow: 0 0 0 1px rgba(43, 74, 203, 0.06);
}
#wechat-rule-targets .grow-rule-row--stack { align-items: flex-start; }
#wechat-rule-targets #classTagReachRow.is-disabled { opacity: 0.55; pointer-events: none; }
.grow-rule-info-note {
  margin: 0 20px 16px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  border: 1px solid #dfe6f8;
  border-radius: 8px;
  background: #f4f6fd;
  color: #5067a7;
}
.grow-rule-info-note[hidden] { display: none; }
.grow-rule-info-note svg { width: 14px; height: 14px; margin-top: 1px; }
.grow-rule-info-note p { margin: 0; font-size: 10px; line-height: 1.6; }
.class-node.is-reach-disabled { opacity: 0.62; }
.class-node.is-reach-disabled strong::after {
  content: " · 触达已关"; color: #7b8798; font-weight: 600; font-size: 9px;
}
.grow-rule-input { display: flex; align-items: center; gap: 8px; flex-shrink: 0; color: #9aa1ad; font-size: 12px; }
.grow-rule-input input[type="time"] {
  width: 112px; height: 32px; padding: 0 10px; border: 1px solid #dbe3ef; border-radius: 8px;
  background: #fff; color: #364152; font: inherit; font-size: 12px;
}
.grow-rule-stack { display: grid; gap: 14px; padding-top: 8px; }
.grow-rule-field { display: grid; gap: 6px; }
.grow-rule-field > span { color: #5f6b7d; font-size: 11px; font-weight: 600; }
.grow-rule-field select, .grow-rule-field textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #d9dfe8; border-radius: 8px;
  background: #fff; color: #364152; font: inherit; font-size: 12px; line-height: 1.6;
}
.grow-rule-field textarea { resize: vertical; }
.grow-rule-field small { color: #98a2b3; font-size: 10px; }
.grow-weekday-row { justify-content: flex-end; max-width: 420px; }
.grow-account-list { margin-top: 8px; border: 1px solid #e2e7ee; border-radius: 8px; overflow: hidden; }
.grow-rules-form > .grow-rules-foot {
  flex-shrink: 0; width: 100%; padding: 12px 16px;
  border-top: 1px solid #e8edf5; background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
}
.grow-rules-foot-inner {
  width: 100%; max-width: 886px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.grow-rules-foot-hint { font-size: 11px; color: #9aa1ad; }
.grow-rules-foot-actions { display: flex; gap: 8px; flex-shrink: 0; }
.nav-beta { margin-left: auto; padding: 0 4px; border-radius: 4px; background: #ecf0fd; color: #2b4acb; font-size: 9px; line-height: 16px; font-style: normal; }
.nav-item.is-active .nav-beta { background: rgba(255,255,255,.15); color: #fff; }
.service-online i { background: #16a66a; box-shadow: 0 0 0 3px rgba(22,166,106,.10); }

.service-nav {
  height: 56px; flex: 0 0 56px; padding: 0 20px; display: flex; align-items: center;
  border-bottom: 1px solid #e4e8f0; background: rgba(255,255,255,.94);
}
.service-tabs { height: 100%; display: flex; align-items: stretch; gap: 2px; }
.service-tab { position: relative; min-width: 88px; padding: 0 16px; border: 0; background: transparent; color: #667085; font-size: 12px; font-weight: 500; cursor: pointer; }
.service-tab::after { content: ""; position: absolute; right: 16px; bottom: -1px; left: 16px; height: 2px; border-radius: 2px; background: transparent; }
.service-tab:hover { color: #2b4acb; }
.service-tab.is-active { color: #2b4acb; font-weight: 650; }
.service-tab.is-active::after { background: #2b4acb; }
.service-actions { margin-left: auto; display: flex; gap: 8px; }
.service-content { min-height: 0; flex: 1; overflow: hidden; background: #f5f7fb; }
.service-panel { height: 100%; padding: 16px; overflow: auto; }
.service-panel[hidden] { display: none; }

.status-band {
  min-height: 86px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
  border: 1px solid #e0e6f0; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.status-cell { position: relative; min-width: 0; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.status-cell + .status-cell::before { content: ""; position: absolute; top: 18px; bottom: 18px; left: 0; width: 1px; background: #edf0f5; }
.status-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; }
.status-icon svg { width: 17px; height: 17px; }
.status-icon.blue { color: #2b4acb; background: #edf1ff; }
.status-icon.green { color: #0d8d62; background: #e9f8f1; }
.status-icon.amber { color: #2b4acb; background: #edf1ff; }
.status-icon.violet { color: #6e55c8; background: #f1edff; }
.status-cell > div { min-width: 0; }
.status-cell b { display: block; color: #101828; font-size: 20px; line-height: 1.1; font-weight: 650; }
.status-cell span:not(.status-icon) { display: block; margin-top: 5px; color: #7b8494; font-size: 11px; }
.status-cell em { margin-left: auto; color: #8e99aa; font-size: 10px; font-style: normal; white-space: nowrap; }

.overview-layout { margin-top: 14px; }
.overview-main { min-width: 0; display: grid; gap: 14px; }
.work-surface, .rail-section { border: 1px solid #e0e6f0; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.025); }
.section-heading { min-height: 52px; padding: 0 16px; display: flex; align-items: center; border-bottom: 1px solid #edf0f5; }
.section-heading > div { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.section-heading h2 { margin: 0; color: #273244; font-size: 13px; line-height: 1.2; font-weight: 650; letter-spacing: 0; }
.section-heading span { color: #9aa4b5; font-size: 10px; }
.text-button { margin-left: auto; padding: 5px 0 5px 8px; display: inline-flex; align-items: center; gap: 3px; border: 0; background: transparent; color: #2b4acb; font-size: 11px; cursor: pointer; }
.text-button:hover { color: #1d3ba8; }
.text-button svg { width: 12px; height: 12px; }
.section-heading.compact { min-height: 48px; padding-inline: 14px; }
.section-heading.compact > div { display: block; }
.section-heading.compact span { display: block; margin-top: 3px; }
.icon-command { margin-left: auto; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #e1e6ee; border-radius: 7px; background: #fff; color: #60708a; cursor: pointer; }
.icon-command:hover { color: #2b4acb; border-color: #cdd7f1; background: #f7f9ff; }
.icon-command svg { width: 13px; height: 13px; }

.overview-queue-toolbar {
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px 14px 12px; border-bottom: 1px solid #f0f2f6;
}
.overview-queue-toolbar-row {
  display: flex; align-items: flex-start; gap: 12px; min-height: 28px;
}
.overview-queue-toolbar-label {
  flex: 0 0 52px; padding-top: 6px;
  color: #8d98aa; font-size: 10px; font-weight: 600; line-height: 1.2;
}
.overview-queue-tag-bar { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.overview-queue-scope { flex: 0 0 auto; margin-top: 1px; }
.overview-queue-tag {
  height: 26px; padding: 0 10px; border: 1px solid #e2e8f0; border-radius: 999px;
  background: #fff; color: #5c687a; font-size: 10px; font-weight: 600; cursor: pointer;
}
.overview-queue-tag:hover { border-color: #cdd7f1; color: #2b4acb; }
.overview-queue-tag.is-on { border-color: #8ca5ed; background: #edf1ff; color: #2b4acb; }
.overview-queue-scope { display: flex; gap: 4px; padding: 2px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.overview-queue-scope-btn {
  height: 24px; padding: 0 10px; border: 0; border-radius: 6px;
  background: transparent; color: #5c687a; font-size: 10px; font-weight: 600; cursor: pointer;
}
.overview-queue-scope-btn:hover { color: #2b4acb; }
.overview-queue-scope-btn.is-on { background: #fff; color: #2b4acb; box-shadow: 0 1px 2px rgb(16 24 40 / 8%); }
.overview-queue-empty { margin: 0; padding: 28px 14px; text-align: center; color: #98a2b3; font-size: 11px; }
.touch-list { padding: 4px 0; }
.touch-copy-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 5px; }
.touch-copy-tags { display: inline-flex; align-items: center; min-width: 0; }
.touch-copy-meta .touch-dept-tag,
.touch-copy-meta .soft-tag {
  margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
  color: #758195; font-size: 9px; font-weight: 550; line-height: 14px;
}
.touch-copy-meta .touch-dept-tag { color: #4965b3; font-weight: 650; }
.touch-copy-tags > span + span::before { content: "·"; margin: 0 6px; color: #c0c7d2; font-weight: 400; }
.touch-dept-tag {
  padding: 0; color: #4965b3; font-size: 9px; font-weight: 650;
}
.touch-row.is-blocked { background: #f7f8fa; }
.touch-row.is-blocked .touch-copy strong { color: #344054; }
.touch-row { min-height: 68px; padding: 0 14px; display: grid; grid-template-columns: 58px 24px minmax(220px,1fr) 92px 20px; align-items: center; gap: 10px; border-bottom: 1px solid #f0f2f6; }
.touch-row:last-child { border-bottom: 0; }
.touch-row.is-current { background: #fafbff; }
.touch-time b, .touch-time small { display: block; }
.touch-time b { color: #344054; font-size: 12px; font-weight: 650; }
.touch-time small { margin-top: 3px; color: #98a2b3; font-size: 9px; }
.touch-marker { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.touch-marker svg { width: 13px; height: 13px; }
.touch-marker.success { color: #0e9667; background: #eaf8f2; }
.touch-marker.pending { color: #4667c8; background: #edf2ff; }
.touch-copy { min-width: 0; }
.touch-copy strong { display: block; overflow: hidden; color: #344054; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.touch-copy-sub { display: block; margin-top: 4px; overflow: hidden; color: #8b95a5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.touch-result { text-align: right; }
.touch-result b { display: block; color: #344054; font-size: 11px; font-weight: 600; }
.touch-result span { display: block; margin-top: 3px; color: #9aa4b5; font-size: 9px; }
.touch-row > button { width: 20px; height: 20px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #a3adbb; cursor: pointer; }
.touch-row > button:hover { color: #2b4acb; background: #edf1ff; }
.touch-row > button svg { width: 13px; height: 13px; }

.binding-overview { overflow: hidden; }
.binding-table-wrap { overflow-x: auto; }
.service-table { width: 100%; border-collapse: separate; border-spacing: 0; color: #526174; font-size: 11px; }
.service-table th { height: 34px; padding: 0 12px; border-bottom: 1px solid #e8ecf2; background: #f8fafc; color: #718096; font-size: 10px; font-weight: 600; text-align: left; white-space: nowrap; }
.service-table td { height: 52px; padding: 8px 12px; border-bottom: 1px solid #edf0f5; white-space: nowrap; }
.service-table tbody tr:last-child td { border-bottom: 0; }
.service-table tbody tr:hover td { background: #fbfcff; }
.service-table td b { display: block; color: #344054; font-size: 11px; font-weight: 600; }
.service-table td small { display: block; margin-top: 3px; color: #98a2b3; font-size: 9px; }
.soft-tag { margin-right: 4px; padding: 3px 6px; border-radius: 4px; background: #f0f3f8; color: #65748a; font-size: 9px; }
.wechat-state { display: inline-flex; align-items: center; gap: 5px; }
.wechat-state svg { width: 13px; height: 13px; }
.wechat-state.bound { color: #3f6a59; }
.wechat-state.unbound { color: #697589; }
.coverage { width: 84px; display: inline-grid; grid-template-columns: 36px 1fr; align-items: center; gap: 7px; }
.coverage i { position: relative; height: 4px; overflow: hidden; border-radius: 4px; background: #e7ebf1; }
.coverage i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--value); border-radius: inherit; background: #4c78d8; }
.row-action { padding: 4px 7px; border: 0; border-radius: 6px; background: transparent; color: #2b4acb; font-size: 10px; cursor: pointer; white-space: nowrap; }
.row-action:hover { background: #edf1ff; }

.rule-stack { padding: 4px 8px 8px; }
.rule-item { width: 100%; min-height: 58px; padding: 8px 6px; display: grid; grid-template-columns: 30px minmax(0,1fr) 28px; align-items: center; gap: 9px; border: 0; border-bottom: 1px solid #f0f2f6; background: transparent; text-align: left; cursor: pointer; }
.rule-item:last-child { border-bottom: 0; }
.rule-item:hover { background: #fafbff; }
.rule-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; }
.rule-icon svg { width: 14px; height: 14px; }
.rule-icon.lesson { color: #3d61bd; background: #edf1ff; }
.rule-icon.homework { color: #4965b3; background: #edf2ff; }
.rule-icon.course { color: #13835e; background: #eaf8f2; }
.rule-icon.material { color: #7354bd; background: #f1edff; }
.rule-item b, .rule-item small { display: block; }
.rule-item b { color: #3c4758; font-size: 11px; font-weight: 600; }
.rule-item small { margin-top: 4px; color: #929dad; font-size: 9px; }
.switch { position: relative; width: 28px; height: 16px; border-radius: 20px; background: #d6dbe4; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.18); transition: transform 160ms; }
.switch.is-on { background: #4d6ed0; }
.switch.is-on::after { transform: translateX(12px); }

.sync-ok { margin-left: auto; display: inline-flex !important; align-items: center; gap: 5px; color: #18845f !important; }
.sync-ok i { width: 6px; height: 6px; border-radius: 50%; background: #1a9b6b; }
.chain-tree { padding: 12px 14px 14px; }
.chain-node { position: relative; min-height: 34px; padding: 7px 8px; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 7px; color: #617086; }
.chain-node::before { content: ""; position: absolute; top: -8px; bottom: 20px; left: 17px; width: 1px; background: #dbe2ec; }
.chain-node:first-child::before { top: 50%; }
.chain-node svg { position: relative; z-index: 1; width: 13px; height: 13px; padding: 2px; box-sizing: content-box; border: 1px solid #d6deea; border-radius: 5px; background: #fff; }
.chain-node b { color: #425066; font-size: 10px; font-weight: 600; }
.chain-node em { color: #1a8f66; font-size: 8px; font-style: normal; }
.chain-node.level-2 { margin-left: 16px; }
.chain-node.level-3 { margin-left: 32px; }
.chain-leaves { margin: 4px 0 0 48px; display: grid; grid-template-columns: repeat(2,1fr); gap: 5px; }
.chain-leaves span { padding: 5px 6px; border: 1px solid #e6eaf0; border-radius: 5px; background: #fafbfd; color: #748195; font-size: 9px; }

.panel-toolbar { height: 50px; margin-bottom: 12px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid #e0e6f0; border-radius: 8px; background: #fff; }
.search-field { position: relative; width: 240px; height: 32px; }
.search-field svg { position: absolute; top: 9px; left: 10px; width: 14px; height: 14px; color: #98a2b3; }
.search-field input { width: 100%; height: 100%; padding: 0 10px 0 32px; border: 1px solid #d8dee8; border-radius: 8px; outline: 0; background: #fff; color: #344054; font-size: 11px; }
.search-field input:focus { border-color: #8ca5ed; box-shadow: 0 0 0 3px rgba(43,74,203,.08); }
.panel-count { margin-left: auto; color: #8d98aa; font-size: 10px; }
.full-table { min-height: calc(100% - 62px); overflow: auto; }
.task-table td { height: 60px; }
.task-table .task-name-cell b { font-size: 12px; font-weight: 600; color: #1d2939; }
.task-table .task-name-cell small { display: block; margin-top: 3px; color: #8b95a5; font-size: 10px; font-weight: 400; line-height: 1.35; }
.task-table .task-teaching-theme { color: #98a2b3; }
.task-table td:first-child b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 600; color: #5c687a; }
.task-type-chip {
  display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #edf1ff; color: #2b4acb;
  font-size: 9px; font-weight: 600; white-space: nowrap;
}
.task-type-chip--lesson { border-color: #d8e2fb !important; background: #edf2ff !important; color: #3556b5; }
.task-type-chip--homework-publish { border-color: #d2eadf !important; background: #edf8f3 !important; color: #147153; }
.task-type-chip--homework-nudge { border-color: #e1d9f7 !important; background: #f3effc !important; color: #7054ad; }
.task-type-chip--recording { border-color: #d0e9ea !important; background: #ecf7f7 !important; color: #21747a; }
.task-type-chip--score { border-color: #efd9e3 !important; background: #faeff4 !important; color: #9a4d6e; }
.task-type-chip--default { border-color: #e0e5ec !important; background: #f3f5f7 !important; color: #667085; }
.task-class-cell b { font-weight: 600; color: #344054; white-space: normal; max-width: 200px; }
.task-group-cell { display: grid; gap: 3px; max-width: 180px; white-space: normal; }
.task-group-cell small { color: #98a2b3; font-size: 9px; }
.task-group-placeholder { color: #8d98aa; font-size: 10px; }
.task-row-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.row-action--ghost { color: #68758a; }
.row-action--ghost:hover { background: #f0f3f8; }
.task-action-muted { color: #c4cad4; font-size: 10px; }
.binding-student-heading { border: 1px solid #e0e6f0; border-bottom: 0; border-radius: 8px 8px 0 0; margin-top: 12px; background: #fff; }
.binding-student-heading + .student-list-wrap { border: 1px solid #e0e6f0; border-top: 0; border-radius: 0 0 8px 8px; background: #fff; }
.binding-panel-empty { margin: 0; padding: 28px 16px; text-align: center; color: #8d98aa; font-size: 11px; line-height: 1.5; }
.binding-summary-group.is-unbound .group-summary-name { color: #526174; }
.binding-summary-group.is-unbound .group-msg-link { display: none; }
#classBindingLastMsgCard.is-muted b,
#classBindingLastMsgCard.is-muted small { color: #a3adbb; }
.wechat-dot.muted { background: #d6dbe4; }
.channel-tag, .status-pill { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 5px; font-size: 9px; font-weight: 500; }
.channel-tag.group { color: #31704f; background: #eaf7f0; }
.channel-tag.direct { color: #3f5ea9; background: #edf1ff; }
.channel-tag.mixed { color: #6b54a7; background: #f1edff; }
.status-pill.success { color: #147153; background: #eaf8f2; }
.status-pill.pending { color: #3655b4; background: #edf2ff; }
.status-pill.draft { color: #68758a; background: #f0f3f8; }

.binding-workbench { height: 100%; min-height: 620px; display: grid; grid-template-columns: 264px minmax(0,1fr); overflow: hidden; border: 1px solid #e0e6f0; border-radius: 8px; background: #fff; }
.class-browser { min-width: 0; padding: 14px 10px; overflow-y: auto; border-right: 1px solid #e5e9f0; background: #fafbfc; }
.browser-head { padding: 0 4px 12px; display: flex; align-items: center; }
.browser-head h2, .browser-head span { margin: 0; display: block; }
.browser-head h2 { color: #334155; font-size: 12px; font-weight: 650; }
.browser-head span { margin-top: 3px; color: #98a2b3; font-size: 9px; }
.browser-head button { margin-left: auto; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #e2e7ee; border-radius: 7px; background: #fff; color: #718096; }
.browser-head button svg { width: 13px; height: 13px; }
.search-field.compact { width: 100%; height: 30px; }
.search-field.compact svg { top: 8px; }
.class-browser-filters { padding: 0 4px 10px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid #e8ecf2; margin-bottom: 8px; }
.class-browser-filters .grow-rule-tag-grid.class-tag-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  justify-content: stretch;
  gap: 6px;
  width: 100%;
  max-width: none;
  margin-left: 0;
}
.class-browser-filters .grow-rule-tag-grid .grow-rule-tag-check {
  width: 100%;
  min-height: 24px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
}
.class-browser-filters .grow-rule-tag-grid .class-tag-bar-all {
  min-height: 24px;
  font-size: 10px;
}
.class-browser-list { padding: 0 2px; display: flex; flex-direction: column; gap: 2px; }
.class-browser-empty {
  padding: 20px 10px; text-align: center; color: #98a2b3; font-size: 10px; line-height: 1.5;
}
.class-node .class-node-tags { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.class-node .class-node-tag {
  padding: 1px 5px; border-radius: 4px; background: #eef1f6; color: #7b8798;
  font-size: 7px; font-weight: 600; font-style: normal; line-height: 1.4;
}
.class-node { width: 100%; min-height: 52px; padding: 7px 8px; display: grid; grid-template-columns: 22px 1fr 8px; align-items: center; gap: 8px; border: 0; border-radius: 7px; background: transparent; text-align: left; cursor: pointer; }
.class-node:hover { background: #f0f3f8; }
.class-node.is-active { background: #e9edfc; }
.class-node > svg { width: 15px; height: 15px; color: #78869a; }
.class-node.is-active > svg { color: #2b4acb; }
.class-node strong, .class-node small { display: block; }
.class-node strong { color: #465064; font-size: 10px; font-weight: 600; }
.class-node small { margin-top: 3px; color: #929dad; font-size: 8px; }
.class-node > em {
  width: 6px; height: 6px; justify-self: end; align-self: center;
  border-radius: 50%; background: #25a06f; font-style: normal;
}
.class-node > em.warn { background: #6f83bf; }
.class-node > i { min-width: 0; }

.binding-detail { min-width: 0; overflow: auto; }
.detail-header { min-height: 74px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0f5; }
.detail-header > div { display: flex; align-items: center; gap: 10px; }
.detail-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: #edf1ff; color: #2b4acb; }
.detail-avatar svg { width: 17px; height: 17px; }
.detail-header h1 { margin: 0; color: #263244; font-size: 14px; font-weight: 650; letter-spacing: 0; }
.detail-header p { margin: 5px 0 0; color: #8d98a9; font-size: 9px; }
.binding-summary { min-height: 88px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-bottom: 1px solid #edf0f5; background: #fbfcfe; }
.binding-summary > div { padding: 14px 16px; border-right: 1px solid #edf0f5; }
.binding-summary > div:last-child { border-right: 0; }
.binding-summary span, .binding-summary b, .binding-summary small { display: block; }
.binding-summary span { color: #8c97a8; font-size: 9px; }
.binding-summary b { margin-top: 7px; overflow: hidden; color: #3d495b; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.binding-summary small { margin-top: 4px; overflow: hidden; color: #98a2b3; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.binding-summary-group .group-summary-name { margin-top: 7px; }
.group-summary-actions { margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.binding-summary-group .group-msg-link,
.binding-summary-group .group-edit-link {
  height: 22px; margin-top: 6px; padding: 0 7px; display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid #d9eee4; border-radius: 6px; background: #edf8f3; color: #147153;
  font: inherit; font-size: 9px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.group-summary-actions .group-msg-link,
.group-summary-actions .group-edit-link { margin-top: 0; }
.binding-summary-group .group-msg-link:hover { background: #e4f4ec; border-color: #c7e6d7; }
.binding-summary-group .group-msg-link svg { width: 11px; height: 11px; }
.binding-summary-group .group-edit-link { border-color: #dce2ea; background: #fff; color: #526174; }
.binding-summary-group .group-edit-link:hover { border-color: #cbd4e1; background: #f6f8fa; color: #344054; }
.binding-summary-account .reach-account-select {
  width: 100%; max-width: 100%; height: 30px; margin-top: 7px; padding: 0 8px;
  border: 1px solid #d9dfe8; border-radius: 7px; background: #fff; color: #3d495b;
  font: inherit; font-size: 10px; font-weight: 600;
}
.binding-summary-account .reach-account-select:focus {
  border-color: #8ca5ed; outline: 0; box-shadow: 0 0 0 3px rgba(43,74,203,.08);
}
.class-reach-metrics {
  margin-top: 9px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.binding-summary .class-reach-metrics b {
  min-width: 0;
  margin: 0;
  overflow: visible;
  color: #344054;
  font-weight: 600;
  white-space: normal;
}
.class-reach-metrics strong,
.class-reach-metrics em { display: block; }
.class-reach-metrics strong { font-size: 16px; line-height: 1.1; font-weight: 650; }
.class-reach-metrics em { margin-top: 4px; color: #98a2b3; font-size: 8px; font-style: normal; font-weight: 500; white-space: nowrap; }
.class-reach-metrics .is-delivered strong { color: #147153; }
.class-reach-metrics .is-pending strong { color: #4965b3; }
.wechat-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #20aa69; }
.detail-tabs { height: 42px; padding: 0 16px; display: flex; align-items: flex-end; gap: 22px; border-bottom: 1px solid #edf0f5; }
.detail-tabs button { height: 42px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #738095; font-size: 10px; cursor: pointer; }
.detail-tabs button.is-active { border-bottom-color: #2b4acb; color: #2b4acb; font-weight: 600; }
.student-list-wrap { overflow-x: auto; }
.student-table th:last-child,
.student-table td:last-child {
  position: sticky;
  right: 0;
  width: 72px;
  min-width: 72px;
  text-align: center;
  box-shadow: -1px 0 0 #e5eaf1, -8px 0 14px rgba(15, 23, 42, .035);
}
.student-table th:last-child { z-index: 4; background: #f8fafc; }
.student-table td:last-child { z-index: 3; background: #fff; }
.student-table tbody tr:hover td:last-child { background: #fafbfe; }
.student-table td { height: auto; min-height: 64px; vertical-align: middle; }
.student-table td:has(.bind-cell) { padding: 10px 14px; white-space: normal; vertical-align: top; }
.person { display: inline-flex; align-items: center; gap: 7px; }
.person > i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: #edf1ff; color: #3d5da8; font-size: 10px; font-style: normal; font-weight: 600; }
.person b, .person small { display: block; }
.bind-cell {
  min-width: 148px; padding: 8px 10px; display: flex; flex-direction: column; gap: 7px;
  border: 1px solid #e8ecf2; border-radius: 8px; background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 100%);
}
.bind-line {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 8px;
}
.bind-line em { color: #8b96a7; font-size: 10px; font-style: normal; font-weight: 500; }
.bind-state {
  max-width: 118px; justify-self: start; overflow: hidden; padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 600; line-height: 18px; white-space: nowrap;
  text-overflow: ellipsis;
}
.bind-state.bind-ok { color: #0f6b4f; background: #e5f6ef; }
.bind-state.bind-miss { color: #526174; background: #eef1f5; }
.course-structure-panel {
  padding: 14px 16px; border-bottom: 1px solid #edf0f5; background: #fbfcfe;
}
.course-structure-panel h3 { margin: 0 0 10px; color: #465064; font-size: 11px; font-weight: 650; }
.course-structure-panel h3 span { margin-left: 8px; color: #9aa4b5; font-size: 9px; font-weight: 400; }
.course-structure-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.course-structure-list details { border: 1px solid #e4e9f0; border-radius: 8px; background: #fff; }
.course-structure-list summary {
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #526174;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-radius: 7px;
  transition: background 0.12s ease;
}
.course-structure-list summary::-webkit-details-marker { display: none; }
.course-structure-list summary:hover { background: #f8f9fb; }
.course-structure-list summary [data-icon="book-open"] svg { width: 14px; height: 14px; color: #8b97aa; }
.course-structure-list .course-summary-main {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.course-structure-list .course-summary-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.course-structure-list summary em {
  color: #98a2b3;
  font-size: 8px;
  font-style: normal;
  font-weight: 400;
  white-space: nowrap;
}
.course-structure-list .course-summary-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #b4bdca;
  transition: transform 0.15s ease, color 0.12s ease;
}
.course-structure-list .course-summary-chevron svg {
  width: 12px;
  height: 12px;
}
.course-structure-list summary:hover .course-summary-chevron { color: #7b8798; }
.course-structure-list details[open] > summary .course-summary-chevron {
  transform: rotate(180deg);
  color: #7b8798;
}
.unit-row { padding: 8px 10px 9px 32px; display: grid; gap: 6px; border-top: 1px solid #edf0f5; }
.unit-row b { color: #617086; font-size: 9px; font-weight: 600; }
.unit-resource-links { display: flex; flex-wrap: wrap; gap: 6px; }
.unit-resource-chip {
  height: 22px; padding: 0 8px; border: 1px solid #d4e6df; border-radius: 6px;
  background: #f8fbf9; color: #3f6f58; font: inherit; font-size: 9px; font-weight: 500; cursor: pointer;
}
.unit-resource-chip:hover { background: #edf6f1; border-color: #b8d9c8; color: #16845e; }
.unit-resource-chip em { margin-left: 3px; color: #16845e; font-style: normal; font-weight: 700; }

.teaching-object-drawer .teaching-list-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(1140px, 94vw);
  display: flex; flex-direction: column; background: #f6f7f9; box-shadow: -10px 0 36px rgba(15,23,42,.14);
}
.teaching-list-head {
  padding: 14px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid #e8edf5; background: #fff;
}
.teaching-list-head h2 { margin: 0; color: #263244; font-size: 15px; font-weight: 650; }
.teaching-list-head span { display: block; margin-top: 5px; color: #8d98a9; font-size: 10px; }
.teaching-list-head-actions { display: flex; align-items: center; gap: 8px; }
.teaching-list-close {
  width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px;
  background: #f0f2f6; color: #667085; cursor: pointer;
}
.teaching-list-close svg { width: 14px; height: 14px; }
.teaching-list-tabs {
  height: 44px;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  gap: 26px;
  flex: 0 0 auto;
  border-bottom: 1px solid #e8edf5;
  background: #fff;
}
.teaching-list-tabs button {
  position: relative;
  min-width: 78px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #6f7b8e;
  font: inherit;
  font-size: 11px;
  font-weight: 550;
  cursor: pointer;
}
.teaching-list-tabs button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
}
.teaching-list-tabs button:hover { color: #364152; }
.teaching-list-tabs button.is-active { color: #2b4acb; font-weight: 650; }
.teaching-list-tabs button.is-active::after { background: #2b4acb; }
.teaching-list-tabs button:focus-visible { outline: 2px solid rgba(43, 74, 203, .30); outline-offset: -3px; }
.teaching-list-meta {
  padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid #e8edf5; background: #fff;
  color: #526174; font-size: 11px; font-weight: 600;
}
.teaching-list-meta-hint { color: #98a2b3; font-size: 10px; font-weight: 500; }
.teaching-list-body { position: relative; min-height: 0; flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.teaching-list-scroll { min-height: 0; flex: 1; padding: 14px 18px 20px; overflow: auto; }
.teaching-options-scroll {
  min-height: 0;
  flex: 1;
  padding: 18px 20px 28px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.teaching-options-scroll[hidden] { display: none; }
.teaching-options-form { width: min(720px, 100%); display: grid; gap: 12px; }
.teaching-options-intro {
  min-height: 58px;
  padding: 0 2px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e5eaf1;
}
.teaching-options-intro h3 { margin: 0; color: #263244; font-size: 14px; font-weight: 650; }
.teaching-options-intro p { margin: 5px 0 0; color: #8d98a9; font-size: 10px; }
.teaching-options-intro > span {
  padding: 4px 8px;
  border: 1px solid #dfe5ed;
  border-radius: 6px;
  background: #fff;
  color: #718096;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.teaching-options-card {
  padding: 16px;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}
.teaching-options-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.teaching-options-card-head h4 { margin: 0; color: #263244; font-size: 12px; font-weight: 650; }
.teaching-options-card-head p { margin: 5px 0 0; color: #8d98a9; font-size: 10px; line-height: 1.5; }
.teaching-options-summary {
  margin-top: 14px;
  padding-top: 12px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-top: 1px solid #edf0f5;
  color: #8d98a9;
  font-size: 10px;
}
.teaching-options-summary b { color: #526174; font-size: 10px; font-weight: 650; }
.teaching-options-summary small { color: #98a2b3; font-size: 9px; }
.teaching-option-default {
  margin-top: 14px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
}
.teaching-option-default b,
.teaching-option-default small { display: block; }
.teaching-option-default b { color: #465064; font-size: 10px; font-weight: 650; }
.teaching-option-default small { margin-top: 4px; color: #8d98a9; font-size: 9px; }
.teaching-option-default input { width: 14px; height: 14px; accent-color: #2b4acb; }
.teaching-option-custom { margin-top: 12px; padding-top: 12px; border-top: 1px solid #edf0f5; }
.teaching-options-actions { display: flex; justify-content: flex-end; padding-top: 2px; }
.teaching-reach-layer {
  position: absolute; inset: 0; z-index: 8; display: flex; justify-content: flex-end;
}
.teaching-reach-layer[hidden] { display: none !important; }
.teaching-reach-scrim {
  position: absolute; inset: 0; border: 0; background: rgba(15, 23, 42, 0.28); cursor: pointer;
}
.reach-state-pill {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
  font-size: 9px; font-weight: 600; white-space: nowrap;
}
.reach-state-pill.on { color: #147153; background: #eaf8f2; }
.reach-state-pill.off { color: #68758a; background: #f0f3f8; }
.reach-timing-cell { display: grid; gap: 3px; }
.reach-timing-cell b { color: #3d495b; font-size: 10px; font-weight: 600; }
.reach-timing-stack { display: grid; gap: 4px; }
.reach-timing-line {
  display: block; color: #3d495b; font-size: 10px; font-weight: 500; line-height: 1.35; white-space: normal;
}
.reach-timing-line em { margin-right: 4px; color: #8d98aa; font-size: 9px; font-weight: 600; font-style: normal; }
.reach-timing-cell small { color: #98a2b3; font-size: 9px; font-weight: 500; }
.edu-reach-btn {
  height: 28px; padding: 0 10px; border: 1px solid #c9d4f0; border-radius: 6px;
  background: #f4f6fd; color: #2b4acb; font: inherit; font-size: 10px; font-weight: 600; cursor: pointer;
}
.edu-reach-btn:hover { background: #e9edfc; }
.edu-reach-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.edu-reach-detail-btn {
  height: 28px;
  padding: 0 9px;
  border: 1px solid #c9d4f0;
  border-radius: 6px;
  background: #fff;
  color: #2b4acb;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.edu-reach-detail-btn:hover { border-color: #aebee8; background: #f4f6fd; }
.edu-reach-actions .edu-reach-btn {
  border-color: #dce2ea;
  background: #fff;
  color: #5c687a;
}
.edu-reach-actions .edu-reach-btn:hover { border-color: #cbd4e1; background: #f6f8fa; color: #344054; }
.teaching-reach-sheet {
  position: relative; z-index: 1; width: min(420px, 92%); height: 100%; padding: 16px 18px 18px;
  border: 0; border-left: 1px solid #d9e2f2; border-radius: 0; background: #fff;
  box-shadow: -12px 0 36px rgba(15, 23, 42, 0.12); overflow-y: auto; box-sizing: border-box;
  animation: teaching-reach-in 0.22s ease;
}
@keyframes teaching-reach-in {
  from { transform: translateX(24px); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}
.teaching-reach-sheet-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.teaching-reach-sheet-head h3 { margin: 0; color: #263244; font-size: 13px; font-weight: 650; }
.teaching-reach-sheet-head p { margin: 4px 0 0; color: #8d98a9; font-size: 10px; }
.teaching-reach-form { display: grid; gap: 12px; }
.teaching-reach-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 0; border-top: 1px solid #f1f5f9;
}
.teaching-reach-row:first-child { border-top: 0; padding-top: 0; }
.teaching-reach-row b { display: block; color: #1b1e26; font-size: 12px; }
.teaching-reach-row small { display: block; margin-top: 3px; color: #98a2b3; font-size: 10px; }
.teaching-reach-default { display: inline-flex; align-items: center; gap: 8px; color: #465064; font-size: 11px; font-weight: 600; }
.teaching-reach-default-summary { margin-left: auto; color: #5c687a; font-size: 10px; font-weight: 500; }
.teaching-reach-custom { display: grid; gap: 8px; }
.teaching-reach-custom-label { color: #5f6b7d; font-size: 10px; font-weight: 600; }
.teaching-reach-channel { margin: 0; color: #7b8798; font-size: 10px; }
.teaching-reach-channel strong { color: #31704f; font-weight: 650; }
.teaching-reach-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.teaching-reach-homework { display: grid; gap: 10px; }
.teaching-friend-reach {
  padding: 12px;
  display: grid;
  gap: 10px;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  background: #f9fafb;
}
.teaching-friend-reach-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.teaching-friend-reach-head b,
.teaching-friend-reach-head small { display: block; }
.teaching-friend-reach-head b { color: #263244; font-size: 12px; font-weight: 650; }
.teaching-friend-reach-head small { margin-top: 4px; color: #8d98a9; font-size: 9px; line-height: 1.45; }
.teaching-friend-default {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}
.teaching-friend-default em {
  margin-left: auto;
  color: #7b8798;
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
}
.teaching-friend-custom { display: grid; gap: 10px; }
.friend-role-fieldset {
  margin: 0;
  padding: 10px 11px 11px;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
  background: #fff;
}
.friend-role-fieldset legend { padding: 0 4px; color: #657184; font-size: 9px; font-weight: 650; }
.friend-role-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.friend-role-options label {
  min-height: 30px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #e2e7ee;
  border-radius: 7px;
  background: #fff;
  color: #5c687a;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.friend-role-options label:has(input:checked) { border-color: #c9d4f0; background: #f4f6fd; color: #2b4acb; }
.friend-role-options input { width: 13px; height: 13px; margin: 0; accent-color: #2b4acb; }
.friend-role-fieldset.is-disabled { opacity: .45; pointer-events: none; }
.friend-reach-warning {
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 7px;
  border: 1px solid #dfe6f8;
  border-radius: 8px;
  background: #f4f6fd;
  color: #5067a7;
}
.friend-reach-warning[hidden] { display: none; }
.friend-reach-warning svg { width: 13px; height: 13px; margin-top: 1px; }
.friend-reach-warning p { margin: 0; font-size: 9px; line-height: 1.55; }
.teaching-reach-block {
  padding: 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc;
  display: grid; gap: 10px;
}
.teaching-reach-block--nudge { background: #fff; }
.teaching-reach-block-head { display: grid; gap: 4px; }
.teaching-reach-block-kicker {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  color: #2b4acb; font-size: 10px; font-weight: 700;
}
.teaching-reach-block-kicker::before {
  content: ""; width: 3px; height: 12px; border-radius: 2px; background: #2b4acb;
}
.teaching-reach-block-kicker--nudge { color: #3655b4; }
.teaching-reach-block-kicker--nudge::before { background: #2b4acb; }
.teaching-reach-block-head b { color: #1b1e26; font-size: 12px; }
.teaching-reach-block-head small { color: #8d98aa; font-size: 10px; line-height: 1.45; }
.teaching-reach-row--tight { padding-bottom: 0; border-bottom: 0; }
.edu-table-wrap {
  --edu-reach-action-w: 154px;
  border: 1px solid #e4e8ef; border-radius: 8px; background: #fff; overflow: auto;
}
.edu-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; color: #465064; font-size: 11px; }
.edu-table th {
  height: 36px; padding: 0 10px; border-bottom: 1px solid #e8ecf2; background: #f8fafc;
  color: #6b7a90; font-size: 10px; font-weight: 600; text-align: left; white-space: nowrap;
}
.edu-table td { padding: 10px; border-bottom: 1px solid #edf0f5; vertical-align: middle; white-space: nowrap; background: #fff; }
.edu-table tbody tr:last-child td { border-bottom: 0; }
.edu-table tbody tr:hover td { background: #fbfcff; }
.edu-table .edu-sticky-reach-timing,
.edu-table .edu-sticky-reach-action {
  position: sticky; z-index: 2; background: #fff;
}
.edu-table thead .edu-sticky-reach-timing,
.edu-table thead .edu-sticky-reach-action {
  z-index: 4; background: #f8fafc;
}
.edu-table .edu-sticky-reach-action {
  right: 0; min-width: var(--edu-reach-action-w); text-align: center;
  box-shadow: -6px 0 10px rgba(15, 23, 42, 0.06);
}
.edu-table .edu-sticky-reach-timing {
  right: var(--edu-reach-action-w); min-width: 108px;
  box-shadow: -6px 0 10px rgba(15, 23, 42, 0.04);
}
.edu-table tbody tr:hover .edu-sticky-reach-timing,
.edu-table tbody tr:hover .edu-sticky-reach-action { background: #fbfcff; }
.edu-link, .edu-table a.edu-link { border: 0; padding: 0; background: transparent; color: #16845e; font: inherit; font-weight: 600; cursor: pointer; }
.edu-link:hover { color: #0f6b4f; text-decoration: underline; }
.edu-theme { color: #2b4acb; font-weight: 500; }
.edu-status-ended { color: #7a8799; }
.edu-status-live { color: #16845e; font-weight: 600; }
.edu-stats-link { color: #16845e; font-weight: 600; cursor: pointer; }
.edu-op-btn {
  height: 28px; padding: 0 10px; border: 1px solid #bfe3d2; border-radius: 6px;
  background: #f0faf5; color: #0f6b4f; font: inherit; font-size: 10px; font-weight: 600; cursor: pointer;
}
.edu-op-btn:hover { background: #e2f5ec; }
.edu-teacher { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #e8edf5; color: #6b7a90; font-size: 10px; }
.edu-time-stack { display: grid; gap: 2px; line-height: 1.35; color: #5c687a; font-size: 10px; }

.group-name { display: inline-flex; align-items: center; gap: 8px; }
.group-name > i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #eaf8f2; color: #16845e; }
.group-name svg { width: 14px; height: 14px; }
.message-preview { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }

.side-drawer, .wechat-phone-drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-scrim, .wechat-phone-scrim { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(15,23,42,.45); }
.rule-drawer-panel, .settings-drawer-panel, .binding-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; background: #f8f9fc; box-shadow: -8px 0 32px rgba(15,23,42,.18); }
.rule-drawer-panel { width: 460px; }
.settings-drawer-panel { width: 680px; }
.binding-drawer-panel { width: 520px; }
.group-editor-panel { width: 440px; }
.drawer-head { height: 66px; padding: 0 18px; flex: 0 0 auto; display: flex; align-items: center; border-bottom: 1px solid #e2e7ef; background: #fff; }
.drawer-head h2 { margin: 0; color: #263244; font-size: 15px; font-weight: 650; }
.drawer-head span { display: block; margin-top: 5px; color: #929dad; font-size: 9px; }
.drawer-head > button { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: #f0f2f6; color: #667085; cursor: pointer; }
.drawer-head > button svg { width: 14px; height: 14px; }
.rule-form { min-height: 0; padding: 16px 18px 24px; flex: 1; overflow-y: auto; }
.rule-form > label, .rule-form fieldset { margin: 0 0 14px; }
.rule-form label > span, .rule-form legend { display: block; margin-bottom: 6px; color: #5f6b7d; font-size: 10px; font-weight: 600; }
.rule-form input[type="text"], .rule-form input[type="time"], .rule-form select, .rule-form textarea { width: 100%; min-height: 34px; padding: 8px 10px; border: 1px solid #d9dfe8; border-radius: 7px; outline: 0; background: #fff; color: #364152; font: inherit; font-size: 11px; }
.rule-form textarea { resize: vertical; line-height: 1.7; }
.rule-form input:focus, .rule-form select:focus, .rule-form textarea:focus { border-color: #8ca5ed; box-shadow: 0 0 0 3px rgba(43,74,203,.08); }
.rule-form fieldset { padding: 12px; border: 1px solid #e1e6ee; border-radius: 8px; background: #fff; }
.rule-form legend { padding: 0 5px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.check-row { display: flex; gap: 18px; margin-top: 12px; }
.check-row label { display: flex; align-items: center; gap: 5px; color: #5c687a; font-size: 10px; }
.check-row input { accent-color: #2b4acb; }
.target-preview { margin-top: 12px; padding: 9px 10px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; border-radius: 7px; background: #f1f4fd; color: #2b4acb; }
.target-preview svg { width: 14px; height: 14px; }
.target-preview b { font-size: 10px; }
.target-preview small { color: #7c8aad; font-size: 8px; }
.field-note { display: block; margin-top: 5px; color: #98a2b3; font-size: 8px; }
.toggle-line { min-height: 38px; display: flex; align-items: center; justify-content: space-between; }
.toggle-line b, .toggle-line small { display: block; }
.toggle-line b { color: #465064; font-size: 10px; font-weight: 600; }
.toggle-line small { margin-top: 3px; color: #98a2b3; font-size: 8px; }
.native-switch { width: 30px; accent-color: #2b4acb; }
.drawer-footer { height: 64px; padding: 0 18px; flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid #e2e7ef; background: #fff; }

.group-editor-form { min-height: 0; padding: 18px 20px 26px; flex: 1; overflow-y: auto; }
.group-editor-current { min-height: 66px; padding: 12px; display: flex; align-items: center; gap: 11px; border: 1px solid #dfe5ed; border-radius: 10px; background: #fff; }
.group-editor-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: #edf8f3; color: #147153; }
.group-editor-icon svg { width: 17px; height: 17px; }
.group-editor-current small, .group-editor-current b { display: block; }
.group-editor-current small { color: #98a2b3; font-size: 9px; }
.group-editor-current b { margin-top: 4px; color: #344054; font-size: 12px; }
.group-editor-field { margin-top: 18px; display: block; }
.group-editor-field > span { display: block; margin-bottom: 7px; color: #526174; font-size: 11px; font-weight: 600; }
.group-editor-field select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #d9e0ea; border-radius: 9px; outline: 0; background: #fff; color: #344054; font: inherit; font-size: 11px; }
.group-editor-field select:focus { border-color: #8ca5ed; box-shadow: 0 0 0 3px rgba(43, 74, 203, .08); }
.group-editor-field > small { display: block; margin-top: 7px; color: #98a2b3; font-size: 9px; line-height: 1.55; }
.group-editor-preview { margin-top: 16px; padding: 13px 14px; border: 1px solid #e0e6f7; border-radius: 10px; background: #f5f7fd; }
.group-editor-preview span, .group-editor-preview b, .group-editor-preview small { display: block; }
.group-editor-preview span { color: #7d89a0; font-size: 9px; }
.group-editor-preview b { margin-top: 7px; color: #3f568f; font-size: 12px; }
.group-editor-preview small { margin-top: 5px; color: #7c89a5; font-size: 9px; }
.group-editor-note { margin-top: 16px; }

.settings-form { min-height: 0; display: grid; grid-template-columns: 178px minmax(0,1fr); flex: 1; overflow: hidden; }
.settings-nav { padding: 12px 8px; overflow-y: auto; border-right: 1px solid #e2e7ef; background: #f7f8fb; }
.settings-nav button { width: 100%; min-height: 52px; padding: 8px 9px; display: grid; grid-template-columns: 26px minmax(0,1fr); align-items: center; gap: 8px; border: 0; border-radius: 7px; background: transparent; color: #748095; text-align: left; cursor: pointer; }
.settings-nav button:hover { background: #eef1f6; }
.settings-nav button.is-active { background: #e9edfc; color: #2b4acb; }
.settings-nav button > svg { width: 15px; height: 15px; justify-self: center; }
.settings-nav i, .settings-nav b, .settings-nav small { min-width: 0; display: block; font-style: normal; }
.settings-nav b { color: #4b5669; font-size: 10px; font-weight: 650; }
.settings-nav .is-active b { color: #2947b7; }
.settings-nav small { margin-top: 4px; overflow: hidden; color: #97a1b1; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.settings-content { min-width: 0; overflow-y: auto; background: #fff; }
.settings-panel { min-height: 100%; padding: 20px; }
.settings-panel[hidden] { display: none; }
.settings-section-head { min-height: 44px; margin-bottom: 18px; display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid #edf0f5; }
.settings-section-head > div { min-width: 0; flex: 1; }
.settings-section-head h3, .settings-section-head p { margin: 0; }
.settings-section-head h3 { color: #2f3a4c; font-size: 14px; font-weight: 650; }
.settings-section-head p { margin-top: 5px; color: #8b96a7; font-size: 9px; line-height: 1.55; }
.compact-button { min-height: 28px !important; padding: 0 9px !important; font-size: 9px !important; }
.notification-rule-list { border: 1px solid #e3e8ef; border-radius: 8px; overflow: hidden; }
.notification-rule { min-height: 70px; padding: 10px 12px; display: grid; grid-template-columns: 32px minmax(0,1fr) 158px 32px; align-items: center; gap: 10px; border-bottom: 1px solid #edf0f5; }
.notification-rule:last-child { border-bottom: 0; }
.notification-rule > div b, .notification-rule > div small { display: block; }
.notification-rule > div b { color: #435066; font-size: 10px; font-weight: 650; }
.notification-rule > div small { margin-top: 4px; color: #98a2b3; font-size: 8px; }
.notification-rule select { width: 100%; height: 30px; padding: 0 7px; border: 1px solid #dce2ea; border-radius: 6px; outline: 0; background: #fff; color: #5c687a; font-size: 9px; }
.settings-fields { display: grid; gap: 14px; }
.settings-fields > label > span, .settings-fields .form-grid label > span, .settings-fields legend { display: block; margin-bottom: 6px; color: #5f6b7d; font-size: 10px; font-weight: 600; }
.settings-fields select, .settings-fields input[type="time"], .settings-fields textarea { width: 100%; min-height: 34px; padding: 8px 10px; border: 1px solid #d9dfe8; border-radius: 7px; outline: 0; background: #fff; color: #364152; font: inherit; font-size: 10px; }
.settings-fields textarea { line-height: 1.75; resize: vertical; }
.settings-fields select:focus, .settings-fields input:focus, .settings-fields textarea:focus { border-color: #8ca5ed; box-shadow: 0 0 0 3px rgba(43,74,203,.08); }
.settings-fields fieldset { margin: 0; padding: 12px; border: 1px solid #e1e6ee; border-radius: 8px; }
.settings-fields legend { padding: 0 5px; }
.identity-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.identity-options label { min-height: 58px; padding: 9px; display: flex; align-items: flex-start; gap: 7px; border: 1px solid #e3e8ef; border-radius: 7px; background: #fbfcfe; cursor: pointer; }
.identity-options input { margin-top: 2px; accent-color: #2b4acb; }
.identity-options b, .identity-options small { display: block; }
.identity-options b { color: #4b5669; font-size: 9px; }
.identity-options small { margin-top: 4px; color: #98a2b3; font-size: 8px; line-height: 1.4; }
.toggle-setting { min-height: 56px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #e4e8ef; border-radius: 8px; background: #fff; }
.toggle-setting.emphasized { border-color: #cfd8f3; background: #f6f8ff; }
.toggle-setting b, .toggle-setting small { display: block; }
.toggle-setting b { color: #465064; font-size: 10px; font-weight: 600; }
.toggle-setting small { margin-top: 4px; color: #98a2b3; font-size: 8px; }
.message-sample { padding: 12px; display: grid; grid-template-columns: 28px 1fr; gap: 9px; border-radius: 8px; background: #f0f3f8; color: #66758a; }
.message-sample > svg { width: 16px; height: 16px; margin: 2px auto 0; }
.message-sample b { color: #4b586b; font-size: 9px; }
.message-sample p { margin: 6px 0 0; color: #6e7a8d; font-size: 9px; line-height: 1.65; }
.weekday-row { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.weekday-row label { height: 34px; display: grid; place-items: center; border: 1px solid #dce2ea; border-radius: 6px; color: #5f6b7d; font-size: 9px; cursor: pointer; }
.weekday-row input { position: absolute; opacity: 0; }
.weekday-row label:has(input:checked) { border-color: #aebfeb; background: #edf1ff; color: #2b4acb; font-weight: 600; }
.account-list { margin-bottom: 14px; border: 1px solid #e2e7ee; border-radius: 8px; overflow: hidden; }
.account-row { min-height: 68px; padding: 10px 12px; display: grid; grid-template-columns: 16px 34px 1fr auto; align-items: center; gap: 9px; border-bottom: 1px solid #edf0f5; cursor: pointer; }
.account-row:last-child { border-bottom: 0; }
.account-row:has(input:checked) { background: #f7f9ff; }
.account-row input { accent-color: #2b4acb; }
.account-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; background: #eaf8f2; color: #16845e; font-size: 10px; font-weight: 650; }
.account-row i, .account-row b, .account-row small { display: block; font-style: normal; }
.account-row b { color: #465064; font-size: 10px; }
.account-row small { margin-top: 4px; color: #98a2b3; font-size: 8px; }
.account-row em { padding: 3px 6px; border-radius: 4px; background: #eaf8f2; color: #147153; font-size: 8px; font-style: normal; }
.settings-saved-hint { margin-right: auto; color: #98a2b3; font-size: 8px; }

.binding-person-head { min-height: 72px; padding: 12px 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e4e8ef; background: #fff; }
.binding-person-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: #edf1ff; color: #3d5da8; font-size: 12px; font-weight: 650; }
.binding-person-head > div { min-width: 0; flex: 1; }
.binding-person-head b, .binding-person-head small { display: block; }
.binding-person-head b { color: #344054; font-size: 12px; font-weight: 650; }
.binding-person-head small { margin-top: 5px; color: #929dad; font-size: 8px; }
.binding-total { padding: 5px 8px; border-radius: 5px; background: #eaf8f2; color: #147153; font-size: 9px; font-weight: 600; }
.binding-role-tabs {
  --binding-tab-inline: 18px;
  position: relative;
  min-height: 60px;
  padding: 10px var(--binding-tab-inline) 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border-bottom: 1px solid #e2e7ef;
  background: #fff;
}
.binding-role-tabs::before {
  content: "";
  position: absolute;
  inset: 10px var(--binding-tab-inline) 12px;
  border: 1px solid #e8ecf2;
  border-radius: 9px;
  background: #f4f6f9;
  pointer-events: none;
}
.binding-role-tabs button {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 36px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #69768a;
  font-size: 9px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.binding-role-tabs button:hover:not(.is-active) {
  background: rgba(255, 255, 255, .72);
  color: #465469;
}
.binding-role-tabs button.is-active {
  border-color: #d9e1f2;
  background: #fff;
  color: #2b4acb;
  font-weight: 650;
  box-shadow: 0 1px 2px rgba(29, 47, 83, .07), 0 2px 7px rgba(29, 47, 83, .04);
}
.binding-role-tabs button:focus-visible {
  outline: 2px solid rgba(43, 74, 203, .30);
  outline-offset: 1px;
}
.binding-role-tabs small {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #9aa4b3;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
}
.binding-role-tabs .is-active small { background: transparent; color: #6f82bd; }
.binding-form { min-height: 0; padding: 14px 18px 22px; flex: 1; overflow-y: auto; }
.binding-explainer { margin-bottom: 12px; padding: 10px 11px; display: grid; grid-template-columns: 18px 1fr; gap: 8px; border-radius: 7px; background: #edf1ff; color: #4963ad; }
.binding-explainer > svg { width: 14px; height: 14px; margin-top: 1px; }
.binding-explainer p { margin: 0; font-size: 9px; line-height: 1.65; }
.binding-explainer b { font-weight: 650; }
.binding-channel-block { position: relative; margin-bottom: 12px; padding: 14px; border: 1px solid #e1e6ee; border-radius: 8px; background: #fff; }
.binding-channel-head { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 9px; }
.binding-channel-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; }
.binding-channel-icon svg { width: 15px; height: 15px; }
.binding-channel-icon.group { color: #16845e; background: #eaf8f2; }
.binding-channel-icon.direct { color: #3f5ea9; background: #edf1ff; }
.binding-channel-head h3, .binding-channel-head p { margin: 0; }
.binding-channel-head h3 { color: #3f4b5e; font-size: 11px; font-weight: 650; }
.binding-channel-head p { margin-top: 4px; color: #98a2b3; font-size: 8px; }
.channel-status { padding: 3px 7px; border-radius: 5px; background: #eaf8f2; color: #147153; font-size: 8px; }
.channel-status.is-empty { background: #eef1f5; color: #526174; }
.channel-status.is-off { background: #eef1f5; color: #68758a; }
.binding-control-row { margin-top: 14px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px; }
.binding-control-row label > span { display: block; margin-bottom: 6px; color: #5f6b7d; font-size: 9px; font-weight: 600; }
.binding-control-row select { width: 100%; height: 34px; padding: 0 9px; border: 1px solid #d9dfe8; border-radius: 7px; outline: 0; background: #fff; color: #364152; font-size: 10px; }
.binding-control-row select:focus { border-color: #8ca5ed; box-shadow: 0 0 0 3px rgba(43,74,203,.08); }
.load-members-button { min-width: 104px; height: 34px; padding-inline: 9px; font-size: 9px; }
.load-members-button:disabled { opacity: .65; cursor: wait; }
.binding-meta { margin-top: 9px; display: flex; align-items: center; gap: 6px; color: #68806f; font-size: 8px; }
.binding-meta svg { width: 12px; height: 12px; }
.binding-meta.is-empty { color: #697589; }
.danger-text-button { margin-top: 10px; padding: 0; border: 0; background: transparent; color: #a45555; font-size: 8px; cursor: pointer; }
.danger-text-button:hover { color: #853939; text-decoration: underline; }

.wechat-phone-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 420px; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; overflow: auto; background: #f7f8fb; box-shadow: -8px 0 32px rgba(15,23,42,.18); }
.wechat-phone-panel-head { width: 350px; height: 28px; display: flex; align-items: center; gap: 10px; }
.wechat-phone-time-btn, .wechat-phone-close { height: 28px; border: 0; border-radius: 999px; background: #eef1f7; color: #55617a; cursor: pointer; }
.wechat-phone-time-btn { padding: 0 12px; font-size: 12px; }
.wechat-phone-close { width: 28px; margin-left: auto; padding: 0; font-size: 18px; line-height: 18px; }
.wechat-phone-shell { width: 350px; height: min(760px, calc(100vh - 130px)); display: flex; flex-direction: column; overflow: hidden; border: 7px solid #2b2b2b; border-radius: 32px; background: #ededed; box-shadow: 0 8px 32px rgba(15,23,42,.18), 0 0 0 2px #2f6cef; }
.wechat-phone-notch { height: 28px; flex: 0 0 28px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; background: #ededed; }
.wechat-phone-notch::after { content: ""; width: 68px; height: 5px; border-radius: 5px; background: #c2c2c2; }
.wechat-phone-nav { height: 44px; flex: 0 0 44px; padding: 0 40px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #d7d7d7; background: #ededed; color: #111; font-size: 16px; font-weight: 600; }
.wechat-phone-msgs { min-height: 0; padding: 6px 8px 10px; flex: 1; overflow-y: auto; background: #ededed; }
.wechat-phone-loading { padding: 6px 0 10px; color: #9aa5b8; font-size: 12px; text-align: center; }
.wx-time-divider { height: 18px; margin: 10px 0 6px; display: flex; justify-content: center; }
.wx-time-divider span { padding: 2px 8px; border-radius: 9px; background: rgba(255,255,255,.56); color: #a2aabc; font-size: 10px; line-height: 14px; }
.wx-row { width: 100%; margin: 8px 0; display: flex; align-items: flex-start; gap: 8px; }
.wx-row-me { justify-content: flex-end; }
.wx-row-them { justify-content: flex-start; }
.wx-avatar { width: 40px; height: 40px; flex: 0 0 40px; overflow: hidden; border-radius: 4px; object-fit: cover; }
.wx-col { max-width: calc(100% - 48px); display: flex; flex-direction: column; }
.wx-row-me .wx-col { align-items: flex-end; }
.wx-row-them .wx-col { align-items: flex-start; }
.wx-sender { margin: 0 4px 3px; color: #8f98a6; font-size: 9px; }
.wx-bubble { position: relative; max-width: 100%; padding: 8px 10px; border-radius: 4px; color: #111; font-size: 15px; line-height: 22px; text-wrap: pretty; }
.wx-bubble-them { background: #fff; }
.wx-bubble-me { background: #95ec69; }
.wx-bubble::before { content: ""; position: absolute; top: 13px; border: 5px solid transparent; }
.wx-bubble-them::before { left: -9px; border-right-color: #fff; }
.wx-bubble-me::before { right: -9px; border-left-color: #95ec69; }
.wx-time { display: none; margin: 3px 4px 0; color: #9aa4b4; font-size: 9px; line-height: 14px; }
.wechat-phone-msgs.show-times .wx-time { display: block; }
.wechat-phone-home { height: 20px; flex: 0 0 20px; background: #ededed; }
.wechat-phone-home::after { content: ""; display: block; width: 92px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: #b6b6b6; }
.wechat-phone-panel-hint { width: 350px; margin: 0; color: #8b97aa; font-size: 12px; text-align: center; }

@media (max-width: 1180px) {
  .status-cell { padding-inline: 12px; }
  .status-cell em { display: none; }
  .binding-summary { grid-template-columns: repeat(2,1fr); }
  .binding-summary > div:nth-child(2) { border-right: 0; }
  .binding-summary > div:nth-child(-n+2) { border-bottom: 1px solid #edf0f5; }
  .course-structure-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .service-nav, .service-panel { min-width: 900px; }
  .service-content { overflow: auto; }
  .wechat-phone-panel { width: 390px; }
  .rule-drawer-panel { width: 420px; }
  .settings-drawer-panel { width: min(680px, 92vw); }
  .binding-drawer-panel { width: min(520px, 92vw); }
}

@media (prefers-reduced-motion: reduce) {
  .switch::after { transition: none; }
}

/* Production dashboard alignment: preserve the workflow, refine the visual system. */
#wechatServiceView,
.wechat-rules-screen,
.side-drawer,
.wechat-phone-drawer {
  --service-canvas: #f6f7f9;
  --service-surface: #fff;
  --service-ink: #1b1e26;
  --service-slate: #5b6573;
  --service-muted: #9aa1ad;
  --service-line: #e4e8f0;
  --service-blue: #2b4acb;
  --service-blue-wash: #ecf0fd;
  --service-radius: 12px;
  --service-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 22px rgba(15, 23, 42, .045);
}

#wechatServiceView .wechat-service-main { background: var(--service-canvas); }
#wechatServiceView .service-header { background: rgba(255, 255, 255, .92); }
#wechatServiceView .service-header .header-icon { color: #aeb6c2; }

#wechatServiceView .service-nav {
  height: 48px;
  flex: 0 0 48px;
  margin: 12px 16px 0;
  padding: 6px 10px;
  border: 1px solid var(--service-line);
  border-radius: var(--service-radius);
  background: var(--service-surface);
  box-shadow: var(--service-shadow);
}

#wechatServiceView .service-tabs { align-items: center; gap: 4px; }
#wechatServiceView .service-tab {
  min-width: 84px;
  height: 34px;
  padding: 0 18px;
  border-radius: 10px;
  color: var(--service-slate);
  transition: color 160ms ease, background 160ms ease;
}

#wechatServiceView .service-tab::after { display: none; }
#wechatServiceView .service-tab:hover { color: var(--service-blue); background: #f5f7fb; }
#wechatServiceView .service-tab.is-active {
  color: var(--service-blue);
  background: var(--service-blue-wash);
  font-weight: 650;
}

#wechatServiceView .service-actions { align-items: center; }
#wechatServiceView .service-actions .secondary-button,
#wechatServiceView .service-actions .primary-button { height: 32px; }
#wechatServiceView .service-content { background: var(--service-canvas); }
#wechatServiceView .service-panel { padding: 12px 16px 16px; scrollbar-gutter: stable; }

#wechatServiceView .status-band {
  min-height: 108px;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#wechatServiceView .status-cell {
  min-height: 108px;
  padding: 15px 16px;
  display: block;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: var(--service-radius);
  background: linear-gradient(135deg, #fff 0%, #fbfdff 58%, #f4f7fc 100%);
  box-shadow: var(--service-shadow);
  transition: border-color 180ms cubic-bezier(.2, 0, 0, 1), box-shadow 180ms cubic-bezier(.2, 0, 0, 1);
}

#wechatServiceView .status-cell:hover {
  border-color: #cbd7e6;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .05), 0 14px 30px rgba(15, 23, 42, .065);
}

#wechatServiceView .status-cell + .status-cell::before { display: none; }
#wechatServiceView .status-cell > div { display: flex; flex-direction: column; }
#wechatServiceView .status-cell b {
  order: 2;
  margin-top: 22px;
  color: #111827;
  font-size: 26px;
  line-height: 1;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

#wechatServiceView .status-cell span:not(.status-icon) {
  order: 1;
  margin: 0;
  color: #526174;
  font-size: 11px;
  line-height: 16px;
  font-weight: 650;
}

#wechatServiceView .status-cell em {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  overflow: hidden;
  color: #8a96a8;
  font-size: 10px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#wechatServiceView .status-icon {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

#wechatServiceView .status-icon svg { width: 14px; height: 14px; }
#wechatServiceView .status-icon.blue,
#wechatServiceView .status-icon.violet { color: var(--service-blue); background: var(--service-blue-wash); }
#wechatServiceView .status-icon.green { color: #14805e; background: #edf8f3; }
#wechatServiceView .status-icon.amber { color: var(--service-blue); background: var(--service-blue-wash); }

#wechatServiceView .overview-layout { margin-top: 12px; }
#wechatServiceView .work-surface,
#wechatServiceView .rail-section,
#wechatServiceView .panel-toolbar,
#wechatServiceView .binding-workbench {
  border-color: #dbe3ef;
  border-radius: var(--service-radius);
  box-shadow: var(--service-shadow);
}

#wechatServiceView .section-heading {
  min-height: 50px;
  padding: 0 14px;
  border-bottom-color: #edf1f6;
}

#wechatServiceView .section-heading h2 { color: #3f4c5f; font-size: 12px; }
#wechatServiceView .section-heading span { color: var(--service-muted); }
#wechatServiceView .overview-queue-toolbar {
  gap: 8px;
  padding: 10px 14px;
  background: #fbfcfe;
  border-bottom-color: #edf1f6;
}

#wechatServiceView .overview-queue-toolbar-row { align-items: center; min-height: 28px; }
#wechatServiceView .overview-queue-toolbar-label { padding-top: 0; color: #7b8798; }
#wechatServiceView .overview-queue-tag {
  height: 26px;
  border-radius: 8px;
  background: #fff;
  color: #657184;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

#wechatServiceView .overview-queue-tag.is-on {
  border-color: #b8c8ef;
  background: #f1f4fd;
  color: var(--service-blue);
  box-shadow: 0 0 0 1px rgba(43, 74, 203, .04);
}

#wechatServiceView .overview-queue-scope { border-radius: 9px; background: #f2f4f7; }
#wechatServiceView .overview-queue-scope-btn { border-radius: 7px; }
#wechatServiceView .touch-list { padding: 0; }
#wechatServiceView .touch-row {
  min-height: 72px;
  padding: 0 14px;
  grid-template-columns: 58px 26px minmax(260px, 1fr) 100px 24px;
  border-bottom-color: #edf1f6;
  transition: background 140ms ease;
}

#wechatServiceView .touch-row:hover { background: #fafbfe; }
#wechatServiceView .touch-row.is-current { background: #f8faff; }
#wechatServiceView .touch-row.is-blocked { background: #f7f8fa; }
#wechatServiceView .touch-copy strong { color: #344054; font-size: 12px; }
#wechatServiceView .touch-copy-sub { color: #8490a2; line-height: 15px; }
#wechatServiceView .touch-result b { font-variant-numeric: tabular-nums; }
#wechatServiceView .touch-copy-meta .soft-tag,
#wechatServiceView .touch-copy-meta .touch-dept-tag { border: 0; background: transparent; }
#wechatServiceView .touch-copy-meta .soft-tag { color: #758195; }
#wechatServiceView .touch-copy-meta .touch-dept-tag { color: #4965b3; }

#wechatServiceView .panel-toolbar {
  height: 48px;
  margin-bottom: 12px;
  padding: 0 10px;
  background: #fff;
}

#wechatServiceView .search-field input,
#wechatServiceView .filter-button {
  border-color: #d9e0ea;
  border-radius: 10px;
}

#wechatServiceView .search-field input:hover,
#wechatServiceView .filter-button:hover { border-color: #c8d1df; }
#wechatServiceView .search-field input:focus {
  border-color: #8ca5ed;
  box-shadow: 0 0 0 3px rgba(43, 74, 203, .08);
}

#wechatServiceView .full-table { min-height: calc(100% - 60px); }
#wechatServiceView .service-table { font-size: 11px; }
#wechatServiceView .service-table thead { position: sticky; top: 0; z-index: 2; }
#wechatServiceView .service-table th {
  height: 36px;
  border-bottom-color: #e2e8f0;
  background: #f8fafc;
  color: #657184;
  font-weight: 650;
}

#wechatServiceView .service-table td { border-bottom-color: #edf1f6; }
#wechatServiceView .service-table tbody tr:hover td { background: #fafbfe; }
#wechatServiceView .task-type-chip { border: 1px solid #dde5fa; background: #f1f4fd; }
#wechatServiceView .status-pill.success { border: 1px solid #d9eee4; background: #edf8f3; }
#wechatServiceView .status-pill.pending { border: 1px solid #dbe4fb; background: #edf2ff; }
#wechatServiceView .status-pill.draft { border: 1px solid #e5e8ed; background: #f4f5f7; }
#wechatServiceView .row-action { min-height: 26px; padding: 4px 8px; border-radius: 7px; }

#wechatServiceView .binding-workbench {
  min-height: 620px;
  grid-template-columns: 280px minmax(0, 1fr);
  background: #fff;
}

#wechatServiceView .class-browser {
  padding: 14px 10px;
  border-right-color: #e3e8f0;
  background: #fafbfc;
  scrollbar-gutter: stable;
}

#wechatServiceView .browser-head h2 { color: #3f4c5f; font-size: 12px; }
#wechatServiceView .browser-head span { font-size: 10px; }
#wechatServiceView .class-browser-filters .grow-rule-tag-grid .grow-rule-tag-check {
  min-height: 24px;
  border-color: transparent;
  border-radius: 6px;
  background: #f1f3f6;
  color: #667085;
  box-shadow: none;
}
#wechatServiceView .class-browser-filters .grow-rule-tag-grid .grow-rule-tag-check:hover {
  border-color: #d9dfe8;
  background: #eceff3;
  color: #344054;
}
#wechatServiceView .class-browser-filters .grow-rule-tag-grid .grow-rule-tag-check.is-on {
  border-color: #c8d3f1;
  background: #e9edfc;
  color: var(--service-blue);
  font-weight: 650;
}

#wechatServiceView .class-node {
  min-height: 58px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  transition: background 140ms ease, border-color 140ms ease;
}

#wechatServiceView .class-node:hover { border-color: #e4e8f0; background: #f5f7fa; }
#wechatServiceView .class-node.is-active { border-color: #d7dff4; background: #edf1fc; }
#wechatServiceView .class-node strong { color: #3f4c5f; font-size: 11px; }
#wechatServiceView .class-node small { color: #8c97a8; font-size: 9px; }
#wechatServiceView .class-node .class-node-tag { font-size: 8px; }
#wechatServiceView .binding-detail { scrollbar-gutter: stable; }
#wechatServiceView .detail-header { min-height: 72px; }
#wechatServiceView .detail-header h1 { color: #263244; font-size: 14px; }
#wechatServiceView .detail-header p { font-size: 10px; }
#wechatServiceView .course-structure-panel { border-bottom-color: #e7ebf1; background: #fbfcfe; }
#wechatServiceView .course-structure-list details { border-color: #e2e7ef; border-radius: 9px; background: #fff; }
#wechatServiceView .binding-summary { background: #fbfcfe; }
#wechatServiceView .binding-summary span { font-size: 10px; }
#wechatServiceView .binding-summary b { font-size: 12px; }
#wechatServiceView .binding-summary small { font-size: 9px; }
#wechatServiceView .binding-student-heading { margin-top: 12px; border-color: #dbe3ef; }
#wechatServiceView .binding-student-heading + .student-list-wrap { border-color: #dbe3ef; }
#wechatServiceView .bind-cell { border-color: #e5e9f0; background: #fafbfc; }

.wechat-rules-screen { background: var(--service-canvas); }
.wechat-rules-screen .grow-rules-bar {
  min-height: 0;
  padding: 24px 0 18px;
  border-bottom: 0;
  background: transparent;
}

.wechat-rules-screen .grow-rules-back { border-color: #dfe4ed; border-radius: 8px; }
.wechat-rules-screen .grow-rules-scroll { gap: 12px; padding: 0 18px 22px; }
.wechat-rules-screen .grow-rule-card {
  border-color: #dbe3ef;
  border-radius: var(--service-radius);
  box-shadow: var(--service-shadow);
}

.wechat-rules-screen #wechat-rule-modules .grow-rule-module,
.wechat-rules-screen #wechat-rule-modules .grow-rule-submodule {
  border-color: #dfe5ee;
  border-radius: 10px;
}

.wechat-rules-screen #wechat-rule-modules .grow-rule-module:hover,
.wechat-rules-screen #wechat-rule-modules .grow-rule-submodule:hover { border-color: #cdd6e4; }
.wechat-rules-screen #wechat-rule-modules .grow-rule-module.is-preview-active,
.wechat-rules-screen #wechat-rule-modules .grow-rule-submodule.is-preview-active {
  border-color: #8ca5ed;
  box-shadow: 0 0 0 3px rgba(43, 74, 203, .07);
}

.wechat-rules-screen .grow-rule-pill,
.wechat-rules-screen .grow-rule-select,
.wechat-rules-screen .grow-rule-field select,
.wechat-rules-screen .grow-rule-field textarea,
.wechat-rules-screen .grow-rule-input input[type="time"] { border-color: #d9e0ea; border-radius: 8px; }
.wechat-rules-screen .grow-rule-pill:hover { border-color: #c5cfdd; background: #f7f8fb; }
.wechat-rules-screen .grow-rule-pill.is-on { border-color: #8fa5e2; background: #eef2fd; color: var(--service-blue); }
.wechat-rules-screen .grow-rules-form > .grow-rules-foot {
  border-top-color: var(--service-line);
  box-shadow: 0 -6px 20px rgba(15, 23, 42, .05);
}

.side-drawer .rule-drawer-panel,
.side-drawer .binding-drawer-panel,
.side-drawer .teaching-list-panel,
.wechat-phone-drawer .wechat-phone-panel { box-shadow: -18px 0 48px rgba(15, 23, 42, .14); }
.side-drawer .drawer-head,
.side-drawer .teaching-list-head { border-bottom-color: var(--service-line); }
.side-drawer .drawer-footer { border-top-color: var(--service-line); }
.side-drawer input,
.side-drawer select,
.side-drawer textarea { border-color: #d9e0ea; }

@media (max-width: 1180px) {
  #wechatServiceView .service-nav { margin-inline: 12px; }
  #wechatServiceView .service-panel { padding-inline: 12px; }
  #wechatServiceView .status-band { gap: 10px; }
  #wechatServiceView .status-cell { padding-inline: 14px; }
  #wechatServiceView .status-cell em { display: block; }
  #wechatServiceView .binding-workbench { grid-template-columns: 256px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  #wechatServiceView .service-nav,
  #wechatServiceView .service-panel { min-width: 0; }
  #wechatServiceView .service-nav { overflow-x: auto; scrollbar-width: none; }
  #wechatServiceView .service-nav::-webkit-scrollbar { display: none; }
  #wechatServiceView .service-tabs,
  #wechatServiceView .service-actions { flex: 0 0 auto; }
  #wechatServiceView .status-band { min-width: 760px; }
  #wechatServiceView .overview-main { min-width: 760px; }
  #wechatServiceView .binding-workbench { min-width: 900px; }
  #wechatServiceView .panel-toolbar,
  #wechatServiceView .full-table { min-width: 900px; }
}

/* Second-pass craft: controls, overlays and rule editor. */
#wechatServiceView button,
.wechat-rules-screen button,
.side-drawer button,
.wechat-phone-drawer button { -webkit-tap-highlight-color: transparent; }

#wechatServiceView button:focus-visible,
#wechatServiceView input:focus-visible,
#wechatServiceView select:focus-visible,
.wechat-rules-screen button:focus-visible,
.wechat-rules-screen input:focus-visible,
.wechat-rules-screen select:focus-visible,
.wechat-rules-screen textarea:focus-visible,
.side-drawer button:focus-visible,
.side-drawer input:focus-visible,
.side-drawer select:focus-visible,
.side-drawer textarea:focus-visible {
  outline: 2px solid rgba(43, 74, 203, .46);
  outline-offset: 2px;
}

.native-switch {
  position: relative;
  width: 30px;
  height: 18px;
  flex: 0 0 30px;
  margin: 0;
  appearance: none;
  border: 0 !important;
  border-radius: 999px;
  outline: 0;
  background: #cfd5df;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05);
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.native-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .22);
  transition: transform 160ms cubic-bezier(.2, 0, 0, 1);
}

.native-switch:checked { background: var(--service-blue, #2b4acb); }
.native-switch:checked::after { transform: translateX(12px); }
.native-switch:hover { box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .10); }
.native-switch:disabled { cursor: not-allowed; opacity: .5; }

.wechat-rules-screen #wechat-rule-modules .grow-rule-module--compound {
  border-color: #dfe5ee;
  background: #f8fafc;
}

.wechat-rules-screen .grow-rule-submodule-kicker {
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid #dde5fa;
  border-radius: 6px;
  background: #f1f4fd;
  color: #3655b4;
  letter-spacing: 0;
}

.wechat-rules-screen .grow-rule-submodule-kicker::before { display: none; }
.wechat-rules-screen .grow-rule-submodule-kicker--nudge {
  border-color: #dde5fa;
  background: #f1f4fd;
  color: #3655b4;
}

.wechat-rules-screen .grow-rule-module-timing-row { background: #fafbfc; }
.wechat-rules-screen .grow-rule-module-tag,
.wechat-rules-screen .grow-rule-channel-tag {
  border: 1px solid #dce9e2;
  background: #f5faf7;
  color: #39725a;
}

.wechat-rules-screen #wechat-rule-modules .wechat-phone-shell.rule-phone-shell--compact {
  border-color: #30343b;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .13), 0 0 0 1px rgba(15, 23, 42, .10);
}

.wechat-rules-screen .grow-rule-title { color: #263244; font-size: 14px; }
.wechat-rules-screen .grow-rule-desc { color: #8b96a7; }
.wechat-rules-screen .grow-rule-row-label { color: #354154; font-size: 12px; }
.wechat-rules-screen .grow-rule-tag-check { border-color: #dde3ec; border-radius: 8px; }
.wechat-rules-screen .grow-rule-tag-check:hover { border-color: #cbd4e1; }

.rule-drawer-panel,
.binding-drawer-panel { background: #f6f7f9; }

.side-drawer .drawer-scrim,
.wechat-phone-drawer .wechat-phone-scrim {
  background: rgba(18, 24, 35, .40);
  backdrop-filter: blur(1px);
}

.side-drawer .drawer-head {
  height: 64px;
  padding: 0 20px;
  background: rgba(255, 255, 255, .96);
}

.side-drawer .drawer-head h2 { color: #1f2937; font-size: 15px; }
.side-drawer .drawer-head span { margin-top: 4px; color: #909aaa; font-size: 10px; }
.side-drawer .drawer-head > button,
.side-drawer .teaching-list-close {
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f2f4f7;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.side-drawer .drawer-head > button:hover,
.side-drawer .teaching-list-close:hover {
  border-color: #dfe4eb;
  background: #fff;
  color: #344054;
}

.side-drawer .rule-form {
  padding: 18px 20px 28px;
  scrollbar-gutter: stable;
}

.side-drawer .rule-form > label,
.side-drawer .rule-form fieldset { margin-bottom: 16px; }
.side-drawer .rule-form label > span,
.side-drawer .rule-form legend { color: #526174; font-size: 11px; }
.side-drawer .rule-form input[type="text"],
.side-drawer .rule-form input[type="time"],
.side-drawer .rule-form select,
.side-drawer .rule-form textarea {
  min-height: 36px;
  padding: 9px 11px;
  border-color: #d9e0ea;
  border-radius: 9px;
  color: #344054;
  font-size: 11px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.side-drawer .rule-form textarea { line-height: 1.65; }
.side-drawer .rule-form fieldset {
  padding: 14px;
  border-color: #dfe5ed;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}

.side-drawer .check-row { gap: 16px; }
.side-drawer .check-row label { font-size: 11px; }
.side-drawer .target-preview {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #e0e6f7;
  border-radius: 9px;
  background: #f5f7fd;
}

.side-drawer .target-preview b { font-size: 11px; }
.side-drawer .target-preview small,
.side-drawer .field-note,
.side-drawer .toggle-line small { font-size: 9px; }
.side-drawer .toggle-line b { color: #3f4c5f; font-size: 11px; }
.side-drawer .drawer-footer {
  height: 64px;
  padding: 0 20px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, .04);
}

.side-drawer .binding-person-head { padding-inline: 20px; }
.side-drawer .binding-person-avatar { border-radius: 10px; }
.side-drawer .binding-person-head b { font-size: 13px; }
.side-drawer .binding-person-head small { font-size: 9px; }
.side-drawer .binding-total { border: 1px solid #d7ebdf; border-radius: 7px; }
.side-drawer .binding-role-tabs { --binding-tab-inline: 20px; }
.side-drawer .binding-role-tabs button { font-size: 10px; }
.side-drawer .binding-form { padding: 16px 20px 24px; scrollbar-gutter: stable; }
.side-drawer .binding-explainer {
  border: 1px solid #dfe6f8;
  border-radius: 9px;
  background: #f4f6fd;
  color: #5067a7;
}

.side-drawer .binding-explainer p { font-size: 10px; }
.side-drawer .binding-channel-block {
  padding: 15px;
  border-color: #dfe5ed;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}

.side-drawer .binding-channel-head h3 { font-size: 12px; }
.side-drawer .binding-channel-head p,
.side-drawer .binding-meta,
.side-drawer .danger-text-button { font-size: 9px; }
.side-drawer .binding-control-row label > span { font-size: 10px; }
.side-drawer .binding-control-row select { height: 36px; border-radius: 9px; font-size: 11px; }
.side-drawer .load-members-button { height: 36px; font-size: 10px; }

.side-drawer .teaching-list-panel { background: #f6f7f9; }
.side-drawer .teaching-list-head { padding: 15px 20px; }
.side-drawer .teaching-list-meta { padding: 10px 20px; }
.side-drawer .teaching-list-scroll { padding: 14px 20px 22px; scrollbar-gutter: stable; }
.side-drawer .edu-table-wrap {
  border-color: #dbe3ef;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .035), 0 8px 22px rgba(15, 23, 42, .035);
}

.side-drawer .edu-table th { height: 38px; color: #657184; font-weight: 650; }
.side-drawer .edu-table td { padding-block: 11px; }
.side-drawer .edu-reach-btn { border-radius: 8px; }
.side-drawer .teaching-reach-sheet { padding: 18px 20px 20px; }
.side-drawer .teaching-reach-sheet-head { padding-bottom: 12px; border-bottom: 1px solid #edf0f5; }
.side-drawer .teaching-reach-block { border-color: #dfe5ed; background: #f9fafb; }
.side-drawer .teaching-reach-block-kicker::before { display: none; }
.side-drawer .teaching-reach-block-kicker {
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid #dde5fa;
  border-radius: 6px;
  background: #f1f4fd;
}

.side-drawer .teaching-reach-block-kicker--nudge {
  border-color: #dde5fa;
  background: #f1f4fd;
}

.wechat-phone-drawer .wechat-phone-panel { background: #f6f7f9; }
.wechat-phone-drawer .wechat-phone-panel-head { height: 32px; }
.wechat-phone-drawer .wechat-phone-time-btn,
.wechat-phone-drawer .wechat-phone-close {
  height: 30px;
  border: 1px solid #e1e5eb;
  background: #fff;
  color: #556174;
}

.wechat-phone-drawer .wechat-phone-time-btn:hover,
.wechat-phone-drawer .wechat-phone-close:hover { border-color: #cdd5df; background: #f9fafb; }
.wechat-phone-drawer .wechat-phone-close { width: 30px; }
.wechat-phone-drawer .wechat-phone-shell {
  border-color: #2f3339;
  box-shadow: 0 12px 36px rgba(15, 23, 42, .18), 0 0 0 1px rgba(15, 23, 42, .10);
}

.wechat-phone-drawer .wechat-phone-panel-hint { color: #8d98a9; font-size: 11px; }

/* 班级详情：基本配置 / 课程结构 / 学生绑定三段式信息层级 */
#wechatServiceView .binding-detail {
  min-width: 0;
  min-height: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background: #f5f7fa;
  scrollbar-gutter: stable;
}

#wechatServiceView .binding-detail > .detail-header,
#wechatServiceView .binding-detail > .binding-summary,
#wechatServiceView .binding-detail > .course-structure-panel {
  flex-shrink: 0;
}

#wechatServiceView .detail-header {
  order: 1;
  min-height: 72px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #dbe3ef;
  border-bottom-color: #e8edf3;
  border-radius: 10px 10px 0 0;
  background: #fff;
}

#wechatServiceView .binding-block-title h2,
#wechatServiceView .binding-block-title span,
#wechatServiceView .binding-block-heading h2,
#wechatServiceView .binding-block-heading span { display: block; margin: 0; }
#wechatServiceView .binding-block-title { display: block; }
#wechatServiceView .binding-block-title h2,
#wechatServiceView .binding-block-heading h2 { color: #263244; font-size: 13px; font-weight: 650; }
#wechatServiceView .binding-block-title span,
#wechatServiceView .binding-block-heading span { margin-top: 4px; color: #929dad; font-size: 9px; }

#wechatServiceView .binding-basic-class { min-width: 0; display: flex; align-items: center; gap: 10px; text-align: right; }
#wechatServiceView .binding-basic-class .detail-avatar { flex: 0 0 34px; }
#wechatServiceView .binding-basic-class #classDetailHeaderCopy { min-width: 0; }
#wechatServiceView .binding-basic-class h1 { margin: 0; color: #263244; font-size: 13px; font-weight: 650; }
#wechatServiceView .binding-basic-class p { margin: 4px 0 0; overflow: hidden; color: #8d98a9; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

#wechatServiceView .binding-summary {
  order: 2;
  min-height: 112px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}

#wechatServiceView .course-structure-panel {
  order: 3;
  margin: 0 0 12px;
  min-height: 0;
  max-height: min(420px, 42vh);
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}

#wechatServiceView .course-structure-panel .course-structure-list {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
}

#wechatServiceView .binding-block-heading {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #edf0f5;
}
#wechatServiceView .course-active-toggle {
  min-height: 30px;
  padding: 0 9px 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  border: 1px solid #e1e6ee;
  border-radius: 7px;
  background: #f8fafc;
  color: #526174;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}
#wechatServiceView .course-active-toggle:hover {
  border-color: #cfd7e3;
  background: #f4f7fa;
}
#wechatServiceView .binding-block-heading .course-active-toggle > span {
  margin: 0;
  color: #526174;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
#wechatServiceView .course-active-toggle .native-switch {
  width: 28px;
  height: 16px;
  flex-basis: 28px;
}
#wechatServiceView .course-active-toggle .native-switch::after {
  width: 12px;
  height: 12px;
}
#wechatServiceView .course-active-toggle .native-switch:checked::after { transform: translateX(12px); }
#wechatServiceView .binding-block-heading em {
  padding: 4px 8px;
  border: 1px solid #dce5f8;
  border-radius: 6px;
  background: #f3f6fd;
  color: #526aaa;
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}
#wechatServiceView .course-structure-list {
  min-height: 312px;
  margin-top: 14px;
  gap: 10px;
}
#wechatServiceView .course-structure-list details {
  min-height: 100%;
  border-color: #dfe5ed;
  border-radius: 10px;
  background: #fbfcfe;
}
#wechatServiceView .course-structure-list details[open] { background: #fff; }
#wechatServiceView .course-structure-list summary {
  min-height: 66px;
  padding: 12px 13px 11px;
  grid-template-columns: 16px minmax(0, 1fr);
  align-content: center;
  column-gap: 9px;
  row-gap: 7px;
}
#wechatServiceView .course-structure-list summary [data-icon="book-open"] svg {
  width: 15px;
  height: 15px;
  color: #758399;
}
#wechatServiceView .course-structure-list .course-summary-main { gap: 5px; }
#wechatServiceView .course-structure-list .course-summary-label {
  color: #263244;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.35;
}
#wechatServiceView .course-summary-meta {
  min-width: 0;
  grid-column: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
#wechatServiceView .course-summary-meta em {
  color: #98a2b3;
  font-size: 9px;
  font-style: normal;
  font-weight: 450;
  white-space: nowrap;
}
#wechatServiceView .course-summary-meta strong {
  color: #16845e;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
#wechatServiceView .unit-resource-chip {
  min-width: 58px;
  height: 28px;
  border-color: #cedfd8;
  background: #f4faf7;
  color: #2f6e52;
  font-weight: 600;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
#wechatServiceView .unit-row { padding: 12px 12px 13px 34px; gap: 8px; }
#wechatServiceView .unit-row b { font-size: 10px; }
#wechatServiceView .unit-resource-chip:hover {
  border-color: #adcdbd;
  background: #eaf6f0;
  color: #147153;
  box-shadow: 0 0 0 3px rgba(20, 113, 83, .06);
}

#wechatServiceView .binding-student-section {
  order: 4;
  min-width: 0;
  min-height: 280px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#wechatServiceView .binding-student-heading {
  flex-shrink: 0;
  align-items: flex-start;
  min-height: auto;
  margin-top: 0;
  padding: 12px 16px;
  border-color: #dbe3ef;
  border-radius: 10px 10px 0 0;
  background: #fff;
}

#wechatServiceView .binding-student-heading > div {
  min-width: 0;
  width: 100%;
}

#wechatServiceView .binding-student-heading h2 {
  color: #3f4c5f;
  font-size: 12px;
  line-height: 1.35;
}

#wechatServiceView .binding-student-heading span {
  color: #9aa4b3;
  font-size: 10px;
  line-height: 1.5;
  white-space: normal;
}

#wechatServiceView .binding-student-section .student-list-wrap {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  border-color: #dbe3ef;
  border-radius: 0 0 10px 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}

@media (max-width: 1060px) {
  #wechatServiceView .service-nav { gap: 8px; }
  #wechatServiceView .service-tab { min-width: 78px; padding-inline: 14px; }
  #wechatServiceView .service-actions { gap: 6px; }
  #wechatServiceView .service-actions .secondary-button,
  #wechatServiceView .service-actions .primary-button { padding-inline: 10px; }
  #wechatServiceView .status-cell b { font-size: 24px; }
  #wechatServiceView .detail-header { align-items: flex-start; flex-direction: column; }
  #wechatServiceView .binding-basic-class { text-align: left; }
}

@media (max-width: 720px) {
  .rule-drawer-panel,
  .binding-drawer-panel,
  .wechat-phone-panel { width: 100vw !important; }
  .side-drawer .form-grid { grid-template-columns: 1fr; }
  .side-drawer .binding-control-row { grid-template-columns: 1fr; }
  .side-drawer .load-members-button { width: 100%; }
}

/* Class-level reach configuration: visible entry, compact modal, equal channel hierarchy. */
#wechatServiceView .binding-summary-coverage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#wechatServiceView .class-reach-config-trigger {
  width: 100%;
  min-height: 27px;
  margin-top: 8px;
  padding: 0 8px;
  display: grid;
  grid-template-columns: 13px auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  border: 1px solid #dbe3f5;
  border-radius: 7px;
  background: #f4f6fd;
  color: #2b4acb;
  font: inherit;
  font-size: 9px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
#wechatServiceView .class-reach-config-trigger:hover {
  border-color: #c3cff0;
  background: #edf1fc;
  box-shadow: 0 0 0 3px rgba(43, 74, 203, .05);
}
#wechatServiceView .class-reach-config-trigger > span {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-size: inherit;
  white-space: nowrap;
}
#wechatServiceView .class-reach-config-trigger > span:first-child svg { width: 12px; height: 12px; }
#wechatServiceView .class-reach-config-trigger em {
  min-width: 0;
  overflow: hidden;
  color: #7888ad;
  font-size: 8px;
  font-style: normal;
  font-weight: 500;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.class-reach-config-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}
.class-reach-config-modal[hidden] { display: none; }
.class-reach-config-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(1px);
}
.class-reach-config-dialog {
  position: relative;
  width: min(650px, calc(100vw - 48px));
  max-height: min(760px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce3ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 68px rgba(15, 23, 42, .22), 0 2px 8px rgba(15, 23, 42, .08);
  animation: class-reach-modal-in 180ms ease-out;
}
@keyframes class-reach-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.class-reach-config-head {
  min-height: 66px;
  padding: 0 18px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e7ebf1;
  background: #fff;
}
.class-reach-config-head h2 { margin: 0; color: #1f2937; font-size: 15px; font-weight: 680; }
.class-reach-config-head p { margin: 5px 0 0; color: #909aaa; font-size: 9px; }
.class-reach-options-form { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.class-reach-config-note {
  margin: 16px 20px 0;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 7px;
  border: 1px solid #e0e6f6;
  border-radius: 8px;
  background: #f5f7fd;
  color: #5b6f9e;
}
.class-reach-config-note svg { width: 13px; height: 13px; margin-top: 1px; }
.class-reach-config-note p { margin: 0; font-size: 9px; line-height: 1.55; }
.class-reach-channel-grid {
  min-height: 0;
  padding: 14px 20px 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow-y: auto;
}
.class-reach-channel-card {
  min-width: 0;
  padding: 14px;
  align-self: start;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}
.class-reach-channel-head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
}
.class-reach-channel-icon,
.teaching-channel-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.class-reach-channel-icon.group,
.teaching-channel-icon.group { background: #edf8f3; color: #147153; }
.class-reach-channel-icon.friend,
.teaching-channel-icon.friend { background: #edf1ff; color: #2b4acb; }
.class-reach-channel-icon svg,
.teaching-channel-icon svg { width: 14px; height: 14px; }
.class-reach-channel-head h3 { margin: 0; color: #263244; font-size: 12px; font-weight: 650; }
.class-reach-channel-head p { margin: 4px 0 0; color: #8d98a9; font-size: 9px; line-height: 1.45; }
.class-reach-channel-card .teaching-option-default { margin-top: 14px; }
.class-reach-channel-custom { margin-top: 12px; padding-top: 12px; border-top: 1px solid #edf0f5; }
.class-reach-config-actions {
  min-height: 62px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #e7ebf1;
  background: #fff;
}

.teaching-channel-card {
  padding: 13px;
  display: grid;
  gap: 10px;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}
.teaching-channel-card-head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}
.teaching-channel-card-head b,
.teaching-channel-card-head small { display: block; }
.teaching-channel-card-head b { color: #263244; font-size: 12px; font-weight: 650; }
.teaching-channel-card-head small { margin-top: 4px; color: #8d98a9; font-size: 9px; line-height: 1.45; }
.teaching-channel-card.teaching-friend-reach { padding: 13px; background: #fff; }
.teaching-channel-card .teaching-friend-default { margin-top: 0; }
.teaching-channel-card .teaching-reach-homework { margin-top: 2px; }
.teaching-channel-card > #teachingReachGeneric > .teaching-reach-row { padding-top: 9px; }

@media (max-width: 720px) {
  .class-reach-config-modal { padding: 12px; }
  .class-reach-config-dialog { width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
  .class-reach-channel-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .class-reach-config-dialog { animation: none; }
}

/* Read-only reach details for each teaching activity. */
.teaching-reach-detail-layer { z-index: 9; }
.teaching-reach-detail-sheet {
  position: relative;
  z-index: 1;
  width: min(460px, 94%);
  height: 100%;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid #d9e2f2;
  background: #f6f7f9;
  box-shadow: -12px 0 36px rgba(15, 23, 42, .12);
  animation: teaching-reach-in .22s ease;
}
.teaching-reach-detail-head {
  min-height: 66px;
  margin: 0;
  padding: 14px 18px;
  flex: 0 0 auto;
  border-bottom: 1px solid #e7ebf1;
  background: #fff;
  box-sizing: border-box;
}
.teaching-reach-detail-body {
  min-height: 0;
  padding: 14px 18px 20px;
  display: grid;
  align-content: start;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.reach-detail-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  background: #fff;
}
.reach-detail-overview > div { min-width: 0; padding: 11px 12px; border-right: 1px solid #edf0f5; }
.reach-detail-overview > div:last-child { border-right: 0; }
.reach-detail-overview span,
.reach-detail-overview b { display: block; }
.reach-detail-overview span { color: #98a2b3; font-size: 9px; }
.reach-detail-overview b {
  margin-top: 6px;
  overflow: hidden;
  color: #344054;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
}
.reach-detail-channel-card {
  padding: 14px;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}
.reach-detail-channel-head {
  padding-bottom: 12px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  border-bottom: 1px solid #edf0f5;
}
.reach-detail-channel-head h4 { margin: 0; color: #263244; font-size: 12px; font-weight: 650; }
.reach-detail-channel-head p { margin: 4px 0 0; color: #8d98a9; font-size: 9px; line-height: 1.45; }
.reach-detail-list { margin: 0; }
.reach-detail-list > div {
  min-height: 34px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f0f2f5;
}
.reach-detail-list > div:last-child { border-bottom: 0; }
.reach-detail-list dt { color: #98a2b3; font-size: 9px; }
.reach-detail-list dd {
  margin: 0;
  color: #465064;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.45;
  text-align: right;
  overflow-wrap: anywhere;
}
.reach-detail-note {
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 7px;
  border: 1px solid #dfe6f8;
  border-radius: 8px;
  background: #f4f6fd;
  color: #5067a7;
}
.reach-detail-note svg { width: 13px; height: 13px; margin-top: 1px; }
.reach-detail-note p { margin: 0; font-size: 9px; line-height: 1.55; }
.teaching-reach-detail-actions {
  min-height: 62px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  border-top: 1px solid #e7ebf1;
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .teaching-reach-detail-sheet { animation: none; }
}

/* Course activity entry: expose linked reach-task volume without adding another control. */
#wechatServiceView .unit-resource-links {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
#wechatServiceView .unit-resource-chip {
  width: 100%;
  min-width: 0;
  height: 43px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  line-height: 1;
  box-sizing: border-box;
}
#wechatServiceView .unit-resource-main {
  display: inline-flex;
  align-items: baseline;
  color: #2f6e52;
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}
#wechatServiceView .unit-resource-main em {
  margin-left: 3px;
  color: #16845e;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}
#wechatServiceView .unit-resource-reach-count {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #8b98a8;
  font-size: 7px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
