:root {
  --ink: #101828;
  --muted: #667085;
  --line: #e6ebf1;
  --paper: #ffffff;
  --canvas: #f4f7f9;
  --navy: #0b1220;
  --navy-2: #17243a;
  --green: #14866d;
  --green-2: #21b08d;
  --green-soft: #e9f7f2;
  --gold: #f3b63a;
  --gold-soft: #fff1c9;
  --red: #d94b4b;
  --red-soft: #fff0f0;
  --blue: #3f72e6;
  --blue-soft: #edf3ff;
  --shadow-sm: 0 6px 18px rgba(16, 24, 40, .06);
  --shadow-md: 0 18px 42px rgba(16, 24, 40, .1);
  --shadow-lg: 0 30px 80px rgba(8, 15, 28, .2);
  --radius: 20px;
}
* { box-sizing: border-box; }

/* ===== 营销中心 · 销售渠道 ===== */
.channel-order-page { display: grid; gap: 12px; min-width: 0; }
.channel-order-head { align-items: flex-start; }
.channel-order-head h3 { margin: 0 0 4px; }
.channel-order-head p { max-width: 860px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.channel-order-toolbar { flex-wrap: wrap; }
.channel-order-toolbar .search-box { min-width: min(360px, 100%); }
.channel-order-toolbar select { max-width: 190px; }
.channel-order-rule-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #cfe8df;
  border-radius: 12px;
  background: linear-gradient(120deg, #f3fbf8, #fffdf7);
}
.channel-order-rule-status > div { display: grid; gap: 3px; min-width: 0; }
.channel-order-rule-status b { color: #0d6e5c; font-size: 13px; }
.channel-order-rule-status span { color: #526070; font-size: 12px; line-height: 1.65; }
.channel-order-rule-status.is-warning { border-color: #f1d6a6; background: #fffaf0; }
.channel-order-rule-status.is-warning b { color: #9a6700; }
.channel-order-rule-status.is-loading { border-color: var(--line); background: #f8fafb; }
.channel-order-rule-status.is-loading b { color: #344054; }
.channel-order-rule-status button { flex: 0 0 auto; white-space: nowrap; }
.channel-order-result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid #dbeae5;
  border-radius: 12px;
  background: #f7fbf9;
}
.channel-order-result-summary > div { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; }
.channel-order-result-summary b { color: #155f50; font-size: 13px; }
.channel-order-result-summary span { color: #344054; font-size: 12px; font-weight: 700; }
.channel-order-result-summary small { color: #7b8885; font-size: 10.5px; line-height: 1.55; text-align: right; }
.channel-order-table-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
.channel-order-table { min-width: 1045px; table-layout: fixed; }
.channel-order-table td { vertical-align: top; }
.channel-order-table td small { display: block; margin-top: 3px; color: #98a2b3; font-size: 11px; line-height: 1.5; }
.channel-order-table .channel-order-buyer-meta { color: #526070; }
.channel-order-table .channel-order-registration { max-width: 260px; color: #526070; }
.channel-order-table .row-actions { min-width: 170px; flex-wrap: wrap; }
.channel-order-pagination { overflow-x: auto; }
.channel-order-detail { display: grid; gap: 14px; }
.channel-order-detail-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 13px 14px;
  border: 1px solid #dcebe5;
  border-radius: 13px;
  background: linear-gradient(120deg, #f4fbf8, #fffdf8);
}
.channel-order-detail-summary b { color: #1d2939; font-size: 16px; }
.channel-order-detail-summary span:not(.tag) { color: #526070; }
.channel-order-detail-summary small { margin-left: auto; color: #98a2b3; }
.channel-order-detail section {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.channel-order-detail h4 { margin: 0; color: #344054; font-size: 13px; }
.channel-order-detail section > div { display: grid; gap: 3px; }
.channel-order-detail section b { color: #1d2939; }
.channel-order-detail section span,
.channel-order-detail section p { margin: 0; color: #667085; font-size: 12.5px; line-height: 1.65; }
@media (max-width: 760px) {
  .channel-order-toolbar { align-items: stretch; }
  .channel-order-toolbar .search-box,
  .channel-order-toolbar select,
  .channel-order-toolbar button { width: 100%; max-width: none; }
  .channel-order-toolbar .spacer { display: none; }
  .channel-order-rule-status { align-items: stretch; flex-direction: column; }
  .channel-order-rule-status button { width: 100%; }
  .channel-order-result-summary { align-items: flex-start; flex-direction: column; gap: 5px; }
  .channel-order-result-summary > div { display: grid; gap: 2px; }
  .channel-order-result-summary small { text-align: left; }
  .channel-order-detail-summary small { width: 100%; margin-left: 0; }
  .channel-order-table { min-width: 1120px; }
}
.wxshop-admin-page { display: grid; gap: 14px; }
.wxshop-page-head { align-items: flex-start; }
.wxshop-page-head h3 { margin-bottom: 4px; }
.wxshop-page-head p { max-width: 820px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.wxshop-page-head .head-actions { flex-wrap: wrap; justify-content: flex-end; }
.wxshop-page-head .head-actions button,
.wxshop-page-head .head-actions a { white-space: nowrap; }
.wxshop-page-head .head-actions a.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  transition: .2s ease;
}
.wxshop-page-head .head-actions a.secondary-btn:hover {
  border-color: #c8d2dd;
  color: var(--ink);
  background: #fbfcfd;
  text-decoration: none;
}
.wxshop-page-head .head-actions a.secondary-btn:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(13, 110, 92, .14);
}
.wxshop-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 11px 14px;
  border: 1px solid #dcebe5;
  border-radius: 12px;
  color: #526070;
  background: linear-gradient(120deg, #f4fbf8, #fffdf8);
  font-size: 12px;
}
.wxshop-status-strip b { margin-left: 3px; color: #0d6e5c; font-size: 14px; }
.wxshop-error { margin: 0; }
.wxshop-loading { padding: 9px 12px; border-radius: 9px; color: #526070; background: #f5f8f7; font-size: 12px; }
.wxshop-panel { overflow: hidden; }
.wxshop-list,
.wxshop-map-list { display: grid; gap: 10px; padding: 0 14px 14px; }
.wxshop-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(16, 24, 40, .035);
}
.wxshop-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf1ef;
  background: #fbfcfb;
}
.wxshop-card-head > div:first-child { min-width: 0; }
.wxshop-card-head b { display: block; color: #1d2939; font-size: 14px; }
.wxshop-card-head span { display: block; margin-top: 2px; color: #98a2b3; font-size: 11px; }
.wxshop-head-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.wxshop-head-actions > span { margin: 0; }
.wxshop-switch { display: inline-flex; align-items: center; gap: 6px; color: #526070; font-size: 12px; white-space: nowrap; }
.wxshop-switch input { width: 15px; height: 15px; accent-color: var(--green); }
.wxshop-form-grid { padding: 14px !important; }
.wxshop-form-grid .form-field { min-width: 0; }
.wxshop-form-grid input { min-width: 0; }
.wxshop-callback-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin: 0 14px 12px;
  padding: 10px 12px;
  border: 1px solid #dcebe5;
  border-radius: 11px;
  background: #f5fbf8;
}
.wxshop-callback-row label { display: block; margin-bottom: 5px; color: #526070; font-size: 11.5px; font-weight: 700; }
.wxshop-callback-row input { width: 100%; color: #344054; background: #fff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11.5px; }
.wxshop-env-note {
  display: grid;
  gap: 4px;
  margin: 0 14px 14px;
  padding: 9px 11px;
  border-radius: 9px;
  color: #8a4b08;
  background: #fff8eb;
  font-size: 11.5px;
  line-height: 1.55;
}
.wxshop-env-note.is-ready { color: #16745f; background: #ecf8f3; }
.wxshop-env-note code { overflow-wrap: anywhere; color: inherit; font-size: 11px; }
.wxshop-help { margin: 0 14px 10px; padding: 9px 11px; border-radius: 9px; color: #526070; background: #f5f8f7; font-size: 12px; line-height: 1.65; }
.wxshop-map-row { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.wxshop-map-main {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(160px, 1fr) minmax(145px, .9fr) minmax(190px, 1.1fr);
  gap: 10px;
  padding: 12px;
}
.wxshop-map-main label { min-width: 0; display: grid; gap: 5px; color: #667085; font-size: 11.5px; font-weight: 700; }
.wxshop-map-main input,
.wxshop-map-main select,
.wxshop-map-main textarea { min-width: 0; width: 100%; }
.wxshop-map-main textarea {
  min-height: 54px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.45;
}
.wxshop-map-foot {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid #edf1ef;
  background: #fbfcfb;
}
.wxshop-map-foot > input { min-width: 0; }
.wxshop-map-foot > .tag { justify-self: start; }
.wxshop-map-summary-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(170px, .8fr) minmax(150px, .7fr);
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
}
.wxshop-map-summary-title,
.wxshop-map-summary-field { min-width: 0; }
.wxshop-map-summary-title > span,
.wxshop-map-summary-field > span {
  display: block;
  margin-bottom: 4px;
  color: #98a2b3;
  font-size: 10.5px;
  font-weight: 700;
}
.wxshop-map-summary-title > b {
  display: block;
  overflow: hidden;
  color: #1d2939;
  font-size: 13.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wxshop-map-summary-title > small { display: block; margin-top: 3px; color: #667085; font-size: 11.5px; }
.wxshop-map-summary-field > code {
  display: block;
  overflow-wrap: anywhere;
  color: #344054;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.5;
}
.wxshop-map-summary-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 9px 14px;
  border-top: 1px solid #edf1ef;
  background: #fbfcfb;
}
.wxshop-map-summary-note {
  min-width: 120px;
  overflow: hidden;
  color: #667085;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wxshop-map-summary-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-left: auto; }
.wxshop-empty { padding: 24px 16px; border: 1px dashed #d6e3de; border-radius: 12px; text-align: center; color: #98a2b3; background: #fbfcfb; }
.wxshop-empty b,
.wxshop-empty span { display: block; }
.wxshop-empty b { margin-bottom: 5px; color: #526070; font-size: 13px; }
.wxshop-empty span { font-size: 12px; line-height: 1.65; }
.wxshop-grant-table td { vertical-align: top; }
.wxshop-grant-table td > small { display: block; max-width: 250px; margin-top: 4px; color: #98a2b3; font-size: 10.5px; line-height: 1.45; }
.wxshop-security { margin-top: 0; }
.wxshop-users-modal { display: grid; gap: 12px; }
.wxshop-users-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 13px 15px;
  border: 1px solid #dcebe5;
  border-radius: 13px;
  background: linear-gradient(120deg, #f3faf7, #fffdf8);
}
.wxshop-users-summary > div:first-child { min-width: 0; }
.wxshop-users-summary > div:first-child b,
.wxshop-users-summary > div:first-child span { display: block; }
.wxshop-users-summary > div:first-child b { color: #1d2939; font-size: 15px; }
.wxshop-users-summary > div:first-child span { margin-top: 3px; color: #667085; font-size: 11.5px; }
.wxshop-users-count { min-width: 92px; text-align: center; white-space: nowrap; }
.wxshop-users-count b,
.wxshop-users-count span { display: block; }
.wxshop-users-count b { color: #0d6e5c; font-size: 22px; line-height: 1; }
.wxshop-users-count span { margin-top: 4px; color: #98a2b3; font-size: 10.5px; }
.wxshop-user-list { display: grid; gap: 8px; max-height: 56vh; overflow: auto; padding-right: 2px; }
.wxshop-user-card { padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.wxshop-user-main { display: flex; align-items: baseline; gap: 9px; }
.wxshop-user-main b { color: #1d2939; font-size: 13px; }
.wxshop-user-main span { color: #667085; font-size: 11.5px; }
.wxshop-user-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.wxshop-user-meta small { color: #98a2b3; font-size: 10.5px; }
.wxshop-user-line { margin-top: 7px; padding-top: 7px; border-top: 1px dashed #e6ebf1; color: #667085; font-size: 11.5px; line-height: 1.6; overflow-wrap: anywhere; }
.wxshop-users-empty { margin: 0; }
@media (max-width: 980px) {
  .wxshop-map-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wxshop-map-summary-main { grid-template-columns: minmax(200px, 1fr) minmax(150px, .8fr); }
  .wxshop-map-summary-title { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body.admin-mode .wxshop-page-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; }
  body.admin-mode .wxshop-page-head > div:first-child { min-width: 0; }
  body.admin-mode .wxshop-page-head p { max-width: none; }
  body.admin-mode .wxshop-page-head .head-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
  body.admin-mode .wxshop-page-head .head-actions button,
  body.admin-mode .wxshop-page-head .head-actions a { min-width: 0; width: 100%; }
  .wxshop-card-head { align-items: flex-start; flex-direction: column; }
  .wxshop-head-actions { justify-content: flex-start; }
  .wxshop-map-main { grid-template-columns: minmax(0, 1fr); }
  .wxshop-map-foot { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .wxshop-map-summary-main { grid-template-columns: minmax(0, 1fr); }
  .wxshop-map-summary-title { grid-column: auto; }
  .wxshop-map-summary-actions { width: 100%; margin-left: 0; }
  .wxshop-map-summary-actions .mini-btn { flex: 1 1 88px; }
  .wxshop-callback-row { grid-template-columns: minmax(0, 1fr); }
  .wxshop-users-summary { grid-template-columns: 1fr 1fr; }
  .wxshop-users-summary > div:first-child { grid-column: 1 / -1; }
  .wxshop-user-main { align-items: flex-start; flex-direction: column; gap: 2px; }
}

#appSplash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f3f9f6 58%, #e7f2ed 100%);
  transition: opacity .35s ease;
  pointer-events: none;
}
#appSplash img {
  width: 230px;
  max-width: 74vw;
  aspect-ratio: 350 / 110;
  height: auto;
  object-fit: contain;
  transform-origin: center;
  will-change: opacity, transform, filter;
  animation: appSplashPulse 1.7s ease-in-out infinite;
}

/* ===== 营销中心 · 轻量考试 ===== */
.exam-admin-page,
.exam-editor-page { display: grid; gap: 14px; }
.exam-section-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid #dfe7e4;
  border-radius: 14px;
  background: #f3f8f6;
}
.exam-section-tabs button {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #5e716b;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.exam-section-tabs button b { color: inherit; font-size: 14px; }
.exam-section-tabs button small { color: #83908b; font-size: 11px; }
.exam-section-tabs button.active {
  border-color: #cfe1db;
  color: #0d6e5c;
  background: #fff;
  box-shadow: 0 3px 12px rgba(13,110,92,.08);
}
.exam-list-panel { overflow: hidden; }
.exam-list-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(150px, .7fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 14px 18px;
  border-top: 1px solid #edf1ef;
  border-bottom: 1px solid #edf1ef;
  background: #fbfcfb;
}
.exam-list-toolbar label { display: grid; gap: 5px; min-width: 0; }
.exam-list-toolbar label > span { color: #66736f; font-size: 12px; font-weight: 700; }
.exam-list-toolbar input,
.exam-list-toolbar select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d8e0dd;
  border-radius: 9px;
  padding: 0 11px;
  background: #fff;
}
.exam-bank-toolbar { grid-template-columns: minmax(280px, 1fr) auto auto; }
.exam-list-panel > .panel-head > .primary-btn,
.exam-list-panel > .panel-head > .primary-btn:hover,
.exam-list-panel > .panel-head > .primary-btn:focus,
.exam-list-panel > .panel-head > .primary-btn:focus-visible,
.exam-list-panel > .panel-head > .primary-btn:active {
  color: #fff;
  background: var(--navy);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  transform: none;
  animation: none;
  transition: none;
}
.exam-table-wrap { overflow-x: auto; }
.exam-admin-table { min-width: 920px; }
.exam-list-title { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.exam-list-title > div { display: grid; gap: 3px; }
.exam-list-title small,
.exam-scope-cell { color: #7a8783; font-size: 12px; }
.exam-draw-note { display: block; margin-top: 3px; color: #71807b; font-size: 11px; font-weight: 500; white-space: nowrap; }
.exam-list-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #0d6e5c, #21a985);
  font-size: 15px;
  font-weight: 800;
}
.exam-list-mark.bank {
  color: #7a5310;
  background: linear-gradient(135deg, #ffe8af, #f2b84b);
}
.exam-row-actions { white-space: nowrap; }
.exam-row-actions .mini-btn { margin: 2px 3px 2px 0; }
.exam-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: #687571;
  font-size: 12px;
}
.exam-pagination > div { display: flex; align-items: center; gap: 9px; }
.exam-admin-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.exam-admin-guide > div {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid #dfe8e4;
  border-radius: 12px;
  background: #f7faf8;
}
.exam-admin-guide span { color: #687571; font-size: 13px; line-height: 1.65; }

.exam-editor-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #dfe7e4;
  border-radius: 14px;
  background: #fff;
}
.exam-editor-head > div:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.exam-editor-head h3 { margin: 0; font-size: 19px; }
.exam-editor-head span { color: #75817d; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exam-editor-head-actions { display: flex; gap: 8px; align-items: center; }
.exam-editor-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid #dfe7e4;
  border-radius: 13px;
  background: #f5f8f7;
}
.exam-editor-tabs button {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #5d6965;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.exam-editor-tabs button b { color: inherit; font-size: 14px; }
.exam-editor-tabs button small { color: #83908b; font-size: 11px; }
.exam-editor-tabs button.active {
  border-color: #cfe1db;
  color: #0d6e5c;
  background: #fff;
  box-shadow: 0 3px 12px rgba(13, 110, 92, .08);
}
.exam-editor-body { min-width: 0; }
.exam-editor-section { padding: 0; overflow: hidden; }
.exam-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(150px, .55fr) minmax(150px, .55fr);
  gap: 14px;
  padding: 18px;
}
.exam-field-wide { grid-column: 1 / -1; }
.exam-paper-rule-box {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce8e4;
  border-radius: 14px;
  background: #f8fbfa;
}
.exam-paper-rule-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5eeeb;
  background: #f3f9f7;
}
.exam-paper-rule-head > div { display: grid; gap: 4px; min-width: 0; }
.exam-paper-rule-head b { color: #23483e; font-size: 14px; }
.exam-paper-rule-head span { color: #70817b; font-size: 12px; line-height: 1.55; }
.exam-paper-rule-head em {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  color: #61716c;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d8e7e2;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}
.exam-paper-rule-head em strong { color: #0d6e5c; font-size: 17px; }
.exam-paper-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}
.exam-paper-rule-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid #dee8e4;
  border-radius: 12px;
  background: #fff;
}
.exam-paper-rule-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}
.exam-paper-rule-card > header b { color: #284b41; font-size: 13px; }
.exam-paper-rule-card > header span {
  overflow: hidden;
  color: #7b8a85;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.exam-paper-rule-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.exam-paper-rule-fields > label { display: grid; gap: 5px; min-width: 0; }
.exam-paper-rule-fields > label > span:first-child { color: #71817c; font-size: 10px; }
.exam-paper-number {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 36px;
  overflow: hidden;
  border: 1px solid #d6e2de;
  border-radius: 9px;
  background: #fff;
}
.exam-paper-number:focus-within { border-color: #8bc8b7; box-shadow: 0 0 0 3px rgba(33,176,141,.1); }
.exam-paper-number input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 4px 0 10px;
  border: 0;
  outline: 0;
  color: #24483e;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}
.exam-paper-number input:disabled { color: #53645e; cursor: not-allowed; background: #f6f8f7; }
.exam-paper-number em { flex: 0 0 auto; padding-right: 9px; color: #83908b; font-size: 10px; font-style: normal; }
.exam-paper-rule-card > footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px dashed #e1e9e6;
  color: #74827d;
  font-size: 10px;
}
.exam-paper-rule-card > footer strong { color: #0d6e5c; font-size: 12px; }
.exam-permission-box { padding: 0 18px 18px; }
.exam-permission-box .access-box { margin: 0; }
.exam-permission-box .form-field:last-child { margin-bottom: 0; }
.exam-bank-head { align-items: flex-start; }
.exam-bank-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.exam-bank-picker {
  margin: 18px;
  overflow: hidden;
  border: 1px solid #dce8e4;
  border-radius: 13px;
  background: #fbfdfc;
}
.exam-bank-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid #e8efec;
  background: #f5faf8;
}
.exam-bank-picker-head > div { display: grid; gap: 4px; min-width: 0; }
.exam-bank-picker-head b { color: #23483e; font-size: 13px; }
.exam-bank-picker-head b i { color: #b54747; font-style: normal; }
.exam-bank-picker-head span { color: #71827d; font-size: 11px; line-height: 1.55; }
.exam-bank-picker-head em {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #0d6e5c;
  background: #e7f5f0;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
.exam-bank-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  max-height: 260px;
  padding: 12px;
  overflow: auto;
}
.exam-bank-choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #dce8e4;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.exam-bank-choice:hover { border-color: #b9d9d0; }
.exam-bank-choice:has(input:checked) {
  border-color: #9fd1c3;
  background: #f0faf6;
  box-shadow: inset 0 0 0 1px rgba(33,176,141,.08);
}
.exam-bank-choice input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: #0d6e5c;
}
.exam-bank-choice > span { min-width: 0; }
.exam-bank-choice b {
  display: block;
  overflow: hidden;
  color: #2b4b42;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.exam-bank-choice small {
  display: block;
  margin-top: 3px;
  color: #7c8c87;
  font-size: 10px;
}
.exam-bank-picker-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 12px;
  border: 1px dashed #b9d6ce;
  border-radius: 10px;
  color: #687b75;
  background: #f8fbfa;
  font-size: 12px;
}
.exam-bank-meta-panel .exam-settings-grid { grid-template-columns: minmax(0, 1.35fr) minmax(150px, .45fr); }
.exam-bank-meta-panel .exam-settings-grid .form-field:nth-child(3) { grid-column: 1 / -1; }
.exam-import-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.exam-bank-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid #edf1ef;
  border-bottom: 1px solid #edf1ef;
  background: #fbfcfb;
}
.exam-bank-summary span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 20px;
  color: #65736e;
  background: #eef5f2;
  font-size: 12px;
}
.exam-bank-summary b { color: #0d6e5c; font-size: 14px; }
.exam-question-builder { display: grid; gap: 14px; padding: 18px; background: #f7f9f8; }
.exam-question-card {
  border: 1px solid #dce5e1;
  border-radius: 13px;
  padding: 15px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(19, 48, 39, .04);
}
.exam-question-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.exam-question-card > header > div:first-child { display: flex; align-items: center; gap: 8px; }
.exam-question-index {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #fff;
  background: #0d6e5c;
  font-size: 12px;
  font-weight: 800;
}
.exam-question-tools { display: flex; flex-wrap: wrap; gap: 5px; }
.exam-question-meta {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(110px, .5fr);
  gap: 10px;
  margin-bottom: 12px;
}
.exam-question-meta label { display: grid; gap: 5px; }
.exam-question-meta span { color: #697672; font-size: 12px; font-weight: 700; }
.exam-question-meta input,
.exam-question-meta select,
.exam-question-card textarea,
.exam-option-row input {
  width: 100%;
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  background: #fff;
}
.exam-question-meta input,
.exam-question-meta select,
.exam-option-row input { min-height: 38px; padding: 0 10px; }
.exam-question-card textarea { min-height: 72px; padding: 9px 10px; resize: vertical; }
.exam-option-editor { display: grid; gap: 8px; margin-top: 12px; }
.exam-option-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.exam-option-head span { color: #7a8783; font-size: 12px; }
.exam-option-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 8px;
}
.exam-correct-choice {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
.exam-correct-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.exam-correct-choice span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #cbd5d1;
  border-radius: 50%;
  color: #65716d;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}
.exam-correct-choice input[type="checkbox"] + span { border-radius: 7px; }
.exam-correct-choice input:checked + span {
  border-color: #0d6e5c;
  color: #fff;
  background: #0d6e5c;
}
.exam-icon-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  color: #9a504d;
  background: #fff1f0;
  cursor: pointer;
}
.exam-add-option {
  justify-self: start;
  border: 1px dashed #a9c7be;
  border-radius: 8px;
  padding: 7px 11px;
  color: #0d6e5c;
  background: #f3faf7;
  cursor: pointer;
}
.exam-explanation { margin-top: 12px; border-top: 1px dashed #e0e7e4; padding-top: 10px; }
.exam-explanation summary { color: #65736e; font-size: 12px; cursor: pointer; }
.exam-explanation textarea { margin-top: 8px; }
.exam-question-total,
.exam-question-total span { display: flex; }
.exam-question-total {
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 12px 18px;
  border-top: 1px solid #e5ebe8;
  color: #52615c;
  font-size: 12px;
}
.exam-question-total span { padding: 5px 9px; border-radius: 20px; background: #eef5f2; }
.exam-question-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid #e5ebe8;
  color: #687571;
  background: #fff;
  font-size: 12px;
}
.exam-question-pagination > div { display: flex; gap: 7px; }
.exam-import-guide { display: grid; gap: 12px; }
.exam-import-guide pre {
  max-height: 340px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid #dce5e1;
  border-radius: 10px;
  color: #30423c;
  background: #f7f9f8;
  font: 12px/1.7 Consolas, "Microsoft YaHei", monospace;
  white-space: pre-wrap;
}
.exam-import-preview { display: grid; gap: 12px; }
.exam-import-result { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.exam-import-result b { color: #123f35; font-size: 18px; }
.exam-import-result span { color: #74817c; font-size: 12px; }
.exam-import-preview-list { display: grid; gap: 7px; }
.exam-import-preview-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid #e0e7e4;
  border-radius: 9px;
  background: #fbfcfb;
}
.exam-import-preview-row > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: #fff;
  background: #14866d;
  font-size: 11px;
  font-weight: 800;
}
.exam-import-preview-row > div { display: grid; gap: 4px; min-width: 0; }
.exam-import-preview-row b { font-size: 13px; line-height: 1.55; }
.exam-import-preview-row small { color: #71807b; font-size: 11px; line-height: 1.55; }
.exam-import-errors { display: grid; gap: 5px; padding: 11px 12px; border: 1px solid #ead2c2; border-radius: 9px; color: #8b522d; background: #fff8f2; }
.exam-import-errors b { font-size: 13px; }
.exam-import-errors span { font-size: 12px; line-height: 1.65; }
.exam-stats-page { display: grid; gap: 14px; }
.exam-stats-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.exam-stats-cards article { display: grid; gap: 4px; padding: 15px; border: 1px solid #dfe7e4; border-radius: 12px; background: #fff; }
.exam-stats-cards span,
.exam-stats-cards small { color: #76827e; font-size: 12px; }
.exam-stats-cards b { color: #123f35; font-size: 24px; }
.exam-stats-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.exam-stats-empty { display: grid; gap: 12px; place-items: center; padding: 42px 18px; text-align: center; }
.exam-stats-empty span { color: #75817d; font-size: 13px; }
.exam-stats-question-title { max-width: 460px; }
.exam-rate { display: inline-flex; width: 90px; height: 7px; margin-right: 8px; border-radius: 10px; background: #e8efec; overflow: hidden; vertical-align: middle; }
.exam-rate i { display: block; height: 100%; border-radius: inherit; background: #21a985; }

.exam-customer-page { min-height: 100%; padding: 14px 12px 90px; background: #f3f7f5; }
.exam-customer-loading,
.exam-customer-error { min-height: 280px; display: grid; place-items: center; align-content: center; gap: 8px; }
.exam-customer-loading span { width: 28px; height: 28px; border: 3px solid #d8e7e1; border-top-color: #0d6e5c; border-radius: 50%; animation: examSpin .8s linear infinite; }
@keyframes examSpin { to { transform: rotate(360deg); } }
.exam-customer-hero {
  padding: 20px 18px;
  border-radius: 17px;
  color: #fff;
  background: radial-gradient(circle at 90% 0, rgba(255,255,255,.18), transparent 38%), linear-gradient(135deg, #0d6e5c, #16876e 60%, #22ad8a);
  box-shadow: 0 12px 28px rgba(13, 110, 92, .2);
}
.exam-customer-badge { display: inline-flex; padding: 4px 9px; border-radius: 20px; color: #eafff8; background: rgba(255,255,255,.16); font-size: 11px; font-weight: 700; }
.exam-customer-hero h3 { margin: 12px 0 7px; font-size: 23px; }
.exam-customer-hero p { margin: 0; color: #dff5ee; font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.exam-customer-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.exam-customer-meta span { padding: 5px 8px; border-radius: 7px; background: rgba(255,255,255,.12); font-size: 11px; }
.exam-customer-progress {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #dfe7e4;
  border-radius: 13px;
  background: #fff;
}
.exam-customer-progress > div { display: flex; justify-content: space-between; gap: 10px; }
.exam-customer-progress span { color: #0d6e5c; font-size: 12px; font-weight: 800; }
.exam-customer-progress b { color: #74817c; font-size: 11px; font-weight: 600; }
.exam-customer-progress i { display: block; height: 6px; overflow: hidden; border-radius: 20px; background: #e5eeeb; }
.exam-customer-progress em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0d6e5c, #21b08d); transition: width .22s ease; }
.exam-customer-progress small { justify-self: end; color: #9b5d24; font-size: 10px; font-weight: 700; }
.exam-login-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.exam-login-actions .primary-btn { background: #fff; color: #0d6e5c; }
.exam-login-actions .secondary-btn { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.exam-customer-form { display: grid; gap: 12px; margin-top: 13px; }
.exam-customer-question {
  padding: 15px;
  border: 1px solid #dfe7e4;
  border-radius: 14px;
  background: #fff;
}
.exam-customer-question > header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 13px; }
.exam-customer-question > header > span { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 8px; color: #fff; background: #0d6e5c; font-size: 12px; font-weight: 800; }
.exam-customer-question > header > div { display: grid; gap: 5px; }
.exam-customer-question > header b { line-height: 1.65; font-size: 15px; }
.exam-customer-question > header small { color: #7a8783; font-size: 11px; }
.exam-answer-options { display: grid; gap: 8px; }
.exam-answer-option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 11px;
  border: 1px solid #e0e7e4;
  border-radius: 10px;
  background: #fbfcfb;
  cursor: pointer;
}
.exam-answer-option input { position: absolute; opacity: 0; pointer-events: none; }
.exam-answer-letter { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #cbd6d2; border-radius: 50%; color: #67746f; background: #fff; font-size: 11px; }
.exam-answer-option b { font-size: 13px; font-weight: 600; line-height: 1.5; }
.exam-answer-option:has(input:checked) { border-color: #7fc5b4; background: #edf8f4; box-shadow: inset 0 0 0 1px #b6ddd3; }
.exam-answer-option input:checked + .exam-answer-letter { border-color: #0d6e5c; color: #fff; background: #0d6e5c; }
.exam-submit-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #dfe7e4;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
.exam-submit-bar span { color: #74817c; font-size: 11px; line-height: 1.45; text-align: center; }
.exam-submit-bar button { width: auto; min-width: 92px; }
.exam-submit-bar button:disabled { cursor: not-allowed; opacity: .48; }
.exam-customer-result { display: grid; gap: 13px; }
.exam-result-hero {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 24px 18px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #0d6e5c, #21a985);
}
.exam-result-hero.failed { background: linear-gradient(135deg, #9b5d24, #d58b3f); }
.exam-result-hero span { font-size: 13px; font-weight: 700; }
.exam-result-hero b { font-size: 54px; line-height: 1; }
.exam-result-hero small,
.exam-result-hero em { color: rgba(255,255,255,.86); font-size: 12px; font-style: normal; }
.exam-result-list { display: grid; gap: 9px; }
.exam-result-list article { padding: 13px; border: 1px solid #dfe7e4; border-left: 4px solid #21a985; border-radius: 11px; background: #fff; }
.exam-result-list article.wrong { border-left-color: #d58b3f; }
.exam-result-list header { display: flex; justify-content: space-between; gap: 10px; }
.exam-result-list header b { font-size: 13px; line-height: 1.55; }
.exam-result-list header span { white-space: nowrap; color: #0d6e5c; font-size: 11px; font-weight: 700; }
.exam-result-list p { margin: 8px 0 0; color: #64716c; font-size: 12px; }
.exam-result-list small { display: block; margin-top: 7px; padding: 8px; border-radius: 7px; color: #53615c; background: #f4f8f6; line-height: 1.6; }
.exam-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.exam-result-actions button { min-width: 132px; }
.exam-retake-tip { margin: -2px 8px 0; color: #74817c; font-size: 11px; line-height: 1.65; text-align: center; }
.circle-assignment-card.is-exam { border-color: #beded5; }

@media (max-width: 900px) {
  .exam-list-toolbar { grid-template-columns: minmax(0, 1fr) minmax(130px, .6fr); }
  .exam-bank-picker-head { display: grid; }
  .exam-bank-picker-head em { justify-self: start; }
  .exam-settings-grid { grid-template-columns: 1fr 1fr; }
  .exam-settings-grid .exam-field-wide { grid-column: 1 / -1; }
  .exam-paper-rule-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .exam-bank-head { display: grid; }
  .exam-bank-actions { justify-content: flex-start; }
  .exam-stats-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .exam-admin-page,
  .exam-editor-page { gap: 10px; }
  .exam-section-tabs { gap: 4px; padding: 4px; }
  .exam-section-tabs button { padding: 9px 7px; text-align: center; }
  .exam-section-tabs small { display: none; }
  .exam-list-toolbar { grid-template-columns: 1fr 1fr; padding: 12px; }
  .exam-list-toolbar label:first-child { grid-column: 1 / -1; }
  .exam-list-toolbar .secondary-btn { width: 100%; }
  .exam-admin-guide { grid-template-columns: 1fr; }
  .exam-editor-head { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .exam-editor-head > .secondary-btn { grid-column: 1; justify-self: start; width: auto; }
  .exam-editor-head > div:nth-child(2) { width: 100%; }
  .exam-editor-head-actions {
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .exam-editor-head-actions button {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
  }
  .exam-editor-tabs { gap: 4px; padding: 4px; }
  .exam-editor-tabs button { padding: 9px 7px; text-align: center; }
  .exam-editor-tabs small { display: none; }
  .exam-settings-grid { grid-template-columns: 1fr; padding: 13px; }
  .exam-settings-grid .exam-field-wide { grid-column: auto; }
  .exam-paper-rule-head { display: grid; padding: 12px; }
  .exam-paper-rule-head em { justify-self: start; }
  .exam-paper-rule-grid { grid-template-columns: 1fr; padding: 9px; }
  .exam-paper-rule-fields { grid-template-columns: 1fr 1fr; }
  .exam-bank-picker { margin: 13px; }
  .exam-bank-picker-head { padding: 11px 12px; }
  .exam-bank-choice-grid { grid-template-columns: 1fr; max-height: 230px; padding: 9px; }
  .exam-bank-picker-empty { align-items: stretch; flex-direction: column; }
  .exam-bank-meta-panel .exam-settings-grid { grid-template-columns: 1fr; }
  .exam-bank-meta-panel .exam-settings-grid .form-field:nth-child(3) { grid-column: auto; }
  .exam-permission-box { padding: 0 13px 13px; }
  .exam-bank-head { padding: 13px; }
  .exam-bank-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .exam-bank-actions button:last-child { grid-column: 1 / -1; }
  .exam-bank-summary { padding: 10px 12px; }
  .exam-bank-summary span { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .exam-question-builder { padding: 10px; }
  .exam-question-card { padding: 12px; }
  .exam-question-card > header { align-items: flex-start; }
  .exam-question-tools { max-width: 120px; justify-content: flex-end; }
  .exam-question-meta { grid-template-columns: 1fr 1fr; }
  .exam-option-row { grid-template-columns: 32px minmax(0, 1fr) 28px; }
  .exam-question-total { justify-content: center; padding: 10px; }
  .exam-question-pagination { padding: 10px 12px; }
  .exam-import-result { display: grid; gap: 3px; }
  .exam-stats-cards { grid-template-columns: 1fr 1fr; }
  .exam-stats-cards article { padding: 12px; }
  .exam-stats-cards b { font-size: 20px; }
  .exam-customer-page { padding-left: 9px; padding-right: 9px; }
  .exam-question-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .exam-question-bar span { display: none; }
  .exam-question-bar button { width: 100%; min-width: 0; }
}
#appSplash img.is-fallback {
  width: 150px;
  height: 150px;
  padding: 18px;
  border: 1px solid #dce9e3;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(17,93,75,.12);
}
@keyframes appSplashPulse {
  0%, 100% {
    opacity: .68;
    transform: scale(.98);
    filter:
      drop-shadow(1px 0 0 rgba(226,145,51,.82))
      drop-shadow(-1px 0 0 rgba(226,145,51,.82))
      drop-shadow(0 1px 0 rgba(226,145,51,.82))
      drop-shadow(0 -1px 0 rgba(226,145,51,.82))
      drop-shadow(0 0 7px rgba(242,184,75,.32))
      drop-shadow(0 0 18px rgba(225,129,45,.2));
  }
  50% {
    opacity: 1;
    transform: scale(1.035);
    filter:
      drop-shadow(1px 0 0 rgba(232,151,48,.9))
      drop-shadow(-1px 0 0 rgba(232,151,48,.9))
      drop-shadow(0 1px 0 rgba(232,151,48,.9))
      drop-shadow(0 -1px 0 rgba(232,151,48,.9))
      drop-shadow(0 0 18px rgba(242,184,75,.68))
      drop-shadow(0 0 48px rgba(226,126,42,.42));
  }
}
#appSplash.hide {
  opacity: 0;
  pointer-events: none;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(33, 176, 141, .09), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(63, 114, 230, .08), transparent 28%),
    var(--canvas);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.ambient { position: fixed; border-radius: 999px; filter: blur(80px); pointer-events: none; z-index: -1; }
.ambient-a { width: 360px; height: 360px; background: rgba(33, 176, 141, .12); top: 80px; left: -120px; }
.ambient-b { width: 380px; height: 380px; background: rgba(63, 114, 230, .1); right: -160px; top: 420px; }

.topbar {
  height: 74px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(230, 235, 241, .9);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 210px; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 19px;
  background: linear-gradient(145deg, #1cb494, #0d6d5b);
  box-shadow: 0 8px 20px rgba(20, 134, 109, .25);
}
.brand-mark.small { width: 34px; height: 34px; border-radius: 11px; font-size: 16px; }
.brand strong { display: block; font-size: 16px; letter-spacing: .02em; }
.brand span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.device-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: #eef2f5; }
.device-tabs[hidden] { display: none !important; }
.device-tab {
  border: 0; border-radius: 10px; padding: 9px 15px; color: #526070; background: transparent;
  font-size: 13px; font-weight: 700; transition: .2s ease;
}
.device-tab:hover { color: var(--green); }
.device-tab.active { color: var(--ink); background: #fff; box-shadow: 0 3px 10px rgba(16, 24, 40, .08); }
.server-state { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.server-state i, .live-dot { width: 7px; height: 7px; border-radius: 99px; background: #24b47e; box-shadow: 0 0 0 5px rgba(36, 180, 126, .12); }
.live-dot { display: inline-block; }

.stage { padding: 28px; }
.overview-panel {
  max-width: 1440px;
  min-height: calc(100vh - 130px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, .85fr) minmax(650px, 1.15fr);
  gap: 52px;
  align-items: center;
}
.overview-copy { padding: 26px 0; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.overview-copy h1 { margin: 16px 0 18px; font-size: clamp(35px, 4vw, 58px); line-height: 1.12; letter-spacing: -.045em; }
.overview-copy h1 em { color: var(--green); font-style: normal; }
.overview-copy > p { max-width: 590px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.overview-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.overview-login-note { margin: 0 0 26px; color: #667085; font-size: 13px; line-height: 1.7; }
.primary-btn, .secondary-btn, .ghost-btn, .danger-btn {
  border: 0; border-radius: 12px; min-height: 42px; padding: 0 18px; font-weight: 750; transition: .2s ease;
  color: #fff; background: #d92d20;
}
.danger-btn:hover { background: #b42318; }
.primary-btn { color: #fff; background: var(--navy); box-shadow: 0 8px 20px rgba(11, 18, 32, .18); }
.primary-btn:hover { transform: translateY(-1px); background: #18243a; }
.secondary-btn { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.secondary-btn:hover { border-color: #c8d2dd; background: #fbfcfd; }
.admin-return-client-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}
.ghost-btn { color: var(--green); background: var(--green-soft); }
.danger-btn { color: var(--red); background: var(--red-soft); }
.compact { min-height: 36px; padding: 0 13px; font-size: 12px; }
.capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 620px; }
.capability-grid > div { position: relative; min-height: 106px; padding: 18px 18px 16px 52px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); }
.capability-grid b { position: absolute; left: 16px; top: 18px; color: var(--green); font-size: 12px; }
.capability-grid span { display: block; font-size: 14px; font-weight: 800; }
.capability-grid small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.overview-devices { min-height: 700px; position: relative; display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: center; }
.mini-preview-card, .admin-preview-card { border: 1px solid rgba(255,255,255,.8); border-radius: 24px; padding: 12px; background: rgba(255,255,255,.58); box-shadow: var(--shadow-md); backdrop-filter: blur(18px); }
.mini-preview-caption { display: flex; align-items: center; justify-content: space-between; padding: 3px 4px 10px; font-size: 12px; font-weight: 800; }
.mini-preview-screen { position: relative; height: 624px; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px rgba(16,24,40,.05); }
.mini-preview-screen .client-preview-iframe {
  position: absolute; top: 0; left: 0; width: 390px; height: 795px;
  border: 0; background: #fff; transform: scale(.75); transform-origin: top left;
}
.admin-preview-card { align-self: stretch; }
.admin-preview-screen { height: 610px; overflow: hidden; border-radius: 18px; background: #f7f9fb; }
.overview-devices .mini-preview-screen .mini-app { position: relative; width: 100%; height: 100%; border-radius: 18px; }
.overview-devices .admin-preview-screen .admin-shell { display: grid; width: 100%; height: 100%; min-height: 0; border-radius: 18px; }

.phone-wrap { max-width: 430px; margin: 10px auto 70px; }
.phone-frame {
  position: relative;
  width: 390px;
  height: 795px;
  margin: 0 auto;
  overflow: hidden;
  border: 8px solid #111827;
  border-radius: 48px;
  background: #fff;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.18);
}
.client-preview-iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: inherit; background: #fff; }
.mini-app.desktop-preview-native > .mini-header,
.mini-app.desktop-preview-native > .mini-view,
.mini-app.desktop-preview-native > .mini-nav { display: none !important; }
.mini-app.desktop-preview-native > .client-preview-iframe { display: block; flex: 1 1 auto; min-height: 0; }
.android-frame.client-preview-frame-host,
.android-frame.desktop-preview-native { padding-top: 0; }
.android-frame.desktop-preview-native > .android-bar,
.android-frame.desktop-preview-native > .android-header,
.android-frame.desktop-preview-native > #appView,
.android-frame.desktop-preview-native > #appNav { display: none !important; }
.phone-speaker { position: absolute; z-index: 40; top: 10px; left: 50%; width: 86px; height: 22px; transform: translateX(-50%); border-radius: 99px; background: #080d16; }
.phone-status { position: absolute; z-index: 41; top: 3px; left: 0; width: 100%; display: flex; justify-content: space-between; padding: 0 27px; color: #fff; font-size: 11px; font-weight: 800; }
.phone-status span { margin-left: 5px; }
.wechat-capsule { position: absolute; z-index: 43; top: 54px; right: 17px; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: 1px solid rgba(255,255,255,.32); border-radius: 99px; color: #fff; font-size: 14px; background: rgba(0,0,0,.14); backdrop-filter: blur(8px); }
.mini-app { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: #f5f7f8; }
.mini-header { flex: 0 0 auto; color: #fff; }
.mini-header .header-copy { padding: 61px 22px 20px; }
.mini-header .header-copy small { opacity: .74; font-size: 11px; }
.mini-header .header-copy h3 { margin: 6px 0 0; font-size: 22px; letter-spacing: -.02em; }
.header-copy .home-notice { display: inline-block; margin-top: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); font-weight: 700; }
.mini-header .header-search { margin: 0 18px 10px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border-radius: 12px; color: rgba(255,255,255,.75); background: rgba(255,255,255,.16); font-size: 12px; }
.mini-view { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.mini-view::-webkit-scrollbar { display: none; }
.mini-nav {
  flex: 0 0 62px; display: flex; gap: 0;
  padding: 7px 10px 6px; border-top: 1px solid #edf0f2; background: rgba(255,255,255,.97); z-index: 20;
}
.mini-nav button { flex: 1 1 0; min-width: 0; border: 0; background: transparent; color: #87909d; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; }
.mini-nav button .nav-icon { font-size: 19px; line-height: 1; filter: grayscale(1); opacity: .65; }
.mini-nav button .nav-icon svg { display: block; width: 1em; height: 1em; }
.mini-nav button .nav-icon img { display: block; width: 1em; height: 1em; object-fit: contain; }
.mini-nav button .nav-icon img.nav-ai-mascot { width: 1.14em; height: 1.14em; }
.mini-nav button .nav-icon svg.nav-shop-icon { width: 1.07em; height: 1.07em; }
.mini-nav button.active { color: var(--green); font-weight: 800; }
.mini-nav button.active .nav-icon { filter: none; opacity: 1; }
.android-frame { --android-system-nav-height: 52px; padding-top: 32px; background: #f2f5f7; }
.android-bar { position: absolute; z-index: 20; top: 0; left: 0; height: 32px; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; color: #182230; font-size: 10px; background: #f2f5f7; }
.android-bar div { display: flex; align-items: center; gap: 5px; }
.android-bar i { width: 6px; height: 6px; display: inline-block; border-radius: 2px; background: #748094; }
.android-header { position: absolute; top: 32px; left: 0; right: 0; z-index: 19; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #e5e9ed; background: #f2f5f7; font-size: 15px; }
.android-view { position: absolute; top: 78px; bottom: calc(69px + var(--android-system-nav-height)); left: 0; right: 0; }
.android-nav { position: absolute; bottom: var(--android-system-nav-height); left: 0; right: 0; }
.android-frame.desktop-preview-native > .client-preview-iframe {
  height: calc(100% - var(--android-system-nav-height));
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.android-system-nav {
  position: absolute;
  z-index: 48;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--android-system-nav-height);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 4px 16px calc(4px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(29,41,57,.08);
  background: rgba(246,248,249,.97);
  box-shadow: 0 -5px 18px rgba(24,34,48,.05);
}
.android-system-nav button {
  width: 46px;
  height: 42px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.android-system-nav button:active { background: rgba(13,110,92,.09); }
.android-key-back,
.android-key-home,
.android-key-recents {
  display: block;
  color: #475467;
}
.android-key-back {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-right: 13px solid currentColor;
  border-bottom: 8px solid transparent;
}
.android-key-home {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.android-key-recents {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 2px;
}
.android-recents-overlay {
  position: absolute;
  z-index: 47;
  inset: 32px 0 var(--android-system-nav-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 28px 24px;
  color: rgba(255,255,255,.86);
  background: rgba(18,27,29,.9);
  backdrop-filter: blur(12px);
}
.android-recents-overlay > small { color: rgba(255,255,255,.62); font-size: 12px; letter-spacing: .08em; }
.android-recents-card {
  width: min(220px, 80%);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(160deg, #0d6e5c, #103f48);
  box-shadow: 0 22px 50px rgba(0,0,0,.28);
  cursor: pointer;
}
.android-recents-card img { width: 82px; max-height: 82px; object-fit: contain; }
.android-recents-card b { font-size: 18px; }
.android-recents-card span { color: rgba(255,255,255,.66); font-size: 11px; }
.android-recents-overlay.hidden { display: none !important; }
body.customer-mode .android-system-nav,
body.customer-mode .android-recents-overlay { display: none !important; }
body.customer-mode .android-view { bottom: 69px; }
body.customer-mode .android-nav { bottom: 0; }
body.customer-mode #appShell.customer-detail-active .android-view { bottom: 0; }
.device-note { padding: 22px 12px 0; text-align: center; }
.device-note b { display: block; font-size: 16px; }
.device-note span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }

.mobile-page { padding-bottom: 26px; }
.customer-copyright { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px 10px; padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px)); color: #98a2b3; text-align: center; }
.customer-copyright img { display: block; width: auto; max-width: 150px; height: 28px; object-fit: contain; background: transparent; }
.customer-copyright span { color: #98a2b3; font-size: 10px; line-height: 1.55; }
.mobile-hero { margin: 0 0 18px; padding: 22px 18px; color: #fff; background: linear-gradient(145deg, #0d6e5c, #103f48); }
.mobile-hero.vip { background: linear-gradient(145deg, #282e3c, #10151e); }
.mobile-hero-row { display: flex; align-items: center; justify-content: space-between; }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #0f6d5c; background: #fff; font-weight: 900; }
.mobile-hero p { margin: 0 0 4px; font-size: 11px; opacity: .72; }
.mobile-hero h3 { margin: 0 0 8px; font-size: 22px; }
.member-level { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; color: #503507; background: var(--gold-soft); font-size: 10px; font-weight: 800; }
.mobile-section { padding: 0 15px 18px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 11px; }
.section-title h4 { margin: 0; font-size: 16px; }
.section-title button { border: 0; color: var(--muted); background: none; font-size: 11px; }
/* 会员升级标题旁边的提醒：小号灰字，别跟标题抢（2026-10-16 所有者要求） */
.section-title .upgrade-hint { font-size: 11px; font-weight: 400; color: #98a2b3; }
/* 会员续费跟进 + 微信群标记（2026-10-16） */
.follow-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; padding: 0 17px; }
.follow-stat { border: 1px solid #e5e9ee; background: #fff; border-radius: 99px; padding: 5px 10px; font-size: 11px; color: #526070; }
.follow-stat b { color: #0d6e5c; font-size: 12px; }
.follow-stat.static { background: #f7f9fb; }
.follow-stat.strong { font-weight: 800; }
.follow-stat.active { border-color: #0d6e5c; background: #eaf6f2; color: #0d6e5c; font-weight: 800; }
/* 跟进状态配色：上面统计按钮 和 列表里的跟进标签 **共用同一套颜色**（2026-10-16 所有者要求）
   未跟进＝红 / 已联系·待定＝橙 / 已联系·会续费＝绿 / 已联系·不续费＝灰蓝；
   人数为 0 的统计按钮保持中性灰、不上色。 */
.follow-pill { display: inline-block; padding: 3px 8px; border-radius: 99px; font-size: 10px; background: #f1f3f5; color: #667085; white-space: nowrap; }
.follow-stat.tone-none, .follow-pill.tone-none { border-color: #f0b4ab; background: #fdecec; color: #b42318; font-weight: 800; }
.follow-stat.tone-none b { color: #b42318; }
.follow-stat.tone-wait, .follow-pill.tone-wait { border-color: #f3d9a6; background: #fff6e6; color: #b7791f; font-weight: 800; }
.follow-stat.tone-wait b { color: #b7791f; }
.follow-stat.tone-renew, .follow-pill.tone-renew { border-color: #a9ddc8; background: #e8f6ef; color: #16866b; font-weight: 800; }
.follow-stat.tone-renew b { color: #16866b; }
.follow-stat.tone-no, .follow-pill.tone-no { border-color: #d6dee8; background: #eef2f7; color: #526070; font-weight: 800; }
.follow-stat.tone-no b { color: #526070; }
.wx-pills { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.wx-pill { display: inline-block; padding: 2px 7px; border-radius: 99px; font-size: 10px; background: #f1f3f5; color: #98a2b3; white-space: nowrap; }
.wx-pill.in { background: #e8f6ef; color: #16866b; }
.wx-pill.out { background: #fdecec; color: #b42318; }
.wx-mark-list { display: grid; gap: 8px; }
.wx-mark-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wx-mark-row b { min-width: 82px; font-size: 12px; }
.follow-choices { display: flex; gap: 14px; flex-wrap: wrap; }
.tab-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 99px; background: #b42318; color: #fff; font-size: 10px; font-weight: 800; }
/* 群人数核对：所有群**排在一行**（窄屏横向滚动），每群一块底色，尽量紧凑（2026-10-16 所有者要求） */
.wx-check-wrap { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; padding: 0 17px; margin: 0 0 10px; overflow-x: auto; }
.wx-check-title { flex: 0 0 auto; font-size: 11px; color: #667085; font-weight: 800; white-space: nowrap; }
.wx-check-cell { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid #eef1f4; border-radius: 8px; background: #f7f9fb; font-size: 11px; color: #526070; white-space: nowrap; }
.wx-check-cell b { font-size: 11px; color: #0d6e5c; }
.wx-check-counts { color: #98a2b3; }
.wx-check-lbl { color: #98a2b3; }
/* 群名可以直接点着改（每个等级可以各写各的群名） */
.wx-check-name { width: 96px; padding: 3px 6px; border: 1px dashed #cfd8e3; border-radius: 6px; font-size: 11px; font-weight: 800; color: #0d6e5c; background: #fff; }
.wx-check-name:focus { outline: 0; border-style: solid; border-color: #0d6e5c; }
.wx-check-editing .wx-check-cell { border-color: #bcd7cf; background: #eef7f3; }
/* 跟进状态 + 跟进人 **并排一行**（不换行、不加高行高；2026-10-16 所有者要求） */
.follow-cell { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.follow-by { font-size: 10px; color: #98a2b3; }
.wx-check-cell input { width: 54px; padding: 3px 6px; border: 1px solid #e5e9ee; border-radius: 6px; font-size: 11px; background: #fff; }
.wx-check-wrap .follow-stat { flex: 0 0 auto; white-space: nowrap; }
.wx-check-num { color: #98a2b3; }
.wx-check { display: inline-block; padding: 3px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.wx-check.ok { background: #e8f6ef; color: #16866b; }
.wx-check.over { background: #fdecec; color: #b42318; }
.wx-check.less { background: #fff6e6; color: #b7791f; }
.wx-check.wait { background: #f1f3f5; color: #98a2b3; font-weight: 400; }
.mobile-search { margin: 0 15px 18px; position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border: 1px solid #edf0f2; border-radius: 14px; color: #8b95a1; background: #fff; box-shadow: var(--shadow-sm); font-size: 12px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-item { border: 0; border-radius: 13px; padding: 12px 4px; background: #fff; box-shadow: 0 3px 12px rgba(16,24,40,.04); }
.quick-item .q-icon { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 7px; border-radius: 11px; font-size: 17px; background: var(--green-soft); }
.quick-item:nth-child(2) .q-icon { background: var(--blue-soft); }
.quick-item:nth-child(3) .q-icon { background: var(--gold-soft); }
.quick-item:nth-child(4) .q-icon { background: #f2edff; }
.quick-item span { display: block; font-size: 11px; color: #45505f; font-weight: 700; }
.continue-card { display: flex; gap: 12px; padding: 12px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #17243a, #0b1220); box-shadow: var(--shadow-sm); }
.continue-cover { width: 78px; height: 78px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; font-size: 28px; background: linear-gradient(140deg, #2bb394, #13715d); }
.continue-card h4 { margin: 4px 0 7px; font-size: 14px; }
.continue-card p { margin: 0; color: rgba(255,255,255,.62); font-size: 10px; }
.progress { margin-top: 11px; height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.17); }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--green-2); }
.content-mini-card { display: flex; gap: 12px; margin-bottom: 10px; padding: 11px; border: 1px solid #edf0f2; border-radius: 16px; background: #fff; box-shadow: 0 3px 12px rgba(16,24,40,.035); }
.content-cover { position: relative; width: 108px; height: 76px; flex: 0 0 auto; overflow: hidden; display: grid; place-items: center; border-radius: 12px; color: #fff; font-size: 27px; }
.content-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.15)); }
.cover-emerald { background: linear-gradient(140deg, #20b08d, #0d6556); }
.cover-blue { background: linear-gradient(140deg, #6d8ef7, #354ea5); }
.cover-gold { background: linear-gradient(140deg, #f2c35d, #c87821); }
.cover-red { background: linear-gradient(140deg, #e27373, #9f3030); }
.cover-navy { background: linear-gradient(140deg, #35445e, #111827); }
.cover-plum { background: linear-gradient(140deg, #aa76df, #59348e); }
.content-info { min-width: 0; flex: 1; }
.content-info h4 { margin: 2px 0 7px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; line-height: 1.4; }
.content-info p { margin: 0; color: var(--muted); font-size: 10px; }
.content-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mini-tag { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 6px; color: var(--green); background: var(--green-soft); font-size: 9px; font-weight: 800; }
.mini-tag.vip { color: #78550a; background: var(--gold-soft); }
.mini-tag.svip { color: #5e3e9d; background: #f2edff; }
.mini-tag.free { color: #2760c7; background: var(--blue-soft); }
.lock-label { color: #a06b16; }
.tabs-row { position: sticky; top: 0; z-index: 8; display: flex; gap: 6px; padding: 12px 15px; overflow-x: auto; background: #f5f7f8; }
.tabs-row button { flex: 0 0 auto; border: 0; border-radius: 99px; padding: 7px 12px; color: #667085; background: #fff; font-size: 11px; font-weight: 700; }
.tabs-row button.active { color: #fff; background: var(--green); }
.profile-card { margin: 14px 15px; padding: 20px; border-radius: 18px; color: #fff; background: linear-gradient(145deg, #222c3e, #0c131e); }
.profile-head { display: flex; gap: 13px; align-items: center; }
.profile-head h3 { margin: 0 0 5px; font-size: 18px; }
.profile-head p { margin: 0; color: rgba(255,255,255,.62); font-size: 11px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; }
.profile-stats b { display: block; font-size: 17px; }
.profile-stats span { display: block; margin-top: 4px; color: rgba(255,255,255,.55); font-size: 10px; }
/* 会员中心：我的权益 / 我的专属客服 两个并列按钮 */
.mine-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 15px 14px; }
.mine-quick-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 53px; padding: 0 10px; border: 1px solid #e6e9ee; border-radius: 12px; background: #fff; color: #1d2939; font-size: 13px; font-weight: 700; box-shadow: 0 1px 2px rgba(16,24,40,.04); cursor: pointer; }
.mine-quick-btn .mine-quick-icon { display: inline-flex; align-items: center; justify-content: center; color: #0d6e5c; font-size: 15px; }
.mine-quick-btn .mine-quick-icon svg { display: block; width: 18px; height: 18px; }
.mine-quick-btn:active { transform: scale(.98); }
.menu-list { margin: 0 15px 18px; overflow: hidden; border-radius: 16px; background: #fff; }
.menu-row { width: 100%; border: 0; border-bottom: 1px solid #f0f2f4; display: flex; align-items: center; gap: 12px; padding: 15px; background: #fff; text-align: left; }
.menu-row:last-child { border-bottom: 0; }
.menu-row .menu-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #f1f4f6; }
.menu-row b { flex: 1; font-size: 12px; }
.menu-row span { color: #abb2bd; font-size: 17px; }
.targeted-benefits-entry .menu-icon { color: #9a6409; background: #fff5dc; font-size: 13px; font-weight: 900; }
.targeted-benefits-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.targeted-benefits-summary > div { min-width: 0; padding: 13px 14px; border: 1px solid #e6eee9; border-radius: 13px; background: linear-gradient(145deg,#f4fbf8,#fff); }
.targeted-benefits-summary span { display: block; color: #667085; font-size: 11px; }
.targeted-benefits-summary b { display: block; overflow: hidden; margin-top: 5px; color: #0d6e5c; font-size: 23px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.targeted-benefits-summary b small { margin-left: 3px; color: #667085; font-size: 10px; font-weight: 600; }
.targeted-benefits-summary b.is-date { font-size: 15px; line-height: 1.65; }
.targeted-benefits-list { display: grid; gap: 10px; }
.targeted-benefit-batch { overflow: hidden; border: 1px solid #e7ebe8; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(16,24,40,.035); }
.targeted-benefit-batch > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; cursor: pointer; list-style: none; }
.targeted-benefit-batch > summary::-webkit-details-marker { display: none; }
.targeted-benefit-batch[open] > summary { border-bottom: 1px solid #edf1ef; background: #f8fbfa; }
.targeted-benefit-batch-main { min-width: 0; display: flex; align-items: center; gap: 11px; }
.targeted-benefit-month { flex: 0 0 auto; padding: 5px 8px; border-radius: 8px; color: #0d6e5c; background: #e9f6f1; font-size: 11px; font-weight: 800; }
.targeted-benefit-batch-main > div { min-width: 0; }
.targeted-benefit-batch-main b { display: block; overflow: hidden; color: #1d2939; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.targeted-benefit-batch-main small { display: block; margin-top: 3px; color: #98a2b3; font-size: 10px; }
.targeted-benefit-batch-meta { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; }
.targeted-benefit-count,.targeted-benefit-status { padding: 4px 7px; border-radius: 99px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.targeted-benefit-count { color: #8a5a06; background: #fff4d6; }
.targeted-benefit-status { color: #0d6e5c; background: #e9f6f1; }
.targeted-benefit-batch-meta i { color: #98a2b3; font-size: 16px; font-style: normal; transition: transform .18s ease; }
.targeted-benefit-batch[open] .targeted-benefit-batch-meta i { transform: rotate(180deg); }
.targeted-benefit-batch-body { padding: 14px; }
.targeted-benefit-express { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; align-items: center; padding: 10px 11px; border-radius: 10px; background: #f6f8f7; }
.targeted-benefit-express span { color: #667085; font-size: 11px; white-space: nowrap; }
.targeted-benefit-express b { overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.targeted-benefit-members-head,.targeted-benefit-events-head { display: flex; align-items: center; justify-content: space-between; margin: 15px 0 8px; color: #344054; font-size: 12px; font-weight: 800; }
.targeted-benefit-members-head span { color: #7b8794; font-size: 10px; font-weight: 600; }
.targeted-benefit-name-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(92px,1fr)); gap: 7px; }
.targeted-benefit-name-grid span { overflow: hidden; padding: 7px 9px; border: 1px solid #edf1ef; border-radius: 8px; color: #475467; background: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.targeted-benefit-name-grid em { grid-column: 1/-1; color: #98a2b3; font-size: 11px; font-style: normal; }
.targeted-benefit-events-head { margin-top: 17px; }
.targeted-benefit-events { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.targeted-benefit-events li { position: relative; display: flex; gap: 10px; padding: 0 0 13px; }
.targeted-benefit-events li:last-child { padding-bottom: 0; }
.targeted-benefit-events li > i { position: relative; z-index: 1; width: 7px; height: 7px; flex: 0 0 auto; margin-top: 5px; border: 2px solid #fff; border-radius: 50%; background: #21b08d; box-shadow: 0 0 0 2px #b9e8da; }
.targeted-benefit-events li:not(:last-child)::before { content: ""; position: absolute; top: 11px; bottom: 0; left: 3px; width: 1px; background: #d7e9e1; }
.targeted-benefit-events li > div { min-width: 0; display: grid; gap: 2px; }
.targeted-benefit-events b { color: #344054; font-size: 11px; }
.targeted-benefit-events span { color: #667085; font-size: 11px; line-height: 1.55; }
.targeted-benefit-events small { color: #98a2b3; font-size: 10px; }
.targeted-benefit-no-events { padding: 10px 11px; border-radius: 9px; color: #7b8794; background: #f8faf9; font-size: 11px; line-height: 1.6; }
.targeted-benefits-loading { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #526070; text-align: center; }
.targeted-benefits-loading i { width: 28px; height: 28px; border: 3px solid #d7e9e1; border-top-color: #0d6e5c; border-radius: 50%; animation: targeted-benefits-spin .8s linear infinite; }
.targeted-benefits-loading b { color: #344054; font-size: 13px; }
.targeted-benefits-loading span { color: #7b8794; font-size: 11px; }
.targeted-benefits-empty { margin-top: 0; }
.targeted-benefits-empty span { display: block; margin-top: 6px; color: #7b8794; font-size: 11px; line-height: 1.6; }
@keyframes targeted-benefits-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .targeted-benefits-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .targeted-benefits-summary > div:last-child { grid-column: 1/-1; }
  .targeted-benefit-batch > summary { align-items: flex-start; }
  .targeted-benefit-batch-meta { flex-wrap: wrap; justify-content: flex-end; }
  .targeted-benefit-name-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
/* 会员页：版本更新未读消息 */
.version-inbox-card { margin: 12px 15px 14px; }
.version-inbox-row { display: flex; align-items: stretch; overflow: hidden; border: 1px solid #cfe3db; border-radius: 14px; background: linear-gradient(135deg, #f2fbf7, #ffffff); box-shadow: 0 2px 9px rgba(13,110,92,.07); }
.version-inbox-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 11px 8px 11px 12px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.version-inbox-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #0d6e5c; font-size: 20px; font-weight: 800; }
.version-inbox-copy { flex: 1 1 auto; min-width: 0; }
.version-inbox-copy b { display: flex; align-items: center; gap: 6px; color: #1d2939; font-size: 13px; }
.version-inbox-copy small { display: block; overflow: hidden; margin-top: 3px; color: #667085; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.version-inbox-copy .version-inbox-time { margin-top: 2px; color: #7b8794; font-size: 10px; }
.version-unread { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 99px; color: #b42318; background: #fee4e2; font-size: 9px; font-style: normal; font-weight: 800; }
.version-unread::before { content: ""; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: #d92d20; }
.version-inbox-arrow { flex: 0 0 auto; color: #98a2b3; font-size: 18px; }
.version-inbox-update { flex: 0 0 auto; min-width: 72px; padding: 0 10px; border: 0; border-left: 1px solid #d7e9e1; background: #0d6e5c; color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.version-inbox-update:disabled { opacity: .68; }
.nav-icon-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.nav-unread-dot { position: absolute; top: -2px; right: -5px; width: 7px; height: 7px; border: 1px solid #fff; border-radius: 50%; background: #d92d20; box-shadow: 0 0 0 1px rgba(217,45,32,.16); }
.version-update-message { font-size: 13px; line-height: 1.7; color: #344054; }
.version-update-head { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #d7e9e1; border-radius: 12px; background: #f3faf7; }
.version-update-head > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: #fff; background: #0d6e5c; font-size: 21px; font-weight: 800; }
.version-update-head b { display: block; color: #1d2939; font-size: 15px; }
.version-update-head small { display: block; margin-top: 2px; color: #667085; font-size: 11px; }
.version-update-list { margin: 12px 0 0; padding-left: 20px; color: #526070; }
.version-update-list li { margin: 6px 0; }

.admin-shell { max-width: 1540px; min-height: 850px; margin: 0 auto; display: grid; grid-template-columns: 188px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-md); }
.admin-sidebar { display: flex; flex-direction: column; padding: 22px 14px 16px; color: #fff; background: var(--navy); }
.admin-logo { display: flex; align-items: center; gap: 10px; padding: 0 7px 22px; }
.admin-logo b { display: block; font-size: 14px; }
.admin-logo span { display: block; margin-top: 2px; color: rgba(255,255,255,.48); font-size: 10px; }
.admin-nav { min-height: 0; display: flex; flex-direction: column; gap: 5px; padding-right: 2px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.admin-nav::-webkit-scrollbar { width: 5px; }
.admin-nav::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(255,255,255,.18); }
.admin-nav button { border: 0; border-radius: 10px; display: flex; align-items: center; gap: 10px; padding: 11px 12px; color: rgba(255,255,255,.62); background: transparent; text-align: left; font-size: 12px; font-weight: 700; }
.admin-nav button .admin-nav-icon { width: 20px; text-align: center; font-size: 15px; }
.admin-nav button.active { color: #fff; background: rgba(255,255,255,.1); }
.admin-nav button.active .admin-nav-icon { color: var(--gold); }
.admin-nav-parent.expanded { color: #fff; background: rgba(255,255,255,.055); }
.admin-nav-parent.active.expanded { background: rgba(255,255,255,.1); }
.admin-nav .embedded-app-admin-exit { margin-top: 12px; border: 1px solid rgba(242,184,75,.32); color: #f8d994; background: rgba(242,184,75,.08); }
.admin-nav .embedded-app-admin-exit:hover { color: #fff; background: rgba(242,184,75,.16); }
.admin-nav-chevron { flex: 0 0 auto; margin-left: auto; color: rgba(255,255,255,.4); font-size: 17px; line-height: 1; transition: transform .18s ease, color .18s ease; }
.admin-nav-parent.expanded .admin-nav-chevron { color: var(--gold); transform: rotate(90deg); }
.admin-nav-label { flex: 1 1 auto; min-width: 0; }
.admin-nav-badge { flex: 0 0 auto; min-width: 21px; height: 21px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 900; line-height: 1; }
.admin-nav-badge.soon { background: #d97706; box-shadow: 0 0 0 3px rgba(245,158,11,.14); }
.admin-nav-badge.urgent { background: #d92d20; box-shadow: 0 0 0 3px rgba(217,45,32,.16); animation: adminNavUrgentPulse 1.8s ease-in-out infinite; }
@keyframes adminNavUrgentPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(217,45,32,.12); }
  50% { box-shadow: 0 0 0 5px rgba(217,45,32,.22); }
}
.admin-nav-sub { margin: 1px 0 7px 12px; padding: 5px 0 5px 10px; border-left: 1px solid rgba(255,255,255,.14); }
.admin-nav-sub-title { padding: 3px 7px 5px; color: rgba(255,255,255,.36); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.admin-nav-sub button { min-height: 34px; padding: 7px 8px; border-radius: 8px; color: rgba(255,255,255,.58); background: transparent; font-size: 12px; }
.admin-nav-sub button:hover { color: #fff; background: rgba(255,255,255,.06); }
.admin-nav-sub button.active { color: #fff; background: rgba(255,255,255,.11); }
.admin-nav-sub-icon { flex: 0 0 auto; width: 18px; text-align: center; color: rgba(255,255,255,.44); font-size: 12px; }
.admin-nav-sub button.active .admin-nav-sub-icon { color: var(--gold); }
.admin-nav-children { margin-top: 1px; margin-bottom: 8px; padding-top: 4px; }
.admin-nav-children[hidden] { display: none; }
.sidebar-bottom { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 13px 10px; border-radius: 13px; background: rgba(255,255,255,.06); }
.storage-ring { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: conic-gradient(var(--green-2) 0 68%, rgba(255,255,255,.12) 68% 100%); font-size: 9px; }
.storage-ring span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); }
.sidebar-bottom b { display: block; font-size: 10px; }
.sidebar-bottom span { display: block; margin-top: 3px; color: rgba(255,255,255,.45); font-size: 9px; }
.admin-main { min-width: 0; background: #f7f9fb; }
.admin-topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--line); background: #fff; }
.admin-breadcrumb { display: block; color: #98a2b3; font-size: 10px; }
.admin-breadcrumb b { color: #667085; }
.admin-topbar h2 { margin: 5px 0 0; font-size: 20px; }
.admin-top-actions { display: flex; align-items: center; gap: 10px; }
.admin-topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-global-search { position: relative; z-index: 70; flex: 1 1 420px; max-width: 500px; min-width: 220px; margin: 0 20px; }
.admin-global-search-row { display: flex; align-items: center; gap: 8px; }
.admin-global-search-box { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 12px; border: 1px solid #dce4e1; border-radius: 12px; background: #f8faf9; transition: border-color .18s, box-shadow .18s, background .18s; }
.admin-global-search-row .admin-global-search-box { flex: 1 1 auto; min-width: 0; }
.admin-global-search-box:focus-within { border-color: #70bfa8; background: #fff; box-shadow: 0 0 0 3px rgba(33,176,141,.1); }
.admin-global-search-icon { flex: 0 0 auto; color: #668078; font-size: 19px; line-height: 1; }
.admin-global-search-box input { flex: 1 1 auto; width: 100%; min-width: 0; height: 40px; padding: 0; border: 0; outline: 0; color: #1d2939; background: transparent; font-size: 13px; }
.admin-global-search-box input::placeholder { color: #98a2b3; }
.admin-global-search-clear { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; color: #87928f; background: #edf2f0; font-size: 17px; line-height: 1; cursor: pointer; transition: opacity .15s, background .15s; }
.admin-global-search-clear:hover { color: #344054; background: #e1e9e6; }
.admin-global-search-box input:placeholder-shown + .admin-global-search-clear { opacity: 0; pointer-events: none; }
.admin-guide-trigger { flex: 0 0 auto; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 13px; border: 1px solid #bcded3; border-radius: 12px; color: #0d6e5c; background: #edf8f4; font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: border-color .18s, box-shadow .18s, background .18s; }
.admin-guide-trigger:hover { border-color: #70bfa8; background: #e2f5ee; box-shadow: 0 5px 14px rgba(13,110,92,.1); }
.admin-guide-trigger span { font-size: 16px; line-height: 1; }
.admin-search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-height: min(62vh, 540px); overflow-y: auto; border: 1px solid #dce6e2; border-radius: 14px; background: #fff; box-shadow: 0 16px 40px rgba(16,24,40,.18); }
.admin-search-result-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-bottom: 1px solid #edf2f0; color: #526070; background: rgba(249,252,250,.98); font-size: 12px; font-weight: 800; backdrop-filter: blur(8px); }
.admin-search-result-head span { color: #98a2b3; font-size: 11px; font-weight: 500; }
.admin-search-result { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 0; border-bottom: 1px solid #f0f3f2; color: inherit; background: #fff; text-align: left; cursor: pointer; }
.admin-search-result:last-child { border-bottom: 0; }
.admin-search-result:hover, .admin-search-result.active { background: #f0faf6; }
.admin-search-result-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #0d6e5c; background: #e8f6f1; font-size: 16px; font-weight: 800; }
.admin-search-result-copy { flex: 1 1 auto; min-width: 0; }
.admin-search-result-copy b { display: flex; align-items: center; gap: 7px; color: #1d2939; font-size: 13px; }
.admin-search-result-copy b em { flex: 0 0 auto; padding: 2px 6px; border-radius: 99px; color: #667085; background: #f1f4f3; font-size: 9px; font-style: normal; font-weight: 700; }
.admin-search-result-copy small { display: block; overflow: hidden; margin-top: 3px; color: #7b8794; font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.admin-search-result-enter { flex: 0 0 auto; color: #98a2b3; font-size: 14px; opacity: 0; }
.admin-search-result.active .admin-search-result-enter { opacity: 1; }
.admin-search-empty { padding: 26px 18px; text-align: center; }
.admin-search-empty b { display: block; color: #344054; font-size: 14px; }
.admin-search-empty span { display: block; margin-top: 5px; color: #87928f; font-size: 12px; line-height: 1.6; }
.admin-search-history { padding: 12px 13px 11px; border-bottom: 1px solid #edf2f0; background: #fbfdfc; }
.admin-search-history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #526070; font-size: 12px; }
.admin-search-history-head b { font-weight: 800; }
.admin-search-history-head button { padding: 2px 4px; border: 0; color: #7b8794; background: transparent; font-size: 11px; cursor: pointer; }
.admin-search-history-head button:hover { color: #0d6e5c; }
.admin-search-history-list { display: flex; flex-wrap: wrap; gap: 7px; max-height: 74px; overflow-y: auto; }
.admin-search-history-list button { max-width: 100%; height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border: 1px solid #e0e8e5; border-radius: 999px; color: #344054; background: #fff; font-size: 12px; line-height: 1; cursor: pointer; }
.admin-search-history-list button span { color: #73a596; font-size: 13px; }
.admin-search-history-list button:hover { border-color: #8bc8b6; color: #0d6e5c; background: #f0faf6; }
.admin-search-target-hit { animation: adminSearchTargetPulse 1.2s ease-in-out 2; outline: 3px solid rgba(33,176,141,.42); outline-offset: 2px; }
@keyframes adminSearchTargetPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(33,176,141,.08); }
  50% { box-shadow: 0 0 0 8px rgba(33,176,141,.16); }
}
.admin-guide-shell { display: grid; gap: 13px; }
.admin-guide-notice { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid #d8ebe5; border-radius: 12px; color: #48635c; background: linear-gradient(135deg, #f4fbf8, #f8fcfa); font-size: 12px; line-height: 1.6; }
.admin-guide-notice > span { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: #14866d; font-size: 15px; font-weight: 800; }
.admin-guide-notice b { display: block; margin-bottom: 2px; color: #1d4d43; font-size: 13px; }
.admin-guide-thread { min-width: 0; min-height: 230px; max-height: min(48vh, 430px); display: grid; align-content: start; gap: 10px; padding: 14px; overflow-x: hidden; overflow-y: auto; border: 1px solid #e3ebe7; border-radius: 14px; background: #f7faf8; scrollbar-width: thin; scrollbar-color: #cbdcd6 transparent; }
.admin-guide-empty { margin: auto; max-width: 520px; padding: 14px 10px; text-align: center; }
.admin-guide-empty-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 16px; color: #0d6e5c; background: #e1f4ed; font-size: 25px; box-shadow: inset 0 0 0 1px rgba(13,110,92,.08); }
.admin-guide-empty b { display: block; color: #1d2939; font-size: 16px; }
.admin-guide-empty p { margin: 6px 0 12px; color: #667085; font-size: 12px; line-height: 1.7; }
.admin-guide-suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.admin-guide-suggestions button { min-height: 30px; padding: 0 11px; border: 1px solid #d7e7e1; border-radius: 999px; color: #37665a; background: #fff; font-size: 11px; cursor: pointer; }
.admin-guide-suggestions button:hover { border-color: #83c8b4; color: #0d6e5c; background: #f0faf6; }
.admin-guide-message { min-width: 0; max-width: 100%; display: flex; gap: 9px; align-items: flex-start; }
.admin-guide-message.user { flex-direction: row-reverse; }
.admin-guide-avatar { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #0d6e5c; font-size: 11px; font-weight: 800; }
.admin-guide-message.user .admin-guide-avatar { background: #47665f; }
.admin-guide-bubble { min-width: 0; max-width: min(88%, 720px); padding: 10px 12px; overflow: hidden; border: 1px solid #e0e9e5; border-radius: 4px 13px 13px 13px; color: #344054; background: #fff; font-size: 13px; line-height: 1.7; box-shadow: 0 5px 15px rgba(16,24,40,.035); }
.admin-guide-message.user .admin-guide-bubble { border-color: #cfe7df; border-radius: 13px 4px 13px 13px; color: #244c42; background: #e9f7f2; }
.admin-guide-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.admin-guide-bubble small { display: block; margin-top: 8px; color: #87928f; font-size: 10px; line-height: 1.5; }
.admin-guide-candidates { min-width: 0; display: grid; gap: 7px; margin-top: 10px; }
.admin-guide-candidate { width: 100%; min-width: 0; max-width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #dfe9e5; border-radius: 10px; color: inherit; background: #fbfdfc; text-align: left; cursor: pointer; }
.admin-guide-candidate:hover { border-color: #84c9b6; background: #f0faf6; }
.admin-guide-candidate > span:first-child { flex: 1 1 auto; min-width: 0; }
.admin-guide-candidate b { display: block; color: #1f3f37; font-size: 12px; }
.admin-guide-candidate small { display: block; overflow: hidden; margin-top: 2px; color: #75827e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-guide-candidate em { flex: 0 0 auto; padding: 4px 8px; border-radius: 8px; color: #0d6e5c; background: #e4f5ef; font-size: 10px; font-style: normal; font-weight: 800; }
.admin-guide-loading { display: inline-flex; align-items: center; gap: 8px; color: #527069; font-size: 12px; }
.admin-guide-spinner { width: 15px; height: 15px; border: 2px solid #cfe4dd; border-top-color: #0d6e5c; border-radius: 50%; animation: adminGuideSpin .8s linear infinite; }
@keyframes adminGuideSpin { to { transform: rotate(360deg); } }
.admin-guide-composer { padding: 12px; border: 1px solid #dce7e3; border-radius: 14px; background: #fff; }
.admin-guide-image-preview { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 9px; padding: 8px; border: 1px solid #d8e9e3; border-radius: 11px; background: #f4faf7; }
.admin-guide-image-preview img { width: 78px; height: 56px; flex: 0 0 auto; object-fit: cover; border: 1px solid #d9e6e1; border-radius: 8px; background: #fff; }
.admin-guide-image-preview span { flex: 1 1 auto; min-width: 0; }
.admin-guide-image-preview b { display: block; overflow: hidden; color: #2c5148; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-guide-image-preview small { display: block; margin-top: 2px; color: #7b8d87; font-size: 10px; }
.admin-guide-image-remove { flex: 0 0 auto; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; color: #667085; background: #e8efec; font-size: 17px; cursor: pointer; }
.admin-guide-input { width: 100%; min-height: 74px; max-height: 150px; resize: vertical; padding: 10px 11px; border: 1px solid #dce5e2; border-radius: 11px; outline: 0; color: #1d2939; background: #fbfdfc; font: inherit; font-size: 13px; line-height: 1.65; }
.admin-guide-input:focus { border-color: #70bfa8; background: #fff; box-shadow: 0 0 0 3px rgba(33,176,141,.09); }
.admin-guide-actions { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.admin-guide-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.admin-guide-actions-hint { flex: 1 1 auto; min-width: 0; color: #87928f; font-size: 10px; line-height: 1.5; }
.admin-guide-actions button { flex: 0 0 auto; }
.admin-guide-send[disabled] { opacity: .55; cursor: not-allowed; }
.admin-menu-btn { display: none; }
.admin-menu-backdrop { display: none; }
.icon-btn { position: relative; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.icon-btn i { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: var(--red); }
.admin-user { display: flex; align-items: center; gap: 9px; margin-left: 4px; padding-left: 13px; border-left: 1px solid var(--line); }
.admin-user > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(140deg, #24b28f, #0d6b59); font-weight: 800; }
.admin-user b, .admin-user small { display: block; }
.admin-user b { font-size: 11px; }
.admin-user small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.admin-view { padding: 22px 24px 28px; }
.admin-page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.admin-page-head p { margin: 0; color: var(--muted); font-size: 11px; }
.admin-page-head .head-actions { display: flex; gap: 8px; }
/* 内容管理顶部：自定义课程分类筛选条（紧凑，不增加表头高度） */
.course-cat-strip { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.course-cat-chip { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.course-cat-chip button { border: 0; background: transparent; padding: 4px 10px; color: #526070; font-size: 11px; font-weight: 700; cursor: pointer; }
.course-cat-chip .cat-name b { margin-left: 5px; font-weight: 800; opacity: .72; }
.course-cat-chip .cat-x { border-left: 1px solid var(--line); padding: 4px 8px; color: #98a2b3; font-weight: 800; }
.course-cat-chip.active { border-color: var(--green); background: var(--green); }
.course-cat-chip.active button { color: #fff; }
.course-cat-chip.active .cat-x { border-left-color: rgba(255, 255, 255, .38); color: #e9f7f3; }
.course-cat-add { border: 1px dashed #b9e2d5; border-radius: 999px; background: #f3faf7; color: #126c59; padding: 4px 12px; font-size: 11px; font-weight: 800; cursor: pointer; }
.course-cat-add:hover { background: #e6f6f0; }
.course-category-add-row { display: flex; align-items: center; gap: 8px; }
.course-category-add-row input { flex: 1 1 auto; min-width: 0; }
.course-category-add-row .primary-btn { flex: 0 0 76px; width: 76px; min-width: 76px; min-height: 42px; padding: 0 14px; white-space: nowrap; }
.course-category-panel-body { padding: 12px 14px 14px; }
.course-category-strip {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16,24,40,.035);
}
.course-category-strip-list { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.course-category-chip {
  flex: 0 0 auto;
  max-width: 150px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  overflow: hidden;
  border: 1px solid #dce8e3;
  border-radius: 9px;
  background: #f7faf8;
  color: #344054;
  font-size: 12.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.course-category-empty { color: #98a2b3; font-size: 12px; white-space: nowrap; }
.course-category-manage-btn { flex: 0 0 auto; }
/* 课程分类支持多选：用紧凑的勾选标签，避免拉成长下拉框 */
.course-category-picker { display: flex; flex-wrap: wrap; gap: 7px; padding: 1px 0 2px; }
.form-field .course-category-choice {
  display: inline-flex; align-items: center; gap: 6px; width: auto; margin: 0;
  padding: 6px 10px; border: 1px solid #dce6e2; border-radius: 999px;
  color: #526070; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
}
.form-field .course-category-choice:hover { border-color: #9bd8c8; background: #f7fcfb; }
.form-field .course-category-choice input { width: auto; margin: 0; flex: 0 0 auto; accent-color: var(--green); }
.form-field .course-category-choice:has(input:checked) { border-color: var(--green); color: #0d6e5c; background: #e9f7f2; }
/* 只有内容管理这一页，把标题区排成"左边分类条 + 右边按钮"，避免被窄屏规则挤成一列 */
body.admin-mode .admin-page-head.course-head { flex-wrap: wrap; gap: 10px; }
body.admin-mode .admin-page-head.course-head .head-actions { width: auto; display: flex; grid-template-columns: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.stat-card { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.stat-card .stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.stat-card .stat-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--green-soft); font-size: 15px; }
.stat-card:nth-child(2) .stat-icon { background: var(--blue-soft); }
.stat-card:nth-child(3) .stat-icon { background: var(--gold-soft); }
.stat-card:nth-child(4) .stat-icon { background: #f2edff; }
.stat-card b { display: block; margin: 10px 0 5px; font-size: clamp(19px, 1.8vw, 25px); letter-spacing: -.03em; white-space: nowrap; }
.stat-card small { color: #1ca580; font-size: 10px; }
.stat-card small.down { color: var(--red); }
/* 商品管理顶部那一行统计：并进工具栏，不另占一行 */
.shop-stats-inline { display: inline-flex; align-items: baseline; gap: 5px; padding: 0 4px; color: #7f8996; font-size: 11px; white-space: nowrap; }
.shop-stats-inline b { color: #0d6e5c; font-size: 13px; font-weight: 800; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .7fr); gap: 14px; margin-top: 14px; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px 10px; }
.panel-head > .head-actions { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; margin-left: auto; }
.panel-head > .head-actions .primary-btn { color: #fff; background: var(--navy); border-color: var(--navy); }
.panel-head h3 { margin: 0; font-size: 13px; }
.panel-head span, .panel-head button { border: 0; color: var(--muted); background: transparent; font-size: 10px; }
.chart-wrap { padding: 10px 16px 16px; }
.chart-legend { display: flex; justify-content: flex-end; gap: 13px; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.chart-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 2px; background: var(--green); }
.chart-legend span:nth-child(2) i { background: var(--gold); }
.bar-chart { height: 180px; display: flex; align-items: end; justify-content: space-between; gap: 6px; padding: 12px 6px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, #f0f3f6 44px); }
.bar-group { flex: 1; height: 100%; display: flex; align-items: end; justify-content: center; gap: 4px; }
.bar { width: 9px; min-height: 4px; border-radius: 4px 4px 0 0; background: var(--green); transition: .4s ease; }
.bar.gold { background: var(--gold); }
.bar-labels { display: flex; justify-content: space-between; gap: 6px; padding: 7px 9px 0; color: #98a2b3; font-size: 9px; }
.bar-labels span { flex: 1; min-width: 0; text-align: center; white-space: nowrap; }
.activity-list { padding: 5px 17px 14px; }
.activity-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f3f5; }
.activity-item:last-child { border-bottom: 0; }
.activity-avatar { flex: 0 0 auto; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: var(--green); background: var(--green-soft); font-size: 12px; font-weight: 900; }
.activity-item b { display: block; font-size: 11px; }
.activity-item p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.activity-item time { display: block; margin-top: 4px; color: #aeb6c1; font-size: 8px; }
.activity-empty { padding: 26px 4px; color: var(--muted); text-align: center; }
.activity-empty b { display: block; color: #526070; font-size: 12px; }
.activity-empty span { display: block; margin-top: 5px; font-size: 9px; line-height: 1.55; }
.dashboard-data-note { margin: 10px 2px 0; color: #98a2b3; font-size: 9px; line-height: 1.6; }
.quick-action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.quick-action { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; text-align: left; }
.quick-action .qa-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: var(--green-soft); font-size: 17px; }
.quick-action b { display: block; font-size: 11px; }
.quick-action span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }

.admin-toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; padding: 0 17px; }
.admin-toolbar .search-box { flex: 1; max-width: 300px; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.admin-toolbar .search-box input { width: 100%; border: 0; outline: 0; font-size: 11px; background: transparent; }
.admin-toolbar select { height: 38px; padding: 0 30px 0 11px; border: 1px solid var(--line); border-radius: 10px; color: #526070; background: #fff; font-size: 11px; }
.spacer { flex: 1; }
.data-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 11px 17px; color: #8b95a2; background: #fafbfc; text-align: left; font-size: 10px; font-weight: 700; white-space: nowrap; }
.data-table td { padding: 12px 17px; border-top: 1px solid #edf0f2; color: #3e4a5a; font-size: 11px; vertical-align: middle; }
.data-table tr:hover td { background: #fbfdfc; }
.cell-main { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.thumb { width: 48px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: #fff; font-size: 15px; }
.cell-main b { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.cell-main span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 99px; font-size: 9px; font-weight: 800; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.on { color: #16866b; background: var(--green-soft); }
.status.wait { color: #a16b13; background: var(--gold-soft); }
.status.off { color: #7d8794; background: #eef1f3; }
.status.danger { color: #c43f3f; background: var(--red-soft); }
.price { font-weight: 800; color: #1c2736; }
.row-actions { display: flex; gap: 5px; }
.row-actions button { border: 0; padding: 5px 7px; border-radius: 7px; color: var(--green); background: var(--green-soft); font-size: 9px; font-weight: 700; }
.row-actions button.danger { color: var(--red); background: var(--red-soft); }
/* 使用率最高的两个操作（管理 / 分享）加强显示：实心绿底 + 白字 */
.row-actions button.strong { color: #fff; background: var(--green); box-shadow: 0 4px 10px rgba(13, 110, 92, .22); }
.row-actions button.strong:hover { background: #0a5a4b; }
.row-actions button.gold { color: #4a3200; background: var(--gold); box-shadow: 0 4px 10px rgba(242, 184, 75, .32); }
.row-actions button.gold:hover { background: #e6a72f; }
/* 商品列表里的「编辑 / 分享」要比其他按钮更显眼一点 */
.row-actions button.strong, .row-actions button.gold { padding: 6px 12px; font-size: 11px; font-weight: 800; }
.row-actions.course-actions button.strong { padding: 4px 8px; }
.member-cell { display: flex; align-items: center; gap: 12px; }
.member-cell > div { min-width: 0; }
.member-avatar { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 50%; color: #285e52; background: #dff4ed; font-size: 15px; font-weight: 900; }
.member-cell b { display: block; max-width: 220px; overflow: hidden; font-size: 14px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
/* 只作用于"手机号那行小字"，别把头像（也是 span）一起改成 block —— 那会让名字首字跑到左上角 */
.member-cell > div > span, .member-detail-trigger-copy > span { display: block; max-width: 220px; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
/* 保险：默认头像（姓名首字）必须严格居中 */
.member-cell .member-avatar { display: grid; place-items: center; margin-top: 0; text-align: center; line-height: 1; color: #285e52; font-size: 15px; }
.member-detail-trigger { width: 100%; min-width: 190px; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.member-detail-trigger-copy { min-width: 0; display: block; }
.member-detail-trigger:hover b { color: var(--green); }
.member-detail-trigger-label { margin-left: auto; opacity: 0; color: var(--green); font-size: 11px; font-weight: 700; white-space: nowrap; transition: opacity .16s ease; }
.member-detail-trigger:hover .member-detail-trigger-label, .member-detail-trigger:focus-visible .member-detail-trigger-label { opacity: 1; }
.member-list-actions { flex-wrap: wrap; justify-content: flex-end; white-space: normal; }
.member-table-wrap {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}
.member-list-table {
  width: 100%;
  min-width: 1080px;
  table-layout: fixed;
}
.member-list-table .member-col-select { width: 40px; }
.member-list-table .member-col-user { width: 140px; }
.member-list-table .member-col-phone { width: 108px; }
.member-list-table .member-col-source { width: 76px; }
.member-list-table .member-col-level { width: 96px; }
.member-list-table .member-col-group { width: 76px; }
.member-list-table .member-col-tags { width: 154px; }
.member-list-table .member-col-expiry { width: 116px; }
.member-list-table .member-col-status { width: 56px; }
.member-list-table .member-col-beta { width: 64px; }
.member-list-table .member-col-actions { width: 144px; }
.member-list-table th { padding: 9px 10px; }
.member-list-table td {
  overflow: hidden;
  padding: 8px 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-list-table tr:hover td { background: #fbfdfc; }
.member-list-table .member-select-cell { padding-inline: 10px; text-align: center; }
.member-list-table .member-select-cell input { width: 16px; height: 16px; margin: 0; vertical-align: middle; }
.member-list-table .member-user-cell { overflow: visible; }
.member-list-table .member-detail-trigger {
  width: 100%;
  min-width: 0;
  gap: 9px;
}
.member-list-table .member-avatar {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  font-size: 13px;
}
.member-list-table .member-detail-trigger-copy { overflow: hidden; }
.member-list-table .member-detail-trigger-copy b {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-list-table .member-detail-trigger-copy > span {
  max-width: 100%;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.3;
}
.member-list-table .member-detail-trigger-label { display: none; }
.member-list-table .member-phone-cell {
  color: #344054;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.member-list-table .member-phone-cell .mini-tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-list-table .member-source-cell .member-group-cell,
.member-list-table .member-admin-group-cell .member-group-cell { min-width: 0; }
.member-list-table .member-source-cell .member-group-cell b,
.member-list-table .member-admin-group-cell .member-group-cell b {
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-list-table .member-source-cell .member-group-cell small,
.member-list-table .member-admin-group-cell .member-group-cell small {
  overflow: hidden;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-list-table .member-tag-cell { overflow: visible; }
.member-tag-list {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}
.member-tag-pill,
.member-tag-more,
.member-tag-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border: 1px solid #cce8df;
  border-radius: 999px;
  color: #0d6e5c;
  background: #eef9f5;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.member-tag-pill {
  max-width: 64px;
  overflow: hidden;
  padding: 4px 8px;
  text-overflow: ellipsis;
}
.member-tag-more { flex: 0 0 auto; min-width: 27px; padding: 4px 6px; }
.member-tag-add {
  min-height: 25px;
  padding: 4px 8px;
  border-style: dashed;
  color: #667085;
  background: #fff;
}
.member-tag-pill:hover,
.member-tag-more:hover,
.member-tag-add:hover { border-color: #8fd0bf; color: #074f42; background: #e4f6ef; }
.member-tag-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}
.member-tag-editor input {
  width: 100%;
  min-width: 0;
  height: 28px;
  padding: 4px 7px;
  border: 1px solid #b9d9d0;
  border-radius: 7px;
  font-size: 11px;
}
.member-tag-editor-actions {
  display: flex;
  gap: 4px;
}
.member-tag-editor-actions .compact {
  min-height: 24px;
  padding: 3px 7px;
  font-size: 10px;
}
.member-list-table .member-level-stack {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.member-list-table .member-level-stack > * { flex: 0 0 auto; }
.member-list-table .member-level-stack .mini-tag { margin-left: 0; }
.member-list-table .member-level-stack .level-pill,
.member-list-table .member-level-stack .mini-tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-list-table .member-expiry-cell {
  color: #526070;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.member-list-table .member-expiry-date { display: block; font-weight: 650; line-height: 1.3; }
.member-list-table .member-expiry-state {
  display: block;
  margin-top: 2px;
  color: #7b8794;
  font-size: 9.5px;
  font-weight: 650;
  line-height: 1.25;
}
.member-list-table .member-expiry-state.is-valid { color: #16866b; }
.member-list-table .member-expiry-state.is-soon { color: #a16b13; }
.member-list-table .member-expiry-state.is-expired { color: #c43f3f; }
.member-list-table .member-status-cell { overflow: visible; }
.member-list-table .member-status-cell .status { white-space: nowrap; }
.member-list-table .member-beta-cell { overflow: visible; }
.member-list-table .member-beta-cell .ghost-btn {
  min-width: 52px;
  min-height: 27px;
  padding: 4px 8px;
  white-space: nowrap;
}
.member-list-table .member-actions-cell { overflow: visible; }
.member-list-table .member-list-actions {
  flex-wrap: nowrap;
  gap: 3px;
  justify-content: flex-start;
  white-space: nowrap;
}
.member-list-table .member-list-actions button {
  min-height: 27px;
  padding: 4px 5px;
  white-space: nowrap;
}
/* 会员总列表：固定列宽 + 单元格单行，窗口变窄时只在表格内部横向滚动。 */
.permission-member-toolbar,
.permission-member-batch {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.permission-member-toolbar > *,
.permission-member-batch > * {
  flex: 0 0 auto;
}
.permission-member-toolbar .search-box {
  flex: 1 1 220px;
  max-width: 280px;
  height: 36px;
}
.permission-member-toolbar .spacer { display: none; }
.permission-member-toolbar select,
.permission-member-batch select,
.permission-member-toolbar .secondary-btn,
.permission-member-batch .secondary-btn,
.permission-member-toolbar .mini-tag,
.permission-member-batch .mini-tag {
  display: inline-flex;
  align-items: center;
  height: 36px;
  white-space: nowrap;
}
.permission-member-toolbar select,
.permission-member-batch select {
  min-width: 116px;
  max-width: 154px;
}
.permission-member-batch .spacer {
  flex: 1 0 100%;
  height: 0;
  margin: 0;
}
.permission-member-table-wrap {
  border-top: 1px solid #edf0f2;
}
.permission-member-table {
  min-width: 1328px;
  table-layout: fixed;
}
.permission-member-table .pm-col-select { width: 44px; }
.permission-member-table .pm-col-member { width: 158px; }
.permission-member-table .pm-col-source { width: 128px; }
.permission-member-table .pm-col-level { width: 184px; }
.permission-member-table .pm-col-group { width: 92px; }
.permission-member-table .pm-col-discount { width: 68px; }
.permission-member-table .pm-col-expiry { width: 134px; }
.permission-member-table .pm-col-follow { width: 138px; }
.permission-member-table .pm-col-wx { width: 100px; }
.permission-member-table .pm-col-status { width: 72px; }
.permission-member-table .pm-col-actions { width: 210px; }
.permission-member-table th,
.permission-member-table td {
  overflow: hidden;
  padding: 8px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.permission-member-table th {
  height: 42px;
  line-height: 1.25;
}
.permission-member-table td {
  height: 58px;
  line-height: 1.35;
}
.permission-member-table .pm-select-cell {
  padding-inline: 12px;
  text-align: center;
}
.permission-member-table .pm-select-cell input {
  width: 16px;
  height: 16px;
  margin: 0;
  vertical-align: middle;
}
.permission-member-table .pm-member-cell .member-cell {
  min-width: 0;
  gap: 9px;
}
.permission-member-table .pm-member-cell .member-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  font-size: 13px;
}
.permission-member-table .pm-member-cell .member-cell > div {
  min-width: 0;
}
.permission-member-table .pm-member-cell b,
.permission-member-table .pm-member-cell span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.permission-member-table .pm-member-cell b {
  color: #17211f;
  font-size: 13px;
  line-height: 1.35;
}
.permission-member-table .pm-member-cell .member-cell > div > span {
  margin-top: 2px;
  color: #8b95a2;
  font-size: 11.5px;
}
.permission-member-table .pm-source-cell .member-group-cell {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.permission-member-table .pm-source-cell b,
.permission-member-table .pm-source-cell small {
  display: inline;
  max-width: none;
  overflow: visible;
  color: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: clip;
  white-space: nowrap;
}
.permission-member-table .pm-source-cell small {
  color: #8b95a2;
  font-size: 11px;
  font-weight: 500;
}
.permission-member-table .pm-source-cell small::before {
  content: "·";
  margin-right: 4px;
  color: #c0c7d0;
}
.permission-member-table .pm-level-line {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  flex-wrap: nowrap;
}
.permission-member-table .pm-level-line > * {
  flex: 0 0 auto;
}
.permission-member-table .pm-level-line .mini-tag {
  margin-left: 0 !important;
  white-space: nowrap;
}
.permission-member-table .pm-group-cell span,
.permission-member-table .pm-expiry-cell span,
.permission-member-table .pm-discount-cell span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.permission-member-table .pm-follow-cell .follow-cell,
.permission-member-table .pm-follow-cell .follow-pill,
.permission-member-table .pm-wx-cell .wx-pills,
.permission-member-table .pm-status-cell .status {
  max-width: 100%;
  overflow: hidden;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.permission-member-table .pm-follow-cell .follow-by {
  overflow: hidden;
  text-overflow: ellipsis;
}
.permission-member-table .pm-wx-cell .wx-pills {
  display: inline-flex;
}
.permission-member-table .pm-status-cell .status,
.permission-member-table .pm-wx-cell .wx-pill,
.permission-member-table .pm-follow-cell .follow-pill {
  flex: 0 0 auto;
}
.permission-member-table .pm-actions-cell {
  overflow: visible;
}
.permission-member-table .pm-actions-cell .row-actions {
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  white-space: nowrap;
}
.permission-member-table .pm-actions-cell .row-actions button {
  min-height: 28px;
  padding: 4px 8px;
  white-space: nowrap;
}
.circle-member-drill { width: 100%; min-width: 180px; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.circle-member-drill > span { min-width: 0; }
.circle-member-drill em { margin-left: auto; opacity: 0; color: var(--green); font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; transition: opacity .16s ease; }
.circle-member-drill:hover b, .circle-member-drill:focus-visible b { color: var(--green); }
.circle-member-drill:hover em, .circle-member-drill:focus-visible em { opacity: 1; }
.member-detail-page { display: grid; gap: 14px; }
.member-detail-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px; border: 1px solid #dcebe5; border-radius: 18px; background: linear-gradient(135deg, #f3fbf7 0%, #fff 58%, #fff9ea 100%); }
.member-detail-person { display: flex; align-items: center; gap: 15px; min-width: 0; }
.member-detail-avatar { width: 64px; height: 64px; flex: 0 0 64px; display: grid; place-items: center; overflow: hidden; border: 4px solid rgba(255,255,255,.9); border-radius: 50%; color: #fff; background: linear-gradient(145deg, #0d6e5c, #21b08d); box-shadow: 0 9px 24px rgba(13,110,92,.2); font-size: 24px; font-weight: 900; }
.member-detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-detail-person > div { min-width: 0; }
.member-detail-name-line { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.member-detail-name-line h3 { margin: 0; color: #17211f; font-size: 22px; line-height: 1.25; }
.member-detail-person p { margin: 6px 0 0; color: #667085; font-size: 13px; line-height: 1.5; }
.member-detail-tagline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.member-detail-hero-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.member-detail-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.member-detail-metrics article { min-width: 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.member-detail-metrics span { display: block; color: #7b8794; font-size: 12px; }
.member-detail-metrics b { display: block; overflow: hidden; margin-top: 7px; color: #172b26; font-size: 24px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.member-detail-metrics b.member-detail-metric-date { font-size: 14px; line-height: 1.5; }
.member-detail-metrics small { display: block; margin-top: 5px; color: #98a2b3; font-size: 11px; line-height: 1.45; }
.member-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.member-detail-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.member-detail-card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid #eef2f0; }
.member-detail-card > header h4 { margin: 0; color: #1d2939; font-size: 15px; }
.member-detail-card > header span { color: #98a2b3; font-size: 11px; text-align: right; }
.member-detail-wide-card { padding-bottom: 18px; }
.member-detail-info-list { display: grid; gap: 0; margin-top: 7px; }
.member-detail-info-row { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px dashed #edf1ef; font-size: 12.5px; line-height: 1.55; }
.member-detail-info-row:last-child { border-bottom: 0; }
.member-detail-info-row span { color: #8b95a2; }
.member-detail-info-row b { min-width: 0; color: #344054; font-weight: 600; overflow-wrap: anywhere; }
.member-detail-source-summary { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; padding: 11px 12px; border-radius: 11px; background: #f3faf7; }
.member-detail-source-summary b { color: var(--green); font-size: 15px; }
.member-detail-source-summary span { color: #667085; font-size: 12px; }
.member-detail-identities { display: grid; gap: 8px; margin-top: 12px; }
.member-detail-identity { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #e2eee9; border-radius: 11px; background: #fbfdfc; }
.member-detail-identity.is-expired { border-color: #eee3d8; background: #fffaf4; }
.member-detail-identity b { color: #216957; font-size: 13px; }
.member-detail-identity small { color: #7d8794; font-size: 11px; }
.member-detail-course-list { display: grid; gap: 9px; margin-top: 12px; }
.member-detail-course { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 9px 10px; border-radius: 10px; background: #f8faf9; }
.member-detail-course div { min-width: 0; }
.member-detail-course b { display: block; overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.member-detail-course small { display: block; margin-top: 2px; color: #98a2b3; font-size: 10px; }
.member-detail-course > span { color: var(--green); font-size: 12px; font-weight: 800; }
.member-detail-course > i { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 99px; background: #e7eeeb; }
.member-detail-course > i em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0d6e5c, #21b08d); }
.member-detail-mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 13px; }
.member-detail-mini-stats span { padding: 8px 6px; border-radius: 9px; color: #7b8794; background: #f6f8f7; font-size: 10px; text-align: center; }
.member-detail-mini-stats b { display: block; margin-top: 3px; color: #344054; font-size: 15px; }
.member-detail-address-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.member-detail-address { min-width: 0; padding: 13px; border: 1px solid #e6ebe9; border-radius: 12px; background: #fbfcfc; }
.member-detail-address.is-default { border-color: #b9e2d5; background: #f5fbf8; }
.member-detail-address-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.member-detail-address-head b { color: #25332f; font-size: 13px; }
.member-detail-address p { min-height: 38px; margin: 7px 0 8px; color: #667085; font-size: 12px; line-height: 1.6; }
.member-detail-address .ghost-btn { padding-left: 0; color: var(--green); background: transparent; }
.member-detail-order-list { display: grid; gap: 0; margin-top: 7px; }
.member-detail-order { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(82px, auto) minmax(110px, auto); align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #eef2f0; }
.member-detail-order:last-child { border-bottom: 0; }
.member-detail-order-main { min-width: 0; }
.member-detail-order-main b { display: block; overflow: hidden; color: #25332f; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.member-detail-order-main small, .member-detail-order-money small, .member-detail-order-meta small { display: block; margin-top: 4px; color: #98a2b3; font-size: 10.5px; line-height: 1.45; }
.member-detail-order-money { text-align: right; }
.member-detail-order-money b { color: #172b26; font-size: 15px; }
.member-detail-order-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.member-detail-locked, .member-detail-empty { margin-top: 12px; padding: 18px; border: 1px dashed #d9e3df; border-radius: 12px; color: #7b8794; background: #fafcfb; text-align: center; font-size: 12px; line-height: 1.65; }
.member-detail-locked b { display: block; color: #344054; font-size: 13px; }
.member-detail-locked p { max-width: 620px; margin: 5px auto 0; }
.member-detail-loading { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 2px 12px; padding: 13px 15px; border-radius: 12px; color: #344054; background: #f5faf8; }
.member-detail-loading span { grid-row: 1 / 3; width: 24px; height: 24px; border: 3px solid #cfe4dc; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
.member-detail-loading b { font-size: 12px; }
.member-detail-loading small { color: #7b8794; font-size: 11px; }
.member-detail-warning { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid #f0d6a6; border-radius: 11px; color: #7b5514; background: #fffaf0; font-size: 12px; line-height: 1.55; }
.member-detail-warning b { font-size: 12.5px; }
.member-detail-more { margin: 10px 0 0; color: #98a2b3; font-size: 11px; text-align: center; }
.member-join-detail { display: grid; gap: 12px; }
.member-join-hero { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(220px, 340px); align-items: center; gap: 15px; padding: 18px; border: 1px solid #dcebe5; border-radius: 18px; background: linear-gradient(135deg, #f3fbf7 0%, #fff 58%, #fff9ea 100%); }
.member-join-hero-copy { min-width: 0; }
.member-join-hero-copy > span, .member-join-primary > span { display: block; color: #7c8b86; font-size: 10px; font-weight: 700; }
.member-join-hero-copy h3 { margin: 4px 0 0; color: #172b26; font-size: 20px; line-height: 1.35; }
.member-join-hero-copy p { margin: 5px 0 0; color: #667085; font-size: 12px; line-height: 1.5; }
.member-join-primary { min-width: 0; padding: 12px 14px; border: 1px solid #dcebe5; border-radius: 13px; background: rgba(255,255,255,.86); }
.member-join-primary b { display: block; overflow: hidden; margin-top: 5px; color: #0d6e5c; font-size: 17px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.member-join-primary small { display: block; margin-top: 5px; color: #72807b; font-size: 10.5px; line-height: 1.55; }
.member-join-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.member-join-metrics article { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.member-join-metrics span { display: block; color: #84908c; font-size: 10px; }
.member-join-metrics b { display: block; overflow: hidden; margin-top: 6px; color: #23352f; font-size: 13px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.member-join-timeline { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.member-join-timeline > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #edf2f0; }
.member-join-timeline > header h4 { margin: 0; color: #1d2939; font-size: 15px; }
.member-join-timeline > header span { color: #98a2b3; font-size: 10.5px; text-align: right; }
.member-join-record { padding: 13px 0; border-bottom: 1px dashed #e9efec; }
.member-join-record:last-child { border-bottom: 0; padding-bottom: 0; }
.member-join-record-head { display: flex; align-items: flex-start; gap: 9px; }
.member-join-record-head b { min-width: 0; color: #31433d; font-size: 12.5px; line-height: 1.55; }
.member-join-record-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 8px; color: #73817c; font-size: 10.5px; line-height: 1.45; }
.member-join-record p { margin: 7px 0 0; color: #66746f; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.member-join-source-note { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid #e3ece8; border-radius: 12px; color: #6c7a75; background: #f8fbfa; font-size: 11px; line-height: 1.6; }
.member-join-source-note b { color: #34443f; font-size: 12px; }
@media (max-width: 900px) {
  .member-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-detail-grid { grid-template-columns: 1fr; }
  .member-join-hero { grid-template-columns: 64px minmax(0, 1fr); }
  .member-join-primary { grid-column: 1 / -1; }
  .member-join-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .member-detail-hero { display: grid; padding: 16px; }
  .member-detail-person { align-items: flex-start; }
  .member-detail-avatar { width: 54px; height: 54px; flex-basis: 54px; font-size: 20px; }
  .member-detail-name-line h3 { font-size: 19px; }
  .member-detail-hero-actions { width: 100%; }
  .member-detail-hero-actions > button { flex: 1; }
  .member-detail-metrics { gap: 8px; }
  .member-detail-metrics article { padding: 12px; }
  .member-detail-metrics b { font-size: 20px; }
  .member-detail-card { padding: 14px; }
  .member-detail-card > header { display: grid; gap: 3px; }
  .member-detail-card > header span { text-align: left; }
  .member-detail-info-row { grid-template-columns: 74px minmax(0, 1fr); }
  .member-detail-address-list { grid-template-columns: 1fr; }
  .member-detail-order { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .member-detail-order-money { grid-column: 2; grid-row: 1; }
  .member-detail-order-meta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .member-detail-trigger-label { display: none; }
  .member-list-actions { gap: 4px; justify-content: flex-start; }
  .member-list-actions button { padding: 5px 6px; }
  .member-join-hero { grid-template-columns: 50px minmax(0, 1fr); padding: 15px; }
  .member-join-hero .member-detail-avatar { width: 50px; height: 50px; flex-basis: 50px; font-size: 19px; }
  .member-join-hero-copy h3 { font-size: 17px; }
  .member-join-metrics { gap: 7px; }
  .member-join-metrics article { padding: 11px; }
  .member-join-timeline { padding: 13px; }
  .member-join-timeline > header { display: grid; gap: 3px; }
  .member-join-timeline > header span { text-align: left; }
  .circle-member-drill { min-width: 150px; }
  .circle-member-drill em { display: none; }
}
.level-pill { display: inline-flex; padding: 4px 7px; border-radius: 6px; color: #667085; background: #f0f2f4; font-size: 9px; font-weight: 700; }
.level-pill.vip { color: #8a5b06; background: var(--gold-soft); }
.level-pill.svip { color: #633ca2; background: #f2edff; }
.permission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.member-level-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.permission-card { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.permission-card.highlight { border-color: #b9e2d5; box-shadow: inset 0 0 0 1px #e0f3ed; }
.permission-card-head { display: flex; justify-content: space-between; align-items: start; }
.permission-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--green-soft); font-size: 17px; }
.permission-card h3 { margin: 14px 0 5px; font-size: 14px; }
.permission-card p { min-height: 34px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.permission-card-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.permission-card-meta > span { padding: 4px 7px; border-radius: 7px; color: #667085; background: #f4f7f6; font-size: 10px; line-height: 1.35; }
.permission-card-meta b { color: #1d2939; }
.permission-card-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
.permission-card-fields label { display: block; margin: 0 0 4px; color: #6b7280; font-size: 10px; }
.permission-card-fields input { width: 100%; min-width: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.permission-free-note { display: flex; align-items: center; min-height: 34px; padding: 6px 8px; border-radius: 8px; color: #7b8794; background: #f6f8f7; font-size: 10px; line-height: 1.45; }
.lvc-free-validity-note {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #d4ebe3;
  border-radius: 10px;
  color: #365d55;
  background: #f3faf7;
  font-size: 12px;
  line-height: 1.6;
}
.lvc-free-validity-note b {
  flex: 0 0 auto;
  color: #0d6e5c;
  font-size: 12px;
}
.lvc-free-validity-note span { min-width: 0; overflow-wrap: anywhere; }
.lvc-free-validity-note[hidden],
.lvc-days-field[hidden] { display: none !important; }
@media (max-width: 480px) {
  .lvc-free-validity-note { grid-template-columns: 1fr; gap: 3px; }
}
@media (max-width: 760px) {
  .level-editor-panel .form-grid { grid-template-columns: minmax(0, 1fr); }
}
.level-card-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 9px; align-items: stretch; }
.level-card-actions > button { width: 100%; min-width: 0; min-height: 34px; padding: 5px 7px; font-size: 11px; white-space: normal; }
.permission-choice-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.permission-choice-grid > .form-field { min-width: 0; margin-bottom: 0; }
@media (max-width: 760px) {
  .permission-choice-grid { grid-template-columns: 1fr; }
  .member-level-grid { grid-template-columns: 1fr; }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .member-level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.member-decorate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}
.member-decorate-main { min-width: 0; display: grid; gap: 14px; }
.member-decorate-preview { position: sticky; top: 18px; width: 100%; margin: 0; }
.member-decorate-preview .deco-preview-phone { width: min(100%, 296px); border-width: 6px; border-radius: 25px; }
.member-decorate-preview-body { min-height: 0; padding: 0; overflow: hidden; background: #eef3f1; }
.member-decorate-preview-app { position: relative; inset: auto; width: 100%; height: 100%; min-height: 0; }
.member-decorate-preview-header { background: linear-gradient(145deg,#0a3e35,#0d6e5c 62%,#16866b); }
.member-decorate-preview-header .header-copy { padding: 17px 16px 14px; }
.member-decorate-preview-header .header-copy small { font-size: 9px; }
.member-decorate-preview-header .header-copy h3 { margin-top: 3px; font-size: 19px; }
.member-decorate-preview-scroll { background: #f4f7f6; }
.member-decorate-preview-scroll .mobile-page { padding: 12px; }
.member-decorate-preview-profile { border-radius: 16px; box-shadow: 0 8px 20px rgba(16,24,40,.12); }
.member-decorate-preview-profile .profile-head { padding: 13px 13px 8px; }
.member-decorate-preview-profile .profile-stats { padding: 8px 13px 13px; }
.member-decorate-preview-quick { margin-top: 9px; }
.member-decorate-preview-quick button { min-width: 0; }
.member-decorate-preview-benefit-cards .section-title { margin-bottom: 7px; }
.member-decorate-preview-offer { min-height: 54px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 8px; margin-top: 7px; padding: 7px; border: 1px solid #e3ebe7; border-radius: 11px; background: #fff; }
.member-decorate-preview-offer > i { width: 42px; height: 38px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; color: #fff; background: linear-gradient(135deg,#173e35,#0d6e5c); font-size: 14px; font-style: normal; font-weight: 900; }
.member-decorate-preview-offer > i span { width: 100%; height: 100%; display: grid; place-items: center; background-size: cover; background-position: center; }
.member-decorate-preview-offer b { display: block; overflow: hidden; color: #1d2939; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.member-decorate-preview-offer small { display: block; margin-top: 2px; color: #b54708; font-size: 9px; }
.member-decorate-preview-offer em { color: #0d6e5c; font-size: 9px; font-style: normal; font-weight: 800; }
.member-decorate-preview-menu-row { cursor: default; }
.member-decorate-preview-menu-row small { display: block; margin-top: 2px; color: #98a2b3; font-size: 8px; font-weight: 400; }
.member-decorate-preview-nav { flex-basis: 54px; }
.member-decorate-settings-grid { display: grid; gap: 10px; }
.member-decorate-toggle-line { display: grid; grid-template-columns: 190px minmax(0,1fr); align-items: center; gap: 10px; padding: 9px; border: 1px solid #e3ebe7; border-radius: 10px; background: #fbfdfc; }
.member-decorate-toggle-line .check-option { margin: 0; }
.member-decorate-single-check { display: flex; align-items: center; min-height: 38px; margin: 0; padding: 0 10px; border: 1px solid #e3ebe7; border-radius: 9px; background: #fbfdfc; }
.member-decorate-bg-row { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.member-decorate-bg-preview { width: 210px; height: 112px; display: grid; place-items: center; overflow: hidden; border: 1px dashed #cfdcd7; border-radius: 12px; color: #98a2b3; background: #f8fbfa; }
.member-decorate-bg-preview img { width: 100%; height: 100%; object-fit: cover; }
.member-decorate-bg-actions { min-width: 170px; display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.member-decorate-bg-actions label { cursor: pointer; }
.member-decorate-menu-list { display: grid; gap: 8px; }
.member-decorate-menu-row { display: grid; grid-template-columns: 78px minmax(150px,.8fr) minmax(200px,1.2fr); align-items: end; gap: 9px; padding: 9px; border: 1px solid #e5ece9; border-radius: 10px; background: #fbfdfc; }
.member-decorate-menu-row label { min-width: 0; }
.member-decorate-menu-row label > span { display: block; margin-bottom: 4px; color: #6b7280; font-size: 10px; }
.member-decorate-menu-row input:not([type="checkbox"]) { width: 100%; min-width: 0; }
.member-decorate-menu-show { min-height: 36px; margin: 0 !important; }
@media (max-width: 980px) {
  .member-decorate-layout { grid-template-columns: 1fr; }
  .member-decorate-preview { position: static; order: -1; }
}
@media (max-width: 640px) {
  .member-decorate-toggle-line,
  .member-decorate-menu-row { grid-template-columns: 1fr; align-items: stretch; }
}
.permission-count { margin-top: 15px; padding-top: 13px; border-top: 1px solid #eef1f3; color: var(--muted); font-size: 10px; }
.permission-count b { color: var(--ink); }
.rule-list { margin-top: 15px; }
.rule-item { display: flex; align-items: center; gap: 13px; padding: 15px; border-bottom: 1px solid #edf0f2; }
.rule-item:last-child { border-bottom: 0; }
.home-section-switch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px 14px;
}
.home-section-switch-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid #e4ebe8;
  border-radius: 11px;
  background: #fbfcfd;
}
.home-section-switch-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f0f3f2;
  color: #344054;
  font-size: 12px;
}
.home-section-switch-copy { flex: 1 1 auto; min-width: 0; }
.home-section-switch-copy b {
  display: block;
  overflow: hidden;
  color: #1d2939;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-section-switch-copy small { display: block; margin-top: 2px; color: #98a2b3; font-size: 10px; line-height: 1.3; }
.home-section-switch-item .toggle { flex: 0 0 auto; }
.rule-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #f2f5f7; }
.rule-item div { flex: 1; min-width: 0; }
.rule-item b { display: block; font-size: 11px; }
.rule-item p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.staff-account-row > .staff-account-main { flex: 1 1 auto; }
.staff-role-col { flex: 0 0 126px !important; min-width: 0; padding-left: 12px; border-left: 1px solid #edf0f2; }
.staff-role-col small { display: block; color: #98a2b3; font-size: 10px; }
.staff-role-col span { display: block; margin-top: 3px; overflow: hidden; color: #344054; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.staff-account-actions { flex: 0 0 auto !important; display: flex; align-items: center; gap: 7px; margin-left: auto; }
.login-policy-list { overflow: hidden; border: 1px solid #e4e9ee; border-radius: 13px; background: #fff; }
.login-policy-row { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 10px 12px; }
.login-policy-row + .login-policy-row { border-top: 1px solid #edf0f2; }
.login-policy-row.owner { background: #f7fbf9; }
.login-policy-meta { flex: 1 1 auto !important; min-width: 0; }
.login-policy-meta b { display: block; color: #1d2939; font-size: 12px; }
.login-policy-meta p { margin: 4px 0 0; overflow: hidden; color: #667085; font-size: 10px; line-height: 1.45; text-overflow: ellipsis; }
.login-policy-actions { flex: 0 0 auto !important; display: flex; align-items: center; gap: 7px; }
.login-policy-duration { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 9px; }
.form-field label.settings-inline-switch { display: flex; margin-bottom: 0; }
.toggle { position: relative; width: 37px; height: 21px; border: 0; border-radius: 99px; background: #d1d7df; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.toggle.on { background: var(--green); }
.toggle.on::after { left: 19px; }
@media (max-width: 760px) {
  .staff-account-row { flex-wrap: wrap; align-items: flex-start; }
  .staff-account-main { flex-basis: calc(100% - 52px) !important; }
  .staff-role-col { flex: 1 1 50% !important; margin-left: 49px; padding-left: 0; border-left: 0; }
  .staff-account-actions { flex: 1 1 50% !important; justify-content: flex-end; }
  .login-policy-row { align-items: flex-start; flex-wrap: wrap; }
  .login-policy-meta { flex-basis: calc(100% - 49px) !important; }
  .login-policy-actions { width: 100%; justify-content: flex-end; padding-left: 49px; }
  .login-policy-actions .ghost-btn { min-height: 34px; }
}
.empty-state { padding: 54px 20px; text-align: center; color: var(--muted); }
.empty-state b { display: block; color: var(--ink); font-size: 14px; }
.empty-state p { margin: 8px 0 0; font-size: 11px; }

.modal-layer { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 22px; background: rgba(8, 15, 28, .55); backdrop-filter: blur(5px); animation: fadeIn .18s ease; }
.modal-layer.material-folder-stacked-layer { z-index: 520; background: rgba(8, 15, 28, .34); backdrop-filter: blur(2px); animation: none; }
.modal-layer.material-folder-stacked-layer .modal-card { animation: slideUp .16s ease; }
.modal-card { width: min(720px, 100%); max-height: min(860px, calc(100vh - 44px)); overflow: auto; border-radius: 21px; background: #fff; box-shadow: var(--shadow-lg); animation: slideUp .22s ease; }
.modal-card.wide { width: min(900px, 100%); }
.modal-card.wide.material-picker-modal { width: min(1080px, 100%); }
.modal-card.compact { width: min(430px, 100%); }
.modal-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-head span { color: var(--muted); font-size: 11px; }
.modal-close { width: 31px; height: 31px; border: 0; border-radius: 9px; color: #697586; background: #f2f4f6; font-size: 16px; }
.modal-body { padding: 20px; }
.modal-footer { position: sticky; bottom: 0; z-index: 8; display: flex; justify-content: flex-end; gap: 9px; padding: 14px 20px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
.modal-card.material-picker-modal .modal-head { padding: 20px 24px; }
.modal-card.material-picker-modal .modal-head h3 { font-size: 22px; }
.modal-card.material-picker-modal .modal-head span { font-size: 14px; line-height: 1.55; }
.modal-card.material-picker-modal .modal-close { width: 38px; height: 38px; font-size: 19px; }
.modal-card.material-picker-modal .modal-body { padding: 22px 24px; }
.modal-card.material-picker-modal .modal-footer { padding: 15px 24px; }
.modal-card.material-picker-modal .modal-footer .primary-btn,
.modal-card.material-picker-modal .modal-footer .secondary-btn { min-height: 42px; font-size: 14px; }
.modal-layer.form-editor-close-layer { z-index: 560; background: rgba(8, 15, 28, .38); backdrop-filter: blur(3px); }
.modal-card.form-editor-close-card { width: min(430px, 100%); }
.form-editor-close-message { display: flex; align-items: flex-start; gap: 12px; color: #344054; }
.form-editor-close-mark { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: #8a5a12; background: #fff2d8; font-size: 20px; font-weight: 900; }
.form-editor-close-message > div { min-width: 0; }
.form-editor-close-message b { display: block; color: #1d2939; font-size: 15px; line-height: 1.45; }
.form-editor-close-message p { margin: 5px 0 0; color: #667085; font-size: 13px; line-height: 1.65; }
.form-editor-close-card .modal-footer { flex-wrap: wrap; }
.form-editor-close-card .modal-footer .primary-btn,
.form-editor-close-card .modal-footer .secondary-btn { width: auto; min-width: 116px; flex: 1 1 128px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 14px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 7px; color: #44505f; font-size: 11px; font-weight: 750; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid #dfe5eb; border-radius: 10px; outline: 0; padding: 10px 11px; color: var(--ink); background: #fff; font-size: 11px; transition: .18s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #7bcbb6; box-shadow: 0 0 0 3px rgba(33,176,141,.1); }
.member-login-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: stretch;
  gap: 8px;
}
.member-login-code-row input {
  min-width: 0;
  min-height: 42px;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}
.member-login-code-row .secondary-btn {
  min-height: 42px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}
.member-login-code-row .secondary-btn:disabled {
  color: #7d8b86;
  background: #f4f7f6;
  cursor: default;
  opacity: .8;
}
.member-login-phone-actions {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 8px;
}
.member-login-phone-actions .secondary-btn {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
  white-space: nowrap;
  justify-self: start;
}
.member-login-phone-actions > span {
  min-width: 0;
  color: #7a8782;
  font-size: 10.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.member-login-phone-actions .secondary-btn:disabled {
  color: #7d8b86;
  background: #f4f7f6;
  cursor: default;
  opacity: .8;
}
.member-login-hint {
  display: block;
  margin-top: 7px;
  color: #7a8782;
  font-size: 10.5px;
  line-height: 1.55;
}
.member-login-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -2px 0 13px;
}
.member-login-mode-row > span {
  color: #89948f;
  font-size: 10px;
  line-height: 1.4;
  text-align: right;
}
.member-login-mode-actions {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 14px;
}
.member-login-mode-btn {
  min-height: 28px;
  padding: 0;
  border: 0;
  color: var(--green);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}
.member-login-mode-btn:hover { color: #095f4e; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) {
  .member-login-mode-row { align-items: flex-start; flex-wrap: wrap; }
  .member-login-mode-actions { flex-basis: 100%; }
  .member-login-mode-row > span { text-align: left; }
}
.password-input { position: relative; }
.password-input > input { min-height: 44px; padding-right: 49px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 2px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: #667085;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}
.password-toggle:hover { color: #0d6e5c; background: #eef8f4; }
.password-toggle:focus-visible { outline: 2px solid #21b08d; outline-offset: -3px; }
.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-toggle .password-eye-closed { display: none; }
.password-toggle.is-visible .password-eye-open { display: none; }
.password-toggle.is-visible .password-eye-closed { display: block; }
.form-field textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.form-field .share-copy-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 10px;
  margin-bottom: 7px;
}
.form-field .share-copy-field-head label {
  min-width: 0;
  margin: 0;
}
.share-copy-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.share-copy-ai-btn {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 11px;
  border: 1px solid #bfe2d7;
  border-radius: 9px;
  color: #0d6e5c;
  background: linear-gradient(135deg, #f1fbf7, #fffaf0);
  box-shadow: 0 2px 8px rgba(13, 110, 92, .06);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.share-copy-ai-btn:hover:not(:disabled) {
  border-color: #79c6b1;
  background: linear-gradient(135deg, #e8f9f2, #fff4d8);
  transform: translateY(-1px);
}
.share-copy-ai-btn:focus-visible {
  outline: 2px solid #21b08d;
  outline-offset: 2px;
}
.share-copy-ai-btn:disabled,
.share-copy-ai-btn.is-loading {
  color: #687b75;
  border-color: #dbe7e2;
  background: #f3f7f5;
  box-shadow: none;
  cursor: wait;
  transform: none;
}
.share-copy-rule-btn {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 9px;
  border: 1px solid #dce5e1;
  border-radius: 9px;
  color: #5d6b66;
  background: #f8faf9;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.share-copy-rule-btn:hover {
  border-color: #a9d4c7;
  color: #0d6e5c;
  background: #f0faf6;
}
.share-copy-rule-btn:focus-visible {
  outline: 2px solid #21b08d;
  outline-offset: 2px;
}
.share-copy-limit-hint {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  color: #7b8885;
}
.share-copy-rules-popover {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: grid;
  place-items: center;
  padding: 18px;
}
.share-copy-rules-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(12, 31, 26, .48);
  backdrop-filter: blur(3px);
  cursor: default;
}
.share-copy-rules-dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(13, 110, 92, .14);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(12, 39, 31, .24);
  animation: slideUp .2s ease;
}
.share-copy-rules-dialog > header {
  position: relative;
  flex: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #edf2f0;
  background: linear-gradient(135deg, #f7fcf9, #fffaf0);
}
.share-copy-rules-dialog h3 {
  margin: 0;
  color: #155346;
  font-size: 20px;
  line-height: 1.25;
}
.share-copy-rules-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #0d6e5c;
  background: #e8f7f1;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}
.share-copy-rules-dialog header p {
  max-width: 500px;
  margin: 5px 0 0;
  color: #697873;
  font-size: 12px;
  line-height: 1.6;
}
.share-copy-rules-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #456159;
  background: #e9f4ef;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.share-copy-rules-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px 20px;
}
.share-copy-rules-body .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.share-copy-rules-body .form-field.full,
.share-copy-rules-body .access-box.full {
  grid-column: 1 / -1;
}
.share-copy-rules-body .field-hint {
  display: block;
  margin-top: 5px;
  line-height: 1.5;
}
.share-copy-rule-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.share-copy-rule-list-head label { margin: 0; }
.share-copy-rule-list {
  display: grid;
  gap: 7px;
}
.share-copy-rule-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}
.share-copy-rule-row > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0d6e5c;
  background: #eaf7f2;
  font-size: 11px;
  font-weight: 800;
}
.share-copy-rule-row input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #dfe5eb;
  border-radius: 9px;
  font-size: 13px;
}
.share-copy-rule-row input:focus {
  border-color: #65bfa3;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(33, 176, 141, .12);
}
.share-copy-rule-row button {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #f0cbc6;
  border-radius: 9px;
  color: #b42318;
  background: #fff7f6;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.share-copy-rule-empty {
  padding: 11px 12px;
  border: 1px dashed #d9e5e1;
  border-radius: 9px;
  color: #7a8782;
  background: #fafcfb;
  font-size: 12px;
  line-height: 1.5;
}
.share-copy-rules-dialog > footer {
  position: relative;
  flex: 0 0 auto;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid #edf2f0;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
}
@media (max-width: 520px) {
  .form-field .share-copy-field-head {
    align-items: flex-start;
  }
  .share-copy-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .share-copy-ai-btn {
    min-height: 32px;
    padding-inline: 10px;
  }
  .share-copy-rule-btn {
    min-height: 32px;
  }
  .share-copy-rules-popover {
    align-items: end;
    padding: 8px;
  }
  .share-copy-rules-dialog {
    width: 100%;
    max-height: calc(100vh - 16px);
    border-radius: 18px;
  }
  .share-copy-rules-dialog > header,
  .share-copy-rules-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .share-copy-rules-body .form-grid {
    grid-template-columns: 1fr;
  }
  .share-copy-rules-body .form-field.full,
  .share-copy-rules-body .access-box.full {
    grid-column: 1;
  }
  .share-copy-rules-dialog > footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .share-copy-rule-list-head {
    align-items: flex-start;
  }
  .share-copy-rule-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }
  .share-copy-rule-row button {
    grid-column: 2;
    justify-self: end;
    min-height: 32px;
  }
}
.upload-box { min-height: 120px; display: grid; place-items: center; padding: 18px; border: 1px dashed #c6d0d9; border-radius: 13px; color: var(--muted); background: #fafcfd; text-align: center; }
.upload-box b { display: block; margin-bottom: 5px; color: #44505f; font-size: 12px; }
.upload-box span { font-size: 10px; }
.file-picked { margin-top: 8px; color: var(--green); font-size: 10px; font-weight: 700; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.check-option { position: relative; display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 11px; }
/* 表单里的勾选项：全局的 .form-field label / .form-field input 会把复选框撑成"整行输入框"，
   这里用更高优先级盖回来，保证复选框就是一个小方框、文字和方框在同一行。 */
.form-field label.check-option {
  display: flex; align-items: center; gap: 8px; margin-bottom: 0;
  padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: #344054; font-size: 12px; font-weight: 600; cursor: pointer;
}
.form-field label.check-option input[type="checkbox"],
.form-field label.check-option input[type="radio"] {
  width: auto; height: auto; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; flex: 0 0 auto; accent-color: var(--green);
}
.form-field label.check-option:has(input:checked) { border-color: #8ed3bf; background: #f3fbf8; }
/* 会员卡编辑：三个"展示位置"开关并排一行（等宽） */
.check-inline-row { display: flex; gap: 8px; }
.form-field .check-inline-row label.check-option {
  flex: 1 1 0; min-width: 0; justify-content: center; padding: 9px 8px; white-space: nowrap;
}
@media (max-width: 720px) {
  .check-inline-row { flex-direction: column; }
  .form-field .check-inline-row label.check-option { white-space: normal; }
}
.check-option:has(input:checked) { border-color: #8ed3bf; background: #f3fbf8; }
.check-option input { accent-color: var(--green); }
.csv-preview { max-height: 150px; overflow: auto; margin-top: 10px; padding: 11px; border-radius: 10px; color: #526070; background: #f7f9fb; font-family: Consolas, monospace; font-size: 9px; line-height: 1.7; white-space: pre; }
.media-player { position: relative; height: 248px; overflow: hidden; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(140deg, #0d6e5c, #18243a); }
.media-player.audio { height: 210px; position: relative; display: block; padding: 0; background: linear-gradient(140deg, #263954, #101827); }
.media-player.audio .wave-top {
  position: absolute; left: 50%; top: 66%; transform: translate(-50%, -50%);
  align-items: flex-end; justify-content: center;
  margin: 0; padding: 0; gap: 0;
  width: 78%; max-width: 320px; height: 40px;
  overflow: visible; background: none; border-radius: 0;
}
.media-player.audio .wave-top i {
  flex: 0 0 auto; height: 50%; transform: none; transform-origin: bottom center;
  margin: 0 1.5px;
  border-radius: 2px 2px 0 0;
  background: #35d7a6;
  box-shadow: 0 0 6px rgba(0,0,0,.35);
  transition: height .09s linear;
}
.media-player.audio .wave-top i:nth-child(2n) { height: 62%; }
.media-player.audio .wave-top i:nth-child(3n) { height: 88%; }
.media-player.audio .wave-top i:nth-child(4n) { height: 38%; }
.media-player.audio .wave-top i:nth-child(5n) { height: 74%; }
.media-player.audio .wave-top i:nth-child(7n) { height: 50%; }
.media-player.audio .audio-player-footer {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; align-items: center;
}
.media-player.audio .audio-player-footer .background-play-control { position: static; right: auto; bottom: auto; left: auto; }
.media-player.audio .customer-audio {
  position: absolute; left: 0; bottom: 0; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
.media-player.audio.has-cover { position: relative; }
.media-player.audio.has-cover::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, rgba(8,15,28,.08), rgba(8,15,28,.22));
  pointer-events: none;
}
.media-player.audio.has-cover > * { z-index: 1; }
.media-player.article { height: 140px; background: linear-gradient(140deg, #b77b25, #1e2b42); }
.media-play { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(255,255,255,.13); backdrop-filter: blur(8px); font-size: 23px; }
.wave { display: flex; align-items: center; gap: 3px; height: 46px; margin-top: 18px; }
.wave i { width: 4px; height: 20%; border-radius: 4px; background: rgba(255,255,255,.35); }
.wave i:nth-child(3n) { height: 80%; }
.wave i:nth-child(4n) { height: 52%; }
.content-detail { padding: 19px 21px 24px; }
.content-detail h2 { margin: 10px 0 9px; font-size: 21px; line-height: 1.35; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 10px; }
.detail-desc { margin: 18px 0; color: #526070; font-size: 12px; line-height: 1.8; }
.access-box { padding: 13px; border-radius: 12px; background: #f7f9fb; }
.access-box b { display: block; margin-bottom: 5px; font-size: 11px; }
.access-box span { color: var(--muted); font-size: 10px; }
.purchase-box { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px; border: 1px solid #f0d89f; border-radius: 14px; background: var(--gold-soft); }
.purchase-box .purchase-price { flex: 1; }
.purchase-box b { display: block; color: #76500a; font-size: 22px; }
.purchase-box span { display: block; margin-top: 4px; color: #98702c; font-size: 9px; }
.article-body { margin-top: 16px; color: #3f4b5a; font-size: 13px; line-height: 2; }
.article-body h3 { margin: 20px 0 8px; color: var(--ink); font-size: 15px; }
.article-body blockquote { margin: 16px 0; padding: 12px 14px; border-left: 3px solid var(--green); background: var(--green-soft); }

.toast { position: fixed; z-index: 950; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); bottom: auto; max-width: min(92vw, 560px); text-align: center; transform: translate(-50%, -18px); opacity: 0; pointer-events: none; padding: 11px 16px; border-radius: 10px; color: #fff; background: #17243a; box-shadow: var(--shadow-md); font-size: 11px; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 1150px) {
  .overview-panel { grid-template-columns: 1fr; gap: 20px; }
  .overview-devices { min-height: auto; grid-template-columns: 310px 1fr; }
  .admin-shell { grid-template-columns: 168px 1fr; }
  .stats-grid, .quick-action-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .topbar { height: auto; padding: 12px 15px; flex-wrap: wrap; gap: 10px; }
  .brand { min-width: auto; flex: 1; }
  .server-state { display: none; }
  .device-tabs { order: 2; width: 100%; overflow-x: auto; }
  .device-tab { flex: 1 0 auto; }
  .stage { padding: 16px 10px; }
  .overview-copy h1 { font-size: 34px; }
  .overview-devices { grid-template-columns: 1fr; }
  .admin-preview-card { display: none; }
  .admin-shell { display: block; min-height: auto; border: 0; border-radius: 0; box-shadow: none; }
  .admin-sidebar { display: none; }
  .admin-topbar { height: auto; padding: 14px 15px; gap: 10px; }
  .admin-top-actions .admin-user { display: none; }
  .admin-top-actions .secondary-btn { display: none; }
  .admin-view { padding: 15px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { padding: 13px; }
  .stat-card b { font-size: 20px; }
  .quick-action-grid { grid-template-columns: 1fr 1fr; }
  .permission-grid { grid-template-columns: 1fr; }
  .data-panel { overflow-x: auto; }
  .data-table { min-width: 760px; }
  .modal-layer { padding: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
}
@media (max-width: 470px) {
  .phone-wrap { width: 100%; max-width: 390px; margin-inline: auto; }
  .phone-frame { width: 100%; height: min(795px, calc(100vh - 126px)); min-height: 650px; border-width: 5px; border-radius: 40px; }
  .capability-grid { grid-template-columns: 1fr; }
  .overview-actions { flex-direction: column; }
  .overview-login-note { margin-bottom: 22px; }
  .primary-btn, .secondary-btn { width: 100%; }
}

/* Customer-installed app mode: show only the member experience. */
body.customer-mode .topbar,
body.customer-mode #overviewPanel,
body.customer-mode #appShell,
body.customer-mode #adminShell,
body.customer-mode .device-note {
  display: none !important;
}
body.customer-mode .stage {
  padding: 0;
}
body.customer-mode .phone-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
}
body.customer-mode .phone-frame {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  height: var(--wenbo-customer-viewport-height, 100dvh);
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.customer-mode .phone-speaker,
body.customer-mode .phone-status,
body.customer-mode .wechat-capsule {
  display: none;
}
body.customer-mode .mini-header .header-copy {
  padding: calc(6px + env(safe-area-inset-top)) 22px 8px;
}
body.customer-mode .mini-nav {
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
body.customer-mode #miniShell.hidden {
  display: flex !important;
}
body.customer-mode #miniShell {
  display: block;
}

/* High-contrast customer app header */
.mini-header {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(145deg, #0d6e5c 0%, #103f48 68%, #0b2535 100%);
}
.mini-header::after {
  content: "";
  position: absolute;
  top: -46px;
  right: -28px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.mini-header .header-copy,
.mini-header .header-search {
  position: relative;
  z-index: 1;
}
.mini-header .header-copy small {
  color: rgba(255,255,255,.82);
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.mini-header .header-copy h3 {
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0,0,0,.18);
}
.mini-header .header-search {
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.14);
}

/* Membership upgrade card */
.member-benefit-section .benefit-count {
  color: #9a6a12;
  background: #fff5dc;
  border-radius: 99px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 800;
}
.member-upgrade-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 18px;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 6%, rgba(255,196,72,.28), transparent 34%),
    linear-gradient(135deg, #1d2736 0%, #0c1420 100%);
  box-shadow: 0 12px 28px rgba(11,18,32,.18);
}
.member-upgrade-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -52px;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(242,184,75,.2);
  border-radius: 50%;
}
.member-upgrade-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.member-crown {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #4a3407;
  background: linear-gradient(145deg, #ffe49b, #f2b84b);
  box-shadow: 0 7px 16px rgba(242,184,75,.2);
  font-size: 18px;
  font-weight: 900;
}
.member-copy {
  min-width: 0;
  flex: 1;
}
.member-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.member-name-row b {
  font-size: 14px;
  white-space: nowrap;
}
.member-name-row span {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 6px;
  color: #5a3e02;
  background: #ffdf8e;
  font-size: 8px;
  font-weight: 900;
}
.member-copy p {
  margin: 5px 0 0;
  color: rgba(255,255,255,.62);
  font-size: 9px;
  line-height: 1.5;
}
.member-upgrade-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.member-price {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 3px;
}
.member-price strong {
  color: #ffd875;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.03em;
}
.member-price > span {
  color: rgba(255,255,255,.72);
  font-size: 10px;
}
.member-price small {
  width: 100%;
  margin-top: 5px;
  color: rgba(255,255,255,.48);
  font-size: 8px;
}
.member-open-btn {
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 38px;
  border: 0;
  border-radius: 11px;
  padding: 0 14px;
  color: #4a3407;
  background: linear-gradient(145deg, #ffe49b, #f2b84b);
  box-shadow: 0 7px 16px rgba(242,184,75,.18);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
}
.member-open-btn:active {
  transform: scale(.98);
}

/* Brand logo integration */
.mini-header::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 56px;
  right: 18px;
  width: 115px;
  height: 41px;
  background: url("assets/brand/wenbo-logo.png") center / contain no-repeat;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.18));
  pointer-events: none;
}
.mini-header .header-copy {
  padding-right: 136px;
}
body.customer-mode .mini-header::before {
  top: calc(10px + env(safe-area-inset-top));
  right: 20px;
}
.admin-sidebar .admin-logo .brand-mark.small {
  width: 113px;
  height: 43px;
  border-radius: 0;
  color: transparent;
  background: url("assets/brand/wenbo-logo.png") left center / contain no-repeat;
  box-shadow: none;
}
.admin-logo > div:last-child {
  display: none;
}
.profile-card {
  position: relative;
  overflow: hidden;
}

.profile-head,
.profile-stats {
  position: relative;
  z-index: 1;
}
@media (max-width: 360px) {
  .mini-header::before { width: 98px; height: 36px; }
  .mini-header .header-copy { padding-right: 116px; }
}

body.customer-mode .mini-header .header-copy {
  padding-right: 136px;
}
@media (max-width: 360px) {
  body.customer-mode .mini-header .header-copy {
    padding-right: 116px;
  }
}

/* Material library */
/* 素材分类条：以前是"一行横着排 + 横向滚动"，文件夹一多，后面几个按钮就被截在屏幕外，看不全。
   现在改成换行显示：类别排一行（窄屏自动往下折），分隔线断行，文件夹另起一行 —— 全都看得见。
   （2026-10-14 改） */
.material-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  overflow-x: visible;
  padding: 1px 0 11px;
}
.material-chip {
  flex: 0 0 auto;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  color: #667085;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.material-chip > b { margin-left: 4px; color: #9aa5b1; font-weight: 800; }
.material-chip:hover { border-color: #9bd8c8; background: #f7fcfb; }
.material-chip.active { border-color: var(--green); background: var(--green); color: #fff; }
.material-chip.active > b { color: rgba(255,255,255,.82); }
.material-strip .strip-sep {
  /* 分隔线改成"整行占位"：起到换行作用 —— 这一行结束，文件夹从下一行开始 */
  flex: 0 0 100%;
  width: 100%;
  height: 0;
  margin: 0;
  background: none;
}
.material-strip .material-folder-all {
  flex: 0 0 auto;
  min-height: 27px;
  padding: 0 10px;
  border: 0;
  border-radius: 99px;
  background: #eef2f5;
  color: #667085;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.material-strip .material-folder-all.active { color: #fff; background: var(--green); }
.material-folder-chip > button { border: 0; white-space: nowrap; cursor: pointer; }
.material-folder-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  /* 名字特别长的文件夹：在胶囊里截断显示"…"，不要把整条/整页撑宽（2026-10-14） */
  max-width: 100%;
  border-radius: 99px;
  background: #eef2f5;
}
.material-folder-chip.active { background: var(--green-soft); }
.material-folder-chip > button:first-child {
  min-height: 27px;
  padding: 0 11px;
  color: #667085;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.material-folder-chip.active > button:first-child { color: var(--green); }
/* 文件夹上的"✎ / ×"小图标已取消：改名和删除统一走这一个按钮（2026-10-14） */
.material-strip .material-folder-manage {
  flex: 0 0 auto;
  min-height: 27px;
  padding: 0 11px;
  border: 1px dashed #cbd5e1;
  border-radius: 99px;
  background: #fff;
  color: #667085;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.material-strip .material-folder-manage:hover { border-color: #9bd8c8; color: #0d6e5c; background: #f7fcfb; }
/* 「管理文件夹」抽屉：一行一个文件夹，右边是改名 / 删除 */
.folder-manage { display: grid; gap: 8px; }
.folder-manage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.folder-manage-name { min-width: 0; }
.folder-manage-name b { display: block; overflow: hidden; color: #1d2939; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.folder-manage-name span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.folder-manage-row .row-actions { flex: 0 0 auto; }
/* 素材选择弹窗（加章节 / 替换素材）里的类别筛选条 */
.material-picker-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.material-picker-types .material-picker-type {
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  color: #667085;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.material-picker-types .material-picker-type:hover { border-color: #9bd8c8; background: #f7fcfb; }
.material-picker-types .material-picker-type.active { border-color: var(--green); background: var(--green); color: #fff; }
/* 替换素材窗口里「已经点选的那一个」：换个类别重新渲染后也要能看出来 */
.material-picker-grid .material-picker-item.is-picked {
  border-color: var(--green);
  background: #f1faf7;
  box-shadow: 0 0 0 2px rgba(13, 110, 92, .25);
}
.material-picker-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.material-picker-inline span {
  min-width: 0;
  overflow: hidden;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.material-upload-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 14px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #526070;
  background: #f4f7f9;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.material-upload-status > span:last-child { min-width: 0; word-break: break-word; }
.material-upload-queue {
  display: grid;
  gap: 8px;
  max-height: min(280px, 36vh);
  overflow: auto;
  padding: 10px;
  border: 1px solid #dce7e3;
  border-radius: 14px;
  background: #f7faf9;
  scrollbar-gutter: stable;
}
.material-upload-queue[hidden] { display: none; }
.material-upload-queue-head {
  position: sticky;
  z-index: 1;
  top: -10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -10px -10px 0;
  padding: 10px 12px;
  border-bottom: 1px solid #e2ece8;
  background: rgba(247, 250, 249, .96);
  color: #43514d;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}
.material-upload-queue-head b { color: var(--green); }
.material-upload-queue-head small { color: #75827e; font-size: 10px; font-weight: 700; }
.material-upload-file {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e0e8e5;
  border-radius: 12px;
  background: #fff;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.material-upload-file.is-uploading {
  border-color: #efc45c;
  background: #fffdf7;
  box-shadow: 0 0 0 2px rgba(242, 184, 75, .1);
}
.material-upload-file.is-done {
  border-color: #9bd8c8;
  background: #f5fcf9;
}
.material-upload-file.is-error {
  border-color: #efaaa4;
  background: #fff7f6;
}
.material-upload-file-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #0d6e5c;
  background: #e8f5f1;
  font-size: 15px;
  font-weight: 900;
}
.material-upload-file.is-audio .material-upload-file-icon { color: #24658e; background: #eaf4fb; }
.material-upload-file.is-image .material-upload-file-icon { color: #8b5b00; background: #fff4db; }
.material-upload-file.is-document .material-upload-file-icon { color: #704373; background: #f7edf8; }
.material-upload-file-main { display: grid; min-width: 0; gap: 5px; }
.material-upload-file-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.material-upload-file-head b {
  min-width: 0;
  overflow: hidden;
  color: #2f3d39;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.material-upload-file-head span {
  flex: 0 0 auto;
  min-width: 34px;
  color: #83908c;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}
.material-upload-file.is-uploading .material-upload-file-head span { color: #9a6500; }
.material-upload-file.is-done .material-upload-file-head span { color: var(--green); }
.material-upload-file.is-error .material-upload-file-head span { color: #b42318; }
.material-upload-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eeeb;
}
.material-upload-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14866d, #21b08d);
  transition: width .22s ease;
}
.material-upload-file.is-pending .material-upload-progress i { background: #bfcac6; }
.material-upload-file.is-uploading .material-upload-progress i {
  background: linear-gradient(90deg, #d79916, #f2b84b, #d79916);
  background-size: 200% 100%;
  animation: material-upload-progress-flow 1.1s linear infinite;
}
.material-upload-file.is-error .material-upload-progress i { background: #d65a50; }
.material-upload-file small {
  overflow: hidden;
  color: #7b8884;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.material-upload-file.is-uploading small { color: #805b10; }
.material-upload-file.is-done small { color: #267563; }
.material-upload-file.is-error small { color: #a62b22; }
@keyframes material-upload-progress-flow {
  to { background-position: -200% 0; }
}
.modal-footer .material-upload-footer-shell {
  width: 100%;
  display: grid;
  gap: 10px;
}
.modal-footer .material-upload-status { margin-top: 0; }
.material-upload-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}
.material-upload-footer-actions .primary-btn,
.material-upload-footer-actions .secondary-btn {
  width: auto;
  min-width: 112px;
  flex: 0 0 auto;
}
.material-upload-status.is-uploading {
  color: #744d00;
  border-color: #efc45c;
  background: #fff8e6;
  box-shadow: 0 0 0 3px rgba(242, 184, 75, .14);
}
.material-upload-status.is-success {
  color: #0b6652;
  border-color: #8fd5c2;
  background: #edf9f5;
  box-shadow: 0 0 0 3px rgba(13, 110, 92, .09);
}
.material-upload-status.is-warning {
  color: #8a4f00;
  border-color: #f1cd82;
  background: #fff9ed;
}
.material-upload-status.is-error {
  color: #a62b22;
  border-color: #f0aaa4;
  background: #fff2f0;
}
.material-upload-spinner {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: material-upload-spin .72s linear infinite;
}
.material-upload-state-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #14866d;
  font-size: 13px;
  font-weight: 900;
}
.material-upload-submit-btn.is-uploading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 124px;
  cursor: wait;
  opacity: .9;
}
.material-upload-submit-btn.is-success {
  color: #fff;
  background: #14866d;
}
.material-upload-submit-btn.is-error {
  color: #fff;
  background: #b42318;
}
@keyframes material-upload-spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 520px) {
  .material-upload-queue { max-height: min(230px, 34vh); }
  .material-upload-queue-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .material-upload-footer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .material-upload-footer-actions .primary-btn,
  .material-upload-footer-actions .secondary-btn { width: 100%; min-width: 0; }
  .material-upload-footer-actions .secondary-btn[hidden] + .primary-btn { grid-column: 1 / -1; }
}
.material-auto-name-progress-wrap { padding: 8px 2px 4px; }
.material-auto-name-progress { height: 9px; overflow: hidden; border-radius: 99px; background: #e8efec; }
.material-auto-name-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #14866d, #21b08d); transition: width .25s ease; }
.material-auto-name-progress-wrap p { margin: 10px 0 0; color: #526070; font-size: 13px; line-height: 1.65; text-align: center; }
.material-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.material-picker-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: auto auto;
  row-gap: 5px;
  column-gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  text-align: left;
}
.material-picker-item:hover { border-color: #9bd8c8; background: #f7fcfb; }
.material-picker-item .thumb {
  grid-row: 1 / 3;
  width: 76px;
  height: 76px;
  font-size: 24px;
}
.material-picker-item b {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.material-picker-item small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 700px) {
  /* 手机上标签多：不横着藏起来，改成往下折行显示，保证每个按钮都看得见（2026-10-14 改） */
  .material-strip { flex-wrap: wrap; }
  .material-picker-grid { grid-template-columns: 1fr; }
}

/* Inline editing in material list */
.material-inline-name {
  min-width: 220px;
}
.material-inline-name > span {
  display: block;
  margin: 2px 7px 0;
  color: var(--muted);
  font-size: 9px;
}
.material-inline-input,
.material-inline-select {
  width: 100%;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: 0;
  color: #1d2939;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  transition: .16s ease;
}
.material-inline-input {
  padding: 0 7px;
}
.material-inline-select {
  min-width: 88px;
  padding: 0 24px 0 7px;
  cursor: pointer;
}
.material-inline-input:hover,
.material-inline-select:hover {
  border-color: #dfe5eb;
  background: #fbfcfd;
}
.material-inline-input:focus,
.material-inline-select:focus {
  border-color: #7bcbb6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(33,176,141,.1);
}
.material-category-cell-button {
  width: 100%;
  min-height: 32px;
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #1d2939;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.material-category-cell-button:hover {
  border-color: #dfe5eb;
  background: #fbfcfd;
}

/* Course section editor */
.course-section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.course-section-toolbar > span {
  color: var(--muted);
  font-size: 10px;
}
.course-section-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.course-section-empty {
  padding: 22px 14px;
  border: 1px dashed #cbd5df;
  border-radius: 12px;
  color: var(--muted);
  background: #fafcfd;
  text-align: center;
  font-size: 10px;
}
.course-section-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.course-section-index {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 9px;
  font-weight: 900;
}
.course-section-order {
  width: 44px;
  height: 30px;
  flex: 0 0 auto;
  padding: 0 4px;
  border: 1px solid #d9e1e8;
  border-radius: 9px;
  color: #1d2939;
  background: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}
.course-section-order:focus { border-color: #5db99d; }
.course-section-main {
  min-width: 0;
  flex: 1;
}
.course-section-title {
  width: 100%;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: 0;
  padding: 0 7px;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}
.course-section-title:hover,
.course-section-title:focus {
  border-color: #d9e1e8;
  background: #fff;
}
.course-section-main small {
  display: block;
  margin: 2px 7px 0;
  color: var(--muted);
  font-size: 9px;
}
.course-section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}
.course-section-actions button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #526070;
  background: #f0f3f5;
  font-size: 12px;
}
.course-section-actions button:not(.danger) {
  width: auto;
  min-width: 42px;
  padding: 0 10px;
  white-space: nowrap;
}
.course-section-actions button:disabled {
  opacity: .3;
  cursor: not-allowed;
}
.course-section-actions button.danger {
  color: var(--red);
  background: var(--red-soft);
}
/* AI 自动生成字幕按钮：没有字幕的小节高亮提示 */
.course-section-actions button.auto-subtitle-btn { color: #126c59; background: #eef7f4; font-weight: 700; }
.course-section-actions button.auto-subtitle-btn.need { color: #fff; background: #16866b; }
.course-section-actions button.auto-subtitle-btn:disabled { opacity: .5; }
.course-section-drag {
  flex: 0 0 auto;
  width: 30px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #98a2b3;
  background: #f3f6f8;
  cursor: grab;
  touch-action: none;
  user-select: none;
  font-size: 15px;
  font-weight: 900;
}
.course-section-drag:active { cursor: grabbing; }
.course-section-row.is-dragging {
  opacity: .55;
  box-shadow: 0 8px 20px rgba(16,24,40,.18);
  border-color: #5db99d;
}
.material-picker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.material-picker-count {
  color: #667085;
  font-size: 13px;
}
.material-picker-count b {
  color: var(--green);
}
.material-picker-tip {
  margin-bottom: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #526070;
  background: #f4f8f7;
  font-size: 12.5px;
  line-height: 1.65;
}
.material-picker-grid-select .material-picker-item {
  grid-template-columns: auto 76px minmax(0, 1fr);
}
.material-picker-item.selectable {
  cursor: pointer;
}
.material-picker-item.selectable input {
  grid-row: 1 / 3;
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
.material-picker-item.selectable .thumb {
  grid-column: 2;
}
.material-picker-item.selectable b,
.material-picker-item.selectable small {
  grid-column: 3;
}

/* Customer course sections */
.public-section-list {
  margin: 18px 0;
  padding: 14px;
  border-radius: 15px;
  background: #f7f9fb;
}
.public-section-title {
  margin-bottom: 10px;
  color: #344054;
  font-size: 11px;
  font-weight: 900;
}
.public-section-item {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 9px;
  padding: 10px 8px;
  border: 0;
  border-radius: 10px;
  color: #526070;
  background: transparent;
  text-align: left;
}
.public-section-item + .public-section-item {
  border-top: 1px solid #e8edf1;
}
.public-section-item.active {
  color: var(--green);
  background: #fff;
  box-shadow: 0 5px 16px rgba(16,24,40,.06);
}
.public-section-item > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e9eef2;
  font-size: 9px;
  font-weight: 900;
}
.public-section-item.active > span {
  color: #fff;
  background: var(--green);
}
.public-section-item b {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.public-section-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.public-section-item i {
  font-style: normal;
  font-size: 11px;
}

/* Course section batch controls */
.course-section-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.course-section-select-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  color: #667085;
  font-size: 10px;
  cursor: pointer;
}
.course-section-select-all input,
.course-section-check {
  accent-color: var(--green);
}
.course-section-check {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.course-section-status {
  min-width: 76px;
  height: 30px;
  border: 1px solid #dfe5eb;
  border-radius: 8px;
  outline: 0;
  color: #526070;
  background: #fff;
  font-size: 9px;
}
.course-section-row.is-draft {
  border-color: #c8d0ce;
  color: #667085;
  background: #f1f3f2;
}
.course-section-row.is-draft .course-section-title {
  text-decoration: line-through;
}
@media (max-width: 700px) {
  .course-section-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Course management parity upgrade */
.course-toolbar { flex-wrap: wrap; }
.course-toolbar .search-box { max-width: 260px; }
.course-toolbar .spacer { min-width: 12px; }
.danger-outline { color: #c43f3f !important; border-color: #f1caca !important; background: #fff7f7 !important; }
.course-data-panel { overflow-x: auto; }
.course-table { min-width: 1320px; }
.course-table th, .course-table td { padding-left: 10px; padding-right: 10px; }
.course-table th:first-child, .course-table td:first-child { width: 38px; text-align: center; }
.course-table th:first-child input, .course-table td:first-child input { width: 15px; height: 15px; accent-color: #16866b; }
.content-order-input {
  width: 54px; height: 30px; padding: 0 6px; border: 1px solid #dfe8e4; border-radius: 8px;
  color: #182230; background: #fff; font-size: 13px; font-weight: 800; text-align: center;
}
.content-order-input:focus { border-color: #16866b; outline: none; box-shadow: 0 0 0 2px rgba(22,134,107,.14); }
.content-title-cell { min-width: 100px; }
.content-title-cell > div { min-width: 0; }
.content-title-cell b { max-width: none; overflow: visible; text-overflow: clip; white-space: normal; word-break: break-word; line-height: 1.4; }
.type-chip, .benefit-chip, .owner-chip { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 7px; color: #47605a; background: #edf7f3; font-size: 9px; font-weight: 800; white-space: nowrap; }
.benefit-chip { color: #7b5913; background: #fff6df; }
.owner-chip { color: #41536d; background: #f0f4f8; }
.metric-strong { display: block; color: #1d2b3b; font-size: 13px; line-height: 1.1; }
.metric-note { display: block; max-width: 72px; margin-top: 3px; overflow: hidden; color: #9aa3ae; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.date-cell { color: #697584 !important; font-size: 9px !important; white-space: nowrap; }
.course-actions { flex-wrap: nowrap; min-width: 218px; }
.course-actions button { padding: 4px 6px; }
.pagination-bar { display: flex; align-items: center; gap: 14px; margin-top: 12px; color: #7f8996; font-size: 10px; }
.pagination-bar > label { display: flex; align-items: center; gap: 6px; }
.pagination-bar select { height: 30px; padding: 0 24px 0 8px; border: 1px solid var(--line); border-radius: 8px; color: #526070; background: #fff; font-size: 10px; }
.pagination-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.pagination-actions button { min-width: 29px; height: 29px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: #526070; background: #fff; font-size: 9px; }
.pagination-actions button.active { color: #fff; border-color: #16866b; background: #16866b; }
.pagination-actions button:disabled { opacity: .42; cursor: not-allowed; }
.page-ellipsis { padding: 0 3px; color: #a5aeb8; }
.content-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.content-data-card { padding: 16px; border: 1px solid #e8eeeb; border-radius: 14px; background: linear-gradient(145deg, #f8fcf9, #fff); }
.content-data-card span, .content-data-card small { display: block; color: #87938f; font-size: 9px; }
.content-data-card b { display: block; margin: 8px 0 5px; color: #183c35; font-size: 20px; }
.content-data-note { margin-top: 14px; padding: 11px 12px; border-radius: 10px; color: #7d6a39; background: #fff9e9; font-size: 9px; line-height: 1.6; }
.course-student-data-entry { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; }
.course-student-data-entry > div { min-width: 0; }
.course-student-data-entry b,
.course-student-data-entry span { display: block; }
.course-student-data-entry span { margin-top: 4px; line-height: 1.65; }
.course-student-data-entry .primary-btn { flex: 0 0 auto; margin-top: 0; }
.course-students-page { display: grid; gap: 12px; }
.course-student-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.course-student-summary article { min-width: 0; padding: 13px 14px; border: 1px solid #e4ece8; border-radius: 14px; background: linear-gradient(145deg, #f8fcf9, #fff); }
.course-student-summary span,
.course-student-summary small { display: block; color: #87938f; font-size: 10px; line-height: 1.45; }
.course-student-summary b { display: block; margin: 6px 0 4px; color: #183c35; font-size: 22px; line-height: 1; }
.course-student-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.course-student-toolbar .search-box { min-width: 280px; max-width: 520px; flex: 1 1 340px; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.course-student-toolbar .search-box input { min-width: 0; width: 100%; border: 0; outline: 0; color: #34443f; background: transparent; font-size: 11px; }
.course-student-toolbar .spacer { flex: 1 1 auto; }
.course-student-note { padding: 10px 12px; border: 1px solid #e3ece8; border-radius: 11px; color: #667570; background: #f8fbfa; font-size: 10px; line-height: 1.65; }
.course-student-table-wrap { overflow-x: auto; }
.course-student-table { min-width: 900px; }
.course-student-table th,
.course-student-table td { padding-left: 12px; padding-right: 12px; }
.course-student-table td > b,
.course-student-table td > small { display: block; }
.course-student-table td > small { margin-top: 3px; color: #8b96a1; font-size: 9px; line-height: 1.45; }
.course-student-person { min-width: 150px; }
.course-student-person b { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-student-person span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-student-phone { color: #34443f; white-space: nowrap; }
.course-student-tags { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px; min-width: 100px; }
.course-student-tags .tag { white-space: nowrap; }
.course-student-registration { max-width: 190px; color: #56655f; font-size: 10px; line-height: 1.55; word-break: break-word; }
.course-student-table .row-actions { white-space: nowrap; }
.course-student-table .row-actions button { white-space: nowrap; }
.course-student-table .row-actions button:disabled { opacity: .42; cursor: not-allowed; }
.course-student-footnote { color: #96a09c; font-size: 9px; line-height: 1.55; text-align: right; }
.share-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #e8eeeb; border-radius: 14px; background: #fafcfb; }
.share-card-cover { width: 58px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #fff; font-size: 18px; }
.share-card b { display: block; font-size: 12px; }
.share-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.share-link-label { display: block; margin: 16px 0 7px; color: #66717e; font-size: 10px; font-weight: 800; }
.share-link-box { display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.share-link-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: #526070; background: transparent; font-size: 9px; }
.share-qr-panel { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 14px; border: 1px solid #dfece7; border-radius: 14px; background: linear-gradient(135deg, #f7fcfa, #fff); }
.share-qr-panel.is-compact { gap: 12px; padding: 11px; }
.share-qr-panel-image { flex: 0 0 auto; display: grid; place-items: center; width: 150px; min-height: 150px; padding: 7px; border: 1px solid #e4ece8; border-radius: 12px; background: #fff; }
.share-qr-panel.is-compact .share-qr-panel-image { width: 138px; min-height: 138px; }
.share-qr-panel-image img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 7px; }
.share-qr-panel-copy { min-width: 0; flex: 1 1 180px; }
.share-qr-panel-copy b { display: block; color: #183c35; font-size: 13px; line-height: 1.45; }
.share-qr-panel-copy span { display: block; margin-top: 5px; color: #6c7a75; font-size: 10px; line-height: 1.65; }
.share-qr-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.share-qr-panel-actions .primary-btn,
.share-qr-panel-actions .secondary-btn { margin-top: 0; }
.public-share-page { max-width: 720px; min-height: calc(100% - 58px); margin: 0 auto; padding: 16px 14px 36px; box-sizing: border-box; }
.public-share-empty { margin: 14vh auto 0; }
.public-coupon-hero { position: relative; overflow: hidden; padding: 25px 22px; border-radius: 20px; color: #fff; background: radial-gradient(circle at 88% 12%, rgba(242,184,75,.42), transparent 30%), linear-gradient(135deg, #0d6e5c, #12483f); box-shadow: 0 16px 34px rgba(13,110,92,.2); }
.public-coupon-hero:after { content: ""; position: absolute; right: -28px; bottom: -45px; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.public-coupon-kicker { display: inline-flex; padding: 4px 8px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: rgba(255,255,255,.9); font-size: 10px; }
.public-coupon-value { margin-top: 16px; font-family: Georgia, "Times New Roman", serif; font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -2px; }
.public-coupon-value small { margin-left: 3px; font-family: inherit; font-size: 18px; letter-spacing: 0; }
.public-coupon-hero h2 { margin: 10px 0 6px; font-size: 20px; }
.public-coupon-hero p { margin: 0; color: rgba(255,255,255,.8); font-size: 12px; }
.public-share-card { margin-top: 14px; padding: 17px; border: 1px solid #e4ece8; border-radius: 18px; background: #fff; box-shadow: 0 10px 26px rgba(20,55,46,.06); }
.public-share-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #edf2f0; }
.public-share-meta span { flex: 0 0 72px; color: #8a9692; font-size: 11px; }
.public-share-meta b { min-width: 0; color: #34443f; font-size: 11px; line-height: 1.65; text-align: right; }
.public-coupon-claim, .public-form-submit { width: 100%; min-height: 46px; margin-top: 16px; font-size: 14px !important; }
.public-coupon-claim.is-done { color: #1a6f5d !important; background: #eaf8f3 !important; border-color: #bfe3d7 !important; }
.public-share-note { margin: 12px 0 0; color: #88948f; font-size: 10px; line-height: 1.7; text-align: center; }
.public-share-error { margin-top: 12px; padding: 9px 11px; border-radius: 10px; color: #8a3b33; background: #fff2ef; font-size: 11px; line-height: 1.55; }
.public-share-intro { padding: 20px 4px 4px; }
.public-share-intro > span { color: #14866d; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.public-share-intro h2 { margin: 8px 0 7px; color: #183c35; font-size: 24px; line-height: 1.3; }
.public-share-intro p { margin: 0; color: #6f7d78; font-size: 12px; line-height: 1.75; }
.public-form-login { margin-top: 18px; text-align: center; }
.public-form-login > b { display: block; color: #183c35; font-size: 18px; }
.public-form-login > p { margin: 8px auto 16px; max-width: 420px; color: #73807b; font-size: 11px; line-height: 1.7; }
.public-form-options { display: grid; gap: 8px; }
.public-form-options label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #e2eae7; border-radius: 10px; background: #fbfcfc; cursor: pointer; }
.public-form-options label:has(input:checked) { border-color: #78c9b2; color: #0d6e5c; background: #effaf6; }
.public-form-options input { width: auto !important; margin: 0; }
.public-form-other-answer{display:grid;gap:6px;margin-top:8px;padding:10px 12px;border:1px solid #f0d39a;border-radius:10px;background:#fffaf0}
.public-form-other-answer[hidden]{display:none!important}
.public-form-other-answer label{color:#7a5521;font-size:12px;font-weight:700}
.public-form-other-answer input{min-width:0;width:100%;border-color:#e7c37a;background:#fff}
.public-share-success { margin: 14vh auto 0; padding: 28px 20px; border: 1px solid #dfece7; border-radius: 20px; text-align: center; background: #fff; }
.public-share-success > span { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; color: #fff; background: #14866d; font-size: 24px; }
.public-share-success h2 { margin: 0 0 8px; color: #183c35; }
.public-share-success p { margin: 0 0 18px; color: #73807b; font-size: 12px; line-height: 1.7; }
.public-form-submissions { display: grid; gap: 10px; }
.public-form-submission-count { color: #66746f; font-size: 11px; }
.public-form-submission-card { padding: 13px; border: 1px solid #e3ebe8; border-radius: 12px; background: #fff; }
.public-form-submission-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid #edf2f0; }
.public-form-submission-head b { color: #183c35; font-size: 12px; }
.public-form-submission-head span { color: #8a9692; font-size: 10px; }
.public-form-submission-card dl { display: grid; grid-template-columns: minmax(80px, 30%) 1fr; gap: 7px 12px; margin: 10px 0 0; font-size: 11px; }
.public-form-submission-card dt { color: #89958f; }
.public-form-submission-card dd { min-width: 0; margin: 0; color: #394943; line-height: 1.6; word-break: break-word; }
.share-help { margin: 9px 0 0; color: #929ba6; font-size: 9px; line-height: 1.5; }
@media (max-width: 820px) {
  .course-table { min-width: 1240px; }
  .course-toolbar .search-box { max-width: none; width: 100%; }
  .course-toolbar select, .course-toolbar .secondary-btn { flex: 1 1 auto; }
  .pagination-bar { flex-wrap: wrap; }
  .pagination-actions { width: 100%; margin-left: 0; }
  .content-data-grid { grid-template-columns: 1fr; }
  .course-student-data-entry { align-items: flex-start; flex-direction: column; }
  .course-student-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-student-toolbar .search-box { min-width: 0; width: 100%; max-width: none; flex-basis: 100%; }
  .course-student-toolbar .spacer { display: none; }
  .course-student-footnote { text-align: left; }
  .share-qr-panel { align-items: flex-start; }
  .share-qr-panel-image { width: 138px; min-height: 138px; }
  .share-qr-panel.is-compact { flex-direction: column; align-items: center; text-align: center; }
  .share-qr-panel.is-compact .share-qr-panel-copy { flex: 0 1 auto; }
  .public-share-page { padding: 12px 10px 28px; }
  .public-coupon-value { font-size: 42px; }
  .public-share-meta { flex-direction: column; gap: 4px; }
  .public-share-meta b { text-align: left; }
}


/* PC maximized course editor and material grid */
.modal-card.max {
  width: min(1520px, calc(100vw - 28px));
  height: calc(100vh - 28px);
  max-height: none;
  border-radius: 18px;
}
.modal-card.max .modal-head { padding: 16px 24px; }
.modal-card.max .modal-body { padding: 22px 24px; }
.modal-card.max .modal-footer { padding: 14px 24px; }
.content-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
.content-editor-main,
.content-editor-side,
.content-editor-preview { min-width: 0; }
.content-editor-side {
  padding: 18px;
  border: 1px solid #e3ebe7;
  border-radius: 16px;
  background: #f8fbfa;
}
.content-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.content-editor-heading b,
.content-editor-heading span { display: block; }
.content-editor-heading b { color: #1d2939; font-size: 14px; }
.content-editor-heading span { margin-top: 3px; color: #87928f; font-size: 9px; }
.content-editor-heading .editor-mode-tag {
  flex: 0 0 auto;
  margin: 0;
  padding: 5px 9px;
  border-radius: 99px;
  color: #16745f;
  background: #e7f7f2;
  font-size: 9px;
  font-weight: 800;
}
.side-heading { margin-bottom: 14px; }
.content-editor-side .editor-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.content-editor-side .editor-settings-grid .form-field { margin-bottom: 12px; }
.content-editor-side .editor-access-grid { grid-template-columns: 1fr; }
.content-editor-side .check-option { padding: 10px 11px; }
.content-cover-upload { min-height: 108px; }
.course-section-panel {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #e3ebe7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,24,40,.04);
}
.content-editor-main .course-section-panel { margin-top: 6px; }
.course-editor-publish-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #e3ebe7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,24,40,.04);
}
.course-editor-publish-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.course-editor-publish-head b { display: block; color: #1d2939; font-size: 14px; }
.course-editor-publish-head span { display: block; margin-top: 3px; color: #87928f; font-size: 10px; line-height: 1.45; }
.course-editor-publish-head em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 99px;
  color: #16745f;
  background: #e7f7f2;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.course-editor-basic-grid { gap: 12px; }
.course-editor-basic-grid .form-field { margin: 0; }
.course-editor-validity {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e2ebe7;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbfdfc, #f5faf8);
}
.course-editor-validity .circle-assignment-label { color: #344054; }
.course-editor-validity small { line-height: 1.5; }
.course-editor-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.course-editor-scope-grid > .form-field {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #e5ece9;
  border-radius: 12px;
  background: #fbfcfd;
}
.course-editor-groups-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  align-items: end;
  gap: 12px;
  margin-top: 12px;
}
.course-editor-groups-row .form-field { margin: 0; }
.course-editor-groups-row .editor-side-note { margin: 0; min-height: 44px; justify-content: center; }
.content-editor-preview {
  width: 100%;
  margin: 0;
  align-self: start;
}
.content-editor-preview .deco-preview-phone { width: min(100%, 290px); border-width: 6px; border-radius: 25px; }
.course-section-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.course-section-panel-head b { display: block; color: #1d2939; font-size: 14px; }
.course-section-panel-head span { display: block; margin-top: 3px; color: #87928f; font-size: 9px; }
.course-section-panel-head .section-count-badge {
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 10px;
  border-radius: 99px;
  color: #16745f;
  background: #e7f7f2;
  font-size: 9px;
  font-weight: 800;
}
.course-section-panel .course-section-toolbar { margin-bottom: 12px; }
.course-section-panel .course-section-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
.course-section-panel .course-section-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
}
.course-section-panel .course-section-main { width: 100%; }
.course-section-panel .course-section-title { height: 30px; font-size: 12px; }
.course-section-panel .course-section-main small { font-size: 9px; }
.course-section-panel .course-section-status { min-width: 72px; height: 30px; font-size: 11px; }
.course-section-panel .course-section-actions { justify-content: flex-end; white-space: nowrap; margin-left: auto; }
.course-section-subline { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 5px; }
.course-section-subline small { min-width: 0; overflow: hidden; color: #87928f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.course-section-subline .mini-tag { flex: 0 0 auto; background: #fff8e6; border-color: #f6d68a; color: #8a5b00; }
.course-section-chapter { width: 150px; height: 28px; flex: 0 0 auto; padding: 0 8px; border: 1px solid #d9e1e8; border-radius: 8px; color: #475467; background: #fff; font-size: 10px; }
.course-chapter-group { overflow: hidden; border: 1px solid #dce9e4; border-radius: 13px; background: #fbfdfc; }
.course-chapter-group + .course-chapter-group { margin-top: 10px; }
.course-chapter-group.is-ungrouped { border-style: dashed; background: #fcfcfd; }
.course-chapter-head { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid #e8f0ed; background: #f5faf8; }
.course-chapter-head > div { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.course-chapter-head span { flex: 0 0 auto; color: #0d6e5c; font-size: 9px; font-weight: 800; }
.course-chapter-head b { overflow: hidden; color: #263f38; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.course-chapter-head small { flex: 0 0 auto; color: #8b9995; font-size: 9px; }
.course-chapter-sections { display: grid; gap: 7px; padding: 8px; }
.course-chapter-admin-list { display: grid; gap: 8px; }
.course-chapter-admin-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 9px; border: 1px solid #e1ebe7; border-radius: 11px; background: #fbfdfc; }
.course-chapter-admin-row > input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #d8e3df; border-radius: 9px; color: #273b35; background: #fff; font-size: 12px; }
.course-chapter-admin-count { color: #7b8985; font-size: 10px; white-space: nowrap; }
.course-chapter-admin-actions { display: flex; align-items: center; gap: 5px; }
.course-chapter-admin-actions button { min-height: 30px; padding: 0 9px; border: 1px solid #dce6e2; border-radius: 8px; color: #52625d; background: #fff; font-size: 10px; cursor: pointer; }
.course-chapter-admin-actions button.danger { color: #b42318; border-color: #f0d3ce; background: #fff8f7; }
.course-chapter-admin-actions button:disabled { opacity: .4; cursor: not-allowed; }
.course-chapter-admin-new { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #dfe9e5; }
.course-chapter-admin-new input { min-width: 0; flex: 1 1 auto; height: 38px; padding: 0 11px; border: 1px solid #d8e3df; border-radius: 9px; font-size: 12px; }
.editor-side-note {
  margin-top: 14px;
  padding: 12px 13px;
  border-radius: 11px;
  color: #6f7b79;
  background: #edf5f2;
  font-size: 9px;
  line-height: 1.65;
}
.editor-side-note b { display: block; margin-bottom: 3px; color: #2d5d52; font-size: 10px; }
/* 素材工具条：搜索 / 筛选 / 排序 / 批量操作 一行，并且吸顶固定，滚动列表时一直在 */
.material-toolbar {
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 6;
  padding: 9px 0;
  margin-bottom: 5px;
  background: #f7f9fb;
}
.material-toolbar .search-box { max-width: 320px; }
.material-batch-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.material-batch-actions .secondary-btn[disabled],
.material-batch-actions .danger-btn[disabled] { opacity: .45; cursor: not-allowed; }
/* 云端空间清理面板 */
.material-cloud-panel { margin-top: 14px; }
.material-storage-bar { position: relative; margin-top: 12px; }
.material-storage-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: 99px; background: #eef3f1; }
.material-storage-bar > i { position: relative; display: block; height: 10px; border-radius: 99px; background: linear-gradient(90deg, #21b08d, #0d6e5c); }
.material-storage-bar > span { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
/* 左下角「云端存储」：点一下跳到素材管理看详情 */
.cleanup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cleanup-head b { font-size: 15px; }
.cleanup-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.cleanup-group { margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cleanup-group.is-empty { background: #fbfcfd; }
.cleanup-group-head { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.cleanup-group-head input { width: 15px; height: 15px; accent-color: var(--green); }
.cleanup-group-head b { font-size: 13px; }
.cleanup-group-head span { margin-left: auto; color: var(--muted); font-size: 10px; }
.cleanup-group-tip { margin: 6px 0 8px; color: #8a959f; font-size: 10px; line-height: 1.6; }
.cleanup-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px solid #f1f4f6; font-size: 11px; }
.cleanup-row input { flex: 0 0 auto; width: 15px; height: 15px; accent-color: var(--green); }
.cleanup-row-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3e4a5a; font-weight: 700; }
.cleanup-row-meta { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #98a2b3; font-size: 10px; }
.cleanup-row em { flex: 0 0 auto; color: #6b7a86; font-style: normal; font-size: 10px; }
.cleanup-empty { padding: 8px 0 2px; color: #9aa5b1; font-size: 10px; }
.cleanup-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 4px; padding: 11px 14px; border-radius: 12px; background: #f1faf7; border: 1px solid #9bd8c8;
}
.cleanup-foot > span { color: #2d6a5c; font-size: 11px; }
.cleanup-foot > span b { font-size: 14px; color: var(--green); }
.sidebar-storage {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: inherit;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.sidebar-storage:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.sidebar-storage b { display: block; color: #fff; font-size: 11px; }
.sidebar-storage span { display: block; margin-top: 3px; color: #cfe3dd; font-size: 10px; }
.sidebar-storage em { display: block; margin-top: 4px; color: #8fd8c4; font-size: 10px; font-style: normal; }
.material-cloud-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); gap: 10px; }
.material-cloud-stats > div {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.material-cloud-stats > div.is-warn { border-color: #f0c36d; background: #fffaf0; }
.material-cloud-stats b { display: block; font-size: 20px; letter-spacing: -.02em; }
.material-cloud-stats > div.is-warn b { color: #b26a00; }
.material-cloud-stats span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.material-cloud-stats em { display: block; margin-top: 4px; color: #6c7a86; font-size: 10px; font-style: normal; }
.material-cloud-list {
  max-height: 190px; overflow: auto; margin-top: 12px; padding: 8px 12px;
  border: 1px dashed #d8e3e0; border-radius: 12px; background: #fbfdfc;
}
.material-cloud-list > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid #eef3f1; font-size: 11px; color: #526070; }
.material-cloud-list > div:last-child { border-bottom: 0; }
.material-cloud-list > div span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-cloud-list > div em { flex: 0 0 auto; color: #8a959f; font-style: normal; font-size: 10px; }
/* 素材列表：跟会员 / 课程列表一样，选「每页 10 / 20 / 50 条」就真的往下排多少行，整页滚动。
   （以前这里是 max-height: calc(100vh - 320px) + 内部滚动：窗口高度跟屏幕走、行在窗口里滚，
   不管选 10 条还是 50 条，屏幕上永远只露得出十来行，看起来就像"分页没生效"。2026-10-14 改） */
.material-data-panel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-height: none;
}
/* 素材列表列宽（2026-10-14 调整）：名称列收窄到刚好放得下缩略图 + 10 个字的名称，
   其余列各按自己的内容给宽度；只有"操作"列不写死宽度 —— 屏幕再宽，多出来的空间
   也只留在最右边（表格照样铺满面板），不会再把名称列撑成一大块。 */
.material-table { min-width: 944px; table-layout: fixed; }
.material-table col.col-check { width: 44px; }
.material-table col.col-name { width: 236px; }
.material-table col.col-type { width: 108px; }
.material-table col.col-folder { width: 180px; }
.material-table col.col-size { width: 92px; }
.material-table col.col-date { width: 132px; }
.material-table th,
.material-table td { padding: 11px 12px; }
/* 表头不再"钉住不动"：列表改成跟页面一起滚，表头不在固定窗口里，钉住会跟顶部工具栏打架（2026-10-14） */
.material-table thead th {
  background: #fafbfc;
  box-shadow: inset 0 -1px 0 var(--line);
}
.material-table th:first-child,
.material-table td:first-child { text-align: center; }
.material-table th:first-child input,
.material-table td:first-child input { width: 15px; height: 15px; accent-color: #16866b; }
.material-name-cell .cell-main { min-width: 0; }
.material-name-cell .material-inline-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 素材列表缩略图：视频默认显示首帧，图片直接显示图片 */
.asset-thumb { position: relative; width: 68px; height: 46px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #0f1b2d; cursor: pointer; }
.asset-thumb video,
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-thumb .asset-thumb-icon { margin-top: 0; color: #fff; font-size: 17px; line-height: 1; }
.asset-thumb .asset-thumb-badge { position: absolute; right: 3px; bottom: 3px; margin-top: 0; padding: 1px 5px; border-radius: 6px; background: rgba(0,0,0,.62); color: #fff; font-size: 9px; line-height: 1.5; }
.asset-thumb:hover { box-shadow: 0 0 0 2px #16866b inset; }
/* 素材预览：第一次点缩略图打开窗口，第二次点预览画面切换成播放器并播放 */
.material-preview-stage {
  position: relative;
  width: 100%;
  height: clamp(260px, 50vh, 520px);
  display: grid;
  place-items: center;
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: #0f172a;
  font-family: inherit;
  cursor: pointer;
}
.material-preview-stage > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0f172a;
  pointer-events: none;
}
.material-preview-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,10,20,.02), rgba(3,10,20,.5));
  pointer-events: none;
}
.material-preview-play-cue {
  position: relative;
  z-index: 2;
  min-width: 132px;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 16px;
  color: #fff;
  background: rgba(8, 18, 30, .7);
  box-shadow: 0 14px 36px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.material-preview-play-cue i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  border-radius: 50%;
  color: #fff;
  background: #14866d;
  font-size: 17px;
  font-style: normal;
  text-indent: 3px;
  box-shadow: 0 6px 18px rgba(20,134,109,.42);
}
.material-preview-play-cue b { font-size: 15px; line-height: 1.25; }
.material-preview-play-cue small { color: rgba(255,255,255,.72); font-size: 11px; }
.material-preview-stage:hover .material-preview-play-cue {
  border-color: rgba(255,255,255,.5);
  background: rgba(8, 18, 30, .82);
}
.material-preview-stage-audio {
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 18%, rgba(33,176,141,.36), transparent 31%),
    radial-gradient(circle at 86% 82%, rgba(242,184,75,.24), transparent 30%),
    linear-gradient(145deg, #142b32, #0b1f2b 58%, #101827);
}
.material-preview-stage-audio::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 0;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
}
.material-preview-audio-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(56vw, 330px);
  height: min(56vw, 330px);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  color: rgba(255,255,255,.13);
  background: repeating-radial-gradient(circle, rgba(255,255,255,.07) 0 1px, transparent 1px 13px);
}
.material-preview-audio-disc i { font-size: clamp(58px, 12vw, 108px); font-style: normal; }
.material-preview-audio-wave {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 26px;
  z-index: 1;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: .55;
}
.material-preview-audio-wave i {
  width: 4px;
  height: 28%;
  display: block;
  border-radius: 99px;
  background: rgba(255,255,255,.72);
}
.material-preview-audio-wave i:nth-child(2n) { height: 58%; }
.material-preview-audio-wave i:nth-child(3n) { height: 92%; }
.material-preview-audio-wave i:nth-child(4n) { height: 42%; }
.material-preview-audio-wave i:nth-child(5n) { height: 74%; }
.material-preview-audio-wave.is-playing i { animation: material-preview-wave .72s ease-in-out infinite alternate; }
.material-preview-audio-wave.is-playing i:nth-child(2n) { animation-delay: -.3s; }
.material-preview-audio-wave.is-playing i:nth-child(3n) { animation-delay: -.52s; }
.material-preview-player {
  width: 100%;
  min-height: 220px;
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}
.material-preview-player-video {
  height: clamp(260px, 50vh, 520px);
  display: grid;
  place-items: center;
}
.material-preview-player-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0f172a;
}
.material-preview-player-audio {
  position: relative;
  min-height: 250px;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 15%, rgba(33,176,141,.34), transparent 32%),
    linear-gradient(145deg, #142b32, #0b1f2b 58%, #101827);
}
.material-preview-player-audio .material-preview-audio-disc {
  position: relative;
  top: auto;
  left: auto;
  width: 126px;
  height: 126px;
  transform: none;
  color: rgba(255,255,255,.28);
}
.material-preview-player-audio .material-preview-audio-disc i { font-size: 52px; }
.material-preview-player-audio .material-preview-audio-wave {
  position: static;
  width: min(100%, 520px);
  height: 48px;
  opacity: .8;
}
.material-preview-player-audio audio { width: min(100%, 620px); }
@keyframes material-preview-wave {
  from { transform: scaleY(.45); }
  to { transform: scaleY(1); }
}
@media (max-width: 700px) {
  .material-preview-stage,
  .material-preview-player-video { height: min(48vh, 380px); min-height: 230px; }
  .material-preview-play-cue { min-width: 118px; padding: 13px 17px; border-radius: 14px; }
  .material-preview-play-cue i { width: 38px; height: 38px; }
  .material-preview-play-cue b { font-size: 14px; }
  .material-preview-player-audio { min-height: 220px; padding: 18px; }
}
.material-name-cell .material-inline-name { min-width: 0; width: 100%; }
/* 名称最多露出 10 个字左右，长的用"…"收尾；鼠标停在上面会显示完整名字（title）。
   这里只影响"看着多长"，素材的真正名字一个字都不会改。 */
.material-name-cell .material-inline-input { overflow: hidden; text-overflow: ellipsis; max-width: 136px; }
.material-type-cell .material-inline-select,
.material-folder-cell .material-inline-select { min-width: 0; width: 100%; }
.material-size-cell { color: #687582 !important; white-space: nowrap; }
.material-date-cell { color: #7b8794 !important; font-size: 9px !important; white-space: nowrap; }
.material-actions { flex-wrap: nowrap; justify-content: flex-start; }
.material-actions button { padding: 6px 8px; white-space: nowrap; }
@media (max-width: 1180px) {
  .content-editor-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
  .modal-card.max { width: calc(100vw - 12px); height: calc(100vh - 12px); border-radius: 14px; }
  .content-editor-layout { grid-template-columns: 1fr; }
  .content-editor-side { position: static; }
  .content-editor-preview { position: static; order: -1; }
}
@media (max-width: 700px) {
  .modal-card.max { width: 100vw; height: 100vh; max-height: none; border-radius: 0; }
  .modal-card.max .modal-head,
  .modal-card.max .modal-body,
  .modal-card.max .modal-footer { padding-left: 15px; padding-right: 15px; }
  .content-editor-side .editor-settings-grid { grid-template-columns: 1fr; }
  .course-editor-scope-grid,
  .course-editor-groups-row { grid-template-columns: 1fr; }
  .course-editor-publish-panel { padding: 13px; }
  .material-table { min-width: 980px; }
}


@media (max-width: 900px) {
  .course-section-panel-head { align-items: flex-start; flex-direction: column; }
  .course-section-panel .course-section-row { gap: 10px; }
  .course-section-panel .course-section-status { min-width: 64px; }
}
@media (max-width: 650px) {
  .course-section-panel { padding: 14px; }
  .course-section-panel .course-section-row { flex-wrap: wrap; gap: 7px; padding: 7px 8px; }
  .course-section-panel .course-section-drag { width: 22px; height: 22px; }
  .course-section-panel .course-section-order { width: 34px; height: 26px; }
  .course-section-panel .course-section-main { flex: 1 1 calc(100% - 76px); }
  .course-section-panel .course-section-title { height: 28px; font-size: 11px; }
  .course-section-panel .course-section-status { min-width: 56px; height: 28px; font-size: 10px; }
  .course-section-subline { align-items: flex-start; flex-wrap: wrap; }
  .course-section-chapter { width: 100%; }
  .course-section-panel .course-section-actions { width: 100%; justify-content: flex-start; margin-left: 0; overflow-x: auto; padding-bottom: 2px; }
  .course-section-panel .course-section-actions button { width: auto; min-width: 24px; height: 28px; flex: 0 0 auto; }
  .course-chapter-head { align-items: flex-start; flex-wrap: wrap; }
  .course-chapter-head > div { flex: 1 1 220px; flex-wrap: wrap; }
  .course-chapter-admin-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .course-chapter-admin-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .course-chapter-admin-actions button { width: 100%; min-width: 0; }
  .course-chapter-admin-new { flex-wrap: wrap; }
  .course-chapter-admin-new input { flex-basis: 100%; }
  .course-chapter-admin-new .primary-btn { width: 100%; }
}


/* Adaptive customer video player */
.media-player.video-player {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 180px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #05080d;
}
.video-player-stage {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: inherit;
  background: #000;
}
.customer-video {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  border: 0;
  outline: 0;
  background: #000;
}
.player-fullscreen-btn {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  color: #fff;
  background: rgba(0,0,0,.46);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 800;
}
.player-fullscreen-btn:hover { background: rgba(0,0,0,.7); }
.background-play-control {
  position: absolute; z-index: 4; right: 10px; bottom: 46px; top: auto; left: auto;
  display: flex; align-items: center; gap: 6px; padding: 4px 5px 4px 9px;
  border: 1px solid rgba(190,244,220,.42); border-radius: 999px;
  color: #fff3bd; background: rgba(8,15,28,.74); backdrop-filter: blur(8px);
  white-space: nowrap;
}
.background-play-title { font-size: 10px; font-weight: 800; line-height: 1; }
.background-play-toggle {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  width: 70px; height: 26px; flex: 0 0 auto; padding: 0; overflow: hidden;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: #0d6e5c;
}
.background-play-toggle::before {
  content: ""; position: absolute; z-index: 1; top: 2px; bottom: 2px; left: 2px;
  width: calc(50% - 2px); border-radius: 999px; background: #fff3bd;
  box-shadow: 0 2px 6px rgba(0,0,0,.22); transition: transform .2s ease;
}
.background-play-toggle.active::before { transform: translateX(100%); }
.bg-play-choice {
  position: relative; z-index: 2; display: grid; place-items: center;
  color: #fff; font-size: 9px; font-weight: 800; line-height: 1;
}
.background-play-toggle:not(.active) .bg-play-off,
.background-play-toggle.active .bg-play-on { color: #0d6e5c; font-weight: 900; }
.media-player.audio .background-play-control { top: auto; right: 10px; bottom: 10px; left: auto; }
.video-background-play-row { display: flex; justify-content: flex-end; margin-top: 6px; padding-right: 2px; }
.background-play-control.outside-video { position: static; margin: 0 0 0 auto; }
@media (max-width: 470px) {
  .media-player.video-player,
  .video-player-stage { min-height: 160px; border-radius: 11px; }
  .player-fullscreen-btn { top: 8px; right: 8px; padding: 5px 8px; font-size: 9px; }
  .background-play-control { top: auto; right: 8px; bottom: 44px; left: auto; gap: 5px; padding: 3px 4px 3px 7px; }
  .background-play-title { font-size: 9px; }
  .background-play-toggle { width: 64px; height: 24px; }
  .bg-play-choice { font-size: 8px; }
  .media-player.audio .background-play-control { top: auto; right: 8px; bottom: 8px; left: auto; }
  .video-background-play-row { margin-top: 5px; padding-right: 0; }
}


/* Full-page customer course experience for older readers */
.mini-app.customer-detail-active .mini-nav { display: none; }
.mini-app.customer-detail-active .mini-view { padding: 0; background: #f4f7f6; }
.customer-page-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 16px;
  color: #fff;
}
.customer-back-btn {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 11px;
  color: #fff;
  background: rgba(255,255,255,.13);
  font-size: 15px;
  font-weight: 800;
}
.customer-page-heading { min-width: 0; text-align: center; }
.customer-page-heading small { display: block; color: rgba(255,255,255,.72); font-size: 12px; }
.customer-page-heading b { display: block; overflow: hidden; margin-top: 4px; color: #fff; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.customer-header-placeholder { width: 66px; }
body.customer-mode .customer-page-header { padding-top: calc(18px + env(safe-area-inset-top)); }
.customer-fullpage { min-height: 100%; padding: 14px 14px 34px; background: #f4f7f6; }
.customer-fullpage-inner { width: 100%; max-width: 760px; margin: 0 auto; }
.customer-fullpage .customer-video-player {
  position: relative;
  width: 100%;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background: #05080d;
}
.customer-fullpage .customer-video { display: block; max-width: 100%; max-height: 72vh; background: #000; }
.customer-fullpage .video-player-stage { width: 100%; height: 100%; min-height: 190px; display: flex; align-items: center; justify-content: center; background: #000; position: relative; }
.customer-fullpage .customer-video-player { display: block; }
.customer-subtitle-overlay { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: 88%; padding: 8px 14px; border-radius: 8px; color: #fff; background: rgba(0,0,0,.68); font-size: 16px; line-height: 1.4; text-align: center; user-select: none; -webkit-user-select: none; pointer-events: none; }
.customer-subtitle-overlay:empty { display: none; }
.customer-transcript-panel {
  position: relative; margin-top: 10px; border: 1px solid #e3ebe7; border-radius: 12px;
  background: #fff; overflow: hidden; user-select: none; -webkit-user-select: none;
}
.transcript-bar {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 4px 8px; border-bottom: 1px solid #edf2f0; background: #f7faf9;
}
.transcript-action {
  min-height: 26px; margin-right: 8px; padding: 0 12px; border: 1px solid #cfe3db; border-radius: 999px;
  color: #126c59; background: #fff; font-size: 12px; font-weight: 800; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.transcript-action:active { background: #eef7f4; }
.transcript-action.on { border-color: transparent; color: #fff; background: #16866b; }
.transcript-bar .transcript-toggle { margin-left: auto; }
.danmaku-layer {
  position: absolute; inset: 0; z-index: 6; overflow: hidden; pointer-events: none; display: none;
}
.danmaku-item {
  position: absolute; left: 100%; white-space: nowrap; color: #fff; font-size: 14px; font-weight: 800;
  text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 8px rgba(0,0,0,.5);
  animation-name: danmakuMove; animation-timing-function: linear; animation-fill-mode: forwards;
}
@keyframes danmakuMove { from { transform: translateX(0); } to { transform: translateX(-460px); } }
.comment-list { max-height: 320px; overflow-y: auto; display: grid; gap: 8px; }
.comment-item { padding: 10px 12px; border: 1px solid #e8eeec; border-radius: 12px; background: #fafcfb; }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.comment-head b { color: #1d2939; font-size: 13px; }
.comment-head span { color: #98a2b3; font-size: 11px; }
.comment-item p { margin: 6px 0 0; color: #526070; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.danmaku-switch {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 26px; margin-right: 8px; padding: 0 8px 0 10px;
  border: 1px solid #cfe3db; border-radius: 999px; background: #fff;
  color: #126c59; font-size: 12px; font-weight: 800; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.danmaku-switch-track {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  width: 48px; height: 22px; border-radius: 999px; background: #e9eef1; transition: background-color .2s ease;
}
.danmaku-switch-track::before {
  content: ""; position: absolute; z-index: 1; top: 2px; left: 2px; width: 20px; height: 18px;
  border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgba(16,24,40,.25); transition: transform .2s ease;
}
.danmaku-switch.on .danmaku-switch-track { background: #16866b; }
.danmaku-switch.on .danmaku-switch-track::before { transform: translateX(24px); }
.danmaku-switch-track span { position: relative; z-index: 2; display: grid; place-items: center; font-size: 10px; font-weight: 900; color: #98a2b3; }
.danmaku-switch.on .danmaku-switch-on { color: #126c59; }
.danmaku-switch.on .danmaku-switch-off { color: #ffffff; }
.danmaku-switch:not(.on) .danmaku-switch-off { color: #126c59; }
.customer-transcript-panel.collapsed .transcript-bar { border-bottom: 0; }
.transcript-toggle {
  min-height: 26px; padding: 0 14px; border: 0; border-radius: 999px;
  color: #fff; background: #16866b; font-size: 12px; font-weight: 800;
  box-shadow: 0 2px 6px rgba(22,134,107,.28); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.customer-transcript-panel.collapsed { cursor: pointer; }
.customer-transcript-panel.collapsed .transcript-lines { display: none; }
.transcript-lines { max-height: 151px; overflow-y: auto; padding: 8px 12px; position: relative; }
.transcript-line { padding: 6px 10px; border-radius: 8px; color: #526070; font-size: 16px; line-height: 1.35; text-align: center; border-left: 3px solid transparent; transition: background-color .25s ease, color .25s ease, border-left-color .25s ease; }
.transcript-line.active { color: #126c59; background: #e7f7f2; border-left-color: #16866b; font-weight: 700; }
.transcript-lines { scroll-behavior: auto; }

/* ===== 内容简介：富文本编辑器 ===== */
/* 课程编辑：封面行（左预览 + 右操作，占满整行） */
.cover-editor-row { display: flex; gap: 16px; align-items: stretch; }
.cover-preview {
  flex: 0 0 clamp(220px, 32%, 400px); aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border: 1px dashed #cfd9de; border-radius: 12px; background: #f7faf9;
  color: #98a2b3; font-size: 12px; overflow: hidden;
}
.cover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-actions {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: 16px 18px; border: 1px dashed #cfd9de; border-radius: 12px; background: #fbfdfc;
}
.cover-action-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cover-action-buttons .secondary-btn.compact { min-height: 38px; }
.cover-size-hint { margin: 0; color: #126c59; font-size: 12px; font-weight: 800; }
.cover-pick-btn {
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
  height: 38px; padding: 0 18px; border-radius: 10px; background: #0d6e5c; color: #fff;
  font-size: 13px; font-weight: 800; line-height: 1; text-align: center; cursor: pointer;
}
.form-field label.cover-pick-btn,
.gallery-upload-head .cover-pick-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; margin: 0; padding: 0 18px; color: #fff; line-height: 1;
}
.cover-pick-btn:active { background: #0a5b4c; }
/* 编辑器里"从素材库选择"用浅绿次要样式，和本地上传按钮区分开 */
.cover-pick-btn.library,
.gallery-upload-head .cover-pick-btn.library {
  border: 1px solid #bfe3d8; background: #f3faf7; color: #126c59; font-weight: 800;
}
.cover-pick-btn.library:active, .gallery-upload-head .cover-pick-btn.library:active { background: #e4f5ee; }
/* 素材挑选弹窗里图片素材的缩略图 */
.material-picker-item .editor-pick-thumb {
  grid-column: 2; width: 76px; height: 76px; border-radius: 11px; object-fit: cover; background: #f3f5f7;
}
.cover-actions .form-hint { margin: 0; line-height: 1.7; }
.gallery-upload-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gallery-upload-head .form-hint { flex: 1 1 260px; margin: 0; }
.course-gallery-admin {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px; margin-top: 12px;
}
.gallery-admin-empty {
  grid-column: 1 / -1; padding: 14px; border: 1px dashed #cfd9de; border-radius: 11px;
  color: #87928f; background: #fafcfb; font-size: 12px; text-align: center;
}
.gallery-admin-item {
  margin: 0; overflow: hidden; border: 1px solid #e2ebe7; border-radius: 12px;
  background: #fff; box-shadow: 0 5px 14px rgba(16,24,40,.05);
}
.gallery-admin-image-wrap { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
.gallery-admin-image-wrap img,
.gallery-admin-placeholder {
  display: grid; place-items: center; width: 100%; height: 100%;
  object-fit: cover; background: #eef5f2; color: #6f7b79; font-size: 20px;
}
.image-size-badge {
  position: absolute; left: 8px; bottom: 8px; z-index: 2; pointer-events: none;
  padding: 4px 7px; border-radius: 999px; color: #fff; background: rgba(8,15,28,.74);
  font-size: 10px; font-weight: 800; line-height: 1; letter-spacing: .1px;
}
.image-corner-delete {
  position: absolute; top: 7px; right: 7px; z-index: 3;
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; color: #fff; background: rgba(180,35,24,.92);
  font-size: 19px; font-weight: 700; line-height: 1; cursor: pointer;
  box-shadow: 0 3px 9px rgba(8,15,28,.22);
}
.image-corner-delete:active { background: #8f1b14; transform: scale(.95); }
@media (max-width: 900px) {
  .cover-editor-row { flex-direction: column; }
  .cover-preview { flex: 0 0 auto; width: 100%; }
  .cover-actions { padding: 12px 14px; }
}
/* 宽屏下把简介编辑区放高一些，充分利用大屏 */
@media (min-width: 1280px) {
  .content-editor-main .rich-body { min-height: 220px; max-height: 520px; }
}

.rich-editor { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.rich-editor .rich-toolbar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 12px; padding: 10px 12px;
  border-bottom: 1px solid var(--line); background: #f7faf9;
}
/* 每一组是"一个小整体"：组内 5px、组间 14px，换行时整组换行 */
.rich-editor .rich-group {
  display: inline-flex; flex: 0 0 auto; align-items: center;
  gap: 5px; min-height: 30px; white-space: nowrap;
}

/* ===== 关键修复 =====
   编辑器在 .form-field 里面，全局的 `.form-field label` 会把工具栏的 label 变成块级，
   `.form-field input/select` 又会把下拉框、取色器撑成整行宽度 —— 造成按钮重叠、高矮不齐。
   所以下面这些规则都要带上 .rich-editor 前缀，用更高优先级把它们改回来。 */
.rich-editor .rich-toolbar label,
.rich-editor .rich-toolbar .rich-inline,
.rich-editor .rich-toolbar .rich-color {
  display: inline-flex; align-items: center; width: auto;
  height: 30px; flex: 0 0 auto;
  margin-bottom: 0; padding: 0; border: 0; background: transparent;
  color: #526070; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap;
}
.rich-editor .rich-toolbar .rich-color {
  position: relative; justify-content: center; width: 42px;
  border: 1px solid #dce7e3; border-radius: 8px; background: #fff; overflow: hidden; cursor: pointer;
}
.rich-editor .rich-toolbar .rich-color input[type="color"] {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer;
}
.rich-editor .rich-toolbar .rich-color span { font-size: 12px; font-weight: 800; color: #344054; line-height: 1.5; border-bottom: 3px solid #b42318; }
.rich-editor .rich-toolbar .rich-inline { gap: 4px; font-weight: 700; }
.rich-editor .rich-toolbar button {
  display: inline-flex; align-items: center; justify-content: center; width: auto;
  height: 30px; min-width: 34px; flex: 0 0 auto; padding: 0 10px;
  border: 1px solid #dce7e3; border-radius: 8px; background: #fff;
  color: #344054; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer;
}
.rich-editor .rich-toolbar button:hover { background: #eef7f4; border-color: #9fd9c8; }
.rich-editor .rich-toolbar button:active { background: #e0f2ec; }
.rich-editor .rich-toolbar select {
  width: auto; height: 30px; min-width: 66px; flex: 0 0 auto; padding: 0 8px;
  border: 1px solid #dce7e3; border-radius: 8px; background: #fff;
  color: #344054; font-size: 12px; line-height: 1;
}
.rich-editor .rich-toolbar select:focus { border-color: #7bcbb6; box-shadow: 0 0 0 3px rgba(33,176,141,.1); outline: 0; }

.rich-body { min-height: 150px; max-height: 420px; overflow-y: auto; padding: 12px 14px; font-size: 14px; line-height: 1.7; color: #1d2939; outline: none; }
.rich-body:empty:before { content: attr(data-placeholder); color: #98a2b3; }
.rich-body img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 8px 0; }
.rich-body .rich-image-wrap { position: relative; display: inline-block; max-width: 100%; margin: 8px 0; vertical-align: top; }
.rich-body .rich-image-wrap img { margin: 0; }
.rich-body .rich-image-size-badge { left: 8px; bottom: 8px; }
.rich-body ul, .rich-body ol { padding-left: 22px; margin: 8px 0; }
.rich-body p, .rich-body div { margin: 0 0 6px; }
/* 手机端：控件加大到适合手指点按 */
@media (max-width: 700px) {
  .rich-editor .rich-toolbar { gap: 6px 10px; padding: 8px 10px; }
  .rich-editor .rich-toolbar .rich-group { min-height: 34px; }
  .rich-editor .rich-toolbar button { height: 34px; min-width: 38px; padding: 0 11px; font-size: 13px; }
  .rich-editor .rich-toolbar select { height: 34px; min-width: 70px; font-size: 13px; }
  .rich-editor .rich-toolbar .rich-color,
  .rich-editor .rich-toolbar .rich-inline { height: 34px; }
  .rich-body { min-height: 130px; max-height: 320px; }
}

/* ===== 客户端渲染富文本简介 ===== */
.rich-text { white-space: normal; word-break: break-word; }
.rich-text img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; }
.rich-text ul, .rich-text ol { padding-left: 22px; margin: 8px 0; }
.rich-text a { color: #126c59; text-decoration: underline; }
.customer-course-desc { margin: 10px 0 0; color: #526070; font-size: 14px; }
.download-media-btn { display: block; width: calc(100% - 24px); margin: 12px 12px 4px; padding: 11px 14px; border: 1px solid #9fd9c8; border-radius: 12px; background: #eef7f4; color: #126c59; font-size: 13px; font-weight: 800; }
.download-media-btn:active { background: #e0f2ec; }
.customer-course-summary { padding: 20px 4px 10px; }
.customer-course-summary .detail-meta { font-size: 12px; }
.customer-course-summary h1 { margin: 11px 0 10px; color: #182230; font-size: 23px; line-height: 1.4; }
.customer-course-summary .customer-course-subtitle { margin: -2px 0 12px; color: #526070; font-size: 14px; line-height: 1.7; }
.customer-course-gallery {
  display: flex; gap: 10px; overflow-x: auto; margin: 4px 0 8px; padding: 3px 2px 9px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.customer-course-gallery-item {
  flex: 0 0 78%; margin: 0; overflow: hidden; aspect-ratio: 1 / 1;
  border-radius: 15px; background: #eef5f2; box-shadow: 0 7px 18px rgba(16,24,40,.08);
  scroll-snap-align: start;
}
.customer-course-gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-swipe-hint { margin: -3px 0 12px; color: #98a2b3; font-size: 11px; text-align: center; }
.customer-course-summary p { margin: 0; color: #526070; font-size: 15px; line-height: 1.8; }
.customer-section-info {
  display: grid; gap: 10px; margin: 12px 0 14px; padding: 13px;
  border: 1px solid #e3ebe7; border-radius: 15px; background: #fff;
  box-shadow: 0 6px 18px rgba(16,24,40,.05);
}
.customer-section-info-cover img { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 11px; }
.customer-section-info-copy b { display: block; color: #1d2939; font-size: 14px; }
.customer-section-info-copy > span { display: block; margin-top: 5px; color: #667085; font-size: 11px; line-height: 1.6; }
.customer-section-info-copy .rich-text { margin-top: 7px; color: #526070; font-size: 13px; line-height: 1.7; }
.customer-section-info-copy .rich-text p { margin: 0 0 4px; }
.customer-section-assignments .circle-mobile-catalog-assignments { gap: 8px; padding: 0; }
.customer-section-assignments .circle-mobile-catalog-assignments button { background: #f7fbf9; }
.section-cover-preview {
  min-height: 120px; display: grid; place-items: center; padding: 10px;
  border: 1px dashed #cfd9de; border-radius: 12px; color: #98a2b3;
  background: #f7faf9; overflow: hidden;
}
.section-cover-preview img { display: block; max-width: 100%; max-height: 220px; object-fit: contain; border-radius: 9px; }
@media (min-width: 700px) {
  .customer-course-gallery-item { flex-basis: 56%; }
}
.customer-page-sections { margin: 18px 0; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 8px 25px rgba(16,24,40,.06); }
.customer-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.customer-section-heading b { display: block; color: #1d2939; font-size: 17px; }
.customer-section-heading span { display: block; margin-top: 4px; color: #87928f; font-size: 12px; }
.loop-mode-btn {
  flex: 0 0 auto; height: 34px; min-height: 34px; min-width: 68px; padding: 0 7px; border: 1px solid #b9ded2;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  border-radius: 10px; color: #0d6e5c; background: #fff;
  font-size: 9px; font-weight: 900; line-height: 34px; text-align: center; white-space: nowrap;
}
.loop-controls { display: flex; flex: 0 0 auto; align-items: stretch; gap: 28px; }
.chapter-select-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; min-height: 34px; padding: 0 7px; border: 1px solid #b9ded2; border-radius: 10px;
  color: #126c59; background: #fff; font-size: 9px; font-weight: 900; line-height: 34px; white-space: nowrap;
}
.chapter-select-btn:active { background: #eefaf6; }
.loop-mode-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 100%; flex: 0 0 auto; padding: 0;
  border-radius: 0; color: inherit; background: transparent;
  font-size: 12px; font-weight: 900; line-height: 1;
  text-shadow: none; -webkit-text-stroke: 0;
}
.loop-mode-label { display: inline-flex; align-items: center; height: 100%; color: inherit; line-height: inherit; }
.loop-mode-btn.active { color: #fff; border-color: #0d6e5c; background: #0d6e5c; }
.loop-mode-btn:not(.active) .loop-mode-icon,
.loop-mode-btn:not(.active) .loop-mode-label { color: #0d6e5c; }
.loop-mode-btn.active .loop-mode-icon,
.loop-mode-btn.active .loop-mode-label { color: #fff; }
.loop-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.loop-option {
  display: flex; align-items: flex-start; gap: 9px; padding: 12px;
  border: 1px solid #e0e9e6; border-radius: 12px; background: #fbfdfc; cursor: pointer;
}
.loop-option.active { border-color: #8ed3bf; background: #eefaf6; }
.loop-option input { flex: 0 0 auto; width: auto; margin-top: 3px; accent-color: #14866d; }
.loop-option span { min-width: 0; }
.loop-option b { display: block; color: #1d2939; font-size: 13px; }
.loop-option small { display: block; margin-top: 3px; color: #7b8794; font-size: 10px; line-height: 1.5; }
.loop-section-picker { display: none; margin-top: 14px; padding: 13px; border: 1px solid #e3ebe7; border-radius: 13px; background: #f8fbfa; }
.loop-section-picker.show { display: block; }
.loop-section-picker-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.loop-section-picker-head b { color: #1d2939; font-size: 13px; }
.loop-section-picker-head span { color: #87928f; font-size: 10px; }
.loop-section-list { display: grid; gap: 7px; max-height: 280px; overflow-y: auto; }
.loop-section-option {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  border: 1px solid #e4ece9; border-radius: 9px; background: #fff; cursor: pointer;
}
.loop-section-option input { flex: 0 0 auto; width: auto; accent-color: #14866d; }
.loop-section-option span { min-width: 0; overflow: hidden; color: #44505f; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
  .loop-settings-grid { grid-template-columns: 1fr; }
  .loop-section-picker-head { align-items: flex-start; flex-direction: column; }
  .customer-section-heading { align-items: center; flex-direction: row; }
  .customer-section-heading > div { min-width: 0; }
  .loop-controls { gap: 20px; }
  .loop-mode-btn { align-self: center; gap: 2px; height: 32px; min-height: 32px; min-width: 62px; padding: 0 6px; font-size: 9px; line-height: 32px; }
  .chapter-select-btn { height: 32px; min-height: 32px; padding: 0 7px; font-size: 9px; line-height: 32px; }
  .loop-mode-icon { width: 12px; height: 100%; font-size: 11px; }
}

/* Final alignment contract for the two customer chapter controls. */
.loop-controls {
  display: flex; flex: 0 0 auto; align-items: center; flex-wrap: nowrap; gap: 36px; column-gap: 36px;
}
.loop-controls > .chapter-select-btn,
.loop-controls > .loop-mode-btn {
  box-sizing: border-box; height: 34px; min-height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0; padding: 0 10px; line-height: 1; vertical-align: middle;
}
.loop-controls > .loop-mode-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 68px; margin-left: 8px; padding-top: 0; padding-bottom: 0;
}
.loop-controls > .chapter-select-btn { min-width: 0; margin-right: 6px; gap: 0; }
.loop-controls .loop-mode-content {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 4px; height: 1em; margin: 0; padding: 0; line-height: 1; vertical-align: middle;
}
.loop-controls .loop-mode-icon {
  width: auto; min-width: 13px; height: auto; padding: 0;
  display: inline-flex; align-items: center; align-self: center; justify-content: center; margin: 0; line-height: 1;
}
.loop-controls .loop-mode-label {
  display: inline-flex; align-items: center; align-self: center; height: 1em; margin: 0; line-height: 1;
}
@media (max-width: 600px) {
  .loop-controls { gap: 28px; column-gap: 28px; }
  .loop-controls > .chapter-select-btn,
  .loop-controls > .loop-mode-btn { height: 32px; min-height: 32px; padding: 0 8px; }
  .loop-controls > .loop-mode-btn { min-width: 62px; margin-left: 6px; }
  .loop-controls > .chapter-select-btn { margin-right: 5px; }
}
.customer-section-list { display: grid; gap: 9px; }
.customer-section-chapter { display: grid; gap: 7px; }
.customer-section-chapter + .customer-section-chapter { margin-top: 4px; padding-top: 9px; border-top: 1px solid #edf1ef; }
.customer-section-chapter-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 3px; color: #49635b; }
.customer-section-chapter-head b { font-size: 12px; }
.customer-section-chapter-head span { color: #8b9995; font-size: 10px; }
.customer-section-row {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #e8eeec;
  border-radius: 14px;
  color: #44505f;
  background: #fafcfb;
  text-align: left;
}
.customer-section-row.active { border-color: #9bd8c8; color: #126c59; background: #eefaf6; }
.customer-section-row.is-locked { color: #8a9592; background: #f7f9f8; cursor: default; }
.customer-section-row.is-locked .customer-section-number { color: #9aa4a1; background: #edf0ef; }
.customer-section-row.is-locked .customer-section-copy b,
.customer-section-row.is-locked .customer-section-copy small { color: #98a2b3; }
.customer-section-row.is-locked .customer-section-play { min-width: 32px; color: #a0aaa7; font-size: 10px; }
.customer-section-number { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #5d6b78; background: #e9eef1; font-size: 13px; font-weight: 900; }
.customer-section-row.active .customer-section-number { color: #fff; background: #16866b; }
.customer-section-copy { min-width: 0; }
.customer-section-copy b { display: block; overflow: hidden; color: inherit; font-size: 16px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.customer-section-copy small { display: block; margin-top: 5px; color: #87928f; font-size: 12px; }
.customer-section-play { min-width: 54px; color: #16866b; font-size: 12px; font-weight: 900; text-align: right; }
.customer-section-row.audio-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  padding: 8px 11px;
  min-height: 0;
}
.customer-section-row.audio-row .customer-section-number { width: 26px; height: 26px; border-radius: 9px; font-size: 12px; }
.customer-section-row.audio-row .customer-section-copy b { font-size: 15px; line-height: 1.35; }
.section-play-btn {
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; background: #16866b; font-size: 12px; font-weight: 900;
}
.customer-section-row.audio-row:not(.active) .section-play-btn { color: #126c59; background: #e6f5ef; }
.section-row-audio { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 7px; margin-top: 0; }
.section-progress {
  position: relative; height: 6px; border-radius: 999px; background: #dfe9e5;
  overflow: hidden; cursor: pointer; touch-action: none; max-width: 190px; justify-self: stretch;
}
.section-progress::after {
  content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 18px;
  transform: translateY(-50%);
}
.section-progress i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #1bb08c, #0d6e5c); transition: width .15s linear; }
.section-progress.dragging i { transition: none; }
.section-time { color: #6b7a86; font-size: 10px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.section-icon-btn {
  width: 25px; height: 25px; display: grid; place-items: center;
  border: 1px solid #e0ebe6; border-radius: 8px; background: #fff; color: #526070; font-size: 12px;
}
.section-icon-btn:active { background: #eef7f4; }
.customer-section-row.audio-row.active { border-color: #9bd8c8; background: #eefaf6; }
.customer-section-row.audio-row.active .customer-section-copy b { color: #126c59; }
.customer-page-access { margin: 16px 0; padding: 15px; font-size: 14px; }
.customer-page-access b { font-size: 15px; }
.customer-page-access span { font-size: 13px; line-height: 1.65; }
.customer-page-article { padding: 18px; border-radius: 16px; background: #fff; font-size: 16px; line-height: 1.95; }
.customer-page-purchase { margin-top: 18px; }
.customer-page-purchase .primary-btn { min-height: 44px; font-size: 15px; }

/* 首页分类与卡片布局 */
.home-cat-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 14px 12px;
  scrollbar-width: none;
}
.home-cat-row::-webkit-scrollbar { display: none; }
.home-cat-chip {
  flex: 0 0 auto;
  border: 1px solid #dfe8e4;
  border-radius: 999px;
  padding: 7px 14px;
  background: #fff;
  color: #526070;
  font-size: 13px;
  font-weight: 700;
}
.home-cat-chip.active {
  color: #fff;
  background: linear-gradient(135deg, #16866b, #0d6e5c);
  border-color: transparent;
}
/* 首页类别固定单行：新增类别时等分压缩图标和文字，不回落到第二行。 */
.cat-grid {
  width: 100%;
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(4px, 1.4vw, 10px);
  overflow: hidden;
}
.quick-item.cat-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 0; min-height: 82px; padding: 12px 6px;
  border: 1px solid #e2ece8;
  color: #45505f;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.quick-item.cat-item span {
  display: block; max-width: 100%; overflow: hidden;
  font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap;
}
.quick-item.cat-item .q-icon {
  display: grid; place-items: center;
  width: 36px; height: 36px; margin: 0 auto 8px; border-radius: 12px;
  font-size: 17px;
}
.cat-grid > .quick-item.cat-item {
  width: auto;
  min-width: 0;
  min-height: clamp(70px, 20vw, 82px);
  padding: clamp(8px, 2vw, 12px) 2px;
}
.cat-grid > .quick-item.cat-item .q-icon {
  width: min(clamp(24px, 8.6vw, 36px), 70%);
  height: auto;
  aspect-ratio: 1;
  margin-bottom: clamp(5px, 1.6vw, 8px);
  font-size: clamp(14px, 4.1vw, 17px);
}
.cat-grid > .quick-item.cat-item span {
  font-size: clamp(10px, 2.9vw, 12px);
}
.quick-item.cat-item.selected {
  color: #0d6e5c;
  border-color: #9fd9c8;
  box-shadow: 0 6px 16px rgba(20, 134, 109, .14), inset 0 0 0 1px #9fd9c8;
}
.quick-item.cat-item:active { transform: scale(.97); }
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.content-grid-card {
  overflow: hidden;
  border: 1px solid #edf0f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(16,24,40,.05);
}
.grid-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  background: linear-gradient(135deg, #16866b, #103f48);
}
.grid-cover.cover-gold { background: linear-gradient(135deg, #e7b54a, #b9791f); }
.grid-cover.cover-blue { background: linear-gradient(135deg, #4f7dd9, #274b8f); }
.grid-cover.cover-navy { background: linear-gradient(135deg, #17243a, #0b1220); }
.grid-cover.cover-plum { background: linear-gradient(135deg, #9d5bd0, #6b3a9e); }
.grid-info { padding: 10px 11px 12px; }
.grid-info h4 {
  margin: 0 0 6px;
  color: #1d2939;
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.grid-info p { margin: 0 0 8px; color: #87928f; font-size: 11px; }

/* 下拉刷新提示 */
.ptr-indicator {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 960;
  transform: translate(-50%, -130%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(13,110,92,.95);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(16,24,40,.22);
  transition: transform .16s ease;
  pointer-events: none;
}
.ptr-indicator.show { transform: translate(-50%, 0); }
.ptr-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ptrSpin .7s linear infinite;
}
@keyframes ptrSpin { to { transform: rotate(360deg); } }

/* 课程购买条：固定底部显示，购买后自动隐藏 */
.customer-pay-bar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  margin: 12px -14px 0;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #fff8e6, #ffedbe);
  border-top: 1px solid #f0d89f;
  box-shadow: 0 -8px 24px rgba(16,24,40,.08);
}
.pay-bar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
}
.pay-price {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pay-now {
  color: #e6452f;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.pay-origin {
  color: #9aa3af;
  font-size: 24px;
  font-weight: 700;
  text-decoration: line-through;
  white-space: nowrap;
}
.pay-coupon {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 10px;
  border: 1px solid #f0c36d;
  border-radius: 999px;
  color: #9a6700;
  background: #fff7e0;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.pay-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pay-cart-btn,
.pay-buy-btn {
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 15px;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}
.pay-cart-btn {
  color: #0d6e5c;
  background: #fff;
  border: 1px solid #16866b;
}
.pay-buy-btn {
  color: #fff;
  background: linear-gradient(180deg, #17a379, #0d6e5c);
  box-shadow: 0 6px 16px rgba(13,110,92,.26);
}
@media (max-width: 360px) {
  .pay-bar-main { gap: 6px; }
  .pay-actions { gap: 6px; }
  .pay-cart-btn,
  .pay-buy-btn { padding: 0 10px; font-size: 13px; min-height: 38px; }
  .pay-now { font-size: 22px; }
  .pay-origin { font-size: 20px; }
  .pay-coupon { font-size: 12px; padding: 2px 7px; margin-left: 4px; }
}
body.customer-mode .customer-pay-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  border-radius: 16px 16px 0 0;
}
body.customer-mode .mini-app.customer-detail-active .customer-fullpage {
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

/* 课程目录上移：缩小播放区与目录之间的间距，充分利用屏幕 */
.mini-app.customer-detail-active .customer-sticky-player {
  margin-bottom: 0;
  padding-bottom: 6px;
}
.mini-app.customer-detail-active .customer-page-sections {
  margin-top: 6px;
  margin-bottom: 12px;
}

body.customer-mode .mini-nav { flex-basis: 68px; }
body.customer-mode .mini-nav button { font-size: 12px; }
body.customer-mode .mini-nav button .nav-icon { font-size: 22px; }
body.customer-mode .mini-header .header-copy small { font-size: 13px; }
body.customer-mode .mini-header .header-copy h3 { font-size: 25px; }
body.customer-mode .mini-header .header-search { height: 44px; font-size: 14px; }
body.customer-mode .section-title h4 { font-size: 17px; }
body.customer-mode .section-title button { font-size: 12px; }
body.customer-mode .section-title .upgrade-hint { font-size: 12px; }
body.customer-mode .mobile-search { font-size: 13px; }
body.customer-mode .quick-item span { font-size: 12px; }
body.customer-mode .content-mini-card h4 { font-size: 15px; }
body.customer-mode .content-mini-card p { font-size: 12px; }
body.customer-mode .detail-meta,
body.customer-mode .access-box span { font-size: 12px; }
body.customer-mode .access-box b { font-size: 14px; }
body.customer-mode .primary-btn,
body.customer-mode .secondary-btn { font-size: 14px; }
.app-shell.customer-detail-active .android-header,
#appShell.customer-detail-active .android-header { min-height: 62px; height: auto; padding: 10px 14px; }
#appShell.customer-detail-active .android-view { top: 94px; bottom: var(--android-system-nav-height); }
#appShell.customer-detail-active .android-nav { display: none; }
.android-customer-header { background: #fff; }
.android-customer-header .customer-back-btn { color: #1d2939; border-color: #dfe5eb; background: #f4f7f9; }
.android-customer-header .customer-page-heading small { color: #87928f; }
.android-customer-header .customer-page-heading b { color: #1d2939; }
@media (max-width: 470px) {
  .customer-fullpage { padding: 10px 10px 28px; }
  .customer-page-header { padding-left: 10px; padding-right: 10px; }
  .customer-back-btn { min-height: 38px; padding: 0 10px; font-size: 14px; }
  .customer-page-heading b { font-size: 15px; }
  .customer-course-summary h1 { font-size: 21px; }
  .customer-course-summary p { font-size: 14px; }
  .customer-section-row { grid-template-columns: 38px minmax(0, 1fr) auto; padding: 11px 10px; }
  .customer-section-number { width: 36px; height: 36px; }
  .customer-section-copy b { font-size: 15px; }
}


/* Customer course page refinement: no back button, sticky player, branded header */
.mini-app.customer-detail-active .mini-header::before { display: none !important; }
.mini-app.customer-detail-active .mini-header { flex: 0 0 auto; position: relative; z-index: 30; }
.customer-page-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 78px;
  padding: 14px 14px 12px;
  text-align: center;
}
.customer-course-header-logo img { display: block; width: 112px; height: auto; object-fit: contain; }
.customer-page-heading { width: 100%; min-width: 0; text-align: center; }
.customer-page-heading small { display: block; color: rgba(255,255,255,.72); font-size: 11px; letter-spacing: .08em; }
.customer-page-heading b { display: block; max-width: 100%; overflow: hidden; margin-top: 4px; color: #fff; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
#miniShell .customer-page-header { padding-top: 58px; min-height: 128px; }
body.customer-mode #miniShell .customer-page-header { padding-top: calc(16px + env(safe-area-inset-top)); min-height: 88px; }
.customer-sticky-player {
  position: sticky;
  z-index: 25;
  top: 0;
  margin: 0 -2px 4px;
  padding: 8px 2px 11px;
  background: rgba(244,247,246,.97);
  backdrop-filter: blur(12px);
}
.customer-sticky-player .media-player,
.customer-sticky-player .customer-video-player { margin-left: auto; margin-right: auto; }
.customer-fullpage { padding-top: 0; }
.customer-fullpage .customer-course-summary { padding-top: 14px; }
.android-customer-header { min-height: 74px; padding: 10px 14px 8px; background: #fff; }
.android-customer-header .customer-course-header-logo { display: none; }
.android-customer-header .customer-page-heading small { color: #87928f; }
.android-customer-header .customer-page-heading b { color: #1d2939; }
@media (max-width: 470px) {
  #miniShell .customer-page-header { padding-top: 54px; min-height: 120px; }
  body.customer-mode #miniShell .customer-page-header { padding-top: calc(14px + env(safe-area-inset-top)); min-height: 84px; }
  .customer-course-header-logo img { width: 104px; }
  .customer-sticky-player { margin-left: -4px; margin-right: -4px; padding-left: 4px; padding-right: 4px; }
}


/* Independent chapter scroller below the fixed player */
.mini-app.customer-detail-active .mini-view { overflow: hidden; }
.mini-app.customer-detail-active .customer-fullpage {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mini-app.customer-detail-active .customer-fullpage-inner {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mini-app.customer-detail-active .customer-sticky-player {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  margin-bottom: 0;
  padding-bottom: 10px;
  z-index: 24;
}
.customer-content-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 34px;
  scrollbar-width: none;
}
.customer-content-scroll::-webkit-scrollbar { display: none; }
.customer-content-scroll .customer-course-summary { padding-top: 8px; }

/* 2026-10-01：课程页单行顶部与双区域滑动 */
.customer-page-header,
#miniShell .customer-page-header,
body.customer-mode #miniShell .customer-page-header,
#appShell .android-customer-header,
#appShell.customer-detail-active .android-customer-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 0;
  padding: 8px 12px;
  text-align: left;
}

body.customer-mode .customer-page-header,
body.customer-mode #miniShell .customer-page-header {
  padding-top: calc(8px + env(safe-area-inset-top));
}

.customer-course-header-logo {
  flex: 0 0 auto;
  display: block;
}

.customer-course-header-logo img {
  display: block;
  width: 86px;
  max-width: 86px;
  height: auto;
  max-height: 30px;
  object-fit: contain;
}

.customer-page-heading {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  text-align: left;
}

.customer-page-heading small {
  display: none !important;
}

.customer-page-heading b {
  display: block;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  color: inherit;
  font-size: 18px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.android-customer-header {
  color: #1d2939;
  background: #fff;
}

.android-customer-header .customer-course-header-logo {
  display: block;
}

.android-customer-header .customer-page-heading b {
  color: #1d2939;
}

.mini-app.customer-detail-active .mini-view {
  overflow: hidden;
}

.mini-app.customer-detail-active .customer-fullpage {
  height: 100%;
  min-height: 0;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 14px 34px;
  scrollbar-width: none;
}

.mini-app.customer-detail-active .customer-fullpage::-webkit-scrollbar {
  display: none;
}

.mini-app.customer-detail-active .customer-fullpage-inner {
  width: 100%;
  max-width: 760px;
  min-height: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  overflow: visible;
}

.mini-app.customer-detail-active .customer-sticky-player {
  position: relative;
  top: auto;
  z-index: 24;
  margin: 0 -2px 4px;
  padding: 8px 2px 11px;
  touch-action: pan-y;
}
#appShell.customer-detail-active .customer-sticky-player {
  position: relative;
  top: auto;
}

.customer-sticky-player .video-player-stage,
.customer-sticky-player .customer-video {
  touch-action: pan-y;
}

.customer-content-scroll {
  height: auto;
  max-height: none;
  min-height: 0;
  flex: none;
  overflow: visible;
  padding-bottom: 34px;
}

@media (max-width: 470px) {
  .customer-page-header,
  #miniShell .customer-page-header,
  body.customer-mode #miniShell .customer-page-header {
    gap: 8px;
    padding: 7px 10px;
  }

  body.customer-mode .customer-page-header,
  body.customer-mode #miniShell .customer-page-header {
    padding-top: calc(7px + env(safe-area-inset-top));
  }

  .customer-course-header-logo img {
    width: 78px;
    max-width: 78px;
    max-height: 27px;
  }

  .customer-page-heading b {
    font-size: 16px;
  }

  .mini-app.customer-detail-active .customer-fullpage {
    padding-left: 10px;
    padding-right: 10px;
  }

  .customer-content-scroll {
    height: auto;
    min-height: 0;
  }
}

/* 播放区域可独立移动到屏幕上方，章节列表自动填满剩余空间 */
.mini-app.customer-detail-active .customer-fullpage-inner {
  min-height: calc(100% + var(--customer-pane-scroll, 0px));
}

/* 内测版权限策略与会员标签 */
.beta-policy-panel .panel-head p { margin: 5px 0 0; color: #87928f; font-size: 11px; }
.beta-policy-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.beta-policy-summary > div { padding: 12px; border: 1px solid #e7eeea; border-radius: 12px; background: #fafcfb; }
.beta-policy-summary span { display: block; color: #87928f; font-size: 11px; }
.beta-policy-summary b { display: block; margin-top: 6px; color: #1d2939; font-size: 13px; line-height: 1.45; word-break: break-word; }
.beta-policy-summary .policy-on { color: #16866b; }
.beta-policy-summary .policy-off { color: #98a2b3; }
.member-group-cell b { display: block; color: #344054; font-size: 12px; }
.member-group-cell small { display: block; margin-top: 4px; color: #98a2b3; font-size: 10px; }
@media (max-width: 900px) { .beta-policy-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 章节列表到达边界后，继续滑动可带动上方播放区域 */
.customer-content-scroll { overscroll-behavior-y: contain; }

.beta-choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.beta-choice { display: inline-flex; align-items: center; gap: 6px; padding: 9px 11px; border: 1px solid #dfe8e4; border-radius: 10px; color: #475467; background: #fafcfb; font-size: 12px; cursor: pointer; }
.beta-choice:has(input:checked) { border-color: #65bfa3; color: #126c59; background: #eefaf6; }
.beta-choice input { accent-color: #16866b; }

/* 账号角色：按菜单分组的功能权限，桌面两列、手机单列 */
.role-permission-hint { margin: 0 0 10px; }
.role-permission-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: min(58vh, 620px);
  padding: 1px;
  overflow: auto;
}
.role-permission-group {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #dfe8e4;
  border-radius: 11px;
  background: #fbfdfc;
}
.role-permission-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}
.role-permission-group-head > b,
.role-permission-parent b {
  color: #20352e;
  font-size: 14px;
}
.role-permission-group-head > span {
  flex: 0 0 auto;
  color: #76837e;
  font-size: 11px;
}
.role-permission-parent {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.role-permission-parent input,
.role-permission-feature input {
  width: auto;
  margin: 0;
  accent-color: #16866b;
  flex: 0 0 auto;
}
.role-permission-group > p {
  margin: 4px 0 8px;
  color: #7b8782;
  font-size: 11px;
  line-height: 1.45;
}
.role-permission-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
}
.role-permission-feature {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 5px 6px;
  border-radius: 7px;
  color: #344054;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}
.role-permission-feature:hover { background: #f0f7f4; }
.role-permission-feature span { min-width: 0; overflow-wrap: anywhere; }
.role-permission-owner-only {
  grid-column: 1 / -1;
  padding: 5px 6px;
  border-radius: 7px;
  color: #8a6a22;
  background: #fff8e7;
  font-size: 11px;
}
@media (max-width: 760px) {
  .role-permission-groups { grid-template-columns: 1fr; max-height: 62vh; }
  .role-permission-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
  .role-permission-features { grid-template-columns: 1fr; }
}
.policy-empty { color: #98a2b3; font-size: 11px; }

/* AI智能体客户端 */
.ai-page { position: relative; padding-bottom: 16px; }
.ai-welcome-section { padding-top: 14px !important; }
.ai-welcome-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #132b3c, #0d6e5c); box-shadow: 0 12px 26px rgba(13,110,92,.2); }
.ai-welcome-card h3 { margin: 7px 0 5px; font-size: 18px; }
.ai-welcome-card p { margin: 0; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.6; }
.ai-online-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #7ee2b8; box-shadow: 0 0 0 4px rgba(126,226,184,.14); }
.ai-quota { flex: 0 0 auto; min-width: 70px; padding: 10px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; text-align: center; background: rgba(255,255,255,.1); }
.ai-quota b { display: block; font-size: 24px; }
.ai-quota span { display: block; color: rgba(255,255,255,.7); font-size: 10px; }
.ai-chat-shell { margin: 8px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 8px 25px rgba(16,24,40,.06); }
.ai-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #eef2f1; }
.ai-chat-head b { display: block; color: #1d2939; font-size: 14px; }
.ai-chat-head span { display: block; margin-top: 3px; color: #98a2b3; font-size: 10px; }
.ai-chat-head button { border: 0; color: #8a94a3; background: transparent; font-size: 11px; }
.ai-message-list { height: min(58vh, 520px); overflow-y: auto; padding: 12px 0; }
.ai-message { position: relative; display: block; margin-bottom: 12px; }
.ai-message.user { text-align: right; }
.ai-message-avatar { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: #16866b; font-size: 10px; font-weight: 800; }
.ai-message.user .ai-message-avatar { background: #344054; }
.ai-message-bubble { position: relative; max-width: 100%; display: flow-root; padding: 10px 12px; border-radius: 4px 13px 13px 13px; color: #344054; background: #f2f6f5; font-size: 13px; line-height: 1.7; }
.ai-scroll-bottom-btn {
  position: fixed;
  left: 50%;
  bottom: 132px;
  z-index: 60;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #cfe3dd;
  border-radius: 50%;
  color: #126c59;
  background: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(16,24,40,.14);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
.ai-scroll-bottom-btn.show {
  opacity: .8;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.ai-msg-collapse {
  float: right;
  margin: 0 0 4px 8px;
  padding: 1px 8px;
  border: 1px solid #dde3e1;
  border-radius: 999px;
  color: #98a29e;
  background: #f3f5f4;
  font-size: 11px;
  font-weight: 700;
}
.ai-bubble-text { min-width: 0; }
.ai-bubble-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ai-message.user .ai-msg-collapse { color: #98a29e; background: #f3f5f4; border-color: #dde3e1; }
.ai-message.user .ai-message-bubble { margin-left: auto; max-width: 92%; text-align: left; border-radius: 13px 4px 13px 13px; color: #fff; background: #16866b; }
.ai-voice-message { min-height: 34px; display: flex; align-items: center; gap: 8px; }
.ai-voice-message-play {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 50%;
  color: #0d6e5c;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}
.ai-voice-message-play.loading { opacity: .7; }
.ai-voice-message-play.playing { background: #fff7df; color: #126c59; }
.ai-voice-message-wave { flex: 1 1 auto; height: 25px; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.ai-voice-message-wave i {
  width: 2px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255,255,255,.72);
  transform-origin: center;
}
.ai-voice-message-wave i:nth-child(2n) { height: 14px; }
.ai-voice-message-wave i:nth-child(3n) { height: 20px; }
.ai-voice-message-wave i:nth-child(4n) { height: 10px; }
.ai-voice-message.playing .ai-voice-message-wave i { animation: aiVoiceWave .7s ease-in-out infinite alternate; }
.ai-voice-message.playing .ai-voice-message-wave i:nth-child(2n) { animation-delay: .12s; }
.ai-voice-message.playing .ai-voice-message-wave i:nth-child(3n) { animation-delay: .24s; }
.ai-voice-message b { flex: 0 0 auto; color: rgba(255,255,255,.92); font-size: 12px; font-weight: 800; }
@keyframes aiVoiceWave { from { transform: scaleY(.55); opacity: .62; } to { transform: scaleY(1.15); opacity: 1; } }
.ai-suggestions { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 10px; }
.ai-suggestions button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #dce9e5; border-radius: 99px; color: #126c59; background: #f5fbf9; font-size: 11px; }
.ai-input-row { display: flex; align-items: flex-end; gap: 8px; }
.ai-input-row textarea { flex: 1; min-height: 44px; max-height: 100px; resize: none; padding: 11px; border: 1px solid #dfe8e4; border-radius: 12px; font-size: 13px; }
.ai-input-row .primary-btn { flex: 0 0 auto; min-width: 62px; min-height: 44px; }
.ai-input-hint { margin-top: 7px; color: #98a2b3; font-size: 10px; }
.ai-locked-card { padding: 30px 20px; border-radius: 18px; text-align: center; background: #fff; box-shadow: 0 8px 25px rgba(16,24,40,.06); }
.ai-locked-icon { width: 52px; height: 52px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #103f48, #0d6e5c); font-size: 25px; }
.ai-locked-card h3 { margin: 0 0 8px; color: #1d2939; font-size: 17px; }
.ai-locked-card p { margin: 0; color: #87928f; font-size: 12px; line-height: 1.7; }

/* AI 大输入框与语音操作 */
.ai-input-panel { position: relative; display: grid; gap: 6px; margin-top: 2px; }
.ai-input-panel textarea { width: 100%; min-height: 44px; max-height: 168px; resize: none; overflow-y: auto; padding: 9px 12px; border: 1px solid #dce7e3; border-radius: 14px; color: #1d2939; background: #fbfdfc; font-size: 16px; line-height: 1.5; outline: none; }
.ai-input-panel textarea:focus { border-color: #5db99d; box-shadow: 0 0 0 3px rgba(22,134,107,.08); }
.ai-menu-fab {
  position: absolute;
  left: 12px;
  top: calc(10px + env(safe-area-inset-top));
  z-index: 70;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #cfe3db;
  border-radius: 50%;
  color: #0d6e5c;
  background: #ffffff;
  box-shadow: 0 7px 18px rgba(16,24,40,.16);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ai-menu-fab:active { transform: scale(.96); background: #eef8f4; }
.ai-voice-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.ai-voice-actions.voice-hide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ai-voice-actions.voice-hide .ai-send-btn { grid-column: 3; min-height: 36px; }
.ai-voice-btn { min-height: 41px; padding: 4px 8px; border: 1px solid #bfe0d5; border-radius: 13px; color: #126c59; background: #f1faf7; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 4px; }
.ai-voice-icon { flex: 0 0 auto; font-size: 20px; line-height: 1; }
.ai-voice-btn:not(.send) .ai-voice-icon { transform: translateX(-20%); }
.ai-voice-btn.send .ai-voice-icon { transform: translateX(-15%); }
.ai-voice-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.25; text-align: left; }
.ai-voice-text b,
.ai-voice-text i { font-weight: 800; font-size: 14px; }
.ai-voice-text i { font-style: normal; opacity: 1; }
.ai-voice-btn.send { color: #126c59; border-color: #bfe0d5; background: #f1faf7; }
.ai-voice-btn.active,
.ai-voice-btn.send.active-send { border-color: #e0a62f; color: #8b5b00; background: #fff7df; }
.ai-send-btn { width: auto; min-width: 0; min-height: 48px; padding: 0 6px; font-size: 13px; white-space: nowrap; }

/* AI新手设置指引 */
.ai-guide { display: grid; gap: 10px; }
.ai-guide-step { padding: 12px; border: 1px solid #e4ece9; border-radius: 12px; background: #fafcfb; }
.ai-guide-step b { display: block; color: #126c59; font-size: 13px; }
.ai-guide-step p { margin: 5px 0 0; color: #667085; font-size: 12px; line-height: 1.7; }

/* 手机端专属管理后台 */
body.admin-mode .topbar { display: none; }
body.admin-mode .stage { padding: 0; }
body.admin-mode .admin-shell { width: 100%; max-width: none; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
body.admin-mode .admin-main { min-height: 100vh; }
/* 授权账号进入后台后仍保留三端切换条，可随时回到总览、小程序或 App。 */
body.admin-mode.admin-switcher-enabled .topbar { display: flex; }
body.admin-mode.admin-switcher-enabled .admin-shell { min-height: calc(100vh - 74px); }
body.admin-mode.admin-switcher-enabled .admin-main { min-height: calc(100vh - 74px); }
@media (max-width: 820px) {
  body.admin-mode { background: #f3f6f8; }
  body.admin-mode .topbar { display: none !important; }
  body.admin-mode .admin-shell,
  body.admin-mode.admin-switcher-enabled .admin-shell { display: block; min-height: 100dvh; overflow: visible; }
  body.admin-mode .admin-menu-backdrop { display: block; position: fixed; inset: 0; z-index: 180; background: rgba(9,17,28,.45); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  body.admin-mode.admin-menu-open .admin-menu-backdrop { opacity: 1; pointer-events: auto; }
  body.admin-mode .admin-sidebar { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 200; width: 280px; max-width: 86vw; padding: calc(68px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom)); background: #132b3c; transform: translateX(-105%); transition: transform .25s ease; overflow-y: auto; border-radius: 0 20px 20px 0; box-shadow: 12px 0 36px rgba(0,0,0,.24); }
  body.admin-mode.admin-menu-open .admin-sidebar { transform: translateX(0); }
  body.admin-mode .admin-sidebar .admin-logo { display: flex; padding: 0 8px 20px; }
  body.admin-mode .admin-sidebar .storage-meter { display: none; }
  body.admin-mode .admin-nav { flex-direction: column; gap: 5px; }
  body.admin-mode .admin-nav button { flex: none; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; font-size: 14px; text-align: left; white-space: normal; }
  body.admin-mode .admin-nav button .admin-nav-icon { width: 24px; font-size: 16px; }
  body.admin-mode .admin-nav-sub button { min-height: 38px; font-size: 13px; }
  body.admin-mode .admin-menu-btn { display: inline-flex; align-items: center; justify-content: center; position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 12px; z-index: 240; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(13,110,92,.16); border-radius: 12px; background: #fff; color: #132b3c; font-size: 22px; font-weight: 800; box-shadow: 0 8px 22px rgba(15,35,52,.18); cursor: pointer; }
  body.admin-mode.admin-menu-open .admin-menu-btn { border-color: #e7bd63; background: #f2b84b; color: #132b3c; }
  body.admin-mode .admin-topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; padding-left: 50px; }
  body.admin-mode .admin-main,
  body.admin-mode.admin-switcher-enabled .admin-main { width: 100%; min-height: 100dvh; }
  body.admin-mode .admin-topbar { position: sticky; top: 0; z-index: 50; min-height: calc(66px + env(safe-area-inset-top)); padding: calc(10px + env(safe-area-inset-top)) 13px 10px; }
  body.admin-mode .admin-topbar h2 { font-size: 18px; }
  body.admin-mode .admin-top-actions { gap: 7px; }
  body.admin-mode .admin-top-actions .secondary-btn { display: inline-flex; min-height: 40px; padding: 0 10px; font-size: 12px; }
  body.admin-mode .admin-top-actions .secondary-btn:not(:first-of-type) { display: none; }
  body.admin-mode .admin-top-actions .admin-return-client-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto;
    width: auto;
    height: 40px;
    min-height: 40px;
    padding: 0 12px;
    line-height: 1 !important;
    text-align: center;
    white-space: nowrap;
  }
  body.admin-mode .admin-view { padding: 12px; }
  body.admin-mode .admin-page-head { gap: 10px; }
  body.admin-mode .admin-page-head .head-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  body.admin-mode .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  body.admin-mode .stat-card { padding: 13px; }
  body.admin-mode .data-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  body.admin-mode .data-table { min-width: 700px; }
  body.admin-mode .modal-layer { padding: 8px; align-items: flex-end; }
  body.admin-mode .modal-card { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; }
  body.admin-mode .modal-card.wide { width: 100%; max-width: none; }
  /* 手机上屏幕矮，也跟桌面一样：列表跟着"每页多少条"长，整页滚（2026-10-14 见上一条说明） */
  .material-data-panel { max-height: none; }
  /* 手机端顶栏本身是吸顶的（约 66px），工具条要贴在它下面，别被盖住 */
  .material-toolbar { top: 62px; }
}

/* 微信授权登录 */
.wx-login-panel { text-align: center; padding: 52px 24px; }
.wx-login-mark { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(140deg, #16866b, #0d6e5c); font-size: 28px; font-weight: 800; }
.wx-login-panel h3 { margin: 0 0 10px; font-size: 20px; color: #1d2939; }
.wx-login-panel p { margin: 0 auto 20px; max-width: 260px; color: #667085; font-size: 13px; line-height: 1.7; }
.wx-login-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 280px; margin: 0 auto; }
.wx-login-btns .primary-btn,
.wx-login-btns .secondary-btn { width: 100%; }
.wx-login-note { margin-top: 14px !important; color: #98a2b3; font-size: 11px; }

/* 吉祥物亲和力样式 */
.ai-welcome-card { align-items: center; }
.ai-welcome-mascot { flex: 0 0 auto; width: 74px; height: 104px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.18)); animation: mascotFloat 2.8s ease-in-out infinite; }
.ai-welcome-copy { flex: 1 1 auto; min-width: 0; }
.ai-bubble-avatar { position: relative; float: left; width: 29px; height: 35px; margin: 6px 7px 1px 0; overflow: visible; background: transparent; border-radius: 0; }
.ai-bubble-avatar img { width: 100%; height: 100%; object-fit: contain; display: block; transform-origin: 50% 88%; }
.ai-bubble-avatar.ai-latest.mood-happy img { animation: aiMascotHappy 1.1s ease-in-out infinite; }
.ai-bubble-avatar.ai-latest.mood-thanks img { animation: aiMascotThanks 1.6s ease-in-out infinite; }
.ai-bubble-avatar.ai-latest.mood-sad img { animation: aiMascotSad 2.6s ease-in-out infinite; }
.ai-bubble-avatar.ai-latest.mood-alert img { animation: aiMascotAlert .7s ease-in-out infinite; }
.ai-bubble-avatar.ai-latest.mood-idea img { animation: aiMascotIdea 1.8s ease-in-out infinite; }
.ai-bubble-avatar.ai-latest.mood-think img { animation: aiMascotThink 2.4s ease-in-out infinite; }
.ai-bubble-avatar.ai-latest.mood-ask img { animation: aiMascotAsk 1.8s ease-in-out infinite; }
.ai-bubble-avatar.ai-latest.mood-default img { animation: aiMascotBreath 2.6s ease-in-out infinite; }
@keyframes aiMascotHappy { 0%,100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-3px) rotate(-3deg); } 50% { transform: translateY(0) rotate(0deg); } 75% { transform: translateY(-2px) rotate(3deg); } }
@keyframes aiMascotThanks { 0%,100% { transform: translateY(0) scaleY(1); } 45%,60% { transform: translateY(2px) scaleY(.94); } }
@keyframes aiMascotSad { 0%,100% { transform: translateY(0) rotate(4deg); } 50% { transform: translateY(2px) rotate(7deg); } }
@keyframes aiMascotAlert { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-1.5px); } 40% { transform: translateX(1.5px); } 60% { transform: translateX(-1.2px); } 80% { transform: translateX(1.2px); } }
@keyframes aiMascotIdea { 0%,100% { transform: scale(1); } 40% { transform: scale(1.12); } 70% { transform: scale(1.02); } }
@keyframes aiMascotThink { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes aiMascotAsk { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes aiMascotBreath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.ai-message-avatar.mascot-avatar { width: 39px; height: 48px; padding: 2px; overflow: hidden; background: #fff; box-shadow: 0 4px 10px rgba(16,24,40,.1); transform: translateY(4px); }
.ai-message-avatar.mascot-avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ai-message-avatar.user-avatar { width: 28px; height: 28px; border-radius: 50%; }
.ai-message-bubble { position: relative; }
.ai-concierge-card,
.ai-upgrade-offer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; padding: 9px 10px; border: 1px solid #d9e9e4; border-radius: 10px; background: #f4faf8; }
.ai-upgrade-offer { border-color: #ead8ab; background: #fff9ea; }
.ai-concierge-card > div,
.ai-upgrade-offer > div { min-width: 0; }
.ai-concierge-card b,
.ai-concierge-card span,
.ai-upgrade-offer b,
.ai-upgrade-offer span { display: block; }
.ai-concierge-card b,
.ai-upgrade-offer b { color: #173f37; font-size: 12px; }
.ai-concierge-card span,
.ai-upgrade-offer span { margin-top: 3px; color: #6d7b87; font-size: 11px; line-height: 1.45; }
.ai-concierge-card button,
.ai-upgrade-offer button { flex: 0 0 auto; }
.ai-concierge-card.expanded {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
}
.ai-concierge-card.expanded .ai-concierge-qr {
  width: 86px;
  height: 86px;
  display: block;
  border: 1px solid #d9e9e4;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}
.ai-concierge-card.expanded small {
  display: block;
  margin-top: 5px;
  color: #8b98a5;
  font-size: 10px;
  line-height: 1.45;
}
.ai-message-emote { position: absolute; right: -7px; bottom: -8px; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 4px 10px rgba(16,24,40,.12); font-size: 12px; animation: emotePop .35s ease both; }
@keyframes mascotFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes emotePop { from { opacity: 0; transform: scale(.5) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@media (max-width: 470px) {
  .ai-welcome-mascot { width: 62px; height: 88px; }
  .ai-welcome-card { padding: 15px; }
  .ai-concierge-card, .ai-upgrade-offer { align-items: flex-start; flex-direction: column; }
  .ai-concierge-card.expanded { grid-template-columns: 74px minmax(0, 1fr); }
  .ai-concierge-card.expanded .ai-concierge-qr { width: 74px; height: 74px; }
  .ai-concierge-card.expanded button { grid-column: 1 / -1; width: 100%; }
}

/* AI后台大字体 */
.ai-admin-page { font-size: 15px; }
.ai-admin-page .admin-page-head p { font-size: 15px; line-height: 1.8; }
.ai-admin-page .panel-head h3 { font-size: 19px; }
.ai-admin-page .panel-head p,
.ai-admin-page .panel-head button { font-size: 14px; }
.ai-admin-page .access-box b { font-size: 16px; }
.ai-admin-page .access-box span { font-size: 15px; line-height: 1.8; }
.ai-admin-page .data-table { font-size: 14px; }
.ai-admin-page .data-table th { font-size: 14px; }
.ai-admin-page .data-table td { font-size: 14px; line-height: 1.6; }
.ai-admin-page .row-actions button { min-height: 36px; padding: 0 12px; font-size: 14px; }
.ai-settings-form .form-field label { font-size: 16px; font-weight: 800; }
.ai-settings-form input,
.ai-settings-form select,
.ai-settings-form textarea { min-height: 50px; padding: 12px 13px; font-size: 16px; line-height: 1.6; }
.ai-settings-form textarea { min-height: 130px; }
.ai-settings-form .beta-choice { min-height: 46px; padding: 10px 13px; font-size: 15px; }
.ai-settings-form .check-option { min-height: 48px; font-size: 16px; }
.ai-quota-row { display: grid; grid-template-columns: 110px 1fr 110px 52px; gap: 8px; align-items: center; margin-bottom: 8px; }
.ai-quota-row select, .ai-quota-row input { min-height: 42px; padding: 8px 10px; font-size: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ai-quota-row .ai-q-value { grid-column: auto; }
.ai-combined-rule-head,
.ai-combined-rule-row { display: grid; grid-template-columns: 106px minmax(240px, 1.55fr) minmax(130px, .68fr) minmax(145px, .77fr) 52px; gap: 8px; align-items: center; }
.ai-combined-rule-head { margin-bottom: 5px; color: #7d8995; font-size: 11px; font-weight: 700; }
.ai-combined-rule-row { margin-bottom: 7px; }
.ai-combined-rule-row select,
.ai-combined-rule-row input { width: 100%; min-width: 0; min-height: 36px; height: 36px; padding: 0 8px; border: 1px solid #dfe5eb; border-radius: 8px; background: #fff; font-size: 13px; }
.ai-combined-rule-row .mini-btn { min-height: 32px; padding: 0 8px; }
.ai-external-products-field { padding: 12px; border: 1px solid #e2ebe7; border-radius: 14px; background: #fbfdfc; }
.ai-external-products-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.ai-external-products-toolbar label { margin: 0; }
.ai-external-products-toolbar p { margin: 5px 0 0; color: #7d8995; font-size: 12px; line-height: 1.6; }
.ai-external-product-head,
.ai-external-product-row { display: grid; grid-template-columns: minmax(150px, .78fr) minmax(250px, 1.45fr) minmax(180px, 1fr) 58px; gap: 8px; align-items: center; }
.ai-external-product-head { padding: 0 8px 6px; color: #7d8995; font-size: 11px; font-weight: 700; }
.ai-external-product-row { margin-bottom: 8px; padding: 8px; border: 1px solid #e4ebe7; border-radius: 12px; background: #fff; }
.ai-external-product-field { min-width: 0; margin: 0; }
.ai-external-product-field > span { display: none; }
.ai-external-product-field input { width: 100%; min-width: 0; min-height: 40px; height: 40px; padding: 0 10px; border: 1px solid #dfe5eb; border-radius: 9px; background: #fff; font-size: 13px; }
.ai-external-product-remove { min-height: 36px; padding: 0 8px; }
.ai-external-product-empty { padding: 20px 12px; border: 1px dashed #cfddd7; border-radius: 12px; background: #fff; text-align: center; }
.ai-external-product-empty b,
.ai-external-product-empty span { display: block; }
.ai-external-product-empty b { color: #344054; font-size: 14px; }
.ai-external-product-empty span { margin-top: 4px; color: #8a96a3; font-size: 12px; line-height: 1.6; }
.form-hint { margin: 8px 0 0; color: #98a2b3; font-size: 12px; line-height: 1.6; }
#aiQuotaList { margin-bottom: 10px; }
#aiQuotaList:empty { display: none; }
@media (max-width: 900px) {
  .ai-external-product-head { display: none; }
  .ai-external-product-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ai-external-product-field > span { display: block; margin-bottom: 5px; color: #667085; font-size: 12px; font-weight: 700; }
  .ai-external-product-remove { justify-self: end; min-width: 84px; }
}
@media (max-width: 560px) {
  .ai-quota-row { grid-template-columns: 92px 1fr 86px 44px; gap: 6px; }
  .ai-quota-row select, .ai-quota-row input { font-size: 13px; padding: 7px 8px; }
  .ai-external-products-toolbar { align-items: stretch; flex-direction: column; }
  .ai-external-products-toolbar button { width: 100%; }
  .ai-external-product-row { padding: 10px; }
}
.ai-admin-page .stat-card b { font-size: 24px; }
.ai-admin-page .stat-card span,
.ai-admin-page .stat-card small { font-size: 13px; }
.ai-admin-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 1 1 auto;
  gap: 6px;
  padding: 5px;
  border: 1px solid #dce9e4;
  border-radius: 14px;
  background: linear-gradient(180deg, #f5faf8, #edf5f2);
}
.ai-admin-topline { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ai-admin-summary-line { flex: 0 1 360px; min-width: 0; color: #71808d; font-size: 10.5px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-admin-nav-item {
  position: relative;
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #3f4c59;
  background: rgba(255, 255, 255, .82);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.ai-admin-nav-item:hover { border-color: #b9dcd2; background: #fff; transform: translateY(-1px); }
.ai-admin-nav-item.active {
  border-color: #0d6e5c;
  color: #083f35;
  background: linear-gradient(145deg, #ffffff, #e5f5ef);
  box-shadow: 0 8px 20px rgba(13, 110, 92, .13);
}
.ai-admin-nav-item.settings { border-style: dashed; border-color: #a7d8ca; }
.ai-admin-nav-item.settings.active { border-style: solid; border-color: #0d6e5c; }
.ai-admin-nav-copy { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; }
.ai-admin-nav-copy b { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 900; white-space: nowrap; }
.ai-admin-nav-copy b em {
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #0d6e5c;
  background: #dcf3eb;
  font-size: 10px;
  font-style: normal;
}
.ai-admin-nav-copy small { display: none; }
.ai-admin-nav-arrow { display: none; }
.ai-admin-subnav {
  width: fit-content;
  display: flex;
  gap: 3px;
  margin: 8px 0;
  padding: 3px;
  border: 1px solid #dfe8e4;
  border-radius: 12px;
  background: #f1f6f4;
}
.ai-admin-subnav button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  color: #667380;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.ai-admin-subnav button span { padding: 1px 6px; border-radius: 999px; background: #e2eae7; font-size: 10px; }
.ai-admin-subnav button.active { color: #0d6e5c; background: #fff; box-shadow: 0 2px 8px rgba(16, 24, 40, .08); }
.ai-admin-stack > .panel + .panel,
.ai-admin-stack > .panel + section { margin-top: 12px; }
.ai-admin-page .empty-state { padding: 24px 15px; }
.ai-panel-body { min-width: 0; padding: 0 17px 16px; }
.ai-panel-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ai-test-result > .ai-panel-body { padding-top: 0; }
.ai-corpus-accordion .ai-corpus-group-row td { padding: 0; border-top: 1px solid #e6ece9; background: #f8fbfa; }
.ai-corpus-accordion .ai-corpus-group-row:first-child td { border-top: 0; }
.ai-corpus-accordion .ai-corpus-group-row:hover td { background: #f8fbfa; }
.ai-corpus-group-line { display: flex; align-items: center; gap: 8px; padding-right: 12px; }
.ai-corpus-group-toggle {
  flex: 1 1 auto;
  width: auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  border: 0;
  color: #354553;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.ai-corpus-group-toggle:hover { background: #f0f8f5; }
.ai-corpus-group-toggle.expanded { color: #0b5f50; background: #edf8f4; box-shadow: inset 3px 0 0 #0d6e5c; }
.ai-corpus-group-toggle:disabled { color: #7f8b96; cursor: default; background: #f8faf9; }
.ai-corpus-group-toggle:disabled:hover { background: #f8faf9; }
.ai-corpus-group-toggle:disabled .ai-corpus-group-chevron { color: #9aa7b1; background: #edf1f3; }
.ai-corpus-group-toggle:disabled .ai-corpus-group-action { color: #7f8b96; background: #eef1f3; }
.ai-corpus-group-chevron { flex: 0 0 20px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; color: #0d6e5c; background: #dff2eb; font-size: 13px; font-weight: 900; }
.ai-corpus-group-copy { flex: 1 1 auto; min-width: 0; }
.ai-corpus-group-copy b { display: block; overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.ai-corpus-group-copy small { display: block; margin-top: 2px; color: #7d8b97; font-size: 10px; }
.ai-corpus-group-action { flex: 0 0 auto; padding: 3px 8px; border-radius: 999px; color: #0d6e5c; background: #e2f2ed; font-size: 10px; font-weight: 800; }
.ai-corpus-category-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.ai-corpus-category-actions button { border: 0; border-radius: 7px; padding: 4px 8px; color: #0d6e5c; background: #e4f5ef; font-size: 10px; font-weight: 800; cursor: pointer; }
.ai-corpus-category-actions button:hover { background: #d5eee6; }
.ai-corpus-category-actions button.danger { color: #b42318; background: #fde9e7; }
.ai-corpus-category-actions button.danger:hover { background: #fbd9d5; }
.ai-corpus-item-row td { background: #fff; }
.ai-corpus-item-row td:first-child { padding-left: 31px; box-shadow: inset 3px 0 0 #d8eee7; }
.ai-corpus-item-row:hover td { background: #fbfdfc; }
.ai-corpus-category-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-bottom: 1px solid #e6ece9;
  background: #f7fbf9;
}
.ai-corpus-category-tabs { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; overflow-x: auto; padding-bottom: 1px; }
.ai-corpus-category-tab {
  flex: 0 0 auto;
  min-height: 31px;
  padding: 5px 10px;
  border: 1px solid #d5e6e0;
  border-radius: 999px;
  color: #356357;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.ai-corpus-category-tab b { margin-left: 5px; padding: 1px 5px; border-radius: 999px; color: #56766d; background: #eaf4f0; font-size: 10px; }
.ai-corpus-category-tab.active { border-color: #0d6e5c; color: #fff; background: #0d6e5c; box-shadow: 0 2px 7px rgba(13,110,92,.18); }
.ai-corpus-category-tab.active b { color: #0d6e5c; background: #fff; }
.ai-corpus-category-strip > .secondary-btn { flex: 0 0 auto; }
.ai-corpus-flat-table .ai-corpus-item-row td:first-child { padding-left: 12px; box-shadow: none; }
.ai-corpus-flat-table .ai-corpus-item-row td:nth-child(3) .mini-tag + .mini-tag { margin-left: 4px; }
.ai-corpus-flat-table .ai-corpus-item-row td { padding-top: 7px; padding-bottom: 7px; vertical-align: middle; }
.ai-corpus-title-line { min-width: 0; display: flex; align-items: center; gap: 6px; }
.ai-corpus-title-line b { min-width: 0; overflow: hidden; color: #1d2939; font-size: 13px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.ai-corpus-title-line .mini-tag { flex: 0 0 auto; margin: 0; white-space: nowrap; }
.ai-corpus-excerpt {
  display: -webkit-box;
  margin: 3px 0 0;
  overflow: hidden;
  color: #8a96a2;
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ai-corpus-toolbar { flex-wrap: wrap; }
.ai-corpus-list-summary { padding: 9px 15px 1px; color: #7d8995; font-size: 11px; }
.ai-settings-panel { overflow: hidden; }
.ai-settings-commandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2ebe7;
  background: linear-gradient(135deg, #f6fbf9, #eef7f4);
}
.ai-settings-commandbar small { color: #15806a; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.ai-settings-commandbar h3 { margin: 3px 0 2px; font-size: 17px; }
.ai-settings-commandbar p { margin: 0; color: #71808d; font-size: 11.5px; }
.ai-settings-commandbar .head-actions { flex: 0 0 auto; align-items: center; }
.ai-settings-layout { display: block; min-height: 0; }
.ai-settings-tabbar { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-bottom: 1px solid #e7eeeb; background: #fbfcfc; }
.ai-settings-nav { flex: 1 1 auto; min-width: 0; display: flex; gap: 5px; overflow-x: auto; padding: 0; border: 0; background: transparent; }
.ai-settings-nav > button {
  flex: 1 1 0;
  width: auto;
  min-width: 142px;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1px 7px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #4c5966;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.ai-settings-nav > button b { font-size: 13px; }
.ai-settings-nav > button small { grid-column: 1; overflow: hidden; color: #8a96a2; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.ai-settings-nav > button span { display: none; }
.ai-settings-nav > button:hover { border-color: #d9e9e4; background: #f4faf8; }
.ai-settings-nav > button.active { border-color: #b9ded4; color: #0b5d4e; background: #e8f6f1; box-shadow: inset 0 3px 0 #0d6e5c; }
.ai-settings-nav > button.active small { color: #4d7a70; }
.ai-settings-nav > button.active span { color: #0d6e5c; }
.ai-settings-side-status {
  flex: 0 0 auto;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #e2ebe7;
  border-radius: 12px;
  background: #fff;
}
.ai-settings-side-status b,
.ai-settings-side-status span { display: inline; }
.ai-settings-side-status b { color: #0d6e5c; font-size: 12px; }
.ai-settings-side-status span { margin-left: 6px; color: #667380; font-size: 10px; line-height: 1.4; }
.ai-settings-content { min-width: 0; padding: 12px 16px 16px; }
.ai-settings-section { display: none; padding: 14px; border: 1px solid transparent; border-radius: 16px; }
.ai-settings-section.active { display: block; animation: fadeIn .16s ease; }
.ai-settings-section[data-ai-settings-section="strategy"] { border-color: #dcebe5; background: #f4faf7; }
.ai-settings-section[data-ai-settings-section="copy"] { border-color: #dfe7f1; background: #f5f8fc; }
.ai-settings-section[data-ai-settings-section="concierge"] { border-color: #efe1c4; background: #fffaf1; }
.ai-settings-section[data-ai-settings-section="access"] { border-color: #d8e8e2; background: #f3f9f6; }
.ai-settings-section[data-ai-settings-section="basic"] { border-color: #dfe5ea; background: #f5f7f9; }
.ai-settings-section + .ai-settings-section { margin-top: 14px; }
.ai-settings-section > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #edf1ef; }
.ai-settings-section > header h3 { margin: 0; font-size: 17px; }
.ai-settings-section > header p { margin: 3px 0 0; color: #7a8793; font-size: 11px; }
.ai-settings-section-action { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.ai-settings-section .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; align-items: start; }
.ai-settings-section .form-field { margin-bottom: 0; }
.ai-settings-section .full { grid-column: 1 / -1; }
.ai-settings-group { padding: 12px; border: 1px solid rgba(210, 221, 218, .82); border-radius: 13px; background: rgba(255, 255, 255, .94); }
.ai-settings-group-title { display: flex; align-items: center; margin-bottom: 9px; }
.ai-settings-group-title b { color: #314252; font-size: 14px; }
.ai-settings-group-4 > .form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ai-access-top-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ai-access-top-grid > .form-field > select,
.ai-access-top-grid > .form-field > input { height: 50px; min-height: 50px; padding-top: 0; padding-bottom: 0; box-sizing: border-box; }
.ai-settings-details { overflow: hidden; border: 1px solid #e1e9e6; border-radius: 10px; background: #fafcfb; }
.ai-settings-details > summary { display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: #526170; font-size: 12px; font-weight: 800; cursor: pointer; list-style: none; }
.ai-settings-details > summary::-webkit-details-marker { display: none; }
.ai-settings-details > summary::before { content: "+"; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 5px; color: #0d6e5c; background: #e5f4ef; font-size: 13px; }
.ai-settings-details[open] > summary { color: #0b5f50; border-bottom: 1px solid #e5ece9; background: #f3faf7; }
.ai-settings-details[open] > summary::before { content: "−"; }
.ai-settings-detail-grid { padding: 11px 12px 12px; background: #fff; }
.ai-settings-form .form-field .beta-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0; }
.ai-settings-form .form-field .beta-choice { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid #dfe8e4; border-radius: 8px; background: #fafcfb; font-size: 13px; }
.ai-settings-form .form-field .beta-choice:has(input:checked) { border-color: #65bfa3; color: #126c59; background: #eefaf6; }
.ai-settings-form .ai-inline-check { width: 100%; height: 50px; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 13px; border: 1px solid #dfe5eb; border-radius: 10px; background: #fff; color: #344054; font-size: 14px; font-weight: 600; cursor: pointer; }
.ai-settings-form .ai-inline-check input { flex: 0 0 auto; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: #16866b; }
.ai-settings-subhead { display: flex; align-items: baseline; gap: 8px; margin: 3px 0 -3px; padding-top: 7px; border-top: 1px dashed #e3eae7; }
.ai-settings-subhead:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ai-settings-subhead b { color: #314252; font-size: 14px; }
.ai-settings-subhead span { color: #8a96a2; font-size: 11px; }
.ai-field-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.ai-field-title label { margin: 0; }
.ai-field-title > span { display: flex; align-items: center; gap: 7px; }
.ai-key-status-card,
.ai-access-sync { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ai-key-status-card > div:first-child,
.ai-access-sync > div:first-child { min-width: 0; }
.ai-key-status-card b,
.ai-access-sync b { margin-bottom: 4px; }
.ai-key-status-card .head-actions { flex: 0 0 auto; flex-wrap: wrap; }
.ai-key-status-card .head-actions a { text-decoration: none; display: inline-flex; align-items: center; }
.ai-settings-savebar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 16px;
  border-top: 1px solid #dfe9e5;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
}
.ai-settings-savebar span { color: #7c8995; font-size: 11px; }
.ai-compact-action-list { display: grid; gap: 8px; }
.ai-compact-action-list button { width: 100%; min-height: 46px; }
@media (max-width: 1080px) {
  .ai-admin-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-settings-section .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-settings-group-4 > .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-access-top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-settings-side-status { display: none; }
}
@media (max-width: 760px) {
  .ai-admin-nav { grid-template-columns: 1fr 1fr; }
  .ai-admin-nav-item.settings { grid-column: 1 / -1; }
  .ai-admin-topline { display: block; }
  .ai-admin-summary-line { margin-top: 6px; text-align: left; white-space: normal; }
  .ai-admin-nav-copy b { font-size: 13px; }
  .ai-admin-nav-copy small { white-space: normal; }
  .ai-admin-page .panel-head { flex-wrap: wrap; align-items: flex-start; gap: 7px; }
  .ai-admin-page .panel-head .head-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .ai-admin-page .panel-head .head-actions > * { width: 100%; min-width: 0; margin: 0; }
  .ai-corpus-category-strip { align-items: stretch; flex-direction: column; gap: 7px; padding: 9px 12px; }
  .ai-corpus-category-strip > .secondary-btn { align-self: flex-end; }
  .ai-settings-commandbar { align-items: flex-start; flex-direction: column; }
  .ai-settings-commandbar .head-actions { width: 100%; }
  .ai-settings-commandbar .head-actions .primary-btn { margin-left: auto; }
  .ai-settings-tabbar { display: block; padding: 7px 10px; }
  .ai-settings-nav { display: flex; gap: 6px; overflow-x: auto; }
  .ai-settings-nav > button { flex: 0 0 158px; margin: 0; }
  .ai-settings-side-status { display: none; }
  .ai-settings-content { padding: 12px; }
  .ai-settings-section { padding: 11px; }
  .ai-settings-group { padding: 10px; }
  .ai-settings-form .form-field .beta-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-access-top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-combined-rule-head { display: none; }
  .ai-combined-rule-row { grid-template-columns: 104px minmax(0, 1fr); }
  .ai-combined-rule-row .mini-btn { grid-column: 2; justify-self: end; }
  .ai-corpus-toolbar { padding: 0 12px; }
  .ai-corpus-toolbar .spacer { display: none; }
  .ai-corpus-toolbar > select,
  .ai-corpus-toolbar > button { flex: 1 1 calc(50% - 6px); width: auto; min-width: 0; }
  .ai-key-status-card,
  .ai-access-sync { align-items: flex-start; flex-direction: column; }
  .ai-settings-savebar { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .ai-admin-nav { grid-template-columns: 1fr 1fr; }
  .ai-admin-nav-item { min-height: 50px; }
  .ai-settings-section .form-grid { grid-template-columns: 1fr; }
  .ai-settings-group-4 > .form-grid { grid-template-columns: 1fr; }
  .ai-access-top-grid { grid-template-columns: 1fr; }
  .ai-settings-section .form-field.full,
  .ai-settings-subhead.full,
  .ai-settings-form .check-option.full { grid-column: 1; }
}
@media (max-width: 380px) { .ai-voice-actions { gap: 5px; } .ai-voice-btn, .ai-send-btn { font-size: 12px; padding-left: 4px; padding-right: 4px; } }

/* AI聊天页：压缩顶部，输入区固定在底部 */
.mini-app.ai-agent-active .mini-header::after { display: none; }
.mini-app.ai-agent-active .mini-header { background: linear-gradient(135deg, #103f48, #0d6e5c); }
.mini-app.ai-agent-active .mini-header .header-copy { padding: 9px 14px 8px; }
.mini-app.ai-agent-active .mini-header .header-copy small { display: none; }
.mini-app.ai-agent-active .mini-header .header-copy h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.mini-app.ai-agent-active .mini-header .header-search { display: none; }
.mini-app.ai-agent-active .mini-view { padding: 0; overflow: hidden; }
.mini-app.ai-agent-active .mini-nav { flex: 0 0 auto; }
.mini-app.ai-agent-active .ai-page { height: 100%; min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.mini-app.ai-agent-active .ai-top-scroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
.mini-app.ai-agent-active .ai-welcome-section { padding-top: calc(62px + env(safe-area-inset-top)) !important; }
.mini-app.ai-agent-active .ai-chat-shell { margin-bottom: 0; }
.mini-app.ai-agent-active .ai-message-list { height: auto; max-height: none; overflow: visible; }
.mini-app.ai-agent-active .ai-bottom-fixed { flex: 0 0 auto; position: relative; z-index: 20; margin: 0; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); border-radius: 0; border: 0; border-top: 1px solid #e1ebe7; background: #fff; box-shadow: 0 -8px 24px rgba(16,24,40,.08); }
.mini-app.ai-agent-active .ai-bottom-fixed textarea { min-height: 44px; max-height: 168px; }
.mini-app.ai-agent-active .ai-bottom-fixed .ai-input-hint { margin-top: 5px; }

/* AI页面：隐藏顶部品牌栏与底部导航，最大化可视区域 */
.mini-app.ai-agent-active .mini-header { display: none !important; }
.mini-app.ai-agent-active .mini-nav { display: none !important; }
.phone-wrap.ai-agent-active .android-header { display: none !important; }
.phone-wrap.ai-agent-active .mini-nav { display: none !important; }
body.customer-mode .mini-app.ai-agent-active .mini-view { padding-top: 0 !important; }
body.customer-mode .mini-app.ai-agent-active .ai-welcome-section { padding-top: calc(62px + env(safe-area-inset-top)) !important; }
.mini-app.ai-agent-active .mini-view { flex: 1 1 auto; }

/* AI语音提示：改用内联卡片，避免AI页弹窗无法点击导致卡死 */
.ai-voice-notice { margin: 0 0 9px; padding: 12px 13px; border: 1px solid #f0c36d; border-radius: 13px; background: #fff9ec; color: #7a4b00; font-size: 14px; line-height: 1.7; }
.ai-voice-notice b { display: block; margin-bottom: 4px; font-size: 16px; color: #8a5200; }
.ai-voice-notice p { margin: 0 0 6px; }
.ai-voice-notice-why { color: #9a7b45; font-size: 12.5px; }
.ai-voice-notice-actions { display: flex; gap: 8px; margin-top: 8px; }
.ai-voice-notice-actions button { flex: 1 1 0; min-height: 44px; border: 1px solid #e2b25a; border-radius: 11px; background: #fff; color: #8a5200; font-size: 15px; font-weight: 800; }
.ai-voice-notice-actions button:first-child { background: #f6a623; border-color: #f6a623; color: #fff; }

/* AI对话管理：新对话 / 历史对话 / 单条消息操作 */
.ai-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ai-chat-head-actions { display: flex; gap: 6px; }
.ai-chat-head-actions button { min-height: 38px; padding: 0 12px; border: 1px solid #cfe3db; border-radius: 10px; background: #f3faf7; color: #126c59; font-size: 14px; font-weight: 800; }
.ai-chat-head-actions button:first-child { background: #0d6e5c; border-color: #0d6e5c; color: #fff; }
.ai-history { margin: 0 0 10px; padding: 10px; border: 1px solid #dbe7e3; border-radius: 13px; background: #fbfdfc; }
.ai-history-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 15px; }
.ai-history-head button { min-height: 34px; padding: 0 12px; border: 1px solid #cfe3db; border-radius: 9px; background: #fff; color: #126c59; font-size: 13px; font-weight: 700; }
.ai-history-empty { margin: 6px 0; color: #98a2b3; font-size: 13px; }
.ai-conv-row { display: flex; align-items: stretch; gap: 5px; margin-bottom: 6px; }
.ai-conv-row.active .ai-conv-open { border-color: #0d6e5c; background: #eef8f4; }
.ai-conv-open { flex: 1 1 auto; min-width: 0; min-height: 42px; padding: 6px 8px; border: 1px solid #e1ebe7; border-radius: 10px; background: #fff; text-align: left; }
.ai-conv-open b { display: block; font-size: 13px; color: #1d2939; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-conv-open span { display: block; margin-top: 2px; color: #98a2b3; font-size: 10px; }
.ai-conv-del { flex: 0 0 auto; min-height: 42px; padding: 0 8px; border: 1px solid #f0c7c7; border-radius: 10px; background: #fff7f7; color: #b42318; font-size: 12px; font-weight: 800; }
.ai-message-actions { display: flex; gap: 6px; margin-top: 7px; }
.ai-message-actions button { min-height: 32px; padding: 0 11px; border: 1px solid #d7e5e0; border-radius: 9px; background: rgba(255,255,255,.9); color: #126c59; font-size: 12.5px; font-weight: 700; }
.ai-message.user .ai-message-actions button { border-color: #cfe0ff; color: #1a4fa0; }
.ai-edit-area { width: 100%; min-height: 96px; padding: 10px; border: 1px solid #bcd9cf; border-radius: 11px; background: #fff; color: #1d2939; font-size: 15px; line-height: 1.7; resize: vertical; }

/* AI页：左侧对话抽屉 + 长按操作 + 按钮配色 */
.ai-drawer-mask { position: fixed; inset: 0; z-index: 590; background: rgba(8,15,28,.42); }
.ai-drawer { position: fixed; z-index: 600; top: 0; bottom: 0; left: 0; width: min(50vw, 260px); display: flex; flex-direction: column; padding: 12px 9px calc(12px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 6px 0 26px rgba(16,24,40,.24); }
.ai-drawer.entering { animation: aiDrawerIn .22s ease-out; }
@keyframes aiDrawerIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.ai-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; font-size: 14px; }
.ai-drawer-head button { min-height: 32px; padding: 0 10px; border: 1px solid #cfe3db; border-radius: 9px; background: #f3faf7; color: #126c59; font-size: 13px; font-weight: 800; }
.ai-drawer-new { width: 100%; min-height: 50px; margin-bottom: 10px; border: 0; border-radius: 12px; background: #0d6e5c; color: #fff; font-size: 16px; font-weight: 800; }
.ai-drawer-list-title { margin: 4px 0 8px; color: #667085; font-size: 12px; font-weight: 800; }
.ai-drawer-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.ai-drawer-btn { min-height: 40px; padding: 0 13px; border: 1px solid #cfe3db; border-radius: 11px; background: #f3faf7; color: #126c59; font-size: 14px; font-weight: 800; flex: 0 0 auto; }
.ai-chat-head > div { flex: 1 1 auto; text-align: right; }
.ai-voice-btn { background: #e6f6f0 !important; border-color: #7cc4ad !important; color: #0b5a4a !important; }
.ai-voice-btn.send { background: #e6f6f0 !important; border-color: #7cc4ad !important; }
.ai-send-btn, .primary-btn.ai-send-btn { background: #0d6e5c !important; border-color: #0d6e5c !important; color: #fff !important; }
.ai-message-actions button:first-child { background: #f3faf7; }
.ai-message { -webkit-touch-callout: none; }

/* AI对话记录：勾选批量删除 */
.ai-conv-check { flex: 0 0 auto; width: 24px; min-height: 24px; align-self: center; border: 1px solid #cfe3db; border-radius: 7px; background: #fff; color: #fff; font-size: 12px; font-weight: 900; }
.ai-conv-check.on { background: #0d6e5c; border-color: #0d6e5c; }
.ai-conv-row.picked .ai-conv-open { border-color: #0d6e5c; background: #f1faf7; }
.ai-drawer-foot { display: flex; gap: 8px; padding-top: 10px; margin-top: 8px; border-top: 1px solid #eef2f4; }
.ai-drawer-foot button { flex: 1 1 0; min-height: 48px; border: 1px solid #cfe3db; border-radius: 12px; background: #f3faf7; color: #126c59; font-size: 15px; font-weight: 800; }
.ai-drawer-foot .ai-bulk-del { background: #fff4f2; border-color: #f0b4ab; color: #b42318; }

/* AI对话内：长按多选消息 */
.ai-message.pickable { align-items: flex-start; }
.ai-msg-check { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-top: 5px; border: 1px solid #cfe3db; border-radius: 8px; background: #fff; color: #fff; font-size: 14px; font-weight: 900; }
.ai-msg-check.on { background: #0d6e5c; border-color: #0d6e5c; }
.ai-message.picked .ai-message-bubble { outline: 2px solid #0d6e5c; outline-offset: 1px; }
.ai-select-bar { display: flex; gap: 10px; width: 100%; }
.ai-select-bar button { flex: 0 0 96px; min-height: 54px; padding: 0 16px; border: 1px solid #cfe3db; border-radius: 13px; background: #fff; color: #126c59; font-size: 16px; font-weight: 800; }
.ai-select-bar button.danger { flex: 1 1 auto; background: #fff4f2; border-color: #f0b4ab; color: #b42318; font-size: 17px; }

/* AI语音：长按录音状态 */
.ai-voice-btn.recording { background: #ffe9e6 !important; border-color: #e8735f !important; color: #a32613 !important; animation: aiVoiceGlow 0.8s ease-in-out infinite; }
@keyframes aiVoiceGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(211,47,47,.35), 0 0 6px 1px rgba(211,47,47,.35); }
  50% { box-shadow: 0 0 0 1px rgba(211,47,47,.6), 0 0 16px 5px rgba(211,47,47,.7); }
}

/* AI语音：长按录音时的全屏提示条（中老年友好大字号） */
.ai-voice-live { position: fixed; left: 50%; bottom: calc(140px + env(safe-area-inset-bottom)); z-index: 700; transform: translateX(-50%); min-width: min(88vw, 380px); padding: 14px 18px; border-radius: 16px; background: #b42318; color: #fff; box-shadow: 0 12px 30px rgba(180,35,24,.35); text-align: center; pointer-events: none; }
.ai-voice-live b { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 19px; font-weight: 900; }
.ai-voice-live i { width: 12px; height: 12px; border-radius: 50%; background: #ffd8d3; animation: aiVoicePulse .9s ease-in-out infinite; }
.ai-voice-live span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: #ffe8e5; }
@keyframes aiVoicePulse { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }

/* AI聊天：右上角“新对话”按钮 */
.ai-chat-head .ai-new-btn { min-height: 40px; padding: 0 16px; border: 0; border-radius: 11px; background: #0d6e5c; color: #fff; font-size: 15px; font-weight: 800; }

/* AI消息：长按后的单条操作弹层 */
.ai-msg-pop { position: absolute; top: calc(100% + 4px); left: 6px; z-index: 32; display: grid; gap: 5px; padding: 6px; border: 1px solid #e1ebe7; border-radius: 12px; background: #fff; box-shadow: 0 12px 26px rgba(16,24,40,.18); }
.ai-msg-pop.above { top: auto; bottom: calc(100% + 4px); }
.ai-message.user .ai-msg-pop { left: auto; right: 6px; }
.ai-msg-pop-row { display: flex; gap: 6px; }
.ai-msg-pop button { min-height: 38px; padding: 0 15px; border: 1px solid #d7e5e0; border-radius: 9px; background: #f7fbf9; color: #126c59; font-size: 15px; font-weight: 800; }
.ai-msg-pop .ai-msg-pop-more { padding: 0 11px; transition: transform .18s ease; }
.ai-msg-pop .ai-msg-pop-more.open { transform: rotate(180deg); }
.ai-msg-pop .ai-msg-pop-del { width: 100%; background: #fff4f2; border-color: #f0b4ab; color: #b42318; }

/* 删除确认弹窗 */
.modal-footer .primary-btn.danger { background: #b42318; border-color: #b42318; color: #fff; }

/* AI消息：正在修改的那一条（内容已放到下方输入框） */
.ai-message.edit-source .ai-message-bubble { outline: 2px solid #0d6e5c; outline-offset: 2px; }
.ai-message.edit-source .ai-message-bubble::after { content: "编辑中"; position: absolute; top: -10px; right: 6px; padding: 1px 7px; border-radius: 8px; background: #0d6e5c; color: #fff; font-size: 10px; font-weight: 800; }

/* AI聊天：左上角「对话记录」按钮放大50%，聊天区文字整体放大20% */
.ai-chat-head .ai-drawer-btn { min-height: 54px; padding: 0 18px; border-radius: 14px; font-size: 17px; font-weight: 900; }
.ai-chat-head .ai-new-btn { min-height: 48px; padding: 0 20px; border-radius: 14px; font-size: 18px; font-weight: 900; }
.ai-welcome-card h3 { font-size: 22px; }
.ai-welcome-card p { font-size: 14px; }
.ai-welcome-card small { font-size: 13px; }
.ai-quota b { font-size: 29px; }
.ai-quota span { font-size: 12px; }
.ai-message-bubble { font-size: 16px; line-height: 1.75; }
.ai-message.edit-source .ai-message-bubble::after { font-size: 12px; }
.ai-msg-pop button { min-height: 46px; padding: 0 18px; font-size: 18px; }
.ai-select-bar button { min-height: 60px; font-size: 19px; }
.ai-select-bar button.danger { font-size: 20px; }
.ai-input-panel textarea { font-size: 16px; line-height: 1.5; }
.ai-voice-btn { min-height: 41px; font-size: 17px !important; }
.ai-send-btn { min-height: 36px; font-size: 17px !important; }
@media (max-width: 380px) {
  .ai-chat-head .ai-drawer-btn { min-height: 52px; padding: 0 15px; font-size: 17px; }
  .ai-chat-head .ai-new-btn { min-height: 46px; padding: 0 16px; font-size: 17px; }
  .ai-voice-btn { font-size: 15px !important; }
  .ai-send-btn { font-size: 15px !important; }
  .ai-message-bubble { font-size: 15px; }
  .ai-input-panel textarea { font-size: 18px; }
}

/* 推荐分享弹窗：海报、操作和邀请统计都在同一页完成 */
.share-box { display: grid; gap: 10px; justify-items: center; }
.share-qr { width: 100%; display: grid; place-items: center; padding: 12px; border: 1px solid #e1ebe7; border-radius: 16px; background: #fbfffd; }
.share-qr img { width: min(70vw, 260px); height: auto; display: block; }
.share-tip { margin: 0; color: #526070; font-size: 14px; line-height: 1.7; text-align: center; }
.share-link-input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #dce7e3; border-radius: 12px; color: #1d2939; background: #fbfdfc; font-size: 14px; }
.share-actions { width: 100%; display: grid; gap: 8px; }
.share-actions button { width: 100%; min-height: 48px; font-size: 16px; }
.share-stats { width: 100%; padding: 12px; border-radius: 12px; background: #f1faf7; color: #126c59; font-size: 15px; text-align: center; }
.share-stats b { font-size: 19px; }
.share-image-wrap { display: grid; place-items: center; }
.share-image-wrap img { width: min(84vw, 380px); height: auto; border: 1px solid #e1ebe7; border-radius: 14px; }

.modal-card.share-modal-card { width: min(450px, 100%); }
.modal-card.share-modal-card .modal-head {
  padding: 20px 22px 18px;
  border-bottom-color: #e2ebe6;
  background:
    radial-gradient(circle at 88% 8%, rgba(224,165,109,.16), transparent 26%),
    linear-gradient(145deg, #f6fbf8, #fffdf8 68%);
}
.course-validity-badge,
.course-validity-blocked {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dcece7;
  border-radius: 12px;
  background: #f5faf8;
  color: #526070;
}
.course-validity-badge b,
.course-validity-blocked b {
  flex: 0 0 auto;
  color: #0d6e5c;
  font-size: 12px;
}
.course-validity-badge span,
.course-validity-blocked span {
  min-width: 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.55;
  text-align: right;
}
.course-validity-badge.is-upcoming,
.course-validity-blocked.is-upcoming {
  border-color: #eadcae;
  background: #fffaf0;
}
.course-validity-badge.is-upcoming b,
.course-validity-blocked.is-upcoming b { color: #8a650f; }
.course-validity-badge.is-expired,
.course-validity-blocked.is-expired {
  border-color: #e5e7eb;
  background: #f8fafc;
}
.course-validity-badge.is-expired b,
.course-validity-blocked.is-expired b { color: #667085; }
.content-grid-card.is-validity-locked .grid-cover,
.content-mini-card.is-validity-locked .content-cover,
.home-banner-card.is-validity-locked .hb-cover,
.home-small-card.is-validity-locked .hs-cover,
.circle-course-catalog.is-validity-locked .circle-course-cover,
.circle-mobile-catalog-section.is-locked .circle-mobile-catalog-section-main {
  filter: grayscale(1);
  opacity: .64;
}
.validity-label {
  color: #7a5b16 !important;
  background: #fff3cd !important;
}
.home-card-validity {
  display: block;
  margin-top: 5px;
  color: #8a650f;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}
.course-validity-blocked { margin: 12px 0; }
.modal-card.share-modal-card .modal-head h3 { color: #155346; font-size: 21px; letter-spacing: -.02em; }
.modal-card.share-modal-card .modal-head span { display: block; margin-top: 4px; color: #6f7c76; font-size: 12px; line-height: 1.5; }
.modal-card.share-modal-card .modal-close { color: #456159; background: #ecf4ef; }
.modal-card.share-modal-card .modal-body {
  padding: 16px 16px 18px;
  background: linear-gradient(180deg, #f7fbf8 0%, #fffdf9 54%);
}
.share-poster-box { display: grid; gap: 13px; }
.share-poster-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.share-poster-stage.is-loading {
  min-height: 370px;
  padding: 12px;
  border: 1px dashed #dfc9aa;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff7eb, #fbf1e3);
}
.share-poster-stage::before {
  display: none;
}
#sharePosterImg {
  position: relative;
  z-index: 1;
  width: min(100%, 260px);
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(112,75,45,.16), 0 2px 7px rgba(112,75,45,.07);
}
.share-poster-loading {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 34px 20px;
  color: #23483e;
  text-align: center;
}
.share-poster-loading i {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(35,72,62,.15);
  border-top-color: #28594b;
  border-radius: 50%;
  animation: sharePosterSpin .8s linear infinite;
}
.share-poster-loading b { font-size: 16px; }
.share-poster-loading span { max-width: 240px; color: #7c796f; font-size: 12px; line-height: 1.6; }
@keyframes sharePosterSpin { to { transform: rotate(360deg); } }
.share-poster-fallback { position: relative; z-index: 1; width: 100%; display: grid; justify-items: center; gap: 7px; text-align: center; }
.share-poster-fallback .share-qr { width: auto; padding: 10px; }
.share-poster-fallback .share-qr img { width: min(48vw, 180px); }
.share-poster-fallback b { color: #1b4037; font-size: 15px; }
.share-poster-fallback span { color: #7c796f; font-size: 12px; }
.share-link-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}
.share-poster-box .share-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e2d9ca;
  border-radius: 15px;
  background: #e2d9ca;
  text-align: left;
}
.share-poster-box .share-stats > span {
  min-height: 68px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  padding: 9px 8px;
  background: linear-gradient(180deg, #fffefa, #faf7f0);
}
.share-poster-box .share-stats small { color: #7c796f; font-size: 11px; }
.share-poster-box .share-stats b { color: #1d4b40; font-size: 24px; line-height: 1.15; }
.share-poster-box .share-stats em { color: #969187; font-size: 10px; font-style: normal; }
.share-poster-box .share-stats > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 10px;
  color: #736f66;
  background: #faf7f0;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
.share-poster-actions { display: grid; gap: 8px; }
.share-save-hint {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e5d8c8;
  border-radius: 12px;
  background: #fff9ef;
  color: #765d42;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.share-save-hint[hidden] { display: none; }
.share-poster-actions button { min-height: 47px; border-radius: 13px; font-size: 15px; }
.share-forward-btn {
  border-color: #0d6e5c;
  background: linear-gradient(135deg, #0d6e5c, #168a72);
  box-shadow: 0 8px 20px rgba(13,110,92,.2);
  font-weight: 900;
}
.share-secondary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.share-secondary-actions button { width: 100%; min-width: 0; padding: 0 10px; }
.share-secondary-actions .secondary-btn { border-color: #ded5c7; color: #2c4c43; background: #fffdfa; }
.share-poster-actions button:disabled { opacity: .48; cursor: wait; box-shadow: none; }
@media (max-width: 380px) {
  .modal-card.share-modal-card .modal-head { padding: 17px 17px 15px; }
  .modal-card.share-modal-card .modal-body { padding: 12px 12px 15px; }
  .share-poster-stage.is-loading { min-height: 330px; padding: 9px; border-radius: 20px; }
  .share-secondary-actions { grid-template-columns: 1fr; }
}

/* 微信里打开分享链接时的安装引导 */
.install-guide-box { display: grid; gap: 10px; }
.install-steps { margin: 0; padding-left: 22px; color: #1d2939; font-size: 16px; line-height: 2; }
.install-steps li { margin: 0; }

/* ===== 商城 ===== */
.shop-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:4px 2px 20px}
.shop-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 2px 10px rgba(16,24,40,.06);cursor:pointer}
.shop-cover{height:96px;display:flex;align-items:flex-end;padding:10px;color:#fff;font-size:11px;font-weight:600}
.shop-cover.big{height:180px;font-size:14px}
.cover-emerald{background:linear-gradient(135deg,#0d6e5c,#14a085)}
.cover-gold{background:linear-gradient(135deg,#b7791f,#e8c06a)}
.cover-blue{background:linear-gradient(135deg,#2563eb,#60a5fa)}
.cover-navy{background:linear-gradient(135deg,#1e293b,#475569)}
.cover-plum{background:linear-gradient(135deg,#7c3aed,#a78bfa)}
.shop-info{padding:10px 12px}
.shop-info b{font-size:14px;display:block;margin-bottom:4px}
.shop-info small{color:#98a2b3;font-size:12px;display:block;height:32px;overflow:hidden}
.shop-foot{display:flex;align-items:center;justify-content:space-between;margin-top:8px}
.shop-price{color:#e5484d;font-weight:700;font-size:16px}
.shop-detail{width:100%;min-width:0;max-width:100%;background:#fff;border-radius:16px;overflow:hidden}
.shop-detail-body{padding:14px;min-width:0;overflow-wrap:anywhere}
.shop-detail-body h3{font-size:17px;margin:0 0 6px}
.shop-section{margin-top:14px}
.shop-section>b{display:block;font-size:13px;margin-bottom:8px;color:#344054}
.sku-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));align-items:stretch;gap:8px;min-width:0}
.sku-option{border:1.5px solid #e4e7ec;border-radius:10px;padding:8px 10px;cursor:pointer;display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 96px;max-width:100%;overflow:hidden}
.sku-option.selected{border-color:#0d6e5c;background:#f0faf7}
.sku-option>img{display:block!important;width:48px!important;max-width:100%!important;height:48px!important;margin:0 auto 4px!important;border:1px solid #e6efeb;border-radius:8px;background:#f7faf9;object-fit:contain!important}
.sku-option span,.sku-option b,.sku-option small{max-width:100%;overflow-wrap:anywhere}
.sku-option span{font-size:13px;line-height:1.4}
.sku-option b{color:#e5484d;font-size:15px;line-height:1.35}
.sku-option small{color:#98a2b3;font-size:11px;line-height:1.35}
.qty-stepper{display:inline-flex;align-items:center;gap:0;border:1.5px solid #e4e7ec;border-radius:10px;overflow:hidden}
.qty-stepper button{width:40px;height:38px;background:#f8fafc;border:none;font-size:18px;color:#344054}
.qty-stepper span{min-width:40px;text-align:center;font-weight:600}
.shop-total{display:flex;align-items:center;justify-content:space-between;margin-top:16px;padding:12px;background:#f8fafc;border-radius:10px}
.shop-total b{font-size:20px;color:#e5484d}
.sku-edit-row,.field-edit-row{display:flex;gap:8px;margin-bottom:8px;align-items:center}
.sku-edit-row input,.field-edit-row input,.field-edit-row select{flex:1;min-width:0}
.mini-check{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#667085;white-space:nowrap}
.radio-inline{display:inline-flex;align-items:center;gap:8px;margin-right:12px;font-size:13px}
.form-field-editor-list{display:grid;gap:10px;margin-bottom:10px}
.form-field-edit-row{display:grid;gap:10px;padding:12px;border:1px solid #dfe9e5;border-radius:12px;background:#f8fbfa}
.form-field-edit-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;padding-bottom:2px}
.form-field-edit-order{color:#41514b;font-size:12px;font-weight:700}
.form-field-edit-order-actions{display:flex;align-items:center;gap:6px}
.form-field-edit-order-actions .mini-btn{min-width:64px;white-space:nowrap}
.form-field-edit-order-actions .mini-btn:disabled{cursor:not-allowed;opacity:.42}
.form-field-edit-main{display:grid;grid-template-columns:minmax(180px,1.4fr) minmax(140px,.8fr) auto auto;gap:8px;align-items:center}
.form-field-edit-main input,.form-field-edit-main select,.form-field-edit-settings textarea{min-width:0;width:100%}
.form-field-edit-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:start}
.form-field-edit-settings>label{display:grid;gap:5px;color:#66746f;font-size:11px}
.form-field-edit-options{display:grid;gap:8px;min-width:0;color:#66746f;font-size:11px}
.form-field-edit-options>label:first-child{display:grid;gap:5px;min-width:0}
.form-field-edit-allow-other{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-height:36px;padding:7px 10px;border:1px solid #dce8e3;border-radius:9px;background:#fff;color:#334b43;cursor:pointer}
.form-field-edit-allow-other input{width:auto!important;margin:0;accent-color:var(--green)}
.form-field-edit-allow-other span{font-size:12px;font-weight:750;white-space:nowrap}
.form-field-edit-allow-other small{color:#84918c;font-size:10px;line-height:1.45}
.form-field-edit-description{grid-column:1/-1;display:grid;gap:7px;min-width:0;color:#66746f;font-size:11px}
.form-field-edit-description-head{display:flex;align-items:baseline;gap:7px 12px;flex-wrap:wrap;min-width:0}
.form-field-edit-description-head>span{color:#41514b;font-weight:750}
.form-field-edit-description-head>small{color:#8a9691;font-size:10px;line-height:1.5}
.form-field-description-editor{min-width:0}
.form-field-description-editor .rich-editor{border-color:#dfe8e4;border-radius:10px}
.form-field-description-editor .rich-toolbar{gap:7px 9px;padding:8px 10px}
.form-field-description-editor .rich-body{min-height:112px;max-height:240px;font-size:13px;line-height:1.65}
.form-field-edit-image{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px;border:1px dashed #cbdcd5;border-radius:10px;background:#fff}
.form-field-edit-image[hidden],.form-field-edit-options[hidden]{display:none!important}
.form-field-edit-image-preview{display:flex;align-items:center;justify-content:center;min-width:82px;min-height:54px;padding:4px;border-radius:8px;background:#f3f8f6;color:#87948f;font-size:10px}
.form-field-edit-image-preview img{display:block;width:96px;max-height:72px;object-fit:contain;border-radius:6px}
.form-field-edit-image-pick{display:inline-flex!important;align-items:center;justify-content:center;margin:0!important;cursor:pointer}
.form-field-edit-logic{grid-column:1/-1;display:grid;gap:8px;padding:9px 10px;border:1px solid #dce8e3;border-radius:10px;background:#fff}
.form-field-edit-logic-head{display:flex;align-items:center;gap:6px 14px;flex-wrap:wrap;min-width:0}
.form-field-edit-logic-head label{display:inline-flex;align-items:center;justify-content:flex-start;gap:5px;width:max-content;color:#334b43;font-size:12px;font-weight:750;white-space:nowrap;cursor:pointer}
.form-field-edit-logic-head input{margin:0}
.form-field-edit-logic-head small{color:#84918c;font-size:10px;line-height:1.5}
.form-field-edit-logic-body{display:grid;grid-template-columns:auto minmax(180px,1.1fr) 130px minmax(210px,1fr) auto;align-items:start;gap:7px;min-width:0}
.form-field-edit-logic-body[hidden]{display:none!important}
.form-field-edit-logic-body>span{color:#66746f;font-size:11px;white-space:nowrap}
.form-field-edit-logic-body select,.form-field-edit-logic-body input{min-width:0;height:34px;border:1px solid #d8e4df;border-radius:8px;background:#f9fbfa;color:#344054;font-size:12px}
.form-field-edit-logic-body [data-form-field-logic-field],
.form-field-edit-logic-body [data-form-field-logic-operator],
.form-field-edit-logic-body [data-form-field-logic-value-wrap]{width:100%!important;min-width:0}
.form-field-edit-logic-body [data-form-field-logic-value-wrap]{white-space:normal}
.form-field-edit-logic-body [data-form-field-logic-value]{width:100%!important}
.form-field-edit-logic-body select{padding:0 28px 0 9px}
.form-field-edit-logic-body input{padding:0 10px}
.form-field-logic-choice-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(126px,1fr));gap:6px;max-height:154px;overflow:auto;padding:7px;border:1px solid #d8e4df;border-radius:9px;background:#f9fbfa}
.form-field-logic-choice-list label{display:flex;align-items:center;gap:7px;min-width:0;min-height:32px;padding:6px 8px;border:1px solid #e1e9e6;border-radius:7px;background:#fff;color:#41514b;font-size:12px;font-weight:600;cursor:pointer}
.form-field-logic-choice-list label:has(input:checked){border-color:#8ed3bf;background:#effaf6;color:#0d6e5c}
.form-field-logic-choice-list input{flex:0 0 auto;width:14px!important;height:14px;margin:0;padding:0;accent-color:var(--green)}
.form-field-logic-choice-list span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.form-field-logic-choice-empty{grid-column:1/-1;padding:8px;color:#87948f;font-size:11px}
.form-field-logic-choice-hint{display:block;max-width:100%;margin-top:5px;color:#84918c;font-size:10px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
[data-form-field-wrap][hidden]{display:none!important}
.form-image-answer{display:grid;gap:8px}
.form-image-answer-grid{display:flex;flex-wrap:wrap;gap:8px;min-height:0}
.form-image-answer-thumb{position:relative;display:block;width:82px;height:82px;border:1px solid #dfe9e5;border-radius:10px;overflow:hidden;background:#f7faf9}
.form-image-answer-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.form-image-answer-thumb button{position:absolute;top:3px;right:3px;width:22px;height:22px;padding:0;border:0;border-radius:50%;background:rgba(20,35,30,.78);color:#fff;font-size:16px;line-height:22px;cursor:pointer}
.form-image-answer-pick{display:inline-flex!important;align-items:center;justify-content:center;width:max-content;margin:0!important;cursor:pointer}
.form-description-field{padding:12px 14px;border-left:3px solid #21b08d;border-radius:0 10px 10px 0;background:#f4faf8;color:#41514b}
.form-description-field b{display:block;margin-bottom:5px;color:#183c35}
.form-description-field>.rich-text{font-size:13px;line-height:1.75}
.form-description-field p{margin:0;line-height:inherit;white-space:normal}
.form-field-rich-hint{margin-top:5px;color:#667085;font-size:12px;line-height:1.7}
.form-field-rich-hint .rich-text{color:inherit;font-size:inherit;line-height:inherit}
.form-field-rich-hint .rich-text p:last-child,
.form-description-field .rich-text p:last-child{margin-bottom:0}
.form-image-display-field img{display:block;width:100%;max-height:360px;object-fit:contain;border-radius:12px;background:#f7faf9}
.form-image-display-empty{padding:22px;border:1px dashed #c9d9d3;border-radius:12px;text-align:center;color:#8a9692;font-size:12px}
.public-form-answer-images{display:flex;flex-wrap:wrap;gap:6px}
.public-form-answer-images img{display:block;width:74px;height:74px;object-fit:cover;border-radius:8px;border:1px solid #e1ebe7}
.public-form-answer-chips{display:flex;flex-wrap:wrap;gap:5px}
.public-form-answer-chips span{padding:3px 8px;border-radius:999px;background:#edf8f4;color:#0d6e5c;font-size:11px}
.public-form-answer-text{white-space:normal;word-break:break-word}
@media (max-width:720px){
  .form-field-edit-main{grid-template-columns:1fr}
  .form-field-edit-main .mini-check{justify-self:start}
  .form-field-edit-main .mini-btn{justify-self:start}
  .form-field-edit-head{align-items:flex-start}
  .form-field-edit-order-actions{flex-wrap:wrap;justify-content:flex-end}
  .form-field-edit-settings{grid-template-columns:1fr}
  .form-field-edit-allow-other{align-items:flex-start}
  .form-field-edit-allow-other small{flex:1 1 180px}
  .form-field-edit-description-head{display:grid;gap:3px}
  .form-field-edit-description-head>small{font-size:10px}
  .form-field-edit-logic-head{display:grid;justify-items:start;gap:3px}
  .form-field-edit-logic-body{display:grid;grid-template-columns:1fr;align-items:stretch}
  .form-field-edit-logic-body [data-form-field-logic-field],
  .form-field-edit-logic-body [data-form-field-logic-operator],
  .form-field-edit-logic-body [data-form-field-logic-value-wrap]{width:100%!important}
  .form-field-edit-logic-body>span{width:100%}
}


/* ===== 系统设置：Logo 上传 / 支付排版 / 底部品牌条 ===== */
.logo-upload-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.logo-upload-row input { width: auto; flex: 1 1 240px; min-width: 0; }
.logo-upload-row input[type="file"] { flex: 1 1 180px; padding: 7px 8px; }
.logo-preview { margin-top: 8px; }
.logo-preview img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; border: 1px solid #e5e9ee; background: #fafcfd; padding: 4px; }
.logo-preview-wide img { width: 168px; max-width: 100%; height: 52px; border-radius: 10px; }
.settings-bind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.settings-bind-grid .form-field { min-width: 0; margin-bottom: 0; }
.settings-inline-switch { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 11px; border: 1px solid #dfe5eb; border-radius: 10px; color: #344054; background: #fff; font-size: 13px; font-weight: 650; }
.settings-inline-switch input { width: auto; min-width: 0; margin: 0; accent-color: var(--green); }
.settings-inline-switch span { margin-left: auto; color: #98a2b3; font-size: 11px; font-weight: 400; }
.footer-logo-upload-row input { flex: 1 1 150px; }
.footer-logo-preview { min-height: 30px; margin-top: 6px; }
.footer-logo-preview img { display: block; width: auto; max-width: 150px; height: 30px; object-fit: contain; background: transparent; }
@media (max-width: 760px) {
  .settings-bind-grid { grid-template-columns: 1fr; }
  .settings-inline-switch { align-items: flex-start; }
  .settings-inline-switch span { margin-left: 0; }
}
.teacher-service-compact { padding: 12px 14px 14px; }
.teacher-service-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.teacher-service-fields .form-field { min-width: 0; margin-bottom: 0; }
.teacher-service-qr-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 11px; padding-top: 11px; border-top: 1px solid #edf0f2; }
.teacher-service-qr-preview { flex: 0 0 auto; }
.teacher-service-qr-preview > label { display: block; margin-bottom: 4px; color: #44505f; font-size: 11px; font-weight: 750; }
.teacher-service-qr-preview .logo-preview { margin-top: 0; }
.teacher-service-qr-main { min-width: 0; flex: 1 1 auto; padding-top: 17px; }
.teacher-service-qr-main .logo-upload-row { flex-wrap: nowrap; }
.teacher-service-qr-main .logo-upload-row input { flex: 1 1 auto; }
.teacher-service-actions { display: flex; justify-content: flex-end; margin-top: 9px; }
@media (max-width: 760px) {
  .teacher-service-fields { grid-template-columns: 1fr; }
  .teacher-service-qr-row { flex-wrap: wrap; }
  .teacher-service-qr-main { flex-basis: 100%; padding-top: 0; }
  .teacher-service-qr-main .logo-upload-row { flex-wrap: wrap; }
  .teacher-service-qr-main .logo-upload-row input { flex-basis: 100%; }
  .teacher-service-actions { justify-content: stretch; }
  .teacher-service-actions .primary-btn { width: 100%; }
}
.pay-mode-row { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.pay-mode-row .radio-inline { margin-right: 0; }
.mini-input { width: 100%; border: 1px solid #dfe5eb; border-radius: 9px; padding: 8px 10px; font-size: 13px; color: var(--ink); background: #fff; }

/* 导航菜单管理：移动端自适应卡片行（不依赖宽表格，避免横向滚动） */
.nav-menu-panel { padding: 6px 12px; }
.nav-menu-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #edf0f2; }
.nav-menu-row:last-child { border-bottom: 0; }
.nav-menu-row .tag { white-space: nowrap; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.nav-menu-row .tag.ok { color: #0d6e5c; background: #e7f7f2; }
.nav-menu-row .tag.muted { color: #8a94a3; background: #eef1f4; }
.nav-menu-row .mini-btn { white-space: nowrap; border: 0; padding: 7px 12px; border-radius: 8px; color: #126c59; background: #e7f7f2; font-size: 12px; font-weight: 700; }


/* ===== 支付设置：卡片式排版（避免与 .form-field label 冲突） ===== */
.pay-panel { padding: 14px; }
.pay-block { margin-bottom: 14px; }
.pay-block:last-child { margin-bottom: 0; }
.pay-label { font-size: 12px; font-weight: 750; color: #44505f; margin-bottom: 8px; }
.pay-mode-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pay-radio { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid #dfe5eb; border-radius: 10px; font-size: 13px; color: #344054; cursor: pointer; background: #fff; }
.pay-radio:has(input:checked) { border-color: #0d6e5c; background: #eef8f4; color: #0d6e5c; font-weight: 750; }
.pay-radio input { width: auto; margin: 0; accent-color: #0d6e5c; }
.pay-switch-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.pay-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #344054; }
.pay-switch input { width: 16px; height: 16px; accent-color: #0d6e5c; margin: 0; }

/* 课程列表：对齐参考图的信息密度，放大封面与文字；只调整展示，不改列表功能。 */
body.admin-mode .data-table.course-table th { font-size: 14px; }
body.admin-mode .course-table td { font-size: 14px; line-height: 1.5; }
.course-table td { padding-top: 10px; padding-bottom: 10px; }
.course-table th:nth-child(2),
.course-table td:nth-child(2) { width: 320px; max-width: 320px; min-width: 320px; }
.course-table .content-title-cell { min-width: 300px; max-width: 300px; gap: 12px; overflow: hidden; }
.course-table .content-title-cell > div { min-width: 0; overflow: hidden; }
body.admin-mode .course-table .content-title-cell b {
  display: -webkit-box;
  max-width: none;
  overflow: hidden;
  color: #1d2939;
  font-size: 15px;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body.admin-mode .course-table .content-title-cell > div > span {
  display: block;
  max-width: none;
  margin-top: 5px;
  overflow: hidden;
  color: #8f9b99;
  font-size: 12.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.admin-mode .course-table .content-title-cell .thumb {
  width: 76px;
  height: 64px;
  overflow: hidden;
  border-radius: 8px;
  font-size: 28px;
}
body.admin-mode .course-table .type-chip,
body.admin-mode .course-table .benefit-chip,
body.admin-mode .course-table .status { font-size: 12.5px; }
body.admin-mode .course-table .status { white-space: nowrap; }
body.admin-mode .course-table .metric-strong { font-size: 14px; }
body.admin-mode .course-table .metric-note { max-width: 88px; font-size: 11.5px; }
body.admin-mode .course-table .date-cell { font-size: 12px !important; }
.course-table .course-actions { gap: 6px; }
body.admin-mode .course-table .course-actions button { min-height: 30px; padding: 5px 8px; font-size: 13px; white-space: nowrap; }

/* 课程页顶部：返回首页入口（收到分享链接的人也能一键回首页） */
.customer-home-bar { display: flex; justify-content: flex-start; padding: 2px 0 8px; }
.customer-home-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 14px; border: 1px solid #cfe3db; border-radius: 999px; color: #126c59; background: #fff; font-size: 13px; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.customer-home-btn:active { background: #eef7f4; }

/* 课程页顶部：左侧"返回首页"，右侧 logo，标题居中 */
.customer-page-header { display: flex; align-items: center; gap: 8px; }
.customer-page-header .customer-home-btn { flex: 0 0 auto; }
.customer-page-header .customer-page-heading { flex: 1 1 auto; min-width: 0; }
.customer-page-header .customer-course-header-logo { margin-left: auto; flex: 0 0 auto; }
.customer-home-bar { display: none; }

/* 课程页顶部微调：返回首页按钮去掉白底、缩小；文字白色；课程名称真正居中 */
.customer-page-header { position: relative; display: flex; align-items: center; }
.customer-page-header .customer-home-btn {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  color: #ffffff !important; padding: 0 2px !important; min-height: auto !important;
  font-size: 12px !important; font-weight: 700 !important; line-height: 1.2 !important;
}
.customer-page-header .customer-home-btn:active { background: transparent !important; opacity: .72; }
.customer-page-header .customer-page-heading {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: 52%; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.customer-page-header .customer-page-heading b { color: #ffffff; font-size: 15px; }
.customer-page-header .customer-course-header-logo { margin-left: auto; }

/* ===== 首页自定义板块（5 种布局）===== */
.home-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.home-small-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(16,24,40,.06); }
.home-small-card .hs-cover { height: 72px; background-size: cover; background-position: center; display: grid; place-items: center; color: #fff; font-size: 20px; }
.home-small-card h4 { margin: 6px 8px 8px; font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-banner-list { display: grid; gap: 12px; }
.home-banner-card { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(16,24,40,.10); background: #fff; }
.home-banner-card .hb-cover { height: 158px; background-size: cover; background-position: center; display: grid; place-items: center; color: #fff; font-size: 34px; }
.home-banner-card .hb-body { padding: 10px 12px 12px; }
.home-banner-card .hb-body h4 { margin: 0; font-size: 15px; }
.home-banner-card .hb-body p { margin: 4px 0 0; font-size: 12px; color: #667085; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.home-scroll > * { flex: 0 0 62%; max-width: 62%; }
.home-product-grid { padding: 0; gap: 10px; }
.home-product-grid .shop-card { min-width: 0; }
/* 后台板块编辑器 */
.home-block-editor { border: 1px solid #e6edea; border-radius: 12px; padding: 12px; margin-bottom: 12px; background: #fbfdfc; }
.home-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.home-block-tools { display: flex; gap: 6px; }
.home-block-layout-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; }
.home-block-layout-control select { width: 100%; min-width: 0; }
.home-block-more-control {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #cfe3db;
  border-radius: 9px;
  color: #0d6e5c;
  background: #f4fbf8;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.home-block-more-control input { width: 15px; height: 15px; margin: 0; accent-color: #0d6e5c; }
.home-block-editor.home-block-tone-0 { border-color: #84c8ae; background-color: #def2e8; }
.home-block-editor.home-block-tone-1 { border-color: #d9ad43; background-color: #ffe8b4; }
.home-block-editor.is-hidden,
.admin-muted-panel {
  border-color: #c8d0ce !important;
  border-style: dashed !important;
  color: #667085;
  background-color: #eef1f0 !important;
  background-image: repeating-linear-gradient(135deg, rgba(71,84,103,.045) 0, rgba(71,84,103,.045) 8px, transparent 8px, transparent 16px) !important;
}
.admin-muted-row { color: #667085; }
.data-table tr.admin-muted-row > td,
.checkin-admin-table tr.admin-muted-row > td { background: #f1f3f2 !important; }
.data-table tr.admin-muted-row:hover > td,
.checkin-admin-table tr.admin-muted-row:hover > td { background: #ecefed !important; }
.admin-muted-panel .admin-muted-status,
.admin-muted-row .circle-list-status.off,
.admin-muted-row .status.off,
.admin-muted-row .tag.muted,
.admin-muted-panel .status.off,
.admin-muted-panel .tag.muted,
.admin-muted-panel .circle-catalog-draft-badge {
  color: #475467 !important;
  border-color: #cbd2d0 !important;
  background: #e1e5e4 !important;
}
.home-block-editor.is-hidden .home-block-state.hidden { color: #475467; border: 1px solid #cbd2d0; background: #e1e5e4; }
.home-block-editor.is-hidden .home-block-more-control { color: #667085; border-color: #d5dcda; background: #f7f8f8; }
.home-block-editor.is-hidden .home-block-picker-trigger { color: #667085; border-color: #d6dddb; background: #f7f8f8; }
.home-block-editor.is-hidden .home-block-picker-trigger-icon { color: #7b8582; background: #e7eae9; }
.home-block-editor.is-hidden .home-block-picker-trigger em { color: #667085; }
.home-block-head > b { display: flex; align-items: center; gap: 8px; }
.home-block-state {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.home-block-state.visible { color: #0d6e5c; background: #e9f7f1; }
.home-block-state.hidden { color: #8a5a12; background: #fff2d8; }
.home-block-tools .home-block-hide-btn { color: #8a5a12; border-color: #f0d7a8; background: #fffaf0; }
.home-block-tools .home-block-enable-btn { color: #0d6e5c; border-color: #b8e0d3; background: #f1faf6; }

.home-block-head .home-block-tools { margin-left: auto; align-items: center; }
.home-block-tools .primary-btn.compact { min-height: 28px; }

/* 自定义板块「弹窗列表式」：后台选择器 + 客户端列表 */
.home-block-picker-trigger,
.home-block-popup-entry {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #d9e7e2;
  border-radius: 11px;
  color: #344054;
  text-align: left;
  background: linear-gradient(135deg, #f5fbf8, #ffffff);
  cursor: pointer;
}
.home-block-picker-trigger:hover,
.home-block-popup-entry:hover { border-color: #9fd3c3; background: #f4fbf8; }
.home-block-picker-trigger-icon,
.home-block-popup-entry-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #0d6e5c;
  background: #e9f7f1;
  font-size: 18px;
  font-weight: 800;
}
.home-block-picker-trigger b,
.home-block-popup-entry-copy b { display: block; color: #1d2939; font-size: 13px; }
.home-block-picker-trigger b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-block-picker-trigger > span:nth-child(2) { min-width: 0; }
.home-block-picker-trigger small,
.home-block-popup-entry-copy small { display: block; margin-top: 2px; color: #667085; font-size: 10px; }
.home-block-picker-trigger em,
.home-block-popup-entry em { color: #0d6e5c; font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.home-block-popup-entry-copy { min-width: 0; }
.home-block-popup-entry-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-block-list { display: grid; gap: 8px; }
.home-block-list-row {
  width: 100%;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid #e7eeeb;
  border-radius: 12px;
  color: inherit;
  text-align: left;
  background: #fff;
  cursor: pointer;
}
.home-block-list-cover {
  width: 72px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #0d6e5c;
  background-color: #edf7f3;
  background-position: center;
  background-size: cover;
  font-size: 20px;
}
.home-block-list-copy { min-width: 0; }
.home-block-list-copy b,
.home-block-list-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-block-list-copy b { color: #1d2939; font-size: 13px; }
.home-block-list-copy small { margin-top: 3px; color: #667085; font-size: 10px; }

.home-block-picker-tabs,
.home-block-popup-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 10px;
  overflow-x: auto;
}
.home-block-picker-tabs button,
.home-block-popup-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #dfe8e4;
  border-radius: 999px;
  color: #526070;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.home-block-picker-tabs button.active,
.home-block-popup-tabs button.active {
  border-color: #0d6e5c;
  color: #fff;
  background: #0d6e5c;
}
.home-block-picker-tabs b,
.home-block-popup-tabs b {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  color: #0d6e5c;
  background: #e9f7f1;
  font-size: 10px;
}
.home-block-picker-tabs button.active b,
.home-block-popup-tabs button.active b { color: #0d6e5c; background: #fff; }
.home-block-picker-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #667085;
  background: #f6f9f8;
  font-size: 11px;
}
.home-block-picker-hint b { flex: 0 0 auto; color: #0d6e5c; }
.home-block-picker-list,
.home-block-popup-list {
  max-height: min(55vh, 520px);
  overflow: auto;
  border: 1px solid #e5ece9;
  border-radius: 12px;
  background: #fff;
}
.home-block-picker-row,
.home-block-popup-row {
  display: grid;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-bottom: 1px solid #eef2f0;
  color: inherit;
  text-align: left;
  background: #fff;
  cursor: pointer;
}
.home-block-picker-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.home-block-popup-row { grid-template-columns: 48px minmax(0, 1fr) auto; }
.home-block-picker-select {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.home-block-picker-row:last-child,
.home-block-popup-row:last-child { border-bottom: 0; }
.home-block-picker-row:hover,
.home-block-popup-row:hover { background: #f7fbf9; }
.home-block-picker-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #0d6e5c;
}
.home-block-picker-public {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid #cfe3db;
  border-radius: 999px;
  color: #0d6e5c;
  background: #f2faf7;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.home-block-picker-public input { width: 14px; height: 14px; }
.home-block-picker-public.is-disabled { color: #98a2b3; border-color: #e4e7ec; background: #f9fafb; cursor: not-allowed; opacity: .72; }
.home-block-picker-thumb,
.home-block-popup-thumb {
  width: 46px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #0d6e5c;
  background-color: #edf7f3;
  background-position: center;
  background-size: cover;
  font-size: 16px;
  overflow: hidden;
}
.home-block-picker-copy,
.home-block-popup-copy { min-width: 0; }
.home-block-picker-copy b,
.home-block-popup-copy b {
  display: block;
  overflow: hidden;
  color: #1d2939;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-block-picker-copy small,
.home-block-popup-copy small,
.home-block-popup-copy em {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #667085;
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-block-popup-copy em { color: #0d6e5c; }
.home-block-picker-type,
.home-block-popup-kind {
  padding: 3px 7px;
  border-radius: 999px;
  color: #0d6e5c;
  background: #edf7f3;
  font-size: 9px;
  white-space: nowrap;
}
/* 首页自定义板块「更多」：手机端完整内容页 */
.home-block-fullpage {
  background:
    radial-gradient(circle at 100% 0, rgba(242,184,75,.12), transparent 32%),
    linear-gradient(180deg, #f4f7f6 0%, #f8faf9 100%);
}
.home-block-page-header .customer-home-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.home-block-page-header .customer-page-heading b {
  color: #fff;
}
#appShell .home-block-page-header .customer-page-heading b {
  color: #1d2939;
}
.home-block-page-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  margin: 2px 0 14px;
  padding: 15px 16px;
  border: 1px solid rgba(13,110,92,.12);
  border-radius: 16px;
  color: #344054;
  background: linear-gradient(135deg, #ecf8f3, #fff 72%);
  box-shadow: 0 8px 24px rgba(7,64,53,.06);
}
.home-block-page-summary span {
  grid-column: 1;
  color: #0d6e5c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.home-block-page-summary b {
  grid-column: 1;
  color: #1d2939;
  font-size: 20px;
  line-height: 1.25;
}
.home-block-page-summary small {
  grid-column: 1 / -1;
  color: #667085;
  font-size: 12px;
  line-height: 1.6;
}
#homeBlockPublicPageBody .home-block-popup-tabs {
  position: sticky;
  z-index: 8;
  top: 0;
  margin: 0 -3px 12px;
  padding: 3px 3px 10px;
  background: rgba(248,250,249,.96);
  backdrop-filter: blur(12px);
}
.home-block-full-list {
  display: grid;
  gap: 11px;
}
.home-block-full-row {
  width: 100%;
  min-height: 96px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid #e3ebe8;
  border-radius: 16px;
  color: inherit;
  text-align: left;
  background: #fff;
  box-shadow: 0 5px 16px rgba(32,61,54,.045);
  cursor: pointer;
}
.home-block-full-row:active {
  transform: scale(.992);
  border-color: #9fd3c3;
  background: #f8fcfa;
}
.home-block-full-cover {
  width: 96px;
  height: 74px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  color: #0d6e5c;
  background-color: #eaf5f1;
  background-position: center;
  background-size: cover;
  font-size: 25px;
}
.home-block-full-copy {
  min-width: 0;
  display: block;
}
.home-block-full-kind {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-bottom: 5px;
  padding: 0 7px;
  border-radius: 999px;
  color: #0d6e5c;
  background: #edf7f3;
  font-size: 9px;
  font-weight: 800;
}
.home-block-full-copy b {
  display: -webkit-box;
  overflow: hidden;
  color: #1d2939;
  font-size: 15px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.home-block-full-copy small {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  color: #667085;
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.home-block-full-copy em {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #0d6e5c;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-block-full-chevron {
  color: #98a2b3;
  font-size: 22px;
  line-height: 1;
}
.home-block-picker-loading {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #667085;
  font-size: 12px;
}
.home-block-picker-footer-count { color: #0d6e5c; font-size: 12px; font-weight: 800; }
.home-block-picker-footer-spacer { flex: 1 1 auto; }

@media (max-width: 640px) {
  .home-block-head { align-items: flex-start; gap: 8px; flex-wrap: wrap; }
  .home-block-tools { width: 100%; flex-wrap: wrap; margin-left: 0 !important; }
  .home-block-tools .primary-btn.compact { margin-left: auto; }
  .home-block-layout-control { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .home-block-more-control { padding: 0 8px; }
  .home-block-picker-trigger,
  .home-block-popup-entry { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px; }
  .home-block-picker-trigger-icon,
  .home-block-popup-entry-icon { width: 32px; height: 32px; }
  .home-block-picker-hint { align-items: flex-start; flex-direction: column; gap: 3px; }
  .home-block-picker-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 9px 10px; }
  .home-block-picker-select { grid-template-columns: auto 40px minmax(0, 1fr); gap: 8px; }
  .home-block-popup-row { grid-template-columns: 40px minmax(0, 1fr); }
  .home-block-picker-thumb,
  .home-block-popup-thumb { width: 40px; height: 32px; }
  .home-block-picker-type,
  .home-block-popup-kind { display: none; }
  .home-block-page-summary { margin-bottom: 11px; padding: 13px 14px; }
  .home-block-page-summary b { font-size: 18px; }
  .home-block-full-row { grid-template-columns: 84px minmax(0, 1fr) 12px; gap: 10px; padding: 10px; border-radius: 14px; }
  .home-block-full-cover { width: 84px; height: 66px; border-radius: 10px; }
  .home-block-full-copy b { font-size: 14px; }
  .home-block-full-copy small { font-size: 10.5px; }
  .home-block-picker-public { min-height: 26px; padding: 0 7px; }
  .home-block-list-row { grid-template-columns: 64px minmax(0, 1fr); }
  .home-block-list-cover { width: 64px; height: 48px; }
  .home-block-list-row > .mini-tag { display: none; }
}

@media (max-width: 360px) {
  .home-block-full-row { grid-template-columns: 76px minmax(0, 1fr) 10px; gap: 8px; padding: 9px; }
  .home-block-full-cover { width: 76px; height: 62px; }
  .home-block-full-copy b { font-size: 13px; }
}

/* ===== AI 智能体底部：输入框 + 图标按钮（参考主流 AI App）===== */
.ai-input-panel .ai-composer { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 10px; }
.ai-composer-box { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #dfe8e4; border-radius: 22px; padding: 0 8px 0 14px; min-height: 44px; }
.ai-composer-box:focus-within { border-color: #21b08d; box-shadow: 0 0 0 2px rgba(33,176,141,.12); }
.ai-composer-box textarea { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; resize: none; background: transparent; font-size: 14px; line-height: 22px; min-height: 22px !important; max-height: 46px; padding: 11px 0; }
.ai-composer-box:focus-within textarea { min-height: 44px !important; }
.ai-mic-btn { flex: 0 0 auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #eef7f4; color: #0d6e5c; font-size: 16px; line-height: 1; cursor: pointer; }
.ai-mic-btn.active { background: #0d6e5c; color: #fff; }
.ai-round-btn { flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #0d6e5c; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(13,110,92,.28); }
.ai-round-btn.voice { background: #f2b84b; color: #3b2c07; }
.ai-round-btn.recording { background: #d92d20; color: #fff; }
.ai-round-btn[disabled] { opacity: .6; }
.ai-page .ai-top-scroll { padding-bottom: 86px; }

/* AI 智能体页面：恢复显示底部导航栏（原来被隐藏了） */
.mini-app.ai-agent-active .mini-nav,
.phone-wrap.ai-agent-active .mini-nav { display: flex !important; flex: 0 0 auto; }
.mini-app.ai-agent-active .ai-page .ai-top-scroll { padding-bottom: 8px; }

/* ===== AI 页面 配色微调（按用户要求）===== */
/* 1) 页面底色改白色 */
.ai-page, .mini-app.ai-agent-active .ai-page { background: #ffffff; }
/* 2) 对话区不再用白卡片，直接铺在页面底色上 */
.ai-chat-shell { background: transparent; box-shadow: none; margin-left: 4px; margin-right: 4px; }
/* 3) 底部输入框取消白色底，直接放在页面底色上 */
.ai-composer-box,
.ai-composer-box:focus-within { background: transparent; border-color: transparent; box-shadow: none; }
/* 4) AI 回复气泡改浅灰（用户自己的仍是绿色） */
.ai-message-bubble { background: #eef1f3; color: #344054; }
.ai-message.user .ai-message-bubble { background: #16866b; color: #fff; }

/* 底部输入框：白色圆角边框 + 灰色外发光，且始终显示（不聚焦也可见） */
.ai-composer-box {
  background: #ffffff !important;
  border: 2px solid #ffffff !important;
  border-radius: 24px !important;
  box-shadow: 0 0 0 4px rgba(152,162,179,.18), 0 4px 14px rgba(16,24,40,.10) !important;
}
.ai-composer-box:focus-within {
  background: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(152,162,179,.28), 0 6px 18px rgba(16,24,40,.14) !important;
}

/* 输入框只保留外面的大框：内部 textarea 去掉自己的边框/底色/圆角 */
.ai-composer-box textarea,
.ai-input-panel .ai-composer-box textarea {
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.ai-composer-box textarea:focus { border: 0 !important; box-shadow: none !important; }
/* 外面的大框：两端弧形改成直线 → 圆角矩形 */
.ai-composer-box { border-radius: 12px !important; }

/* ===== 底部导航：首页 / AI智能体 / 我的 三个页面高度完全一致 ===== */
body.customer-mode .mini-nav,
body.customer-mode .mini-app .mini-nav,
.mini-app.ai-agent-active .mini-nav,
.phone-wrap.ai-agent-active .mini-nav,
.mini-app.customer-detail-active .mini-nav {
  display: flex !important;
  flex: 0 0 calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  height: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  min-height: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  max-height: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
  box-sizing: border-box;
  align-items: center;
}
body.customer-mode .mini-nav button,
.mini-app.ai-agent-active .mini-nav button { justify-content: center; }
/* 详情页没有底部菜单时必须真正收起，避免留下原来导航栏高度的空白。 */
body.customer-mode .mini-app.customer-detail-active .mini-nav,
body.customer-mode .phone-wrap.customer-detail-active .mini-nav,
#appShell.customer-detail-active .android-nav {
  display: none !important;
  flex: 0 0 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* ===== AI 底部：一个按钮切换 打字/语音/发送 ===== */
.ai-composer .ai-round-btn .ic { display: none; line-height: 1; font-size: 17px; }
.ai-composer:not(.typing) .ai-round-btn .ic-kb { display: block; }
.ai-composer.typing .ai-round-btn .ic-send { display: block; }
.ai-composer .ai-round-btn.voice { background: #f2b84b; color: #3b2c07; }
.ai-composer .ai-hold-btn { flex: 1 1 auto; min-height: 44px; border: 2px solid #ffffff; border-radius: 12px; background: #ffffff; color: #0d6e5c; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 0 0 4px rgba(152,162,179,.18), 0 4px 14px rgba(16,24,40,.10); }
.ai-composer .ai-hold-btn.recording { background: #d92d20; border-color: #d92d20; color: #fff; }

/* 发送箭头更醒目 */
.ai-composer .ai-round-btn .ic-send svg { display: block; width: 22px; height: 22px; }
.ai-composer .ai-round-btn .ic-send { display: none; }
.ai-composer.typing .ai-round-btn .ic-send { display: block; }
.ai-composer.typing .ai-round-btn { background: #0d6e5c; box-shadow: 0 3px 10px rgba(13,110,92,.35); }
.ai-composer .ai-round-btn .ic-kb { font-size: 19px; font-weight: 700; }

/* 圆形按钮里的图标严格居中 */
.ai-composer .ai-round-btn {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  line-height: 0 !important;
  text-align: center;
}
.ai-composer .ai-round-btn .ic { line-height: 1; margin: 0; }
.ai-composer .ai-round-btn .ic-send { line-height: 0; }
.ai-composer .ai-round-btn .ic-send svg { display: block; margin: 0; }

/* 发送图标：纸飞机 */
.ai-composer .ai-round-btn .ic-send svg { width: 22px; height: 22px; transform: none; }

/* 输入框：细描边 + 底部一点阴影（漂浮感） */
.ai-composer-box,
.ai-composer-box:focus-within {
  border: 1px solid rgba(152,162,179,.45) !important;
  box-shadow: 0 2px 6px rgba(16,24,40,.10) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
}
.ai-composer-box:focus-within { border-color: rgba(33,176,141,.6) !important; box-shadow: 0 3px 10px rgba(16,24,40,.14) !important; }
/* 语音圆钮：橙色改白色 + 绿色图标 */
.ai-composer .ai-round-btn.voice { background: #ffffff !important; color: #0d6e5c !important; box-shadow: 0 2px 8px rgba(16,24,40,.18) !important; }

/* "按住说话"大按钮：与文字输入框保持同一套样式（细描边 + 底部淡阴影） */
.ai-composer .ai-hold-btn {
  border: 1px solid rgba(152,162,179,.45) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #0d6e5c !important;
  box-shadow: 0 2px 6px rgba(16,24,40,.10) !important;
  min-height: 44px !important;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.ai-composer .ai-hold-btn:active { box-shadow: 0 1px 4px rgba(16,24,40,.12) !important; }
.ai-composer .ai-hold-btn.recording {
  background: #d92d20 !important;
  border-color: #d92d20 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(217,45,32,.28) !important;
}
.ai-composer .ai-hold-actions {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.ai-composer .ai-hold-actions .ai-hold-btn {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 7px;
}
.ai-composer .ai-hold-actions .ai-voice-icon { font-size: 18px; }
.ai-composer .ai-hold-actions .ai-voice-text {
  min-width: 0;
  align-items: center;
  text-align: center;
}
.ai-composer .ai-hold-actions .ai-voice-text b {
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}
.ai-composer .ai-hold-actions .ai-voice-text i {
  margin-top: 2px;
  color: #667085;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}
.ai-composer .ai-hold-actions .ai-hold-btn.recording {
  border-color: #e8735f !important;
  color: #a32613 !important;
  background: #ffe9e6 !important;
}
.ai-composer .ai-hold-actions .ai-hold-btn.recording .ai-voice-text i { color: #a32613; }
.ai-composer .ai-hold-actions .ai-hold-btn.recording::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 14px;
  pointer-events: none;
  animation: aiVoiceGlow .8s ease-in-out infinite;
}
@media (max-width: 380px) {
  .ai-composer .ai-hold-actions { gap: 4px; }
  .ai-composer .ai-hold-actions .ai-hold-btn { padding-left: 4px; padding-right: 4px; }
  .ai-composer .ai-hold-actions .ai-voice-text b { font-size: 11px; }
  .ai-composer .ai-hold-actions .ai-voice-text i { font-size: 9px; }
}

.member-benefit-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 10px; padding: 10px 14px 0; }
.member-benefit-list span { color: #0d6e5c; font-size: 12px; }
/* 会员卡上的权益：一列、最多 3 行（超长的先省略），展开后显示全部。
   "展开全部"做成明显的按钮（虚线框），一眼看得出这里还折着东西。 */
.card-benefits { display: grid; grid-template-columns: 1fr; gap: 3px; padding: 9px 14px 0; }
/* 关键：本元素写了 display:grid，会盖掉浏览器默认的 [hidden]{display:none}，
   必须自己把 hidden 再关一次，否则"折叠起来的那几行"照样会显示出来 */
.card-benefits[hidden] { display: none !important; }
.card-benefits span { color: #0d6e5c; font-size: 12px; line-height: 1.5; }
.card-benefits.is-clamped:not(.is-open) span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-benefit-more { padding-top: 3px; }
.benefit-expand { display: block; width: calc(100% - 28px); margin: 8px 14px 0; padding: 6px 10px; border: 1px dashed #cdd8d4; border-radius: 9px; background: #f7fbfa; color: #0d6e5c; font-size: 12px; font-weight: 800; cursor: pointer; }
.benefit-expand:active { background: #eaf6f2; }
.member-benefit-groups-wrap { padding: 9px 14px 0; }
.member-benefit-groups { display: grid; gap: 7px; }
.member-benefit-group { overflow: hidden; border: 1px solid #e4ebe8; border-radius: 10px; background: #fbfcfc; }
.member-benefit-group-head { display: flex; align-items: center; gap: 6px; min-height: 31px; padding: 5px 9px; border-bottom: 1px solid #edf2ef; background: #f5f9f7; }
.member-benefit-group-head b { color: #1d2939; font-size: 11.5px; }
.member-benefit-group-head small { margin-left: auto; color: #8a96a2; font-size: 9.5px; }
.member-benefit-group-icon { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 6px; color: #0d6e5c; background: #e2f3ed; font-size: 10px; line-height: 1; }
.member-benefit-group-list { display: grid; gap: 3px; padding: 7px 9px 8px; }
.member-benefit-group-list span { color: #1d2939; font-size: 11.5px; line-height: 1.55; word-break: break-word; }
.card-benefits .member-benefit-preview-item { display: flex; align-items: center; gap: 5px; color: #1d2939; }
.member-benefit-preview-item i { flex: 0 0 auto; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 5px; color: #0d6e5c; background: #e4f4ef; font-size: 9px; font-style: normal; }
.level-shop-list.upgrade-two .member-benefit-groups-wrap { padding: 8px 9px 0; }
.level-shop-list.upgrade-two .member-benefit-group-list span { font-size: 10.5px; }
.level-shop-list.upgrade-two .member-benefit-group-head { padding: 4px 7px; }
.level-shop-card .member-name-row span { padding: 4px 7px; font-size: 10px; }
.member-benefit-toggle {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 9px;
  padding: 7px 10px;
  border: 1px dashed #b9d7ce;
  border-radius: 10px;
  color: #0d6e5c;
  background: #f4fbf8;
  font-size: 12px;
  font-weight: 800;
}
.member-benefit-toggle small {
  padding: 1px 6px;
  border-radius: 999px;
  color: #4c756b;
  background: #dfeee9;
  font-size: 10px;
  font-weight: 800;
}
.member-benefit-toggle i { font-style: normal; transition: transform .18s ease; }
.member-benefit-toggle.is-open i { transform: rotate(180deg); }
.member-benefit-toggle:active { background: #e8f6f1; }
.level-shop-card .home-member-benefits { padding-top: 8px; }
.level-shop-card .home-member-benefits.member-benefit-visual-wrap { display: grid; padding: 9px 0 0; }
.level-shop-card .home-member-benefits.member-benefit-visual-wrap[hidden] { display: none !important; }

/* 会员中心里要升级的卡：两个以上并排两列（窄卡：封面更矮、字号略小） */
/* 并排两列：让两张卡等高、按钮都贴在底部，看起来整齐 */
.level-shop-list.upgrade-two { grid-template-columns: repeat(2, 1fr); gap: 8px; align-items: stretch; }
.level-shop-list.upgrade-two .level-shop-card { display: flex; flex-direction: column; }
.level-shop-list.upgrade-two .level-shop-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.level-shop-list.upgrade-two .level-shop-actions { margin-top: auto; padding-top: 8px; }
.level-shop-list.upgrade-two .level-shop-cover { height: 84px; }
.level-shop-list.upgrade-two .level-shop-cover span { font-size: 22px; }
.level-shop-list.upgrade-two .level-shop-body { padding: 9px 10px 11px; }
.level-shop-list.upgrade-two .member-name-row { flex-direction: column; align-items: flex-start; gap: 5px; }
.level-shop-list.upgrade-two .member-name-row b { font-size: 14px; }
.level-shop-list.upgrade-two .level-shop-card .member-name-row span { max-width: 100%; padding: 3px 6px; font-size: 11px; white-space: nowrap; }
.level-shop-list.upgrade-two .card-benefits { padding: 8px 10px 0; }
.level-shop-list.upgrade-two .card-benefits span { font-size: 11px; }
.level-shop-list.upgrade-two .card-benefits.is-clamped:not(.is-open) { min-height: calc(3 * 16.5px + 6px); }
.level-shop-list.upgrade-two .benefit-expand { width: calc(100% - 20px); margin: 7px 10px 0; padding: 5px 8px; font-size: 11px; }
.level-shop-list.upgrade-two .level-upgrade-pay { padding: 6px 8px; font-size: 11px; }
.level-shop-list.upgrade-two .level-upgrade-pay b { font-size: 13px; }
.level-shop-list.upgrade-two .member-open-btn { min-width: 0; padding: 0 8px; font-size: 11px; }
.customer-member-banner { margin: 12px 0 4px; }
.customer-member-banner .member-upgrade-card { margin: 0; }

.profile-card { position: relative; }
.profile-edit-btn { position: absolute; top: 10px; right: 12px; z-index: 2; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(255,255,255,.18); color: #ffffff; font-size: 17px; line-height: 1; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.profile-edit-btn:active { background: rgba(255,255,255,.32); }

/* 会员价（非会员也可见，促使其开通会员） */
.vip-price-row { display: flex; align-items: center; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.vip-price { color: #b54708; font-size: 13px; font-weight: 900; }
.vip-price-row .vip-origin { color: #98a2b3; font-size: 11px; }
.member-price-tip { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 7px; border-radius: 999px; background: #fff4e5; color: #b54708; font-size: 11px; font-weight: 700; }

.plan-disc-list { display: grid; gap: 6px; }
.plan-disc-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.plan-disc-row select { flex: 1 1 160px; min-width: 0; }
.plan-disc-row input { width: 90px; }
.plan-disc-row .lvc-discount-toggle {
  flex: 0 0 auto;
  min-width: 54px;
  min-height: 34px;
  padding: 5px 10px;
  border-color: #e6b7af;
  color: #b42318;
  background: #fff7f6;
  font-size: 11px;
}
.plan-disc-row.is-paused {
  padding: 4px 5px;
  border-radius: 8px;
  background: #f7f9f8;
}
.plan-disc-row.is-paused select,
.plan-disc-row.is-paused input {
  color: #8a96a2;
  background: #f1f4f3;
}
.plan-disc-row.is-paused .lvc-discount-toggle {
  border-color: #a9d8ca;
  color: #0d6e5c;
  background: #edf8f4;
}
.lvc-top-grid,
.lvc-number-grid,
.lvc-toggle-grid,
.lvc-service-grid {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  align-items: start;
}
.lvc-top-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.lvc-number-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lvc-toggle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lvc-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lvc-top-grid > .form-field,
.lvc-number-grid > .form-field,
.lvc-service-grid > .form-field { min-width: 0; margin-bottom: 0; }
.lvc-toggle-grid > .check-option { width: 100%; min-width: 0; margin: 0; }
@media (max-width: 760px) {
  .lvc-top-grid,
  .lvc-number-grid,
  .lvc-toggle-grid,
  .lvc-service-grid { grid-template-columns: 1fr; gap: 10px; }
}
.form-field .beta-choice.is-paused {
  color: #8a96a2;
  background: #f7f9f8;
}
.form-field .beta-choice.is-paused span {
  color: #8a96a2;
}

/* 课程详情页：原价右侧的"会员价"标签 */
.pay-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.pay-vip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: #fff4e5; color: #b54708; font-size: 12px; font-weight: 900; white-space: nowrap; }

/* 修：会员价标签不要和划线原价重叠 */
.pay-price {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  row-gap: 6px !important;
}
.pay-price > * { position: static !important; float: none !important; }
.pay-price .pay-origin, .pay-price .pay-now { flex: 0 0 auto; }
.pay-vip { flex: 0 0 auto; margin: 0 !important; }
/* 卡片里的会员价行也留出空间，不与下面的文字挤在一起 */
.content-grid-card .vip-price-row { margin-top: 6px; padding-top: 2px; }
.content-grid-card .grid-info { display: flex; flex-direction: column; min-width: 0; }

.vip-product-row { background: #fffdf6; }
.vip-product-row .thumb { display: grid; place-items: center; color: #fff; font-weight: 900; }

.vip-product-row { background: #fffdf6; }
.vip-product-row .thumb { display: grid; place-items: center; color: #fff; font-weight: 900; }
.vip-divider-row td { padding: 8px 12px !important; background: #f7faf9; border-top: 2px solid #0d6e5c; border-bottom: 1px solid #e3ebe7; }
.vip-divider-row span { color: #0d6e5c; font-size: 12px; font-weight: 800; letter-spacing: .5px; }

.lvc-cover-preview { margin-top: 8px; }
.lvc-cover-preview img { width: 180px; max-width: 100%; border-radius: 12px; border: 1px solid #e3ebe7; display: block; }
/* 会员卡弹窗里的图片：图片保持原来的预览大小，只有两个按钮挪到右边，网址留在图片下方。
   注意：压高度可以，但绝不能牺牲预览质量——不要把预览图做小。 */
.lvc-img-row { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.lvc-img-thumb { position: relative; flex: 0 0 auto; max-width: 100%; }
.lvc-img-thumb.lvc-img-cover { width: 180px; }
.lvc-img-thumb.lvc-img-share { width: 180px; }
.lvc-img-thumb.lvc-img-bg { width: 520px; }
.lvc-img-thumb .admin-img-wrap { display: block; width: 100%; max-width: 100%; }
.lvc-img-thumb .admin-img-size-text { display: none; }
.lvc-img-thumb img { display: block; width: 100%; border-radius: 12px; border: 1px solid #e3ebe7; }
.lvc-img-thumb.lvc-img-bg img { aspect-ratio: 16 / 6; object-fit: cover; border-radius: 14px; }
.lvc-img-thumb .policy-empty { display: inline-block; font-size: 11px; color: #98a2b3; }
.lvc-img-btn-col { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; }
.lvc-img-url { margin-top: 8px; width: 100%; }
.lvc-img-del { position: absolute; top: 6px; right: 6px; z-index: 2; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(17,24,39,.62); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lvc-img-del:hover { background: #d92d20; }

@media (max-width: 720px) {
  .lvc-img-thumb.lvc-img-bg { width: 100%; }
}
/* 后台预览：图片 + "压缩后大小"（客户端不显示） */
.admin-img-wrap { position: relative; display: inline-block; max-width: 100%; }
.admin-img-size-text { margin-left: 6px; color: #667085; font-size: 11px; font-weight: 700; }
.logo-preview-item { display: inline-flex; align-items: center; gap: 2px; }
.lvc-center-bg-preview img { width: 100%; max-width: 520px; aspect-ratio: 16 / 6; object-fit: cover; border-radius: 14px; }

/* 后台：会员卡编辑（左侧编辑 + 右侧手机详情预览） */
.level-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
.level-editor-main-column { min-width: 0; display: grid; gap: 14px; }
.level-editor-heading { margin-bottom: 0; }
.level-editor-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e3ebe7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,24,40,.04);
}
.level-editor-panel .form-grid { min-width: 0; }
.level-editor-panel .form-grid > * { min-width: 0; max-width: 100%; }
.level-editor-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.level-editor-panel-head b { display: block; color: #1d2939; font-size: 14px; }
.level-editor-panel-head span { display: block; margin-top: 3px; color: #87928f; font-size: 10px; line-height: 1.45; }
.level-editor-panel-head em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 99px;
  color: #16745f;
  background: #e7f7f2;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.level-editor-preview { width: 100%; margin: 0; align-self: start; }
.level-editor-preview .deco-preview-phone { width: min(100%, 290px); border-width: 6px; border-radius: 25px; }
.level-editor-preview-body { padding: 0; background: #eef4f2; overflow: hidden; display: flex; }
.level-editor-phone-real {
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  color: #1d2939;
  background: linear-gradient(160deg,#edf7f3,#fff8e9);
  background-size: cover;
  background-position: center;
}
.level-editor-phone-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 10px; }
.level-editor-phone-scroll::-webkit-scrollbar { display: none; }
.level-editor-preview-head { padding: 4px 3px 9px; }
.level-editor-preview-head span { display: block; color: #667085; font-size: 8px; }
.level-editor-preview-head b { display: block; margin-top: 2px; color: #1d2939; font-size: 15px; }
.level-detail-image-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  align-items: start;
  gap: 12px;
}
.level-detail-image-list {
  min-height: 96px;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(82px,1fr));
  align-content: start;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfd;
}
.level-detail-image-actions { display: grid; gap: 8px; }
.level-detail-auto-images {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #cfe1da;
}
.level-detail-auto-images img,
.level-editor-preview-detail-images img,
.member-level-detail-images img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 9px;
  background: #f4f7f6;
}
.level-editor-preview-hero { overflow: hidden; border-radius: 15px; background: #fff; box-shadow: 0 9px 24px rgba(16,24,40,.12); }
.level-editor-preview-summary { margin-top: 9px; padding: 11px; border-radius: 13px; background: rgba(255,255,255,.96); box-shadow: 0 7px 20px rgba(16,24,40,.08); }
.level-editor-preview-name { display: block; }
.level-editor-preview-name b { display: block; color: #1d2939; font-size: 17px; line-height: 1.35; }
.level-editor-preview-subtitle { margin: 4px 0 0; color: #0d6e5c; font-size: 10px; font-weight: 700; }
.level-editor-preview-price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.level-editor-preview-price-row > div { min-width: 0; }
.level-editor-preview-price-row b { color: #d94822; font-size: 20px; line-height: 1; }
.level-editor-preview-price-row small { color: #98a2b3; font-size: 8.5px; }
.level-editor-preview-price-row > span { flex: 0 0 auto; min-width: 76px; height: 34px; display: grid; place-items: center; padding: 0 9px; border-radius: 9px; color: #fff; background: var(--green); font-size: 10px; font-weight: 800; }
.level-editor-preview-section { margin-top: 9px; padding: 11px; border-radius: 13px; background: rgba(255,255,255,.96); box-shadow: 0 7px 20px rgba(16,24,40,.07); }
.level-editor-preview-section h4 { margin: 0 0 7px; color: #1d2939; font-size: 12px; }
.level-editor-preview-card { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 9px 24px rgba(16,24,40,.12); }
.level-editor-preview-cover {
  position: relative;
  height: 124px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 82% 18%,rgba(242,184,75,.36),transparent 34%),linear-gradient(135deg,#132b3c,#0d6e5c);
}
.level-editor-preview-cover > span { font-size: 34px; font-weight: 900; }
.level-editor-preview-cover.has-image img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.level-editor-preview-body { padding: 11px; }
.level-editor-preview-name { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.level-editor-preview-name b { color: #1d2939; font-size: 15px; line-height: 1.35; }
.level-editor-preview-name span { flex: 0 0 auto; color: #d94822; font-size: 13px; font-weight: 800; }
.level-editor-preview-name small { color: #98a2b3; font-size: 8px; font-weight: 500; }
.level-editor-preview-body > p { margin: 4px 0 0; color: #0d6e5c; font-size: 9.5px; font-weight: 700; }
.level-editor-preview-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.level-editor-preview-tags span { padding: 3px 6px; border-radius: 99px; color: #526070; background: #f1f6f4; font-size: 8px; }
.level-editor-preview-desc { margin-top: 0; color: #667085; font-size: 10px; line-height: 1.62; }
.level-editor-preview-desc > :first-child { margin-top: 0; }
.level-editor-preview-desc > :last-child { margin-bottom: 0; }
.level-editor-preview-desc img { max-width: 100%; height: auto; display: block; border-radius: 7px; }
.level-editor-preview-detail-images { display: grid; gap: 7px; margin-top: 9px; }
.level-editor-preview-block { margin-top: 10px; padding-top: 9px; border-top: 1px solid #eef1ef; }
.level-editor-preview-block > b { color: #1d2939; font-size: 10px; }
.level-editor-preview-benefits { display: grid; gap: 5px; margin-top: 6px; }
.level-editor-preview-benefit { display: flex; align-items: flex-start; gap: 5px; color: #475467; font-size: 8.7px; line-height: 1.45; }
.level-editor-preview-benefit i { width: 14px; height: 14px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #0d6e5c; background: #e7f7f2; font-size: 8px; font-style: normal; font-weight: 900; }
.member-benefit-visual-groups { display: grid; gap: 11px; }
.member-benefit-visual-group { min-width: 0; padding: 10px; border: 1px solid #d9ebe5; border-radius: 12px; background: #f5fbf8; }
.member-benefit-visual-group--discount { border-color: #efe0bd; background: #fffaf0; }
.member-benefit-visual-group--special { border-color: #dbe4ec; background: #f5f7fa; }
.member-benefit-visual-head { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.member-benefit-visual-head > span { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; color: #0d6e5c; background: #e5f5ef; font-size: 11px; font-weight: 900; }
.member-benefit-visual-group--discount .member-benefit-visual-head > span { color: #8a5b06; background: #fff2d2; }
.member-benefit-visual-group--special .member-benefit-visual-head > span { color: #40596b; background: #e7edf3; }
.member-benefit-visual-head b { color: #1d2939; font-size: 14.4px; }
.member-benefit-visual-head small { margin-left: auto; color: #98a2b3; font-size: 9.5px; }
.member-benefit-visual-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.member-benefit-visual-card { min-width: 0; overflow: hidden; border: 1px solid #e3ebe7; border-radius: 10px; background: #fff; box-shadow: 0 3px 10px rgba(16,24,40,.05); }
.member-benefit-visual-card.is-discount { border-color: #efe0bd; }
.member-benefit-visual-card.is-special { border-color: #dbe4ec; }
.member-benefit-visual-cover { position: relative; aspect-ratio: 1.35 / 1; display: grid; place-items: center; overflow: hidden; background: #edf4f1; }
.member-benefit-visual-cover.has-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.member-benefit-visual-cover.is-icon { color: #fff; background: linear-gradient(135deg,#153f35,#0d6e5c 62%,#21b08d); }
.member-benefit-visual-card.is-discount .member-benefit-visual-cover.is-icon { color: #4a3200; background: linear-gradient(135deg,#f4c95d,#ffe8b4); }
.member-benefit-visual-card.is-special .member-benefit-visual-cover.is-icon { background: linear-gradient(135deg,#263d4d,#0d6e5c); }
.member-benefit-visual-cover.is-icon span { font-size: 24px; font-weight: 900; line-height: 1; }
.member-benefit-visual-copy { padding: 7px 8px 8px; }
.member-benefit-visual-copy b { display: -webkit-box; overflow: hidden; color: #1d2939; font-size: 10px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.member-benefit-visual-copy small { display: block; overflow: hidden; margin-top: 3px; color: #7a8793; font-size: 8.5px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.level-editor-preview-benefits .member-benefit-visual-groups { gap: 8px; }
.level-editor-preview-benefits .member-benefit-visual-grid { gap: 5px; }
.level-editor-preview-benefits .member-benefit-visual-copy { padding: 5px 5px 6px; }
.level-editor-preview-benefits .member-benefit-visual-copy b { font-size: 8px; }
.level-editor-preview-benefits .member-benefit-visual-copy small { font-size: 7px; }
.level-editor-preview-benefits .member-benefit-visual-group { padding: 7px; }
.level-editor-preview-benefits .member-benefit-visual-head b { font-size: 10.8px; }
.level-editor-preview-benefits .member-benefit-visual-head small { font-size: 7px; }
.level-editor-preview-benefits .member-benefit-visual-head > span { width: 17px; height: 17px; font-size: 8px; }
.level-editor-preview-service { display: grid; gap: 2px; margin-top: 10px; padding: 8px; border-radius: 9px; background: #f7faf8; }
.level-editor-preview-service span { color: #98a2b3; font-size: 7.5px; }
.level-editor-preview-service b { color: #344054; font-size: 9.5px; }
.level-editor-preview-service small { color: #667085; font-size: 8px; }
.member-level-detail-images { display: grid; gap: 10px; margin-top: 12px; }
.level-editor-preview-open { min-height: 34px; display: grid; place-items: center; margin-top: 10px; border-radius: 9px; color: #fff; background: var(--green); font-size: 10px; font-weight: 800; pointer-events: none; }
.level-editor-preview-empty { margin: 6px 0 0; color: #98a2b3; font-size: 8.5px; }
.level-editor-preview-paybar { flex: 0 0 56px; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-top: 1px solid #e7eeeb; background: rgba(255,255,255,.98); box-shadow: 0 -5px 16px rgba(16,24,40,.05); }
.level-editor-preview-paybar small { display: block; color: #98a2b3; font-size: 8px; }
.level-editor-preview-paybar b { display: block; color: #d94822; font-size: 15px; }
.level-editor-preview-paybar span { flex: 0 0 auto; min-width: 76px; height: 34px; display: grid; place-items: center; padding: 0 10px; border-radius: 9px; color: #fff; background: var(--green); font-size: 10px; font-weight: 800; pointer-events: none; }
@media (max-width: 900px) {
  .level-editor-layout { grid-template-columns: 1fr; }
  .level-editor-preview { position: static; order: -1; }
}
@media (max-width: 640px) {
  .level-editor-panel { padding: 13px; }
  .level-detail-image-layout { grid-template-columns: 1fr; }
  .level-detail-image-actions { grid-template-columns: 1fr 1fr; }
}

.level-card-cover { position: relative; width: 100%; height: 110px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg,#132b3c,#0d6e5c); display: grid; place-items: center; margin-bottom: 8px; }
.level-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.level-card-cover span { color: #fff; font-size: 30px; font-weight: 900; }

.my-level-card { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 4px 16px rgba(16,24,40,.10); }
.my-level-cover { width: 100%; height: 150px; overflow: hidden; }
.my-level-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.my-level-body { padding: 12px 14px 6px; }
.my-level-sub { margin: 4px 0 0; color: #0d6e5c; font-size: 13px; font-weight: 700; }
.my-level-desc { margin: 6px 0 0; color: #526070; font-size: 13px; line-height: 1.6; }
/* 会员简介 / 商品简介改成富文本后：外层保留原字号色，排版按编辑里的设置走 */
.my-level-desc .rich-text { color: inherit; font-size: inherit; line-height: inherit; }
.my-level-desc .rich-text p { margin: 0 0 4px; }
.shop-detail-desc .rich-text { color: inherit; font-size: inherit; line-height: inherit; }
.shop-detail-desc .rich-text p { margin: 0 0 6px; }
.shop-price-origin { margin-right: 6px; color: #98a2b3; font-weight: 400; }
.shop-price-vip { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: #e8f5f0; color: #0d6e5c; font-size: 11px; font-weight: 700; vertical-align: middle; }
.my-level-meta { margin-top: 8px; color: #98a2b3; font-size: 12px; }

.level-shop-list { display: grid; gap: 12px; }
.level-shop-card { position: relative; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 3px 12px rgba(16,24,40,.08); }
.level-shop-card.mine { outline: 2px solid #0d6e5c; }
/* 会员升级：最近的那一级标「推荐升级」，并把"只需补多少"直接摊在卡上 */
/* 会员中心"要升级的卡"：**所有**升级卡统一都带黄色描边 + 外发光（样式一致，只差角标） */
.level-shop-card.upgrade-card { box-shadow: 0 8px 22px rgba(242,184,75,.30); outline: 1.5px solid rgba(242,184,75,.6); }
.level-upgrade-badge { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 3px 9px; border-radius: 99px; background: linear-gradient(145deg,#ffe49b,#f2b84b); color: #4a3407; font-size: 10px; font-weight: 900; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.level-upgrade-pay { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #fff8e8; color: #7a5a12; font-size: 12px; line-height: 1.6; }
.level-upgrade-pay span { display: block; }
.level-upgrade-pay b { color: #b8791a; font-size: 14px; }
.level-shop-cover { position: relative; height: 128px; overflow: hidden; background: linear-gradient(135deg,#132b3c,#0d6e5c); display: grid; place-items: center; }
.level-shop-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.level-shop-cover span { color: #fff; font-size: 30px; font-weight: 900; }
.level-shop-body { padding: 12px 14px 14px; }

/* 「切换账号」面板：正常点击即切换；删除需先进「编辑」并二次确认 */
.acct-sec-head { margin: 0 15px 8px; display: flex; align-items: center; justify-content: space-between; }
.acct-sec-head > span { color: #98a2b3; font-size: 11px; line-height: 1.6; }
.acct-edit-btn { border: 1px solid #cdd8d4; background: #fff; color: #0d6e5c; font-size: 12px; font-weight: 800; border-radius: 99px; padding: 4px 14px; cursor: pointer; }
.acct-edit-btn:active { background: #f1f6f4; }
.acct-row { display: flex; align-items: stretch; background: #fff; border-bottom: 1px solid #f0f2f4; }
.acct-row:last-child { border-bottom: 0; }
.acct-row .menu-row { flex: 1 1 auto; min-width: 0; border-bottom: 0; }
.acct-del { flex: 0 0 auto; border: 0; background: #fff; color: #d92d20; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.acct-del:active { background: #fff5f4; }
.acct-del.acct-lock { width: 54px; color: #98a2b3; font-size: 11px; font-weight: 700; }
.acct-del.acct-del-btn { width: 64px; font-size: 12px; }

/* 会员商品卡：开通 / 升级 + 查看权益 两个按钮
   —— 宽度各占一半、高度一致、文字居中；窄屏也不会顶出屏幕（少了任何一个按钮时，剩下的自动占满整行） */
.level-shop-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 48px;
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
}
.level-shop-actions > button {
  width: 100%;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  align-self: stretch;
}
.level-shop-actions > button:only-child {
  grid-column: 1 / -1;
}
.level-shop-actions .member-open-btn {
  border: 1px solid #dfaa36;
  color: #3f2c05;
  background: linear-gradient(145deg, #ffe7a1, #f0b23c);
  box-shadow: 0 7px 17px rgba(202,139,22,.28), inset 0 1px 0 rgba(255,255,255,.62);
  font-weight: 900;
  letter-spacing: .15px;
}
.level-shop-actions .member-detail-btn {
  border: 1px solid #d8dee5;
  color: #566273;
  background: linear-gradient(145deg, #f8fafb, #e9edf1);
  box-shadow: 0 3px 9px rgba(16,24,40,.08), inset 0 1px 0 rgba(255,255,255,.84);
  font-weight: 800;
}
.level-shop-actions .member-open-btn:active,
.level-shop-actions .member-detail-btn:active {
  transform: translateY(1px) scale(.99);
}
.level-shop-actions .member-detail-btn:active {
  background: #e2e7ec;
}
/* 客户模式下 .secondary-btn 会被放大到 14px，这里压回和主按钮一致的 12px，保证两个按钮文字一样大 */
body.customer-mode .level-shop-actions .secondary-btn { font-size: 12px; }
/* 首页会员卡：完整详情弹窗 */
.member-detail-cover {
  width: 100%;
  min-height: 132px;
  max-height: 210px;
  aspect-ratio: 16 / 7;
  border-radius: 14px;
  background-color: #123d4b;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.member-detail-cover.is-empty { display: grid; place-items: center; background: linear-gradient(135deg, #132b3c, #0d6e5c); }
.member-detail-cover.is-empty span { color: #fff; font-size: 42px; font-weight: 900; }
.member-detail-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 13px; }
.member-detail-summary > div { min-width: 0; }
.member-detail-summary b { color: #1d2939; font-size: 18px; }
.member-detail-summary p { margin: 4px 0 0; color: #667085; font-size: 12px; line-height: 1.6; }
.member-detail-summary > strong { flex: 0 0 auto; color: #b54708; font-size: 24px; line-height: 1.15; white-space: nowrap; }
.member-detail-summary > strong small { margin-left: 2px; color: #98a2b3; font-size: 12px; font-weight: 700; }
.member-detail-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.member-detail-meta span { padding: 5px 9px; border-radius: 999px; color: #667085; background: #f2f5f4; font-size: 11px; }
.member-detail-meta b { color: #0d6e5c; }
.member-detail-section { margin-top: 16px; padding-top: 13px; border-top: 1px solid #e7eeeb; }
.member-detail-section h4 { margin: 0 0 9px; color: #1d2939; font-size: 14px; }
.member-detail-desc { color: #526070; font-size: 13px; line-height: 1.8; word-break: break-word; }
.member-detail-desc img { max-width: 100%; height: auto; border-radius: 10px; }
.member-detail-empty { margin: 0; padding: 11px 12px; border-radius: 10px; color: #7d8995; background: #f7f9f8; font-size: 12px; line-height: 1.7; }
.member-detail-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; }
.member-detail-benefits span { color: #0d6e5c; font-size: 12px; line-height: 1.65; word-break: break-word; }
@media (max-width: 520px) {
  .member-detail-summary { flex-direction: column; gap: 7px; }
  .member-detail-summary > strong { font-size: 22px; }
  .member-detail-benefits { grid-template-columns: 1fr; }
}
/* "转发会员卡"弹窗里的卡片预览 */
.share-card-preview { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fafcfd; }
.share-card-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.share-card-copy { min-width: 0; }
.share-card-copy b { display: block; color: #1d2939; font-size: 14px; }
.share-card-copy span { display: block; margin-top: 4px; color: #667085; font-size: 12px; line-height: 1.5; }

/* 管理员在会员端时：顶部返回三端总览的返回条（仅管理员可见） */
.admin-back-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 12px calc(6px + env(safe-area-inset-top, 0px)); background: #0b2535; }
.admin-back-bar button { border: 1px solid rgba(255,255,255,.42); border-radius: 99px; padding: 5px 13px; background: rgba(255,255,255,.14); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.admin-back-bar button:active { background: rgba(255,255,255,.32); }

/* 范围勾选：改成简洁的文字+勾选（列表式，不再一格格方块） */
.form-field .beta-choice-grid, .content-editor-side .beta-choice-grid { display: flex; flex-direction: column; gap: 0; padding: 2px 0; }
.form-field .beta-choice, .content-editor-side .beta-choice { display: inline-flex; align-items: center; gap: 7px; width: 100%; padding: 4px 2px; border: 0; border-radius: 0; background: transparent; font-size: 13px; color: #344054; cursor: pointer; }
.form-field .beta-choice input, .content-editor-side .beta-choice input { width: auto; margin: 0; flex: 0 0 auto; }
.form-field .beta-choice span, .content-editor-side .beta-choice span { color: #344054; }
.form-field .beta-choice:hover, .content-editor-side .beta-choice:hover { background: #f4f8f6; }
.benefit-pick-host { width: 100%; }
.benefit-pick-groups { display: grid; gap: 12px; }
.benefit-pick-section { padding: 11px; border: 1px solid #dcebe5; border-radius: 13px; background: #f7fcfa; }
.benefit-pick-section--discount { border-color: #efe0bd; background: #fffaf0; }
.benefit-pick-section--special { border-color: #dbe4ec; background: #f5f7fa; }
.benefit-pick-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.benefit-pick-section-head > span { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: #0d6e5c; background: #e2f3ed; font-size: 12px; font-weight: 900; }
.benefit-pick-section--discount .benefit-pick-section-head > span { color: #8a5b06; background: #ffedc2; }
.benefit-pick-section--special .benefit-pick-section-head > span { color: #40596b; background: #e7edf3; }
.benefit-pick-section-head > div { min-width: 0; flex: 1 1 auto; }
.benefit-pick-section-head b { display: block; color: #1d2939; font-size: 15.6px; }
.benefit-pick-section-head small { display: block; margin-top: 2px; color: #7a8793; font-size: 10px; }
.benefit-pick-section-head em { flex: 0 0 auto; color: #667085; font-size: 10px; font-style: normal; font-weight: 700; }
.benefit-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 9px; }
.benefit-pick-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px 28px 8px 8px;
  border: 1px solid #dfe8e4;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.benefit-pick-card:hover { border-color: #a8d5c7; transform: translateY(-1px); }
.benefit-pick-card:has(input:checked),
.benefit-pick-card.is-picked { border-color: #4fa98f; box-shadow: inset 0 0 0 1px #ccebe2, 0 4px 12px rgba(13,110,92,.08); }
.benefit-pick-card--discount:has(input:checked),
.benefit-pick-card--discount.is-picked { border-color: #d3ad55; box-shadow: inset 0 0 0 1px #f5dfac, 0 4px 12px rgba(138,91,6,.08); }
.benefit-pick-card--special:has(input:checked),
.benefit-pick-card--special.is-picked { border-color: #7f9caf; box-shadow: inset 0 0 0 1px #d8e4ec, 0 4px 12px rgba(64,89,107,.10); }
.benefit-pick-card > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.benefit-pick-card.is-paused { opacity: .58; cursor: not-allowed; }
.benefit-pick-cover { width: 68px; height: 52px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: #eef4f1; }
.benefit-pick-cover.has-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.benefit-pick-cover.is-icon { color: #fff; background: linear-gradient(135deg,#153f35,#0d6e5c 65%,#21b08d); }
.benefit-pick-card--discount .benefit-pick-cover.is-icon { color: #4a3200; background: linear-gradient(135deg,#f4c95d,#ffe8b4); }
.benefit-pick-card--special .benefit-pick-cover.is-icon { background: linear-gradient(135deg,#263d4d,#0d6e5c); }
.benefit-pick-cover b { max-width: 56px; overflow: hidden; font-size: 20px; line-height: 1; text-align: center; }
.benefit-pick-copy { min-width: 0; }
.benefit-pick-copy b { display: -webkit-box; overflow: hidden; color: #1d2939; font-size: 12px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.benefit-pick-copy small { display: block; overflow: hidden; margin-top: 3px; color: #7a8793; font-size: 10px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.benefit-pick-check { position: absolute; top: 7px; right: 7px; width: 18px; height: 18px; display: none; place-items: center; border-radius: 50%; color: #fff; background: #16866b; font-size: 11px; font-weight: 900; }
.benefit-pick-card--discount .benefit-pick-check { color: #4a3200; background: #f2b84b; }
.benefit-pick-card--special .benefit-pick-check { background: #557184; }
.benefit-pick-card:has(input:checked) .benefit-pick-check,
.benefit-pick-card.is-picked .benefit-pick-check { display: grid; }
@media (max-width: 640px) {
  .benefit-pick-grid { grid-template-columns: 1fr; }
}

.modal-footer { pointer-events: auto; }
.modal-card.max .modal-footer, .modal-card .modal-footer { z-index: 8; }

/* 保存按钮：点下去后变成"保存中…"，让人一眼看出点到了（保存失败时自动恢复） */
.primary-btn.is-saving { opacity: .72; cursor: progress; }

/* ===== 电脑上打开会员端（H5）：收成"居中一列"，不再被拉满整屏 =====
   手机上完全不受影响；三端总览里的预览框只有 390px 宽，也不会命中这些宽屏规则，
   所以"电脑预览"和"手机真实效果"仍然是同一套排版。 */
body.customer-mode { --app-col: 520px; }
@media (min-width: 1600px) { body.customer-mode { --app-col: 620px; } }

/* ===== 电商管理 · 标签与列表 ===== */
.tag { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; line-height: 1.7; white-space: nowrap; }
.tag.ok { color: #0d6e5c; background: #e7f7f2; }
.tag.info { color: #175cd3; background: #eff4ff; }
.tag.muted { color: #667085; background: #f2f4f7; }
.tag.warn { color: #b54708; background: #fffaeb; }
.tag.danger { color: #b42318; background: #fef3f2; }

.shop-admin-cell { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.shop-drag-handle {
  flex: 0 0 auto;
  width: 22px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #98a2b3;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  cursor: grab;
}
.shop-drag-handle:hover { color: #0d6e5c; background: #eef8f4; }
.shop-drag-handle:active { cursor: grabbing; }
.shop-drag-handle.disabled { color: #d0d5dd; cursor: not-allowed; background: transparent; }
.shop-product-table tbody tr.shop-product-dragging { opacity: .42; }
.shop-product-table tbody tr.shop-product-drag-over td { box-shadow: inset 0 2px 0 #21b08d; background: #f1fbf7; }
.shop-admin-thumb { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 9px; overflow: hidden; display: block; background: #eef2f6; }
.shop-admin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-admin-thumb.color i { display: block; width: 100%; height: 100%; }
.shop-admin-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.shop-product-table {
  --shop-product-row-height: 88px;
  width: 100%;
  min-width: 1270px;
  table-layout: fixed;
}
.shop-product-table thead th {
  height: 42px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
}
.shop-product-table tbody td {
  height: var(--shop-product-row-height);
  padding: 6px 10px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-product-table tbody tr { height: var(--shop-product-row-height); }
.shop-product-table th:nth-child(1), .shop-product-table td:nth-child(1) { width: 36px; }
.shop-product-table th:nth-child(2), .shop-product-table td:nth-child(2) { width: 58px; }
.shop-product-table th:nth-child(3), .shop-product-table td:nth-child(3) { width: 330px; }
.shop-product-table th:nth-child(4), .shop-product-table td:nth-child(4) { width: 110px; }
.shop-product-table th:nth-child(5), .shop-product-table td:nth-child(5) { width: 130px; }
.shop-product-table th:nth-child(6), .shop-product-table td:nth-child(6) { width: 86px; }
.shop-product-table th:nth-child(7), .shop-product-table td:nth-child(7) { width: 76px; }
.shop-product-table th:nth-child(8), .shop-product-table td:nth-child(8) { width: 130px; }
.shop-product-table th:nth-child(9), .shop-product-table td:nth-child(9) { width: 100px; }
.shop-product-table th:nth-child(10), .shop-product-table td:nth-child(10) { width: 214px; }
.shop-product-table .shop-admin-cell { min-width: 0; gap: 12px; overflow: hidden; }
.shop-product-table .shop-drag-handle { width: 28px; height: 34px; font-size: 17px; }
.shop-sort-input {
  width: 50px;
  height: 34px;
  padding: 0 5px;
  border: 1px solid #dce7e3;
  border-radius: 7px;
  background: #fff;
  color: #344054;
  font-size: 14px;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.shop-sort-input::-webkit-inner-spin-button,
.shop-sort-input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.shop-sort-input:focus { outline: none; border-color: #72bba5; box-shadow: 0 0 0 2px rgba(13,110,92,.08); }
.shop-product-table .shop-admin-thumb { width: 80px; height: 76px; border-radius: 9px; }
.shop-inline-name {
  flex: 0 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 38px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #344054;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 36px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.shop-inline-name:hover { border-color: #dce7e3; background: #fff; }
.shop-inline-name:focus { outline: none; border-color: #72bba5; background: #fff; box-shadow: 0 0 0 2px rgba(13,110,92,.08); }
.shop-inline-cell-button {
  max-width: 100%;
  min-height: 32px;
  padding: 2px 6px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #344054;
  background: transparent;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  cursor: pointer;
}
.shop-inline-cell-button:hover { border-color: #dce7e3; background: #f2f9f6; color: #0d6e5c; }
.shop-inline-select {
  width: 100%;
  max-width: 140px;
  height: 34px;
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #344054;
  font-size: 13.5px;
}
.shop-inline-select:hover,
.shop-inline-select:focus { border-color: #b7dccc; background: #fff; outline: none; }
.shop-inline-readonly { color: #667085; }
.shop-admin-copy { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.shop-admin-title-line { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; }
.shop-admin-title-line > b {
  flex: 0 1 auto;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  color: #344054;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-product-table .shop-admin-title-line > .shop-inline-name { flex: 1 1 auto; max-width: 100%; }
.shop-product-table .shop-admin-flags {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  margin-top: 2px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.shop-product-table .shop-admin-flags .tag { min-height: 21px; padding: 0 6px; font-size: 11.5px; line-height: 21px; }
.shop-product-table .product-category-cell,
.shop-product-table .shop-delivery-cell { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-product-table .shop-status-select { height: 34px; padding: 2px 6px; font-size: 13px; }
.shop-product-table .row-actions { align-items: center; flex-wrap: nowrap; gap: 5px; }
.shop-product-table .row-actions button {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12.5px;
  line-height: 30px;
  white-space: nowrap;
}
@media (min-width: 821px) {
  .shop-main-panel > .shop-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 5px;
  }
  .shop-main-panel > .shop-toolbar > * { flex: 0 0 auto; }
  .shop-main-panel > .shop-toolbar > .spacer { flex: 1 0 10px; }
}
.shop-filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 0 12px; }
.shop-filter-row input, .shop-filter-row select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: #fff; }
/* 商品列表工具栏：筛选和批量操作挤在一行，窄屏才换行 */
.shop-toolbar { flex-wrap: wrap; row-gap: 8px; }
.shop-toolbar .search-box { max-width: 220px; }
.shop-category-strip {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16,24,40,.035);
}
.shop-category-strip-label {
  flex: 0 0 auto;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.shop-category-strip-list {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 1px 0 2px;
  scrollbar-width: thin;
}
.shop-category-all-filter {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d8e5df;
  border-radius: 9px;
  background: #fff;
  color: #526070;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.shop-category-all-filter:hover { color: #0d6e5c; border-color: #9fd9c8; }
.shop-category-all-filter.active { color: #fff; border-color: var(--green); background: var(--green); }
.shop-category-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 150px;
  min-height: 42px;
  padding: 4px 5px 4px 10px;
  border: 1px solid #e3ebe7;
  border-radius: 10px;
  background: #f8fbf9;
}
.shop-category-chip.active { border-color: var(--green); box-shadow: 0 0 0 2px rgba(13,110,92,.09); background: #eff9f5; }
.shop-category-chip-main {
  flex: 1 1 auto;
  min-width: 96px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.shop-category-chip-main:hover .shop-category-chip-copy b { color: #0d6e5c; }
.shop-category-chip-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.shop-category-chip-copy b {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1d2939;
  font-size: 13px;
}
.shop-category-chip-copy small {
  flex: 0 0 auto;
  color: #98a2b3;
  font-size: 11px;
}
.shop-category-manage-btn { min-height: 36px; padding: 0 13px; color: #0d6e5c; font-weight: 800; white-space: nowrap; }
.shop-category-manage-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.shop-category-manage-head b { color: #1d2939; font-size: 13px; }
.shop-category-manage-list { display: grid; gap: 8px; }
.shop-category-manage-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfd;
}
.shop-category-manage-row input {
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #dfe7e4;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}
.shop-category-manage-actions { display: flex; align-items: center; gap: 5px; }
.shop-category-manage-actions button {
  min-width: 54px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid #e1e8e5;
  border-radius: 8px;
  background: #fff;
  color: #526070;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.shop-category-manage-actions button:hover { border-color: #9fd9c8; background: var(--green-soft); color: #0d6e5c; }
.shop-category-manage-actions button.danger { color: #b42318; }
.shop-category-manage-actions button.danger:hover { border-color: #f0b4ab; background: #fef3f2; color: #b42318; }
.shop-category-empty { color: #98a2b3; font-size: 12px; }
.shop-inline-category-list { display: grid; gap: 7px; max-height: 42vh; overflow: auto; }
.shop-inline-sku-head,
.shop-inline-sku-row { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,.8fr) minmax(0,.8fr); gap: 8px; }
.shop-inline-sku-head { margin-bottom: 6px; color: #667085; font-size: 11px; }
.shop-inline-sku-list { display: grid; gap: 7px; }
.shop-inline-sku-row input {
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}
@media (max-width: 640px) {
  .shop-inline-sku-head { display: none; }
  .shop-inline-sku-row { grid-template-columns: 1fr; padding: 8px; border: 1px solid var(--line); border-radius: 9px; }
}
@media (max-width: 640px) {
  .shop-category-strip { align-items: center; flex-wrap: wrap; }
  .shop-category-strip-list { order: 3; flex-basis: 100%; width: 100%; }
  .shop-category-strip > .mini-btn { margin-left: auto; }
  .shop-category-manage-row { grid-template-columns: 1fr; }
  .shop-category-manage-actions { justify-content: flex-end; }
}
.shop-toolbar .mini-btn.shop-batch { height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #126c59; font-size: 11px; font-weight: 700; white-space: nowrap; }
.shop-toolbar .mini-btn.shop-batch:hover { background: #f4f8f6; }
.shop-toolbar .mini-btn.shop-batch:disabled { color: #98a2b3; background: #f7f8fa; border-color: #eef1f4; cursor: not-allowed; }
.shop-toolbar .mini-btn { white-space: nowrap; }
.shop-toolbar .mini-tag { white-space: nowrap; }
.shop-toolbar .shop-add-btn { margin-left: 2px; }
/* 商品管理：整页锁在一屏高度内，省下来的高度全给列表。
   这样不管上面的工具栏换不换行，表格都占满剩下空间、自己滚动，
   表头吸顶不动 —— 小屏幕上也一定看得到完整的商品列表。
   注意：.data-panel 本身是横向滚动容器，表头直接设 sticky 会被它吃掉，
   所以必须让这个表格容器自己成为纵向滚动区。 */
.shop-page { display: flex; flex-direction: column; height: calc(100vh - 100px); min-height: 420px; }
.shop-page > .panel.shop-main-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  /* 卡片本身没有内边距，工具栏和表格会贴着外框线；这里给四周留出呼吸空间 */
  padding: 13px 15px 14px;
}
body.admin-mode .data-panel.shop-table-panel,
.data-panel.shop-table-panel {
  --shop-product-row-height: 88px;
  flex: 1 1 auto;
  min-height: clamp(420px, calc(100vh - 270px), 720px);
    max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  /* 表格按行数完整展开时只有约 1px 的自身可滚距离；
     不能拦住滚轮，否则鼠标停在列表上时无法继续滚动外层页面。 */
  overscroll-behavior: auto;
}
.shop-page .pagination-bar { flex: 0 0 auto; }
/* 桌面端电商管理：顶栏和页签固定，剩余高度全部交给商品表格。
   旧写法只看 100vh 减 100px，没算顶栏、内容内边距和页签，结果页面底部空一块，
   商品列表反而被压矮。这里让整个后台主区真正参与纵向 flex 分配。 */
@media (min-width: 821px) {
  body.admin-mode .admin-main.admin-main-shop {
    height: 100vh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.admin-mode.admin-switcher-enabled .admin-main.admin-main-shop {
    /* 顶部还有 74px 的三端切换条，主区不能再按整屏计算，否则底部会被裁掉。 */
    height: calc(100vh - 74px);
  }
  body.admin-mode .admin-main.admin-main-shop .admin-topbar {
    flex: 0 0 82px;
  }
  body.admin-mode .admin-main.admin-main-shop .admin-view {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.admin-mode .admin-main.admin-main-shop .admin-view.admin-view-shop-deco {
    display: block;
  }
  /* 商城装修页的 5 个页签跟随内容正常排布，不悬浮在滚动内容上方 */
  body.admin-mode .admin-main.admin-main-shop .admin-view.admin-view-shop-deco > .shop-tabs {
    position: static;
    top: auto;
    z-index: auto;
    background: transparent;
  }
  body.admin-mode .admin-main.admin-main-shop .admin-view.admin-view-shop-deco .shop-deco-page {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  body.admin-mode .admin-main.admin-main-shop .admin-view.admin-view-shop-deco .deco-preview-panel {
    top: 22px;
    max-height: calc(100vh - 106px);
  }
  body.admin-mode .admin-main.admin-main-shop .shop-tabs {
    flex: 0 0 auto;
  }
  body.admin-mode .admin-main.admin-main-shop .shop-page {
    flex: 0 0 auto;
    height: auto;
    min-height: calc(125vh - 155px);
  }
body.admin-mode .admin-main.admin-main-shop .shop-main-panel {
    min-height: 0;
  }
  /* 屏幕较矮时只压缩表格可视区，不能压缩筛选工具栏；否则工具栏和表头会被裁掉半截 */
  body.admin-mode .admin-main.admin-main-shop .shop-main-panel > .shop-toolbar {
    flex: 0 0 auto;
    min-height: 40px;
    overflow-y: visible;
  }
  body.admin-mode .admin-main.admin-main-shop .shop-main-panel > .shop-table-panel {
    flex: 0 0 auto;
    min-height: 0;
    /* 高度按表格内容自然撑开，给底部横向滚动条留出真实占位，避免最后一行被裁掉。 */
    height: auto;
    max-height: none;
  }
  body.admin-mode .admin-main.admin-main-shop .shop-table-panel thead th {
    position: sticky;
    top: 0;
  }
}
/* ===== 运费模板（地区分组）===== */
.ship-zone-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ship-zone-tag { display: inline-block; padding: 3px 8px; border-radius: 8px; background: #f2f4f7; color: #526070; font-size: 11px; font-weight: 700; }
.ship-zone-tag.ok { background: var(--green-soft); color: #0d6e5c; }
.ship-zone-tag.warn { background: #fffaeb; color: #b54708; }
.ship-zone-tag.danger { background: #fef3f2; color: #b42318; }
.ship-tpl-sub { display: block; margin-top: 4px; color: #98a2b3; font-size: 11px; line-height: 1.6; }
.ship-zone-default, .ship-zone-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.ship-zone-default { background: #f7fbf9; }
.ship-zone-default b { display: inline-block; margin-right: 10px; font-size: 13px; color: #0d6e5c; }
.ship-zone-row.open { border-color: #9fd9c8; box-shadow: 0 0 0 2px rgba(13,110,92,.06); }
.ship-zone-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ship-zone-name { width: 130px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.ship-zone-body { margin-top: 8px; }
.ship-rate { display: inline-flex; align-items: center; gap: 4px; color: #526070; font-size: 12px; }
.ship-rate input { width: 58px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; text-align: center; }
.ship-rate-sep { margin: 0 6px; color: #98a2b3; }
.ship-zone-noship-note { display: inline-block; padding: 4px 10px; border-radius: 8px; background: #fef3f2; color: #b42318; font-size: 12px; font-weight: 700; }
.ship-zone-picked { margin-top: 8px; color: #667085; font-size: 11.5px; line-height: 1.7; }
.ship-zone-picker { margin-top: 10px; padding: 10px; border-radius: 10px; background: #f7f9fb; }
.ship-zone-quicks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ship-prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.ship-prov { padding: 6px 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #526070; font-size: 12px; cursor: pointer; }
.ship-prov.on { border-color: var(--green); background: var(--green); color: #fff; font-weight: 800; }
.ship-prov.other { border-style: dashed; color: #98a2b3; }
.ship-zone-grid-empty { padding: 10px; color: #b42318; font-size: 12px; }
.ship-free-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: #526070; font-size: 12.5px; }
.ship-free-row input { width: 76px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; text-align: center; }
/* 电商管理那三个页签（商品管理 / 商品分类 / 电商设置）：
   上下空隙各留 20px（上面 10=顶栏内边距 + 10=这行自身内边距；
   下面 10=自身内边距 + 10=下外边距），整行也比通用 tabs-row 矮一点。 */
.shop-tabs { position: static; top: auto; z-index: auto; padding: 10px 15px; margin: 0 0 10px; }
.shop-tabs button { padding: 6px 13px; font-size: 11.5px; }
.shop-table-panel thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  box-shadow: inset 0 -1px 0 var(--line);
}
/* 表头里那个"全选"复选框也一样钉住 */
.shop-table-panel thead th input { margin: 0; }
.shop-status-select { padding: 5px 6px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; background: #fff; }
.product-category-cell { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field-hint { display: block; margin-top: 5px; color: #98a2b3; font-size: 12px; line-height: 1.5; }

/* ===== 商品编辑弹窗 ===== */
.shop-basic-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  align-items: start;
  gap: 16px;
}
.shop-basic-meta-col { min-width: 0; }
.shop-basic-meta-col--category {
  padding-left: 16px;
  border-left: 1px solid #edf1ef;
}
.shop-basic-meta-col--category .course-category-picker { align-content: flex-start; }
.shop-kind-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-kind-card { flex: 1 1 200px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; cursor: pointer; text-align: left; }
.shop-kind-card.active { border-color: var(--green); background: var(--green-soft); }
.shop-kind-card b { display: block; font-size: 14px; color: #1d2939; }
.shop-kind-card span { display: block; margin-top: 4px; color: #667085; font-size: 12px; line-height: 1.55; }
@media (max-width: 900px) {
  .shop-basic-meta-row { grid-template-columns: 1fr; gap: 12px; }
  .shop-basic-meta-col--category {
    padding-top: 12px;
    padding-left: 0;
    border-top: 1px solid #edf1ef;
    border-left: 0;
  }
}
.shop-option-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  margin-top: 14px;
}
.shop-option-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 11px 12px 12px;
  border: 1px solid #e4ebe8;
  border-radius: 12px;
  background: #fbfdfc;
}
.shop-option-layout.is-service { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-option-card-head {
  margin-bottom: 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid #edf2f0;
}
.shop-option-card-head b { display: block; color: #1d2939; font-size: 13px; }
.shop-option-card-head span { display: block; margin-top: 3px; color: #98a2b3; font-size: 10.5px; line-height: 1.5; }
.shop-option-card .form-field { margin: 0; }
.shop-option-card .form-field + .form-field { margin-top: 9px; }
.shop-option-card .form-field > label:not(.check-option) { margin-bottom: 5px; }
.shop-option-card select,
.shop-option-card input { min-width: 0; }
.shop-option-card select { padding-right: 30px; }
.shop-option-card .check-option {
  min-height: 36px;
  padding: 8px 10px;
}
.shop-option-number-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: #526070;
  font-size: 12px;
}
.shop-option-number-row input { margin: 0 !important; text-align: center; }
.shop-option-number-row > span { white-space: nowrap; }
.shop-option-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.shop-option-mini-field {
  display: block;
  min-width: 0;
  margin: 0 !important;
}
.shop-option-mini-field > span:first-child {
  display: block;
  margin-bottom: 4px;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}
.shop-option-mini-field input {
  width: 100%;
  height: 38px;
}
.shop-option-number-row.compact {
  margin: 0;
  grid-template-columns: minmax(0, 1fr) auto;
}
.shop-option-number-row.compact input {
  width: 100%;
  height: 38px;
  text-align: center;
}
.shop-option-note {
  margin-top: auto;
  padding: 9px 10px;
  border-radius: 9px;
  color: #667085;
  background: #f2f7f5;
  font-size: 11px;
  line-height: 1.6;
}
@media (max-width: 1200px) {
  .shop-option-layout,
  .shop-option-layout.is-service { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .shop-option-layout,
  .shop-option-layout.is-service { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shop-option-two-col { grid-template-columns: 1fr; }
}
.image-source-actions {
  flex: 0 0 138px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.image-source-btn {
  position: relative;
  width: 138px;
  min-width: 138px;
  height: 40px;
  min-height: 40px;
  margin: 0 !important;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  line-height: 0;
  overflow: hidden;
  cursor: pointer;
}
.image-source-btn-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  text-align: center;
}
.image-source-btn input[type="file"] { display: none !important; }
/* 全站所有“本地上传”文件按钮：统一用 flex 居中，避免 <label> 的文字基线把文字顶到上方 */
label.mini-btn:has(> input[type="file"]),
label.secondary-btn:has(> input[type="file"]),
label.cover-pick-btn:has(> input[type="file"]),
label.circle-upload-button:has(> input[type="file"]) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.2 !important;
  text-align: center !important;
  vertical-align: middle;
}
label.mini-btn:has(> input[type="file"]) > input[type="file"],
label.secondary-btn:has(> input[type="file"]) > input[type="file"],
label.cover-pick-btn:has(> input[type="file"]) > input[type="file"],
label.circle-upload-button:has(> input[type="file"]) > input[type="file"] {
  display: none !important;
}
.shop-gallery-layout,
.shop-detail-image-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  align-items: start;
  gap: 12px;
}
.shop-gallery-layout .shop-gallery-row,
.shop-detail-image-layout .shop-detail-image-list { min-width: 0; }
@media (max-width: 640px) {
  .image-source-actions { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .image-source-btn { width: auto; min-width: 0; flex: 1 1 138px; }
  .shop-gallery-layout,
  .shop-detail-image-layout { grid-template-columns: 1fr; }
}
.shop-cover-preview { position: relative; width: 116px; height: 116px; border-radius: 12px; overflow: hidden; background: #eef2f6; display: grid; place-items: center; color: #98a2b3; font-size: 12px; }
.shop-cover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-cover-preview .img-size-note { position: absolute; left: 5px; bottom: 5px; margin: 0; padding: 2px 5px; border-radius: 5px; color: #fff; background: rgba(15,42,35,.7); font-size: 9px; }
.shop-cover-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.64);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.shop-cover-remove:hover { background: #b42318; }
.shop-gallery-row { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-gallery-item { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: #eef2f6; }
.shop-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-gallery-item button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; padding: 0; }
.sku-edit-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.sku-edit-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sku-edit-head b { font-size: 13px; }
.sku-edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.sku-edit-grid input { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.sku-edit-grid label { display: block; color: #667085; font-size: 11px; margin-bottom: 3px; }
.sku-param-editor { margin-top: 9px; }
.sku-param-editor > label { display: block; margin-bottom: 6px; color: #667085; font-size: 11px; }
.sku-param-rows { display: grid; gap: 6px; margin-bottom: 7px; }
.sku-param-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 7px; }
.sku-param-row input {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}
@media (max-width: 640px) {
  .sku-param-row { grid-template-columns: 1fr; }
  .sku-param-row button { width: 100%; }
}
.sku-thumb { width: 58px; height: 58px; border-radius: 9px; overflow: hidden; background: #eef2f6; display: grid; place-items: center; flex: 0 0 auto; }
.sku-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sku-thumb-empty { display: grid; place-items: center; width: 58px; height: 58px; border: 1px dashed var(--line); border-radius: 9px; color: #98a2b3; font-size: 11px; cursor: pointer; text-align: center; }
.shop-sku-editor { padding-top: 2px; }
.shop-spec-group-card { padding: 12px; border: 1px solid #e4ebe8; border-radius: 13px; background: #f7faf9; }
.shop-spec-group-head { display: grid; grid-template-columns: minmax(180px, 320px) auto; align-items: end; gap: 14px; margin-bottom: 10px; }
.shop-spec-group-head .form-field { margin: 0; }
.shop-spec-image-toggle { display: inline-flex; align-items: center; gap: 6px; width: fit-content; min-height: 36px; padding: 0 11px; border: 1px solid #dce7e3; border-radius: 9px; color: #344054; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.shop-spec-image-toggle input { width: 16px; height: 16px; accent-color: var(--green); }
.shop-spec-value-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 9px; }
.shop-spec-value-row { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 7px 6px; border: 1px solid #dde7e3; border-radius: 10px; background: #fff; }
.shop-spec-value-row.dragging { opacity: .42; }
.shop-spec-value-row.drag-over { outline: 2px solid rgba(13,110,92,.3); }
.shop-spec-value-drag { width: 20px; flex: 0 0 20px; height: 32px; padding: 0; border: 0; color: #98a2b3; background: transparent; font-size: 14px; font-weight: 900; letter-spacing: -2px; cursor: grab; }
.shop-spec-value-image { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 1px dashed #bed7cd; border-radius: 8px; color: #98a2b3; background: #f4f8f6; font-size: 10px; cursor: pointer; }
.shop-spec-value-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-spec-value-name { flex: 1 1 100px; min-width: 72px; height: 34px; padding: 0 8px; border: 1px solid #dce7e3; border-radius: 8px; background: #fff; font-size: 13px; }
.shop-spec-value-row .mini-btn { flex: 0 0 auto; min-height: 32px; padding: 0 8px; }
.shop-spec-value-empty { color: #98a2b3; font-size: 12px; padding: 8px 0; }
@media (max-width: 1200px) {
  .shop-spec-value-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .shop-spec-value-list { grid-template-columns: minmax(0, 1fr); }
}
.shop-sku-batch-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 12px 0 10px; padding: 9px 10px; border: 1px solid #e4ebe8; border-radius: 11px; background: #fbfcfd; }
.shop-sku-batch-bar b { color: #344054; font-size: 12px; }
.shop-sku-batch-bar select,
.shop-sku-batch-bar input { height: 32px; padding: 0 8px; border: 1px solid #dce7e3; border-radius: 8px; background: #fff; font-size: 12px; }
.shop-sku-batch-bar input { width: 105px; }
.shop-sku-table { overflow-x: auto; border: 1px solid #e4ebe8; border-radius: 12px; background: #fff; }
.shop-sku-table-head,
.shop-sku-table-row { display: grid; grid-template-columns: minmax(180px,1.4fr) 100px 86px 120px 120px 62px 86px; gap: 8px; align-items: center; min-width: 850px; }
.shop-sku-table-head { padding: 9px 11px; color: #667085; background: #f5f8f7; font-size: 11px; font-weight: 800; }
.shop-sku-table-item { border-top: 1px solid #edf1ef; }
.shop-sku-table-item:first-child { border-top: 0; }
.shop-sku-table-row { padding: 9px 11px; }
.shop-sku-table-row input { min-width: 0; height: 34px; padding: 0 8px; border: 1px solid #dce7e3; border-radius: 8px; font-size: 12.5px; }
.shop-sku-table-name { min-width: 0; overflow: hidden; color: #344054; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 700; }
.shop-sku-table-image { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; border: 1px dashed #bed7cd; border-radius: 8px; color: #98a2b3; background: #f5f8f7; font-size: 9px; cursor: pointer; }
.shop-sku-table-image img { width: 100%; height: 100%; object-fit: cover; }
.shop-sku-table-image.is-disabled { border-style: solid; color: #b4bcc7; cursor: default; }
.shop-sku-enabled { display: inline-flex; align-items: center; gap: 5px; color: #526070; font-size: 11px; white-space: nowrap; }
.shop-sku-enabled input { width: 15px; height: 15px; accent-color: var(--green); }
.shop-sku-advanced { border-top: 1px dashed #e4ebe8; padding: 8px 11px 10px; background: #fbfcfd; }
.shop-sku-advanced summary { color: #667085; font-size: 11px; font-weight: 700; cursor: pointer; }
.shop-sku-advanced-grid { display: grid; grid-template-columns: 160px 160px; gap: 8px; margin: 9px 0; }
.shop-sku-advanced-grid label { color: #667085; font-size: 11px; }
.shop-sku-advanced-grid input { width: 100%; height: 32px; margin-top: 3px; padding: 0 8px; border: 1px solid #dce7e3; border-radius: 8px; }
.shop-detail-image-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  min-height: 108px;
  padding: 10px;
  border: 1px dashed #cbdcd5;
  border-radius: 12px;
  background: #f8fbfa;
}
.shop-detail-image-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 86px;
  color: #98a2b3;
  font-size: 12px;
}
.shop-detail-image-item {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce7e3;
  border-radius: 10px;
  background: #eef2f1;
  cursor: grab;
  user-select: none;
}
.shop-detail-image-item:active { cursor: grabbing; }
.shop-detail-image-item.dragging { opacity: .42; }
.shop-detail-image-item.drag-over { outline: 3px solid rgba(13,110,92,.35); outline-offset: -3px; }
.shop-detail-image-item img { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.shop-detail-image-order {
  position: absolute;
  left: 5px;
  bottom: 5px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15,42,35,.72);
  font-size: 10px;
  font-weight: 800;
}
.shop-detail-image-item button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.64);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.shop-detail-image-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.shop-detail-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.shop-detail-modal-body,
#shopDescEditor,
.shop-detail-image-list,
.shop-detail-phone-preview-body { overflow-anchor: none; }
.shop-detail-edit-main { min-width: 0; display: grid; gap: 18px; }
.shop-detail-edit-part { min-width: 0; }
.shop-detail-edit-part > label { display: block; margin-bottom: 7px; color: #344054; font-size: 13px; font-weight: 700; }
.shop-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
}
.shop-editor-main-column { min-width: 0; }
.shop-editor-preview-column {
  width: 100%;
  margin: 0;
  align-self: start;
}
.shop-editor-preview-column .deco-preview-phone {
  width: min(100%, 290px);
  border-width: 6px;
  border-radius: 25px;
}
.shop-detail-phone-preview {
  position: sticky;
  top: 12px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7faf9;
}
.shop-detail-phone-preview-head { margin-bottom: 8px; }
.shop-detail-phone-preview-head b { display: block; color: #1d2939; font-size: 13px; }
.shop-detail-phone-preview-head span { display: block; margin-top: 2px; color: #98a2b3; font-size: 10.5px; }
.shop-detail-phone-preview .deco-preview-phone { width: min(100%, 290px); border-width: 6px; border-radius: 25px; }
.shop-detail-phone-preview-body { padding: 0; background: #fff; }
.shop-detail-phone-real .shop-detail-body { padding: 12px; }
.shop-detail-phone-real h3 { font-size: 15px; line-height: 1.45; }
.shop-detail-phone-subtitle { margin: 0 0 6px; font-size: 11px; line-height: 1.5; }
.shop-detail-rich-auto-images {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #d7e3de;
}
.shop-detail-rich-auto-images img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 9px;
}
.shop-detail-published-images { display: grid; gap: 9px; margin-top: 11px; }
.shop-detail-published-images img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #f5f7f6;
}
.course-detail-phone-preview-body {
  padding: 0;
  background: #fff;
  overflow: hidden;
  display: flex;
}
.course-detail-phone-real {
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  color: #1d2939;
  background: #fff;
}
.course-detail-phone-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.course-detail-phone-scroll::-webkit-scrollbar { display: none; }
.course-preview-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 82% 18%,rgba(242,184,75,.34),transparent 32%),linear-gradient(135deg,#0d6e5c,#103f48);
}
.course-preview-cover.has-image img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.course-preview-cover.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(5,36,30,.04),rgba(5,36,30,.42)); }
.course-preview-type-icon { font-size: 34px; font-weight: 900; opacity: .92; }
.course-preview-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transform: translate(-50%,-50%);
  padding-left: 3px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 50%;
  color: #fff;
  background: rgba(4,24,20,.48);
  font-size: 15px;
  box-shadow: 0 5px 16px rgba(0,0,0,.16);
}
.course-preview-content { padding: 12px; }
.course-preview-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  color: #7b8794;
  font-size: 9.5px;
  line-height: 1.45;
}
.course-preview-meta em {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 99px;
  color: #8a5b00;
  background: #fff5d8;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}
.course-preview-content h3 { margin: 7px 0 0; color: #1d2939; font-size: 15px; line-height: 1.45; }
.course-preview-subtitle { margin: 5px 0 0; color: #667085; font-size: 10.5px; line-height: 1.55; }
.course-preview-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.course-preview-tags span { padding: 2px 6px; border-radius: 99px; color: #0d6e5c; background: #eaf7f2; font-size: 9px; }
.course-preview-price { display: flex; align-items: baseline; gap: 7px; margin-top: 9px; }
.course-preview-price b { color: #e3451d; font-size: 20px; line-height: 1; }
.course-preview-price s { color: #98a2b3; font-size: 10px; }
.course-preview-divider { height: 1px; margin: 11px 0; background: #edf1ef; }
.course-preview-block > b,
.course-preview-catalog-head b { color: #1d2939; font-size: 12px; }
.course-preview-desc { margin-top: 7px; color: #475467; font-size: 10.5px; line-height: 1.62; word-break: break-word; }
.course-preview-desc > :first-child { margin-top: 0; }
.course-preview-desc > :last-child { margin-bottom: 0; }
.course-preview-desc img { max-width: 100%; height: auto; display: block; border-radius: 8px; }
.course-preview-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 9px; }
.course-preview-gallery img { width: 100%; aspect-ratio: 1 / 1; display: block; object-fit: cover; border-radius: 7px; background: #f2f5f4; }
.course-preview-catalog { margin-top: 12px; }
.course-preview-catalog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.course-preview-catalog-head span { color: #98a2b3; font-size: 9.5px; }
.course-preview-section-row { display: flex; align-items: center; gap: 7px; padding: 8px 0; border-bottom: 1px solid #f0f3f2; }
.course-preview-section-row > span { flex: 0 0 23px; color: #98a2b3; font-size: 9px; font-weight: 800; }
.course-preview-section-row > div { flex: 1 1 auto; min-width: 0; }
.course-preview-section-row b { display: block; overflow: hidden; color: #344054; font-size: 10.5px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.course-preview-section-row small { display: block; margin-top: 2px; color: #98a2b3; font-size: 8.5px; }
.course-preview-section-row em { color: #b0b8c1; font-size: 14px; font-style: normal; }
.course-preview-empty { margin: 6px 0 0; color: #98a2b3; font-size: 10px; }
.course-preview-paybar {
  flex: 0 0 56px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 7px 10px;
  border-top: 1px solid #e7eeeb;
  background: rgba(255,255,255,.98);
  box-shadow: 0 -5px 16px rgba(16,24,40,.05);
}
.course-preview-paybar > div { min-width: 0; }
.course-preview-paybar small { display: block; color: #98a2b3; font-size: 8.5px; }
.course-preview-paybar b { display: block; margin-top: 1px; color: #e3451d; font-size: 16px; line-height: 1.2; }
.course-preview-paybar > span {
  flex: 0 0 auto;
  min-width: 76px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0 11px;
  border-radius: 9px;
  color: #fff;
  background: var(--green);
  font-size: 10.5px;
  font-weight: 800;
  pointer-events: none;
}
@media (max-width: 900px) {
  .shop-detail-edit-layout { grid-template-columns: 1fr; }
  .shop-editor-layout { grid-template-columns: 1fr; }
  .shop-editor-preview-column { position: relative; top: auto; order: -1; }
  .content-editor-preview { position: static; order: -1; }
  .shop-detail-phone-preview { position: static; }
  .shop-detail-phone-preview .deco-preview-phone,
  .shop-editor-preview-column .deco-preview-phone,
  .content-editor-preview .deco-preview-phone { width: min(100%, 300px); }
}

/* ===== 后台 · 商城装修 ===== */
.shop-deco-page { height: 100%; min-height: 0; overflow: auto; padding: 0 2px 24px; }
.shop-deco-head { margin-bottom: 12px; }
.shop-deco-head p { max-width: 720px; }
.shop-deco-layout, .home-deco-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 25vw, 350px); gap: 16px; align-items: start; }
.shop-deco-editor, .home-deco-editor { min-width: 0; display: grid; gap: 14px; }
.shop-deco-panel { margin: 0; }
.shop-deco-panel > .form-grid { padding: 0 14px 14px; }
.shop-deco-form-body { display: grid; gap: 10px; padding: 0 14px 14px; }
.shop-deco-head-actions { align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.shop-deco-panel-step {
  display: grid;
  place-items: center;
  width: 30px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #0d6e5c;
  background: #edf8f4;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .04em;
}
.shop-deco-panel-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.shop-deco-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 14px 14px;
}
.shop-deco-category-picker { min-width: 0; }
.shop-deco-category-picker > span { display: block; margin-bottom: 7px; color: #344054; font-size: 13px; font-weight: 700; }
.shop-deco-category-picker .shop-deco-choices { min-height: 42px; max-height: none; }
.shop-deco-block-list { display: grid; gap: 12px; padding: 12px 14px 14px; }
.shop-deco-block-editor { min-width: 0; margin: 0; transition: border-color .16s, box-shadow .16s, opacity .16s; }
.shop-deco-block-head { align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.shop-deco-block-head > b { flex-wrap: wrap; }
.shop-deco-block-tools { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.shop-deco-block-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
.shop-deco-block-form > .form-field { min-width: 0; padding: 0; }
.shop-deco-block-form > * { min-width: 0; }
.shop-deco-block-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px dashed rgba(13,110,92,.2);
}
.shop-deco-block-hint span { color: #667085; font-size: 11px; }
.shop-deco-block-hint small { color: #0d6e5c; font-size: 11px; font-weight: 700; }
.shop-deco-group {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e1ebe7;
  border-radius: 12px;
  background: #f7fbf9;
}
.shop-deco-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2ebe7;
}
.shop-deco-group-head > div { min-width: 0; }
.shop-deco-group-head b { display: block; color: #1d2939; font-size: 13px; }
.shop-deco-group-head span { display: block; margin-top: 3px; color: #98a2b3; font-size: 10.5px; line-height: 1.45; }
.shop-deco-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.shop-deco-group-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-deco-group .form-field { margin: 0; }
.shop-deco-group-grid + .form-field { margin-top: 10px; }
.shop-deco-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}
.shop-deco-field-head > label {
  margin: 0 !important;
  min-width: 0;
}
.shop-deco-inline-toggle,
.shop-deco-panel-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto !important;
  margin: 0 !important;
  padding: 4px 8px;
  border: 1px solid #dce7e3;
  border-radius: 999px;
  color: #667085;
  background: #f8fbfa;
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.shop-deco-inline-toggle input[type="checkbox"],
.shop-deco-panel-toggle input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: var(--green);
}
.shop-deco-inline-toggle:has(input:checked),
.shop-deco-panel-toggle:has(input:checked) {
  border-color: #9fd9c8;
  color: #0d6e5c;
  background: #edf8f4;
}
.shop-deco-inline-setting { min-width: 0; }
.shop-deco-inline-setting .field-hint { margin-top: 0; }
.shop-deco-switch { display: flex; align-items: flex-start; gap: 8px; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; cursor: pointer; }
.shop-deco-switch input { margin-top: 2px; flex: 0 0 auto; }
.shop-deco-switch span { min-width: 0; }
.shop-deco-switch b { display: block; color: #1d2939; font-size: 12.5px; }
.shop-deco-switch small { display: block; margin-top: 2px; color: #98a2b3; font-size: 11px; line-height: 1.4; }
.shop-deco-switch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.shop-deco-switch-grid > .form-field { padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.shop-deco-switch-grid .shop-deco-field-head { margin-bottom: 0; }
.shop-deco-choices { display: flex; flex-wrap: wrap; gap: 6px; max-height: 190px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.shop-deco-choices.scroll { max-height: 230px; }
.shop-deco-choice { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 8px; border-radius: 8px; background: #fff; border: 1px solid #e3e8ef; color: #475467; font-size: 12px; cursor: pointer; }
.shop-deco-choice span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-deco-choice small { flex: 0 0 auto; padding: 1px 5px; border-radius: 99px; font-size: 10px; }
.shop-deco-choice small.ok { color: #087443; background: #e9f8ef; }
.shop-deco-choice small.danger { color: #b42318; background: #fef3f2; }
.shop-deco-choice small.muted { color: #667085; background: #f2f4f7; }
.shop-deco-choice-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.shop-deco-section { margin: 0 14px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.shop-deco-section:last-child { margin-bottom: 14px; }
.shop-deco-section > summary { display: flex; align-items: center; gap: 9px; padding: 10px 12px; background: #f8faf9; cursor: pointer; list-style: none; }
.shop-deco-section > summary::-webkit-details-marker { display: none; }
.shop-deco-section > summary:hover { background: #f2f8f5; }
.shop-deco-section[open] > summary { border-bottom: 1px solid var(--line); background: #f3faf7; }
.shop-deco-section-order { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 7px; background: var(--green-soft); color: #0d6e5c; font-size: 11px; font-weight: 800; }
.shop-deco-section-title { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 800; color: #1d2939; }
.shop-deco-section-title small { display: block; margin-top: 2px; color: #98a2b3; font-size: 10.5px; font-weight: 500; }
.shop-deco-section-manage { flex: 0 0 auto; color: #667085; font-size: 11px; font-weight: 700; }
.shop-deco-section-manage b { margin-left: 3px; color: #0d6e5c; font-size: 15px; }
.shop-deco-section-actions { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.shop-deco-section-body { padding: 12px !important; border-top: 1px solid var(--line); }
.shop-deco-section-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  padding-top: 11px;
  border-top: 1px dashed #d7e3de;
}
.shop-deco-section-footer > span { color: #98a2b3; font-size: 11px; }
.shop-deco-section-delete { margin-left: 10px; }
.shop-deco-banner-preview { max-width: 360px; }
.deco-preview-panel {
  position: sticky;
  top: 14px;
  z-index: 2;
  align-self: start;
  min-width: 0;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f9f8;
}
.deco-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.deco-preview-head b { display: block; color: #1d2939; font-size: 13px; }
.deco-preview-head span { display: block; margin-top: 2px; color: #98a2b3; font-size: 10.5px; line-height: 1.45; }
.deco-preview-phone {
  width: clamp(210px, calc(43vh - 100px), 320px);
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 7px solid #1f2a30;
  border-radius: 28px;
  background: #f4f6f5;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(16,24,40,.18);
}
.deco-preview-status { flex: 0 0 auto; padding: 8px 12px 6px; background: #fff; color: #667085; font-size: 10px; text-align: center; }
.deco-preview-body { flex: 1 1 auto; min-height: 0; height: auto; overflow: auto; padding: 10px 10px 22px; overscroll-behavior: contain; }
.admin-preview-app-nav {
  flex: 0 0 58px;
  min-height: 58px;
  max-height: 58px;
  padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -5px 16px rgba(16,24,40,.05);
  pointer-events: none;
}
.admin-preview-app-nav button { pointer-events: none; }
.admin-phone-system-nav {
  position: relative;
  z-index: 30;
  flex: 0 0 46px;
  min-height: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 3px 12px max(3px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(29,41,57,.08);
  background: rgba(246,248,249,.98);
  box-shadow: 0 -5px 18px rgba(24,34,48,.05);
}
.admin-phone-system-nav button {
  width: 42px;
  height: 38px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.admin-phone-system-nav button:active { background: rgba(13,110,92,.09); }
.admin-phone-system-nav .android-key-back { border-top-width: 7px; border-right-width: 12px; border-bottom-width: 7px; }
.admin-phone-system-nav .android-key-home { width: 15px; height: 15px; }
.admin-phone-system-nav .android-key-recents { width: 14px; height: 14px; }
.admin-phone-recents {
  position: absolute;
  z-index: 34;
  inset: 0 0 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 18px;
  border-radius: 20px 20px 0 0;
  color: rgba(255,255,255,.86);
  background: rgba(18,27,29,.92);
  backdrop-filter: blur(12px);
}
.admin-phone-recents > small { color: rgba(255,255,255,.62); font-size: 10px; letter-spacing: .08em; }
.admin-phone-recents-card {
  width: min(190px, 82%);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(160deg, #0d6e5c, #103f48);
  box-shadow: 0 22px 50px rgba(0,0,0,.28);
  cursor: pointer;
}
.admin-phone-recents-card img { width: 64px; max-height: 64px; object-fit: contain; }
.admin-phone-recents-card b { font-size: 16px; }
.admin-phone-recents-card span { color: rgba(255,255,255,.68); font-size: 10px; }
.admin-phone-nav-feedback {
  position: absolute;
  z-index: 36;
  right: 12px;
  bottom: 54px;
  left: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #fff;
  background: rgba(16,24,40,.88);
  box-shadow: 0 8px 24px rgba(16,24,40,.2);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.admin-phone-nav-feedback.show { opacity: 1; transform: translateY(0); }
.admin-phone-recents.hidden { display: none !important; }
.home-deco-preview-body { padding: 0; background: #eef2f4; }
.home-deco-device-status {
  position: relative;
  z-index: 5;
  flex: 0 0 28px;
  min-height: 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 12px;
  background: #fff;
  color: #344054;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.home-deco-device-notch {
  width: 60px;
  height: 16px;
  border-radius: 0 0 12px 12px;
  background: #1f2a30;
}
.home-deco-device-signal { justify-self: end; color: #475467; font-size: 8px; letter-spacing: .04em; }
.home-deco-client-preview {
  position: relative;
  inset: auto;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  background: #eef2f4;
}
.home-deco-client-preview .mini-header .header-copy { padding: 13px 16px 10px; }
.home-deco-client-preview .mini-header .header-copy small { font-size: 9.5px; }
.home-deco-client-preview .mini-header .header-copy h3 { margin-top: 4px; font-size: 18px; }
.home-deco-client-preview .mini-header .header-search { height: 34px; margin: 0 12px 10px; padding: 0 10px; font-size: 10.5px; }
.home-deco-preview-nav {
  flex: 0 0 60px;
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  box-sizing: border-box;
  padding: 5px 4px 4px;
  border-top: 1px solid #e7ecea;
  background: rgba(255,255,255,.98);
  box-shadow: 0 -5px 16px rgba(16,24,40,.05);
}
.home-deco-preview-nav button { gap: 1px; padding: 0; font-size: 9px; cursor: default; pointer-events: none; }
.home-deco-preview-nav button .nav-icon { font-size: 18px; }

/* ===== 客户端商城 ===== */
.shop-storefront { display: grid; gap: 10px; padding-bottom: 18px; }
.shop-store-heading { display: flex; align-items: center; gap: 11px; padding: 12px 13px; border-radius: 16px; color: #fff; background: linear-gradient(135deg,#0d6e5c,#21b08d); box-shadow: 0 9px 22px rgba(13,110,92,.2); }
.shop-store-logo { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 13px; background: rgba(255,255,255,.18); overflow: hidden; }
.shop-store-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-store-logo-text { padding: 0 5px; font-size: 11px; font-weight: 800; text-align: center; line-height: 1.2; }
.shop-store-heading h2 { margin: 0; color: #fff; font-size: 17px; line-height: 1.35; }
.shop-store-heading p { margin: 3px 0 0; color: rgba(255,255,255,.82); font-size: 11.5px; line-height: 1.45; }
.shop-store-search { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 11px; border: 1px solid #e1e8e5; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(16,24,40,.04); }
.shop-store-search > span { flex: 0 0 auto; color: #667085; font-size: 18px; }
.shop-store-search input { flex: 1 1 auto; min-width: 0; height: 38px; padding: 0; border: 0; outline: none; background: transparent; color: #1d2939; font-size: 13px; }
.shop-store-search button { flex: 0 0 auto; padding: 4px 7px; border: 0; border-radius: 7px; background: #eef4f2; color: #0d6e5c; font-size: 11px; font-weight: 700; cursor: pointer; }
.shop-store-banner { position: relative; min-height: 112px; padding: 16px; display: flex; align-items: flex-end; overflow: hidden; border-radius: 16px; color: #fff; background: radial-gradient(circle at 90% 10%,rgba(242,184,75,.48),transparent 34%),linear-gradient(135deg,#0b5b4c,#16947a); box-shadow: 0 8px 22px rgba(13,110,92,.16); }
.shop-store-banner.has-image { min-height: 138px; }
.shop-store-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-store-banner.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(5,36,30,.06),rgba(5,36,30,.72)); }
.shop-store-banner-copy { position: relative; z-index: 1; display: grid; gap: 3px; }
.shop-store-banner-copy small { width: fit-content; padding: 2px 7px; border-radius: 99px; background: rgba(255,255,255,.18); font-size: 9px; font-weight: 800; }
.shop-store-banner-copy b { font-size: 19px; line-height: 1.35; text-shadow: 0 2px 8px rgba(0,0,0,.22); }
.shop-store-banner-copy span { max-width: 30em; color: rgba(255,255,255,.88); font-size: 11.5px; line-height: 1.5; }
.shop-store-section { display: grid; gap: 8px; }
.shop-store-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 2px 0; }
.shop-store-section-head h3 { margin: 0; color: #1d2939; font-size: 14px; }
.shop-store-section-head span { color: #98a2b3; font-size: 10.5px; }
.shop-store-empty { padding: 28px 16px; border: 1px dashed #d6e3de; border-radius: 14px; background: #f8fcfa; text-align: center; }
.shop-store-empty b { display: block; color: #344054; font-size: 14px; }
.shop-store-empty p { margin: 5px 0 0; color: #98a2b3; font-size: 12px; line-height: 1.55; }
.shop-card.preview-only { cursor: default; }
.shop-card-sales { display: block; margin-top: 3px; color: #98a2b3; font-size: 10px; }
.shop-card-flags span.preview { background: rgba(255,255,255,.92); color: #344054; }
.shop-grid { align-items: stretch; }
.shop-grid.shop-layout-grid3 { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.shop-grid.shop-layout-list { grid-template-columns: 1fr; gap: 10px; }
.shop-grid.shop-layout-list .shop-card { display: grid; grid-template-columns: 112px minmax(0,1fr); }
.shop-grid.shop-layout-list .shop-info { min-width: 0; justify-content: flex-start; padding: 10px 12px; }
.shop-grid.shop-layout-list .shop-foot { min-height: 32px; margin-top: 6px; padding-top: 6px; }
.shop-grid.shop-layout-mixed .shop-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); }
.shop-grid.shop-layout-mixed .shop-card:first-child .shop-info { align-self: stretch; justify-content: center; padding: 14px; }
.shop-grid.shop-layout-mixed .shop-card:first-child .shop-card-title { min-height: 0; font-size: 16px; -webkit-line-clamp: 3; }
.shop-grid.shop-layout-mixed .shop-card:first-child .shop-foot { margin-top: 8px; }

/* 商城商品卡：图片、标题、可选说明、价格和操作区各自占稳定区域，避免互相挤压。 */
.shop-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #e6eeea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16,24,40,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.shop-card:hover { transform: translateY(-1px); border-color: #cfe3dc; box-shadow: 0 8px 22px rgba(16,24,40,.1); }
.shop-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 11px 11px;
}
.shop-card-title {
  min-width: 0;
  min-height: 37px;
  max-height: 38px;
  margin: 0;
  overflow: hidden;
  color: #1d2939;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.38;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.shop-card-subtitle {
  min-width: 0;
  max-height: 16px;
  overflow: hidden;
  color: #98a2b3;
  font-size: 11px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-card-sales { display: block; margin: 0; color: #98a2b3; font-size: 10px; line-height: 14px; }
.shop-foot {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 38px;
  margin-top: auto;
  padding-top: 8px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 7px;
  border-top: 1px solid #f0f3f2;
}
.shop-price {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: #e5484d;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.12;
}
.shop-price-now { max-width: 100%; display: flex; align-items: baseline; gap: 2px; overflow: hidden; white-space: nowrap; }
.shop-price-now em { flex: 0 0 auto; color: #98a2b3; font-size: 10px; font-style: normal; font-weight: 600; }
.shop-price-extra { display: flex; align-items: center; gap: 4px; min-width: 0; color: #98a2b3; font-size: 9px; font-weight: 500; }
.shop-price-extra s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-price-extra i { flex: 0 0 auto; padding: 1px 4px; border-radius: 5px; color: #0d6e5c; background: #e8f6f1; font-size: 9px; font-style: normal; font-weight: 700; }
.shop-card-action {
  flex: 0 0 auto;
  min-width: 44px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 8px;
  border-radius: 999px;
  color: #0d6e5c;
  background: #eaf7f3;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.shop-card-action i { font-size: 14px; font-style: normal; font-weight: 500; line-height: 1; }
.shop-card-action.is-sold-out { color: #7b8794; background: #f2f4f7; }
.shop-grid.shop-layout-grid3 .shop-info { gap: 3px; padding: 8px 8px 9px; }
.shop-grid.shop-layout-grid3 .shop-card-title { min-height: 34px; max-height: 34px; font-size: 12px; line-height: 1.4; }
.shop-grid.shop-layout-grid3 .shop-card-subtitle { display: none; }
.shop-grid.shop-layout-grid3 .shop-card-sales { font-size: 9px; }
.shop-grid.shop-layout-grid3 .shop-foot { min-height: 32px; gap: 4px; padding-top: 6px; }
.shop-grid.shop-layout-grid3 .shop-price { font-size: 13px; }
.shop-grid.shop-layout-grid3 .shop-price-extra i { display: none; }
.shop-grid.shop-layout-grid3 .shop-card-action { min-width: 25px; width: 25px; height: 25px; padding: 0; }
.shop-grid.shop-layout-grid3 .shop-card-action span { display: none; }
.shop-cat-nav {
  display: grid;
  grid-template-columns: repeat(var(--shop-cat-count, 1), minmax(0, 1fr));
  grid-auto-flow: column;
  grid-auto-rows: 34px;
  gap: 4px;
  overflow: visible;
  padding: 2px 0 12px;
}
.shop-cat-nav button {
  width: 100%;
  min-width: 0;
  height: 34px;
  overflow: hidden;
  padding: 0 2px;
  border: 1px solid #dfe9e5;
  border-radius: 11px;
  color: #526070;
  background: #fff;
  box-shadow: 0 2px 7px rgba(16,24,40,.04);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.shop-cat-nav.is-compact { gap: 3px; }
.shop-cat-nav.is-compact button { padding: 0 1px; border-radius: 9px; font-size: 9px; }
.shop-cat-nav.is-dense { gap: 2px; }
.shop-cat-nav.is-dense button { padding: 0; border-radius: 7px; font-size: 8px; letter-spacing: -.02em; }
.shop-cat-nav button:hover { border-color: #a9d9ca; color: #0d6e5c; background: #f4fbf8; }
.shop-cat-nav button.active {
  border-color: #0d6e5c;
  color: #fff;
  background: linear-gradient(145deg, #14866d, #0d6e5c);
  box-shadow: 0 4px 12px rgba(13,110,92,.22);
}
.shop-card-cover { position: relative; width: 100%; aspect-ratio: 1 / 1; height: auto; overflow: hidden; background: #eef2f6; display: flex; align-items: flex-end; }
.shop-grid.shop-layout-list .shop-card-cover { aspect-ratio: auto; height: 100%; min-height: 108px; }
.shop-grid.shop-layout-mixed .shop-card:first-child .shop-card-cover { aspect-ratio: auto; height: 100%; min-height: 190px; }
.shop-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-card-cover .shop-cover-name { position: relative; padding: 8px 10px; color: #fff; font-size: 11px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.55); }
.shop-card-flags { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; }
.shop-card-flags span { padding: 2px 6px; border-radius: 6px; font-size: 10px; font-weight: 700; background: rgba(0,0,0,.5); color: #fff; }
.shop-card-flags span.vip { background: #f2b84b; color: #4a3200; }
.shop-card-flags span.presale { background: rgba(13,110,92,.92); }
.shop-detail>.shop-gallery {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 100%;
  padding-bottom: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: #f4f8f6;
}
.shop-detail>.shop-gallery::-webkit-scrollbar { display: none; }
.shop-detail>.shop-gallery img {
  width: 100%;
  min-width: 100%;
  max-width: none;
  height: clamp(280px, 100vw, 430px);
  object-fit: contain;
  border-radius: 0;
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background: #f4f8f6;
}
.shop-detail-desc,
.shop-detail-desc .rich-text {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.shop-detail-desc .rich-text img,
.shop-detail-desc .rich-text video,
.shop-detail-desc .rich-text iframe,
.shop-detail-desc .rich-text table,
.shop-detail-desc .rich-text pre {
  max-width: 100% !important;
  box-sizing: border-box;
}
.shop-detail-desc .rich-text img { height: auto !important; }

/* 公开表单和优惠券分享页会随题目、说明和图片增长，不能被课程详情的固定内容区锁住滚动。 */
.mini-app.public-share-detail-active .mini-view,
#appShell.public-share-detail-active #appView {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* ===== 客户端商品详情：标准电商移动端结构 ===== */
.mini-app.shop-detail-active .mini-view,
#appShell.shop-detail-active #appView {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
.mini-app.shop-detail-active .mini-nav,
#appShell.shop-detail-active .mini-nav {
  display: none !important;
}
.mini-app.shop-detail-active .mini-header::before,
.mini-app.shop-detail-active .mini-header::after {
  display: none;
}
.shop-customer-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: calc(9px + env(safe-area-inset-top)) 12px 9px;
}
.shop-customer-header button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: 24px;
  line-height: 1;
}
.shop-customer-share { font-size: 18px !important; }
.shop-customer-head-copy { min-width: 0; text-align: center; }
.shop-customer-head-copy small { display: block; color: rgba(255,255,255,.7); font-size: 10px; line-height: 1.3; }
.shop-customer-head-copy b { display: block; overflow: hidden; margin-top: 2px; color: #fff; font-size: 17px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.android-header .shop-customer-header { min-height: 46px; padding: 3px 0; }
.android-header .shop-customer-head-copy small { color: #87928f; }
.android-header .shop-customer-head-copy b { color: #1d2939; }
.android-header .shop-customer-header button { color: #344054; border-color: #dfe7e4; background: #fff; }

.shop-product-page {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 0 0 calc(92px + env(safe-area-inset-bottom, 0px));
  color: #1d2939;
  background: #f3f6f5;
}
.shop-product-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
  background: #fff;
}
.shop-product-gallery {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: #f5f8f7;
}
.shop-product-gallery::-webkit-scrollbar { display: none; }
.shop-product-gallery>img {
  display: block;
  width: 100%;
  min-width: 100%;
  height: 100%;
  flex: 0 0 100%;
  object-fit: contain;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background: #f5f8f7;
}
.shop-product-gallery-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17,24,39,.58);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  pointer-events: none;
}
.shop-product-gallery-thumbs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 9px 12px 3px;
  scrollbar-width: none;
  background: #fff;
}
.shop-product-gallery-thumbs::-webkit-scrollbar { display: none; }
.shop-product-gallery-thumbs button {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #f3f6f5;
}
.shop-product-gallery-thumbs button.active { border-color: #0d6e5c; background: #edf8f4; }
.shop-product-gallery-thumbs img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.shop-product-gallery-empty {
  display: grid;
  place-items: center;
  height: clamp(280px, 80vw, 390px);
  color: #fff;
  background: linear-gradient(145deg,#0d6e5c,#103f48);
  font-size: 20px;
  font-weight: 900;
}

.shop-product-summary,
.shop-product-panel,
.shop-product-detail-panel {
  margin: 10px 12px 0;
  border: 1px solid #e4ece8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16,24,40,.045);
}
.shop-product-summary { padding: 14px; }
.shop-product-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
.shop-product-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  color: #126c59;
  background: #edf8f4;
  font-size: 10px;
  font-weight: 800;
}
.shop-product-kicker span+span { color: #667085; background: #f2f4f7; }
.shop-product-summary h1 {
  margin: 0;
  color: #101828;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.shop-product-subtitle { margin: 6px 0 0; color: #667085; font-size: 13px; line-height: 1.65; }
.shop-product-page .egg-float { position: static; display: inline-flex; margin: 9px 0 0; }
.shop-product-price {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #edf1ef;
}
.shop-product-price-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; min-width: 0; }
.shop-product-price-main>b { color: #e54535; font-size: 29px; font-weight: 950; line-height: 1; letter-spacing: -.02em; }
.shop-product-price-main>s { color: #667085; font-size: 13px; font-weight: 600; line-height: 1.25; text-decoration-color: #98a2b3; text-decoration-thickness: 1px; white-space: nowrap; }
.shop-product-price-main>span {
  padding: 2px 7px;
  border-radius: 6px;
  color: #b54708;
  background: #fff4e5;
  font-size: 10px;
  font-weight: 800;
}
.shop-product-stock { flex: 0 0 auto; color: #87928f; font-size: 11px; }
.shop-product-promise { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; color: #526070; font-size: 11px; line-height: 1.6; }
.shop-product-promise span { display: inline-flex; align-items: center; gap: 4px; }
.shop-product-promise i { color: #0d6e5c; font-style: normal; font-weight: 900; }

.shop-product-panel { padding: 14px; }
.shop-product-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.shop-product-panel-head b { color: #1d2939; font-size: 15px; }
.shop-product-panel-head span { min-width: 0; overflow: hidden; color: #667085; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.shop-product-page .sku-list { grid-template-columns: repeat(var(--sku-columns, 3), minmax(0, 1fr)); gap: 9px; }
.shop-product-page .sku-option { min-height: 132px; padding: 9px 10px; border-radius: 12px; }
.shop-product-page .sku-option>img { width: 58px!important; height: 58px!important; margin-bottom: 6px!important; }
.shop-product-page .sku-option b { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; width: 100%; }
.shop-product-page .sku-option b s { color: #667085; font-size: .78em; font-weight: 600; line-height: 1.3; text-decoration-color: #98a2b3; text-decoration-thickness: 1px; white-space: nowrap; }
.shop-product-page .sku-option.selected { box-shadow: inset 0 0 0 1px rgba(13,110,92,.12); }
.shop-product-page .sku-option.is-sold-out:not(.selected) { opacity: .62; background: #f7f8f9; }
.shop-product-page .sku-option.is-sold-out small { color: #b42318; }
.shop-product-page .shop-param-table { margin-top: 12px; }
.shop-product-page .qty-stepper button[disabled] { color: #b8c0c9; background: #f2f4f7; cursor: not-allowed; }
.shop-product-options { display: grid; gap: 2px; }
.shop-product-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}
.shop-product-option-row+.shop-product-option-row { border-top: 1px solid #edf1ef; }
.shop-product-option-row select {
  width: min(66%, 290px);
  min-width: 0;
  height: 36px;
  padding: 0 9px;
  border: 1px solid #dce7e3;
  border-radius: 9px;
  color: #344054;
  background: #fff;
  font-size: 12px;
}
.shop-product-saving { margin-top: 7px; padding: 7px 10px; border-radius: 9px; color: #0d6e5c; background: #eef8f4; font-size: 11px; font-weight: 700; }
.shop-product-page .shop-buy-gate { margin: 10px 12px 0; }

.shop-product-detail-panel { overflow: hidden; }
.shop-product-detail-panel .shop-section { margin: 0; padding: 14px; }
.shop-product-detail-panel .shop-section>b { margin-bottom: 12px; color: #101828; font-size: 16px; }
.shop-product-detail-panel .shop-detail-desc { color: #526070; font-size: 14px; line-height: 1.75; }
.shop-product-detail-panel .shop-detail-published-images { gap: 0; margin-top: 0; }
.shop-product-detail-panel .shop-detail-published-images img { border-radius: 0; }

.shop-product-buybar {
  position: fixed;
  z-index: 82;
  left: 50%;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(104px,.92fr) minmax(118px,1.08fr);
  align-items: center;
  gap: 10px;
  width: min(100%, var(--app-col, 100vw));
  min-height: 80px;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  border-top: 1px solid #e1e9e5;
  background: rgba(255,255,255,.97);
  box-shadow: 0 -10px 26px rgba(16,24,40,.10);
  backdrop-filter: blur(14px);
}
.shop-product-buybar-price {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 2px 2px 2px 4px;
}
.shop-product-buybar-price small { display: block; color: #98a2b3; font-size: 10px; line-height: 1.1; }
.shop-product-buybar-price b { display: block; max-width: 100%; margin: 0; color: #e54535; font-size: clamp(20px,5.1vw,24px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.shop-product-buybar-price span { display: block; max-width: 100%; margin: 0; overflow: hidden; color: #98a2b3; font-size: 10px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.shop-product-cart-btn {
  width: 100%;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid #b9dcd2;
  border-radius: 14px;
  color: #0d6e5c;
  background: linear-gradient(180deg,#f7fcfa,#eaf6f2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}
.shop-product-cart-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shop-product-cart-btn span { min-width: 0; }
.shop-product-cart-btn:active:not([disabled]) { transform: translateY(1px); background: #e2f3ed; }
.shop-product-buy-btn {
  min-width: 118px;
  height: 50px;
  width: 100%;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg,#14866d,#0d6e5c);
  box-shadow: 0 7px 18px rgba(13,110,92,.24);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}
.shop-product-cart-btn[disabled],
.shop-product-buy-btn[disabled] { color: #667085; background: #e9eeec; box-shadow: none; }
@media (max-width: 360px) {
  .shop-product-summary,
  .shop-product-panel,
  .shop-product-detail-panel { margin-left: 9px; margin-right: 9px; }
  .shop-product-price-main>b { font-size: 26px; }
  .shop-product-buybar { grid-template-columns: minmax(0,1fr) 96px minmax(106px,auto); gap: 6px; min-height: 76px; padding-left: 12px; padding-right: 12px; }
  .shop-product-buybar-price b { font-size: 19px; }
  .shop-product-cart-btn { height: 48px; padding: 0 7px; gap: 4px; font-size: 11px; }
  .shop-product-cart-btn svg { width: 15px; height: 15px; }
  .shop-product-buy-btn { min-width: 108px; height: 48px; padding: 0 13px; font-size: 14px; }
}
@media (min-width: 900px) {
  .shop-product-buybar { border-radius: 0 0 20px 20px; }
}

/* 商品编辑：右侧完整手机预览，与客户端共用同一套商品页DOM和样式 */
.shop-detail-phone-preview-body {
  position: relative;
  overflow: hidden !important;
  padding: 0 !important;
  background: #f3f6f5;
}
.shop-product-preview-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f3f6f5;
}
.shop-product-preview-header {
  flex: 0 0 auto;
  position: relative;
  z-index: 5;
}
.shop-product-preview-header::before,
.shop-product-preview-header::after { display: none; }
.shop-product-preview-header .shop-customer-header {
  grid-template-columns: 30px minmax(0,1fr) 30px;
  gap: 6px;
  min-height: 46px;
  padding: 5px 8px;
}
.shop-product-preview-header .shop-customer-header button { width: 29px; height: 29px; border-radius: 9px; font-size: 18px; }
.shop-product-preview-header .shop-customer-head-copy small { font-size: 8px; }
.shop-product-preview-header .shop-customer-head-copy b { font-size: 13px; }
.shop-product-preview-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shop-product-preview-scroll::-webkit-scrollbar { display: none; }
.shop-product-preview-mode { padding-bottom: 0; }
.shop-product-preview-mode,
.shop-product-preview-mode button,
.shop-product-preview-mode select,
.shop-product-preview-mode .sku-option { pointer-events: none; }
.shop-product-preview-mode .shop-product-gallery,
.shop-product-preview-mode .shop-product-gallery-thumbs { pointer-events: auto; }
.shop-product-preview-mode .shop-product-gallery { height: auto; aspect-ratio: 1 / 1; }
.shop-product-preview-mode .shop-product-summary,
.shop-product-preview-mode .shop-product-panel,
.shop-product-preview-mode .shop-product-detail-panel {
  margin: 7px 8px 0;
  border-radius: 12px;
}
.shop-product-preview-mode .shop-product-summary,
.shop-product-preview-mode .shop-product-panel,
.shop-product-preview-mode .shop-product-detail-panel .shop-section { padding: 9px; }
.shop-product-preview-mode .shop-product-kicker { gap: 3px; margin-bottom: 5px; }
.shop-product-preview-mode .shop-product-kicker span { min-height: 18px; padding: 0 5px; border-radius: 5px; font-size: 8px; }
.shop-product-preview-mode .shop-product-summary h1 { font-size: 14px; line-height: 1.4; }
.shop-product-preview-mode .shop-product-subtitle { margin-top: 4px; font-size: 10px; line-height: 1.5; }
.shop-product-preview-mode .egg-float { margin-top: 6px; padding: 5px 7px; font-size: 9px; }
.shop-product-preview-mode .shop-product-price { margin-top: 8px; padding-top: 8px; }
.shop-product-preview-mode .shop-product-price-main { gap: 6px; }
.shop-product-preview-mode .shop-product-price-main>b { font-size: 21px; }
.shop-product-preview-mode .shop-product-price-main>s,
.shop-product-preview-mode .shop-product-stock,
.shop-product-preview-mode .shop-product-promise { font-size: 8.5px; }
.shop-product-preview-mode .shop-product-promise { gap: 3px 7px; margin-top: 6px; }
.shop-product-preview-mode .shop-product-panel-head { margin-bottom: 7px; }
.shop-product-preview-mode .shop-product-panel-head b { font-size: 12px; }
.shop-product-preview-mode .shop-product-panel-head span { font-size: 9px; }
.shop-product-preview-mode .sku-list { grid-template-columns: repeat(var(--sku-columns, 3), minmax(0, 1fr)); gap: 5px; }
.shop-product-preview-mode .sku-option { min-height: 90px; padding: 6px; border-radius: 9px; }
.shop-product-preview-mode .sku-option>img { width: 36px!important; height: 36px!important; margin-bottom: 4px!important; }
.shop-product-preview-mode .sku-option span { font-size: 9.5px; line-height: 1.3; }
.shop-product-preview-mode .sku-option b { gap: 4px; font-size: 11px; line-height: 1.25; }
.shop-product-preview-mode .sku-option small { font-size: 8px; line-height: 1.25; }
.shop-product-preview-mode .shop-product-option-row { min-height: 34px; font-size: 10px; }
.shop-product-preview-mode .shop-product-option-row select { height: 29px; font-size: 9px; }
.shop-product-preview-mode .qty-stepper button { width: 30px; height: 29px; font-size: 14px; }
.shop-product-preview-mode .qty-stepper span { min-width: 30px; font-size: 10px; }
.shop-product-preview-mode .shop-detail-desc { font-size: 10px; line-height: 1.65; }
.shop-product-preview-mode .shop-detail-published-images { gap: 0; }
.shop-product-preview-mode .shop-detail-published-images img { border-radius: 0; }
.shop-product-preview-mode .shop-buy-gate { margin: 7px 8px 0; font-size: 9px; }
.shop-product-preview-mode .shop-product-buybar {
  position: sticky;
  left: auto;
  bottom: 0;
  width: 100%;
  min-height: 64px;
  grid-template-columns: minmax(0,1fr) 82px minmax(88px,auto);
  gap: 6px;
  padding: 6px 14px calc(6px + env(safe-area-inset-bottom, 0px));
  transform: none;
  border-radius: 0;
}
.shop-product-preview-mode .shop-product-buybar-price { gap: 1px; padding-left: 3px; }
.shop-product-preview-mode .shop-product-buybar-price small,
.shop-product-preview-mode .shop-product-buybar-price span { font-size: 8.5px; }
.shop-product-preview-mode .shop-product-buybar-price b { font-size: 18px; }
.shop-product-preview-mode .shop-product-cart-btn { height: 44px; padding: 0 6px; border-radius: 11px; font-size: 9px; gap: 4px; }
.shop-product-preview-mode .shop-product-cart-btn svg { width: 13px; height: 13px; }
.shop-product-preview-mode .shop-product-buy-btn { min-width: 88px; height: 44px; padding: 0 9px; border-radius: 11px; font-size: 12px; }
.shop-param-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.shop-param-table th, .shop-param-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.shop-param-table th { width: 92px; color: #667085; font-weight: 600; }
.shop-sku-option img { width: 32px; height: 32px; border-radius: 7px; object-fit: cover; flex: 0 0 auto; display: block; }
.shop-buy-gate { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fffaeb; color: #b54708; font-size: 13px; line-height: 1.6; }
.shop-ref-tip { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 99px; background: var(--green-soft); color: #0d6e5c; font-size: 12px; font-weight: 700; }

/* ===== 商品分享海报 ===== */
.shop-poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.shop-poster-cell { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fbfcfd; display: flex; flex-direction: column; gap: 8px; align-items: center; min-height: 120px; justify-content: center; }
.shop-poster-cell img { width: 100%; max-width: 190px; border-radius: 8px; box-shadow: 0 6px 18px rgba(16,24,40,.14); display: block; }
.shop-poster-cell button { width: 100%; }
.shop-poster-loading { color: #98a2b3; font-size: 12px; line-height: 1.6; text-align: center; padding: 18px 6px; }
@media (max-width: 1150px) {
  .shop-deco-group-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-deco-group-grid-three > .form-field:last-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .shop-deco-layout, .home-deco-layout { grid-template-columns: 1fr; }
  .deco-preview-panel { position: static; max-height: none; overflow: visible; }
  .deco-preview-body { height: auto; }
  .deco-preview-phone { width: min(100%, 330px); }
}
@media (max-width: 640px) {
  .home-section-switch-grid { gap: 6px; padding: 10px; }
  .home-section-switch-item { gap: 5px; padding: 7px 6px; }
  .home-section-switch-icon { display: none; }
  .home-section-switch-copy b { font-size: 10.5px; }
  .home-section-switch-copy small { display: none; }
  .home-section-switch-item .toggle { width: 32px; height: 18px; }
  .home-section-switch-item .toggle::after { top: 2px; left: 2px; width: 14px; height: 14px; }
  .home-section-switch-item .toggle.on::after { left: 16px; }
  .course-category-strip { flex-wrap: nowrap; align-items: center; }
  .course-category-strip .course-category-strip-list { order: 0; flex: 1 1 auto; width: auto; }
  .course-category-strip .course-category-manage-btn { margin-left: 0; }
  .shop-deco-page { padding: 0 0 18px; }
  .shop-deco-head { align-items: flex-start; flex-wrap: wrap; }
  body.admin-mode .shop-deco-head .shop-deco-head-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.admin-mode .shop-deco-head .shop-deco-head-actions > .tag { grid-column: 1 / -1; justify-self: start; }
  body.admin-mode .shop-deco-head .shop-deco-head-actions > button { width: 100%; min-height: 38px; padding: 0 7px; white-space: nowrap; }
  body.admin-mode .shop-deco-head .shop-deco-head-actions > .primary-btn { grid-column: 1 / -1; }
  .shop-deco-group-head { flex-wrap: wrap; }
  .shop-deco-group-grid { grid-template-columns: 1fr; }
  .shop-deco-group-grid-three > .form-field:last-child { grid-column: auto; }
  .shop-deco-switch-grid { grid-template-columns: 1fr; }
  .shop-deco-category-row { grid-template-columns: 1fr; }
  .shop-deco-block-form { grid-template-columns: minmax(0, 1fr) !important; }
  .shop-deco-panel-actions { width: 100%; justify-content: flex-start; }
  .shop-deco-block-tools { width: 100%; justify-content: flex-start; margin-left: 0; }
  .shop-deco-section-actions { display: grid; grid-template-columns: repeat(3,auto); }
  .shop-deco-section-actions .mini-btn { padding: 4px 6px; font-size: 10px; }
  .shop-deco-section > summary { align-items: flex-start; flex-wrap: wrap; }
  .shop-deco-section-manage { width: 100%; padding-left: 33px; }
  .shop-deco-section-footer { align-items: flex-start; flex-direction: column; }
  .shop-deco-section-actions { width: 100%; }
  .shop-deco-section-delete { margin-left: auto; }
  .deco-preview-body { height: auto; }
  .shop-layout-mixed .shop-card:first-child { grid-template-columns: 46% minmax(0,54%); }
}
@media (min-width: 900px) {
  body.customer-mode { background: radial-gradient(1200px 620px at 50% -12%, #e9f3ef 0%, #eef2f4 58%, #e7ecee 100%); }
  body.customer-mode .stage { display: flex; align-items: center; justify-content: center; padding: 22px 16px; }
  body.customer-mode .phone-wrap { width: auto; max-width: 100%; margin: 0; }
  body.customer-mode .phone-frame {
    width: var(--app-col); max-width: var(--app-col);
    height: calc(100vh - 44px); max-height: 900px;
    border: 1px solid rgba(13,110,92,.16); border-radius: 20px;
    box-shadow: 0 22px 60px rgba(8,30,25,.18);
    overflow: hidden;
  }
  body.customer-mode .customer-pay-bar {
    left: 50%; right: auto; width: var(--app-col); transform: translateX(-50%);
    border-radius: 0 0 20px 20px;
  }
  body.customer-mode .ai-drawer-mask { left: 50%; width: var(--app-col); transform: translateX(-50%); }
  body.customer-mode .ai-drawer { left: calc(50% - var(--app-col) / 2); }
}
/* 灰色小字说明：保留一句短文案，详细说明放到鼠标悬浮提示里（省阅读） */
.img-size-note{display:block;margin-top:4px;color:#98a2b3;font-size:11px;line-height:1.3}
.tip{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;margin-left:4px;border-radius:50%;background:#eef2f6;color:#667085;font-size:10px;font-weight:700;line-height:1;cursor:help;vertical-align:-1px;user-select:none;-webkit-user-select:none}
.tip:hover{background:#0d6e5c;color:#fff}

/* ===== 寻宝彩蛋（互动营销）===== */
/* 后台：统计条 + 面板头部的按钮组 */
.egg-stat-bar{display:flex;flex-wrap:wrap;gap:8px 18px;padding:12px 14px;font-size:12.5px;color:#667085}
.egg-stat-bar b{color:#0d6e5c;font-size:14px}
.panel-head-actions{display:flex;gap:8px;align-items:center}
.egg-wallet-h{margin:0 0 8px;font-size:13px;color:#1d2939}

/* 客户端：藏在课程 / 商品里的彩蛋 */
.egg-float{
  position:absolute;right:10px;top:10px;z-index:6;
  display:inline-flex;align-items:center;gap:6px;
  padding:8px 12px;border:0;border-radius:999px;cursor:pointer;
  background:linear-gradient(135deg,#0d6e5c,#21b08d);color:#fff;
  font-size:12.5px;font-weight:700;box-shadow:0 10px 22px rgba(13,110,92,.34);
  animation:eggFloat 2.6s ease-in-out infinite;
}
.egg-float-ico{font-size:15px;line-height:1}
.egg-float-text{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.egg-float-hidden{display:none}
.egg-float-show{display:inline-flex;animation:eggPop .5s cubic-bezier(.2,.9,.3,1.4), eggFloat 2.6s ease-in-out 1s infinite}
.shop-detail .egg-float{position:static;display:inline-flex;margin:8px 0 2px}
@keyframes eggFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes eggPop{0%{transform:scale(.4);opacity:0}100%{transform:scale(1);opacity:1}}

/* 答题 / 开奖 */
.egg-quiz,.egg-win,.egg-lose{text-align:center;padding:6px 4px 2px}
.egg-quiz-emoji{font-size:38px;line-height:1;margin-bottom:8px}
.egg-quiz-q{margin:0 0 14px;font-size:14.5px;font-weight:700;color:#1d2939;line-height:1.7}
.egg-quiz-opt{
  display:block;width:100%;margin-bottom:9px;padding:12px 14px;
  border:1px solid #e4e7ec;border-radius:12px;background:#fff;color:#1d2939;
  font-size:13.5px;text-align:left;cursor:pointer;transition:all .15s;
}
.egg-quiz-opt:hover{border-color:#0d6e5c;background:#f2fbf8;color:#0d6e5c}
.egg-win-badge{font-size:44px;line-height:1;margin-bottom:6px;animation:eggPop .6s cubic-bezier(.2,.9,.3,1.4)}
.egg-win h3{margin:0 0 10px;font-size:16px;color:#0d6e5c}
.egg-win-reward{display:inline-block;margin:0 0 6px;padding:8px 14px;border-radius:12px;background:#fff7e6;color:#b54708;font-size:14px;font-weight:800}
.egg-win-note{margin:8px auto 0;max-width:320px;padding:9px 12px;border-radius:10px;background:#f2fbf8;color:#0d6e5c;font-size:12.5px;line-height:1.7;text-align:left}
.egg-win-hint{margin:10px 0 0;color:#667085;font-size:12.5px;line-height:1.7}
.egg-lose p{margin:0;color:#667085;font-size:13.5px;line-height:1.8}

/* 我的券包 */
.coupon-card{display:flex;align-items:center;gap:12px;padding:11px 13px;margin-bottom:9px;border:1px solid #e4e7ec;border-radius:14px;background:#fff}
.coupon-card-dim{opacity:.55}
.coupon-card-left{flex:0 0 auto;min-width:76px;text-align:center;padding-right:10px;border-right:1px dashed #e4e7ec}
.coupon-card-left b{display:block;color:#0d6e5c;font-size:17px}
.coupon-card-left span{display:block;margin-top:2px;color:#98a2b3;font-size:10.5px}
.coupon-card-body{flex:1 1 auto;min-width:0}
.coupon-card-body b{display:block;font-size:13.5px;color:#1d2939}
.coupon-card-body small{display:block;margin-top:4px;color:#98a2b3;font-size:11.5px;line-height:1.6}

/* 超级会员页（会员等级与折扣）右上角同类按钮统一样式：黑底白字、同字号同高度 */
.member-expiry { display: inline-block; margin-left: 6px; font-size: 11px; color: rgba(255,255,255,.78); }
.avatar.has-photo, .member-avatar.has-photo { background-size: cover; background-position: center; background-repeat: no-repeat; text-indent: -9999px; }
.perm-act-btn,
.perm-act-btn.compact {
  background: #111827;
  color: #fff;
  border: 1px solid #111827;
  font-size: 12px;
  font-weight: 700;
  min-height: 36px;
  padding: 0 14px;
  box-shadow: none;
  transform: none;
}
.perm-act-btn:hover,
.perm-act-btn.compact:hover { background: #000; color: #fff; border-color: #000; transform: none; }
.perm-act-btn[disabled] { opacity: .55; }

/* ===== 收货地址簿（账号设置里，多地址 + 省市区 + 收货人/电话）===== */
.addr-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 6px; }
.addr-item.default { border-color: #bfe3d8; background: #f4fbf8; }
.addr-item-body { min-width: 0; }
.addr-item-body b { display: block; font-size: 12px; }
.addr-item-body b span { margin-left: 6px; color: #667085; font-weight: 500; }
.addr-item-body p { margin: 3px 0 0; font-size: 11px; color: #526070; line-height: 1.5; word-break: break-all; }
.addr-item-actions { display: flex; align-items: center; gap: 4px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.addr-item-actions .ghost-btn.compact, .addr-item-actions .mini-tag { font-size: 10px; padding: 3px 7px; min-height: 0; }
.addr-form { margin: 10px 0 4px; padding: 10px; border: 1px dashed #cfe0da; border-radius: 10px; background: #fafcfb; }
.addr-form .form-grid { gap: 9px; }
.addr-form-actions { display: flex; gap: 8px; margin-top: 9px; }
.addr-form-actions .primary-btn.compact, .addr-form-actions .secondary-btn.compact { font-size: 11px; padding: 6px 12px; min-height: 0; }
.avatar.has-photo { color: transparent; }

/* 下单时选收货地址 */
.addr-pick-list { display: grid; gap: 8px; }
.addr-pick-row { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.addr-pick-row.active { border-color: #0d6e5c; background: #f4fbf8; }
.addr-pick-row input { margin-top: 2px; flex: none; }
.addr-pick-row span { min-width: 0; }
.addr-pick-row b { display: block; font-size: 12.5px; }
.addr-pick-row b em { margin-left: 6px; font-style: normal; color: #667085; font-weight: 500; }
.addr-pick-row small { display: block; margin-top: 3px; font-size: 11px; color: #526070; line-height: 1.5; word-break: break-all; }

/* ===== 会员身份行（后台编辑会员）：等级 + 到期时间选择器 ===== */
.member-id-row { padding: 8px 0 10px; margin-bottom: 2px; border-bottom: 1px dashed #eef1f4; }
.member-id-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.member-id-main { display: flex; gap: 8px; align-items: center; }
.member-id-main .mi-name { flex: 1 1 auto; min-width: 0; }
.member-id-main .ghost-btn.compact { flex: 0 0 auto; font-size: 11px; padding: 4px 9px; min-height: 0; }
.member-id-exp { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.member-id-exp .mi-label { color: #667085; font-size: 11px; }
.member-id-exp .mi-none { color: #98a2b3; font-size: 12px; }
.member-id-exp .mi-expires { flex: 0 0 auto; min-width: 148px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.member-id-exp .mi-expires:disabled { background: #f4f6f8; color: #98a2b3; }
.member-id-exp .ghost-btn.compact { font-size: 11px; padding: 4px 9px; min-height: 0; }
.member-id-exp .mini-check { font-size: 11px; white-space: nowrap; }

/* ===== 直播（客户端列表 / 详情 / 播放）===== */
.live-card{display:flex;gap:12px;padding:11px 12px;margin-bottom:10px;border:1px solid #e6ebf1;border-radius:16px;background:#fff;box-shadow:0 6px 16px rgba(13,110,92,.06);cursor:pointer}
.live-cover-wrap{position:relative;flex:0 0 auto}
.live-cover{width:124px;height:78px;border-radius:12px;background-color:#e8f4f0;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;font-size:26px}
.live-cover.is-empty{color:#8fb9ac}
.live-badge{position:absolute;left:6px;top:6px;padding:2px 7px;border-radius:8px;background:#0d6e5c;color:#fff;font-size:10.5px;font-weight:700;line-height:1.5}
.live-badge.living{background:#e5484d}
.live-badge.ended{background:#98a2b3}
.live-card-body{flex:1 1 auto;min-width:0}
.live-card-body h4{margin:0 0 4px;font-size:14.5px;line-height:1.35;color:#101828}
.live-card-body>p{margin:0 0 6px;font-size:12px;color:#667085}
.live-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.live-actions .primary-btn,.live-actions .secondary-btn,.live-actions .ghost-btn{padding:6px 12px;font-size:12px;min-height:0}
.live-countdown{color:#0d6e5c;font-weight:700}
.live-home-empty{margin:0;padding:10px 12px;border-radius:12px;background:#f4fbf8;color:#526070;font-size:12.5px;line-height:1.7}
.live-detail-head{margin:12px 0 0}
.live-detail-head h3{margin:0 0 6px;font-size:17px;line-height:1.35;color:#101828}
.live-detail-head>p{margin:0 0 8px;font-size:12.5px;color:#667085;line-height:1.7}
.live-detail-rich{margin-top:14px;font-size:13px;line-height:1.8;color:#344054}
.live-detail-rich img{max-width:100%;border-radius:12px}
.live-book-count{margin:10px 0 0;font-size:12px;color:#98a2b3}
/* 播放区：按 16:9 标准画幅（以前写死"屏高 60%"，在电脑上会变成又高又扁的一大块黑）
   竖屏视频（手机开播）会在加载元数据后自动切成 9:16 */
.live-player-video{width:100%;aspect-ratio:16 / 9;max-height:62vh;border-radius:12px;background:#000;object-fit:contain;display:block}
.live-player-video.is-portrait{aspect-ratio:9 / 16;max-height:72vh}
.live-player-frame{width:100%;aspect-ratio:16 / 9;max-height:62vh;border:0;border-radius:12px;background:#000;display:block}

/* 后台：直播间角色设置（搜用户名单，勾主播 / 助教） */
.live-role-picker{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.live-role-picker .mini-input{flex:1 1 220px;min-width:160px}
.live-role-count{font-size:12px;color:#667085;white-space:nowrap}
.live-role-list{max-height:232px;overflow:auto;margin-top:8px;padding:6px 9px;border:1px solid var(--line);border-radius:10px;background:#fbfdfc}
.live-role-row{display:flex;align-items:center;gap:10px;padding:6px 2px;border-bottom:1px dashed #eef1f4}
.live-role-row:last-child{border-bottom:0}
.live-role-name{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
.live-role-name b{font-size:12.5px;color:#101828}
.live-role-name small{color:#98a2b3;font-size:11px}
.live-role-row .check-option{flex:0 0 auto;font-size:12px;white-space:nowrap}

/* 后台：直播间编辑（左侧编辑 + 右侧手机详情预览） */
.live-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
.live-editor-main-column { min-width: 0; display: grid; gap: 14px; }
.live-editor-heading { margin-bottom: 0; }
.live-editor-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e3ebe7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,24,40,.04);
}
.live-editor-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.live-editor-panel-head b { display: block; color: #1d2939; font-size: 14px; }
.live-editor-panel-head span { display: block; margin-top: 3px; color: #87928f; font-size: 10px; line-height: 1.45; }
.live-editor-panel-head em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 99px;
  color: #16745f;
  background: #e7f7f2;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.live-editor-basic-grid,
.live-editor-publish-grid,
.live-editor-content-grid { gap: 12px; }
.live-editor-basic-grid .form-field,
.live-editor-publish-grid .form-field,
.live-editor-content-grid .form-field { margin: 0; }
.live-cover-editor { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.live-cover-editor .shop-cover-preview { width: 180px; height: 110px; }
.live-editor-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.live-editor-scope-grid > .form-field {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #e5ece9;
  border-radius: 12px;
  background: #fbfcfd;
}
.live-editor-preview { width: 100%; margin: 0; align-self: start; }
.live-editor-preview .deco-preview-phone { width: min(100%, 290px); border-width: 6px; border-radius: 25px; }
.live-editor-preview-body { padding: 0; background: #fff; overflow: hidden; display: flex; }
.live-editor-phone-real { width: 100%; min-height: 0; display: flex; flex-direction: column; color: #1d2939; background: #fff; }
.live-editor-phone-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.live-editor-phone-scroll::-webkit-scrollbar { display: none; }
.live-editor-preview-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 82% 18%,rgba(242,184,75,.35),transparent 34%),linear-gradient(145deg,#103f48,#0d6e5c);
}
.live-editor-preview-cover > b { font-size: 36px; }
.live-editor-preview-cover > span { position: absolute; left: 10px; bottom: 9px; z-index: 2; padding: 3px 8px; border-radius: 99px; color: #fff; background: rgba(5,31,25,.5); font-size: 8.5px; font-weight: 800; }
.live-editor-preview-cover.has-image img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.live-editor-preview-cover.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(5,31,25,.02),rgba(5,31,25,.42)); }
.live-editor-preview-content { padding: 12px; }
.live-editor-preview-kicker { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #0d6e5c; font-size: 9px; font-weight: 800; }
.live-editor-preview-kicker em { padding: 2px 7px; border-radius: 99px; color: #8a5b00; background: #fff5d8; font-size: 9px; font-style: normal; }
.live-editor-preview-content h3 { margin: 6px 0 0; color: #1d2939; font-size: 16px; line-height: 1.4; }
.live-editor-preview-subtitle { margin: 5px 0 0; color: #667085; font-size: 10px; line-height: 1.55; }
.live-editor-preview-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.live-editor-preview-meta span { padding: 3px 6px; border-radius: 99px; color: #526070; background: #f2f7f5; font-size: 8.5px; }
.live-editor-preview-actions { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.live-editor-preview-actions span,
.live-editor-preview-actions em { flex: 1 1 0; min-height: 32px; display: grid; place-items: center; padding: 0 7px; border-radius: 8px; font-size: 9px; font-style: normal; font-weight: 800; }
.live-editor-preview-actions span { color: #fff; background: var(--green); }
.live-editor-preview-actions em { color: #0d6e5c; border: 1px solid #b9dbd0; background: #fff; }
.live-editor-preview-block { margin-top: 11px; padding-top: 10px; border-top: 1px solid #eef1f0; }
.live-editor-preview-block > b { color: #1d2939; font-size: 11px; }
.live-editor-preview-block-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live-editor-preview-block-head b { color: #1d2939; font-size: 11px; }
.live-editor-preview-block-head small { color: #98a2b3; font-size: 8px; }
.live-editor-preview-detail { margin-top: 7px; color: #475467; font-size: 9.5px; line-height: 1.62; word-break: break-word; }
.live-editor-preview-detail > :first-child { margin-top: 0; }
.live-editor-preview-detail > :last-child { margin-bottom: 0; }
.live-editor-preview-detail img { max-width: 100%; height: auto; display: block; border-radius: 7px; }
.live-editor-preview-goods { display: grid; gap: 6px; margin-top: 8px; }
.live-editor-preview-good { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 7px; border: 1px solid #edf1ef; border-radius: 9px; background: #fbfcfd; }
.live-editor-preview-good > span { width: 30px; height: 26px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: #14866d; font-size: 9px; }
.live-editor-preview-good b { display: block; overflow: hidden; color: #344054; font-size: 8.7px; text-overflow: ellipsis; white-space: nowrap; }
.live-editor-preview-good small { display: block; margin-top: 2px; color: #d94822; font-size: 8px; }
.live-editor-preview-good em { color: #b0b8c1; font-size: 8px; font-style: normal; }
.live-editor-preview-empty { margin: 7px 0 0; color: #98a2b3; font-size: 9px; }
.live-editor-preview-paybar { flex: 0 0 56px; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-top: 1px solid #e7eeeb; background: rgba(255,255,255,.98); box-shadow: 0 -5px 16px rgba(16,24,40,.05); }
.live-editor-preview-paybar small { display: block; color: #98a2b3; font-size: 8px; }
.live-editor-preview-paybar b { display: block; color: #d94822; font-size: 15px; }
.live-editor-preview-paybar span { flex: 0 0 auto; min-width: 76px; height: 34px; display: grid; place-items: center; padding: 0 10px; border-radius: 9px; color: #fff; background: var(--green); font-size: 10px; font-weight: 800; pointer-events: none; }
@media (max-width: 900px) {
  .live-editor-layout { grid-template-columns: 1fr; }
  .live-editor-preview { position: static; order: -1; }
}
@media (max-width: 640px) {
  .live-editor-panel { padding: 13px; }
  .live-editor-scope-grid { grid-template-columns: 1fr; }
  .live-cover-editor .image-source-actions { width: 100%; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; }
}

/* 客户端：直播间互动（聊天 / 提问 / 点赞） */
.live-interact{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.live-interact-bar{display:flex;align-items:center;gap:10px;margin-bottom:8px;flex-wrap:wrap}
.live-interact-hint{color:#98a2b3;font-size:11px}
.live-chat-list{max-height:190px;overflow:auto;padding:8px 10px;border-radius:12px;background:#f7faf9}
.live-chat-empty{margin:0;color:#98a2b3;font-size:12px;text-align:center;padding:14px 0}
.live-chat-row{display:flex;align-items:baseline;gap:6px;padding:3px 0;font-size:12.5px;color:#344054;line-height:1.6}
.live-chat-row b{color:#0d6e5c;font-weight:600;flex:0 0 auto;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.live-chat-row.is-ask{background:#fff8ec;border-radius:8px;padding:4px 6px}
.live-chat-row.is-mine span{color:#101828}
.live-chat-input{display:flex;gap:8px;margin-top:8px}
.live-chat-input .mini-input{flex:1 1 auto;min-width:120px}

/* 直播间：外部平台链接不能内嵌时的"在新窗口打开"提示块 */
.live-open-hint{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;aspect-ratio:16 / 9;max-height:62vh;min-height:170px;padding:18px;border-radius:12px;background:#f4f7f6;text-align:center;overflow:auto}
.live-open-hint p{margin:0;color:#101828;font-size:13.5px}
.live-open-sub{color:#667085 !important;font-size:12.5px !important;line-height:1.8;max-width:460px}
.live-open-actions{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap;justify-content:center}
.live-cover-bg{background-size:cover;background-position:center;position:relative}
.live-cover-bg::before{content:"";position:absolute;inset:0;border-radius:12px;background:rgba(255,255,255,.82)}
.live-cover-bg>*{position:relative;z-index:1}
.live-open-tip{margin:8px 0 0;color:#98a2b3;font-size:12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.live-open-tip .ghost-btn.compact{font-size:11.5px;padding:3px 9px;min-height:0}

/* 直播间购物车（客户端） */
.live-cart{margin-top:12px;border:1px solid #e6ebf1;border-radius:12px;overflow:hidden}
.live-cart-head{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#f4fbf8;flex-wrap:wrap}
.live-cart-head b{font-size:13px;color:#0d6e5c}
.live-cart-hint{color:#98a2b3;font-size:11px}
.live-cart-list{max-height:210px;overflow:auto;padding:6px 8px}
.live-cart-row{display:flex;align-items:center;gap:10px;width:100%;padding:7px 6px;border:0;background:#fff;border-bottom:1px solid #f1f4f6;text-align:left;cursor:pointer}
.live-cart-row:last-child{border-bottom:0}
.live-cart-row:hover{background:#fafcfb}
.live-cart-thumb{flex:0 0 auto;width:48px;height:48px;border-radius:10px;background-color:#eef4f2;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;font-size:20px}
.live-cart-thumb.is-empty{color:#8fb9ac}
.live-cart-info{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.live-cart-info b{font-size:12.5px;color:#101828;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.live-cart-info small{font-size:12px;color:#e5484d;font-weight:700}
.live-cart-go{flex:0 0 auto;font-size:11.5px;color:#0d6e5c}

/* 后台：直播间带货清单 */
.live-goods-picker{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.live-goods-picker .mini-input{flex:1 1 260px;min-width:180px}
.live-goods-list{max-height:220px;overflow:auto;margin-top:8px;padding:6px 9px;border:1px solid var(--line);border-radius:10px;background:#fbfdfc}
.live-goods-row{display:flex;align-items:center;gap:9px;padding:6px 2px;border-bottom:1px dashed #eef1f4}
.live-goods-row:last-child{border-bottom:0}
.live-goods-idx{flex:0 0 auto;width:18px;height:18px;border-radius:50%;background:#e8f4f0;color:#0d6e5c;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.live-goods-name{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
.live-goods-name b{font-size:12.5px;color:#101828}
.live-goods-name small{font-size:11px;color:#98a2b3}
.live-goods-ops{flex:0 0 auto;display:flex;gap:5px}
.live-goods-ops .ghost-btn.compact{font-size:11px;padding:3px 8px;min-height:0}
/* 直播数据看板（2026-10-16）：汇总卡 + 在线人数走势 */
.live-dash-cards{grid-template-columns:repeat(auto-fit, minmax(148px, 1fr))}
.live-dash-cards .stat-card b{font-size:22px}
.live-dash-cards .stat-card small{color:#8b95a2}
.live-dash-toolbar{flex-wrap:wrap}
.live-dash-label{color:#8b95a2;font-size:11px;white-space:nowrap}
.live-dash-total{margin-left:auto}
.admin-toolbar .ghost-btn.compact.active{color:#fff;background:#0d6e5c;border-color:#0d6e5c}
.data-table tr.is-picked td{background:#f4fbf8}
.live-dash-sub{color:#98a2b3;font-size:11px}
.live-now{color:#e5484d;font-size:11px;font-weight:700;white-space:nowrap}
.live-trend-panel{margin-top:14px}
.live-trend-meta{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:0 17px 6px;color:#344054;font-size:11.5px}
.live-trend-meta b{font-weight:600}
.live-trend-meta span{color:#98a2b3}
.live-trend-bars{display:flex;align-items:flex-end;gap:2px;height:132px;padding:0 17px}
.live-trend-bars i{flex:1 1 0;min-width:2px;max-width:14px;border-radius:2px 2px 0 0;background:linear-gradient(180deg, #21b08d, #0d6e5c)}
.live-trend-hint{margin:9px 0 0;padding:0 17px 15px;color:#98a2b3;font-size:11px}

/* 后台：支付商户列表（状态 + 自检 + 账号操作） */
.wxpay-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 4px}
.wxpay-steps{margin-top:10px;padding:10px 12px;border-radius:10px;background:#f7faf9;font-size:12.5px;color:#344054;line-height:1.9}
.wxpay-steps b{display:block;margin-bottom:4px;color:#101828}
.wxpay-steps ol{margin:0;padding-left:20px}
.wxpay-steps li{margin-bottom:2px}
.payment-block-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.payment-account-add-actions{display:flex;align-items:center;gap:6px}
.payment-account-add-actions .mini-btn{min-height:30px;padding:0 10px;border:1px solid #d4e4dd;border-radius:8px;background:#fff;color:#0d6e5c;font-size:11.5px;font-weight:700}
.payment-endpoint-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;color:#68766f;font-size:12px}
.payment-endpoint-summary span:last-child{color:#0d6e5c;font-weight:700}
.payment-endpoint-list{border:1px solid #e2e9e5;border-radius:12px;background:#fff;overflow:hidden}
.payment-endpoint-head,
.payment-endpoint-row{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(270px,1.2fr) minmax(270px,1.2fr)}
.payment-endpoint-head{padding:10px 14px;border-bottom:1px solid #e2e9e5;background:#f7faf8;color:#6f7d76;font-size:11px;font-weight:700;letter-spacing:.02em}
.payment-endpoint-row{min-height:78px;border-bottom:1px solid #edf1ef;background:#fff}
.payment-endpoint-row:last-child{border-bottom:0}
.payment-endpoint-name{display:flex;min-width:0;flex-direction:column;justify-content:center;gap:3px;padding:10px 14px;background:#fbfdfc}
.payment-endpoint-name b{color:#17251f;font-size:13.5px}
.payment-endpoint-name small{color:#8a9690;font-size:11px;line-height:1.45}
.payment-endpoint-channel{display:flex;min-width:0;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;padding:8px 12px;border-left:1px solid #edf1ef}
.payment-endpoint-mobile-label{display:none;color:#98a2b3;font-size:10px;font-weight:700}
.payment-endpoint-primary-line,
.payment-endpoint-detail-line{display:flex;min-width:0;width:100%;align-items:center;gap:6px 8px}
.payment-endpoint-detail-line{justify-content:space-between}
.payment-endpoint-channel-head{display:flex;flex:0 0 auto;align-items:center;flex-wrap:wrap;gap:4px}
.payment-endpoint-state{display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border-radius:999px;font-size:10.5px;font-weight:800;white-space:nowrap}
.payment-endpoint-state.ok{background:#e7f7f2;color:#0d6e5c}
.payment-endpoint-state.off{background:#f0f2f1;color:#66736d}
.payment-endpoint-state.warn{background:#fff4dc;color:#9a6515}
.payment-endpoint-account-name{flex:0 1 auto;min-width:0;max-width:36%;padding:0;border:0;background:transparent;color:#17251f;font-size:13px;font-weight:700;text-align:left;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.payment-endpoint-account-name:hover{color:#0d6e5c;text-decoration:underline}
.payment-endpoint-subject{display:inline-flex;flex:1 1 120px;min-width:0;max-width:58%;align-items:baseline;gap:4px;color:#52655b;font-size:11px;line-height:1.4;overflow:hidden}
.payment-endpoint-subject em{padding:1px 4px;border-radius:4px;background:#eef3f1;color:#728079;font-size:9px;font-style:normal;font-weight:800;white-space:nowrap}
.payment-endpoint-subject span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.payment-endpoint-subject.is-empty{color:#98a2b3}
.payment-endpoint-facts{display:inline-flex;flex:1 1 auto;min-width:0;flex-wrap:wrap;align-items:center;gap:3px 9px}
.payment-endpoint-fact{display:inline-flex;min-width:0;align-items:baseline;gap:4px;color:#65736c;font-size:10.5px;line-height:1.45;white-space:nowrap}
.payment-endpoint-fact b{color:#8a9690;font-size:9px;font-weight:800;letter-spacing:.02em}
.payment-endpoint-fact code{color:#30463c;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10.5px;font-weight:700;overflow-wrap:anywhere}
.payment-endpoint-identifier{display:flex;min-width:0;flex-direction:column;gap:1px;color:#65736c;font-size:10.5px;line-height:1.5}
.payment-endpoint-identifier code{color:#30463c;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11.5px;font-weight:700;overflow-wrap:anywhere}
.payment-endpoint-identifier small{color:#7b8882;font-size:10.5px;overflow-wrap:anywhere}
.payment-endpoint-actions{display:flex;flex:0 0 auto;align-items:center;gap:5px;flex-wrap:nowrap;margin-top:0}
.payment-endpoint-actions .mini-btn,
.payment-endpoint-channel>.mini-btn{min-height:28px;padding:0 10px;border:1px solid #d7e5df;border-radius:8px;background:#fff;color:#0d6e5c;font-size:11px;font-weight:700;white-space:nowrap}
.payment-endpoint-actions .mini-btn:hover,
.payment-endpoint-channel>.mini-btn:hover{background:#f2f9f6}
.payment-endpoint-actions .mini-btn.active{background:#0d6e5c;border-color:#0d6e5c;color:#fff}
.payment-endpoint-actions .mini-btn.muted{color:#69766f}
.payment-endpoint-empty-hint{color:#98a2b3;font-size:10.5px}
.payment-account-channel{display:inline-flex;align-items:center;min-height:22px;padding:0 7px;border-radius:6px;background:#e7f7f2;color:#0d6e5c;font-size:10.5px;font-weight:800;white-space:nowrap}
.payment-account-channel.alipay{background:#edf4ff;color:#1769c2}
.payment-account-default{display:inline-flex;align-items:center;min-height:20px;padding:0 6px;border-radius:5px;background:#fff4dc;color:#9a6515;font-size:10px;font-weight:700}
.payment-account-tag{display:inline-flex;align-items:center;min-height:22px;padding:0 7px;border-radius:999px;background:#f1f4f3;color:#77847e;font-size:10.5px;font-weight:700;white-space:nowrap}
.payment-account-tag.ok{background:#e7f7f2;color:#0d6e5c}
.payment-account-tag.current{background:#fff4dc;color:#9a6515}
.payment-account-tag.warn{background:#fff4dc;color:#9a6515}
.payment-account-missing{color:#b26a00}
.payment-account-readonly{color:#98a2b3;font-size:10.5px}
.payment-account-empty{padding:20px 14px;border:1px dashed #d7e3dd;border-radius:12px;background:#fafcfb;color:#7c8983;font-size:12.5px;text-align:center}
.payment-account-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px;color:#8a9690;font-size:11.5px}
.payment-account-toolbar .secondary-btn{min-height:30px;padding:0 10px;font-size:11.5px}
.payment-endpoint-tag{display:inline-flex;align-items:center;min-height:22px;padding:0 7px;border-radius:999px;background:#f1f4f3;color:#68766f;font-size:10.5px;font-weight:700;white-space:nowrap}
.payment-endpoint-tag.is-explicit{background:#e7f7f2;color:#0d6e5c}
.payment-account-manage-card{display:grid;gap:14px}
.payment-account-manage-head{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding-bottom:12px;border-bottom:1px solid #edf1ef}
.payment-account-manage-head b{color:#17251f;font-size:16px}
.payment-account-subject-editor{display:grid;gap:6px;padding:11px 12px;border:1px solid #e3ebe7;border-radius:10px;background:#f8fbf9}
.payment-account-subject-editor>label{color:#344054;font-size:12px;font-weight:700}
.payment-account-subject-editor>small{color:#8a96a3;font-size:10.5px;line-height:1.5}
.payment-account-subject-editor>b{color:#273c33;font-size:13px;overflow-wrap:anywhere}
.payment-account-subject-editor>b.is-muted{color:#98a2b3}
.payment-account-subject-controls{display:flex;align-items:center;gap:8px}
.payment-account-subject-controls input{flex:1 1 auto;min-width:0;min-height:34px}
.payment-account-subject-controls .secondary-btn{flex:0 0 auto;min-height:34px;padding:0 12px;white-space:nowrap}
.payment-account-manage-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}
.payment-account-manage-grid>div{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:5px}
.payment-account-manage-grid>div.full{grid-column:1/-1}
.payment-account-manage-grid small{color:#98a2b3;font-size:11px}
.payment-account-manage-grid b,
.payment-account-manage-grid code{color:#273c33;font-size:12.5px;overflow-wrap:anywhere}
.payment-account-manage-grid b.is-ok{color:#0d6e5c}
.payment-account-manage-grid b.is-warn{color:#b26a00}
.payment-account-manage-grid b.is-muted{color:#667085}
.payment-account-manage-tags{display:flex;flex-wrap:wrap;gap:6px}
.payment-account-copy-link{justify-self:start;padding:0;border:0;background:transparent;color:#0d6e5c;font-size:11.5px;text-decoration:underline;cursor:pointer}
.payment-endpoint-choice-list{display:grid;gap:9px}
.payment-endpoint-choice{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid #dfe8e3;border-radius:10px;background:#fbfdfc;cursor:pointer}
.payment-endpoint-choice.is-disabled{cursor:not-allowed;background:#f6f8f7;border-color:#e8eeeb}
.payment-endpoint-choice.is-disabled b,.payment-endpoint-choice.is-disabled small{color:#97a39d}
.payment-endpoint-choice input{margin-top:2px;accent-color:#0d6e5c}
.payment-endpoint-choice span{display:grid;gap:3px}
.payment-endpoint-choice b{color:#243a31;font-size:13px}
.payment-endpoint-choice small{color:#7b8882;font-size:11.5px}
.payment-account-manage-note{margin:12px 0 0;color:#7b8882;font-size:11.5px;line-height:1.65}
.payment-switch-hint{margin:8px 0 10px!important}
.payment-account-footnote{margin-top:8px;color:#7c8983;font-size:11.5px;line-height:1.7}
.payment-account-form-note{margin-bottom:12px;padding:10px 12px;border-radius:10px;background:#f4faf7;color:#52655b;font-size:12.5px;line-height:1.7}
.payment-account-field-help{margin:6px 0 0;color:#8a96a3;font-size:11.5px;font-weight:400;line-height:1.65;overflow-wrap:anywhere}
.payment-account-form textarea{min-height:128px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.55}
.finance-sync-row{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(210px,1.25fr) minmax(150px,.8fr) auto;gap:12px;align-items:end}
.finance-sync-row label{display:grid;gap:6px;color:#52655b;font-size:12px;font-weight:700}
.finance-sync-row input,
.finance-sync-row select{width:100%;min-height:38px}
.wxpay-actions a.primary-btn,
.wxpay-actions a.secondary-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
@media (max-width:760px){
  .payment-endpoint-summary{font-size:11.5px}
  .payment-endpoint-list{overflow:hidden;background:#f7faf8;border:0;border-radius:0}
  .payment-endpoint-head{display:none}
  .payment-endpoint-row{grid-template-columns:minmax(0,1fr);min-height:0;margin:8px;overflow:hidden;border:1px solid #e2e9e5;border-radius:11px}
  .payment-endpoint-name{padding:12px 13px;background:#f4faf7}
  .payment-endpoint-channel{padding:12px 13px;border-left:0;border-top:1px solid #edf1ef}
  .payment-endpoint-mobile-label{display:block}
  .payment-endpoint-primary-line,
  .payment-endpoint-detail-line{align-items:flex-start}
  .payment-endpoint-account-name{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip}
  .payment-endpoint-subject{flex:1 1 100%;max-width:100%;white-space:normal}
  .payment-endpoint-subject span{white-space:normal;overflow:visible;text-overflow:clip}
  .payment-endpoint-detail-line{flex-direction:column}
  .payment-endpoint-facts{display:grid;width:100%;gap:2px}
  .payment-endpoint-fact{white-space:normal}
  .payment-endpoint-actions{width:100%;margin-top:3px}
  .payment-endpoint-actions .mini-btn,
  .payment-endpoint-channel>.mini-btn{min-height:32px;flex:1 1 calc(50% - 3px)}
  .payment-block-head{align-items:flex-start}
  .payment-account-panel-head{display:grid;gap:8px}
  .payment-account-add-actions{width:100%}
  .payment-account-add-actions .mini-btn{flex:1 1 0}
  .payment-account-toolbar{align-items:flex-start;flex-direction:column;gap:6px}
  .payment-account-manage-grid{grid-template-columns:1fr}
  .payment-account-subject-controls{align-items:stretch;flex-direction:column}
  .payment-account-subject-controls .secondary-btn{width:100%}
  .payment-account-field-help{font-size:11px;line-height:1.7}
  .finance-sync-row{grid-template-columns:1fr 1fr}
  .finance-sync-row label:nth-child(2),
  .finance-sync-row button{grid-column:1/-1}
}
@media (max-width:480px){
  .finance-sync-row{grid-template-columns:1fr}
  .finance-sync-row label:nth-child(2),
  .finance-sync-row button{grid-column:auto}
}

/* 后台字体层级（2026-10-19）：参考小鹅通后台的 14px 正文基准，
   表格和辅助信息同步上调，但保留紧凑行距，避免整页被无谓撑高。 */
body.admin-mode {
  --admin-font-base: 14px;
  --admin-font-small: 12px;
  --admin-font-label: 13px;
  --admin-font-table: 13px;
  --admin-font-title: 16px;
}
body.admin-mode .admin-shell,
body.admin-mode .admin-view,
body.admin-mode .modal-card {
  font-size: var(--admin-font-base);
}
body.admin-mode .admin-nav button {
  font-size: 14px;
}
body.admin-mode .admin-breadcrumb,
body.admin-mode .admin-page-head p,
body.admin-mode .panel-head span,
body.admin-mode .panel-head button,
body.admin-mode .form-hint,
body.admin-mode .admin-view small,
body.admin-mode .modal-card small {
  font-size: var(--admin-font-small);
}
body.admin-mode .admin-topbar h2 {
  font-size: 22px;
}
body.admin-mode .admin-user b {
  font-size: 13px;
}
body.admin-mode .admin-user small {
  font-size: 11px;
}
body.admin-mode .panel-head h3 {
  font-size: var(--admin-font-title);
}
body.admin-mode .tabs-row button,
body.admin-mode .course-cat-chip button,
body.admin-mode .shop-tabs button {
  font-size: 13px;
}
body.admin-mode .data-table th {
  font-size: var(--admin-font-table);
}
body.admin-mode .data-table td {
  font-size: 13.5px;
  line-height: 1.55;
}
body.admin-mode .cell-main b {
  font-size: 13.5px;
}
body.admin-mode .cell-main span,
body.admin-mode .status,
body.admin-mode .tag,
body.admin-mode .row-actions button {
  font-size: 12px;
}
body.admin-mode .form-field label,
body.admin-mode .pay-label {
  font-size: var(--admin-font-label);
}
body.admin-mode .form-field input,
body.admin-mode .form-field select,
body.admin-mode .form-field textarea,
body.admin-mode .admin-view input,
body.admin-mode .admin-view select,
body.admin-mode .admin-view textarea,
body.admin-mode .modal-card input,
body.admin-mode .modal-card select,
body.admin-mode .modal-card textarea {
  font-size: 14px;
}
body.admin-mode .form-field label.check-option,
body.admin-mode .check-option {
  font-size: 13px;
}
body.admin-mode .primary-btn,
body.admin-mode .secondary-btn,
body.admin-mode .ghost-btn,
body.admin-mode .danger-btn,
body.admin-mode .mini-btn,
body.admin-mode .cover-pick-btn {
  font-size: 13px;
}
body.admin-mode .compact {
  font-size: 13px;
}
body.admin-mode .modal-head h3 {
  font-size: 20px;
}
body.admin-mode .modal-head span {
  font-size: 13px;
}
body.admin-mode .modal-body,
body.admin-mode .access-box span,
body.admin-mode .empty-state p {
  font-size: 13px;
  line-height: 1.65;
}
body.admin-mode .access-box b,
body.admin-mode .empty-state b {
  font-size: 14px;
}
body.admin-mode .stat-card .stat-top {
  font-size: 13px;
}
body.admin-mode .stat-card small {
  font-size: 12px;
}
body.admin-mode .rich-editor .rich-toolbar label,
body.admin-mode .rich-editor .rich-toolbar .rich-inline,
body.admin-mode .rich-editor .rich-toolbar .rich-color,
body.admin-mode .rich-editor .rich-toolbar button {
  font-size: 13px;
}
/* AI 设置原本已按更大字号设计，避免被通用后台字号规则压小。 */
body.admin-mode .ai-settings-form .form-field label {
  font-size: 16px;
}
body.admin-mode .ai-settings-form input,
body.admin-mode .ai-settings-form select,
body.admin-mode .ai-settings-form textarea,
body.admin-mode .ai-settings-form .check-option,
body.admin-mode .ai-admin-page .data-table th,
body.admin-mode .ai-admin-page .data-table td,
body.admin-mode .ai-admin-page .row-actions button {
  font-size: 14px;
}
body.admin-mode .ai-settings-form .form-field input,
body.admin-mode .ai-settings-form .form-field select,
body.admin-mode .ai-settings-form .form-field textarea {
  font-size: 16px;
}

@media (max-width: 1250px) and (min-width: 901px) {
  .admin-global-search { flex-basis: 320px; min-width: 200px; margin: 0 10px; }
  .admin-top-actions { gap: 6px; }
  .admin-guide-trigger { padding: 0 10px; }
}
@media (max-width: 900px) {
  body.admin-mode .admin-topbar { flex-wrap: wrap; align-items: center; }
  .admin-global-search { order: 3; flex: 1 1 100%; width: 100%; max-width: none; margin: 8px 0 0; }
  .admin-search-result-head span { display: none; }
  .admin-guide-thread { min-height: 210px; max-height: 44vh; }
  .admin-guide-bubble { max-width: 92%; }
}
@media (max-width: 560px) {
  .admin-guide-trigger { width: 42px; padding: 0; }
  .admin-guide-trigger span { font-size: 17px; }
  .admin-guide-trigger { font-size: 0; gap: 0; }
  .admin-guide-notice { padding: 10px; }
  .admin-guide-thread { padding: 10px; }
  .admin-guide-message { gap: 7px; }
  .admin-guide-bubble,
  .admin-guide-message.user .admin-guide-bubble { max-width: calc(100% - 37px); }
  .admin-guide-candidate { gap: 7px; padding: 8px; }
  .admin-guide-actions { flex-wrap: wrap; }
  .admin-guide-actions-hint { flex-basis: 100%; order: 3; }
}

/* ===== 圈子：后台 ===== */
.circle-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
.circle-editor-main-column { min-width: 0; display: grid; gap: 14px; }
.circle-editor-heading { margin-bottom: 0; }
.circle-editor-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e3ebe7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,24,40,.04);
}
.circle-editor-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.circle-editor-panel-head b { display: block; color: #1d2939; font-size: 14px; }
.circle-editor-panel-head span { display: block; margin-top: 3px; color: #87928f; font-size: 10px; line-height: 1.45; }
.circle-editor-panel-head em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 99px;
  color: #16745f;
  background: #e7f7f2;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.circle-editor-basic-grid,
.circle-editor-publish-grid { gap: 12px; }
.circle-editor-basic-grid .form-field,
.circle-editor-publish-grid .form-field { margin: 0; }
.circle-editor-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.circle-editor-scope-grid > .form-field {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #e5ece9;
  border-radius: 12px;
  background: #fbfcfd;
}
.circle-editor-preview { width: 100%; margin: 0; align-self: start; }
.circle-editor-preview .deco-preview-phone { width: min(100%, 290px); border-width: 6px; border-radius: 25px; }
.circle-editor-preview-body { padding: 0; background: #fff; overflow: hidden; display: flex; }
.circle-editor-phone-real { width: 100%; min-height: 0; display: flex; flex-direction: column; color: #1d2939; background: #fff; }
.circle-editor-phone-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.circle-editor-phone-scroll::-webkit-scrollbar { display: none; }
.circle-editor-preview-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 84% 12%,rgba(242,184,75,.42),transparent 34%),linear-gradient(145deg,#14866d,#0d6e5c 58%,#103f48);
}
.circle-editor-preview-cover > b { font-size: 42px; font-weight: 500; opacity: .85; }
.circle-editor-preview-cover > span { position: absolute; left: 10px; bottom: 9px; z-index: 2; padding: 3px 7px; border-radius: 99px; background: rgba(5,31,25,.42); color: #fff; font-size: 8.5px; font-weight: 800; }
.circle-editor-preview-cover.has-image img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.circle-editor-preview-cover.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(5,31,25,.02),rgba(5,31,25,.45)); }
.circle-editor-preview-content { padding: 12px; }
.circle-editor-preview-kicker { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #0d6e5c; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.circle-editor-preview-kicker em { padding: 2px 6px; border-radius: 99px; color: #067647; background: #e8f7ef; font-size: 8px; font-style: normal; letter-spacing: 0; }
.circle-editor-preview-content h3 { margin: 6px 0 0; color: #1d2939; font-size: 16px; line-height: 1.4; }
.circle-editor-preview-intro { max-height: 92px; margin-top: 7px; overflow: hidden; color: #667085; font-size: 10px; line-height: 1.58; }
.circle-editor-preview-intro .rich-text { color: inherit; font-size: inherit; line-height: inherit; }
.circle-editor-preview-intro img { max-width: 100%; height: auto; display: block; border-radius: 7px; }
.circle-editor-preview-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.circle-editor-preview-meta span { padding: 3px 6px; border-radius: 99px; color: #526070; background: #f2f7f5; font-size: 8.5px; }
.circle-editor-preview-join { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 9px; border-radius: 11px; background: linear-gradient(135deg,#f0faf6,#fff8e8); }
.circle-editor-preview-join > div { min-width: 0; }
.circle-editor-preview-join b { display: inline-block; color: #d94822; font-size: 16px; line-height: 1.2; }
.circle-editor-preview-join s { margin-left: 5px; color: #98a2b3; font-size: 9px; }
.circle-editor-preview-join small { display: block; margin-top: 2px; color: #667085; font-size: 8.5px; line-height: 1.4; }
.circle-editor-preview-join > span { flex: 0 0 auto; padding: 6px 8px; border-radius: 8px; color: #fff; background: var(--green); font-size: 9px; font-weight: 800; }
.circle-editor-preview-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 2px; padding: 8px 9px; border-bottom: 1px solid #edf1ef; background: #fff; }
.circle-editor-preview-tabs span { padding: 4px 0; border-radius: 6px; color: #98a2b3; font-size: 8.5px; text-align: center; }
.circle-editor-preview-tabs span.active { color: #0d6e5c; background: #eaf7f2; font-weight: 800; }
.circle-editor-preview-block { margin: 0 10px; padding: 10px 0; border-bottom: 1px solid #f0f3f2; }
.circle-editor-preview-block:last-child { border-bottom: 0; }
.circle-editor-preview-block-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.circle-editor-preview-block-head b { color: #1d2939; font-size: 11px; }
.circle-editor-preview-block-head small { color: #98a2b3; font-size: 8px; }
.circle-editor-preview-post { display: flex; align-items: flex-start; gap: 7px; margin-top: 8px; padding: 8px; border-radius: 9px; background: #f8faf9; }
.circle-editor-preview-post > i { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #14866d; font-size: 10px; font-style: normal; font-weight: 800; }
.circle-editor-preview-post > div { min-width: 0; }
.circle-editor-preview-post b { display: block; color: #344054; font-size: 9.5px; }
.circle-editor-preview-post p { margin: 3px 0; color: #667085; font-size: 8.8px; line-height: 1.5; }
.circle-editor-preview-post small { color: #98a2b3; font-size: 8px; }
.circle-editor-preview-courses { display: grid; gap: 6px; margin-top: 8px; }
.circle-editor-preview-course { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 7px; border: 1px solid #edf1ef; border-radius: 9px; background: #fbfcfd; }
.circle-editor-preview-course .thumb { width: 34px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: #fff; font-size: 12px; }
.circle-editor-preview-course b { display: block; overflow: hidden; color: #344054; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.circle-editor-preview-course small { display: block; margin-top: 2px; overflow: hidden; color: #98a2b3; font-size: 7.8px; text-overflow: ellipsis; white-space: nowrap; }
.circle-editor-preview-course em { color: #b0b8c1; font-size: 8px; font-style: normal; }
.circle-editor-preview-empty { margin-top: 7px; color: #98a2b3; font-size: 9px; }
.circle-editor-preview-paybar { flex: 0 0 56px; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-top: 1px solid #e7eeeb; background: rgba(255,255,255,.98); box-shadow: 0 -5px 16px rgba(16,24,40,.05); }
.circle-editor-preview-paybar small { display: block; color: #98a2b3; font-size: 8px; }
.circle-editor-preview-paybar b { display: block; color: #d94822; font-size: 15px; }
.circle-editor-preview-paybar span { flex: 0 0 auto; min-width: 76px; height: 34px; display: grid; place-items: center; padding: 0 10px; border-radius: 9px; color: #fff; background: var(--green); font-size: 10px; font-weight: 800; pointer-events: none; }
.circle-detail-image-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  align-items: start;
  gap: 12px;
}
.circle-detail-image-list {
  min-height: 96px;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(82px,1fr));
  align-content: start;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfd;
}
.circle-detail-image-actions { display: grid; gap: 8px; }
.circle-lead-panel { background: linear-gradient(180deg, #fbfefc, #fff); }
.circle-lead-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #dcece7;
  border-radius: 12px;
  background: #f5fbf8;
  cursor: pointer;
}
.circle-lead-toggle input { width: auto; margin-top: 2px; accent-color: var(--green); }
.circle-lead-toggle b { display: block; color: #1d2939; font-size: 13px; }
.circle-lead-toggle small { display: block; margin-top: 3px; color: #667085; font-size: 10px; line-height: 1.55; }
.circle-lead-fields { margin-top: 12px; }
.circle-lead-grid { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(0, 1.1fr); gap: 12px; }
.circle-lead-grid .form-field { min-width: 0; margin: 0; }
.circle-lead-grid .form-field.full { grid-column: 1 / -1; }
.circle-lead-qr-row { display: grid; grid-template-columns: 142px minmax(0, 1fr); align-items: start; gap: 10px; }
.circle-lead-qr-preview {
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #cfe1da;
  border-radius: 12px;
  color: #98a2b3;
  background: #f8fbfa;
  font-size: 10px;
  text-align: center;
}
.circle-lead-qr-preview img { width: 100%; height: 100%; display: block; object-fit: contain; background: #fff; }
.circle-lead-qr-preview > .logo-preview-item { width: 100%; height: 100%; display: grid; place-items: center; }
.circle-lead-qr-preview .admin-img-size-text { display: none; }
.circle-lead-qr-actions { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.circle-lead-qr-actions label { cursor: pointer; text-align: center; }
.circle-lead-form-binding select { width: 100%; }
.circle-lead-form-timing { margin-top: -2px; }
.lead-form-timing-options { align-items: stretch; }
.lead-form-timing-options .check-option { min-height: 38px; }
.circle-editor-preview-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 9px;
  border: 1px solid #f0d9a8;
  border-radius: 11px;
  color: #5e4a1b;
  background: linear-gradient(135deg, #fffaf0, #f4fbf7);
}
.circle-editor-preview-lead-copy { min-width: 0; }
.circle-editor-preview-lead-copy span { display: block; color: #b07a13; font-size: 7.5px; font-weight: 800; letter-spacing: .04em; }
.circle-editor-preview-lead-copy b { display: block; margin-top: 3px; overflow: hidden; color: #344054; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.circle-editor-preview-lead-copy small { display: -webkit-box; overflow: hidden; margin-top: 3px; color: #667085; font-size: 7.8px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.circle-editor-preview-lead > img { width: 58px; height: 58px; display: block; object-fit: contain; border: 1px solid #f1dfb8; border-radius: 7px; background: #fff; }
.course-lead-preview-empty { width: 58px; min-height: 58px; display: grid; place-items: center; padding: 5px; border: 1px dashed #dec88f; border-radius: 7px; color: #9a7a37; background: #fff; font-size: 8px; line-height: 1.4; text-align: center; }
.course-lead-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: 14px;
  margin: 12px 0 2px;
  padding: 14px;
  border: 1px solid #efdaa7;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffaf0, #f3fbf7);
  box-shadow: 0 8px 22px rgba(96, 68, 16, .06);
}
.course-lead-card-copy { min-width: 0; }
.course-lead-card-copy > span { display: block; color: #a87412; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.course-lead-card-copy > b { display: block; margin-top: 5px; color: #25352f; font-size: 15px; line-height: 1.45; }
.course-lead-card-copy > p { margin: 5px 0 0; color: #667085; font-size: 11px; line-height: 1.65; }
.course-lead-card-qr { display: grid; justify-items: center; gap: 5px; }
.course-lead-card-qr img { width: 92px; height: 92px; display: block; object-fit: contain; border: 1px solid #efdcae; border-radius: 10px; background: #fff; }
.course-lead-card-qr small { color: #8a6b2b; font-size: 9px; font-weight: 700; white-space: nowrap; }
.course-lead-card.is-form-required { border-color: #bfe2d6; background: linear-gradient(135deg, #f6fcf9, #eef8f4); box-shadow: 0 8px 22px rgba(13, 110, 92, .07); }
.course-lead-card.is-form-required .course-lead-card-copy > span { color: var(--green); }
.course-lead-card.is-form-required .primary-btn { margin-top: 10px; }
.course-lead-card-form {
  width: 92px;
  min-height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px dashed #a9d7c8;
  border-radius: 10px;
  color: var(--green);
  background: rgba(255, 255, 255, .78);
  text-align: center;
}
.course-lead-card-form > span { font-size: 28px; line-height: 1; }
.course-lead-card-form small { padding: 0 6px; color: #5d756d; font-size: 9px; font-weight: 700; line-height: 1.35; }
.circle-enrollment-reminder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0;
  padding: 13px 14px;
  border: 1px solid #bfe2d6;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4fbf8, #fffaf0);
}
.circle-enrollment-reminder > div { min-width: 0; }
.circle-enrollment-reminder span { display: block; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.circle-enrollment-reminder b { display: block; margin-top: 4px; color: #25352f; font-size: 14px; line-height: 1.45; }
.circle-enrollment-reminder p { margin: 4px 0 0; color: #667085; font-size: 10px; line-height: 1.55; }
.circle-enrollment-reminder .primary-btn { flex: 0 0 auto; }
.circle-purchase-form-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
  padding: 9px 11px;
  border: 1px solid #dcece7;
  border-radius: 10px;
  background: #f5fbf8;
}
.circle-purchase-form-note span { color: #667085; font-size: 10px; }
.circle-purchase-form-note b { color: var(--green); font-size: 11px; }
.enrollment-form-required-head {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #dcece7;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4fbf8, #fffaf0);
}
.enrollment-form-required-head span { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; color: var(--green); background: #e8f6f1; font-size: 10px; font-weight: 800; }
.enrollment-form-required-head b { display: block; margin-top: 8px; color: #25352f; font-size: 16px; }
.enrollment-form-required-head p { margin: 5px 0 0; color: #667085; font-size: 11px; line-height: 1.65; }
.enrollment-form-fields { align-items: start; }
.circle-detail-auto-images {
  display: grid;
  gap: 9px;
  width: 100%;
  min-width: 0;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #cfe1da;
}
.circle-detail-auto-images img,
.circle-editor-preview-detail-images img,
.circle-detail-view-images img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  display: block;
  border-radius: 9px;
  background: #f4f7f6;
}
.circle-editor-preview-detail-images { display: grid; gap: 7px; width: 100%; min-width: 0; margin-top: 9px; }
.circle-detail-view-images { display: grid; gap: 10px; width: 100%; min-width: 0; margin-top: 13px; }
.circle-admin-head { margin-bottom: 14px; }
.circle-loading,
.circle-error { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #526070; }
.circle-error { flex-direction: column; justify-content: flex-start; padding: 22px; }
.circle-detail-head { display: flex; align-items: center; gap: 12px; margin: -2px 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.circle-detail-head > div { min-width: 0; }
.circle-detail-head b { display: block; color: #1d2939; font-size: 14px; }
.circle-detail-head span { display: block; margin-top: 2px; color: #98a2b3; font-size: 10px; }
.circle-list-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 4px;
  overflow: hidden;
  contain: inline-size;
}
.circle-list-panel .data-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.circle-list-panel .circle-list-table-wrap {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.circle-list-panel .circle-list-table-wrap:focus-visible {
  outline: 2px solid rgba(13, 110, 92, .45);
  outline-offset: -2px;
}
.circle-list-panel .circle-list-table-wrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.circle-list-hscroll {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  padding: 8px 12px;
  border: 1px solid #dbe9e4;
  border-radius: 11px;
  background: linear-gradient(90deg, #f7fbf9, #fff);
}
.circle-list-hscroll[hidden] { display: none; }
.circle-list-hscroll > span {
  color: #667085;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.circle-list-hscroll > span:last-child { color: #0d6e5c; }
.circle-list-hscroll input[type="range"] {
  width: 100%;
  height: 22px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: ew-resize;
  touch-action: pan-x;
}
.circle-list-hscroll input[type="range"]:focus-visible {
  outline: 2px solid rgba(13, 110, 92, .45);
  outline-offset: 3px;
  border-radius: 999px;
}
.circle-list-hscroll input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7eaa9e 0 var(--circle-scroll-progress, 0%), #dce7e3 var(--circle-scroll-progress, 0%) 100%);
  box-shadow: inset 0 1px 2px rgba(16, 40, 34, .08);
}
.circle-list-hscroll input[type="range"]::-webkit-slider-thumb {
  width: 72px;
  height: 20px;
  margin-top: -6px;
  border: 3px solid #fff;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(145deg, #21b08d, #0d6e5c);
  box-shadow: 0 2px 7px rgba(13, 110, 92, .24);
}
.circle-list-hscroll input[type="range"]::-moz-range-track {
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #dce7e3;
  box-shadow: inset 0 1px 2px rgba(16, 40, 34, .08);
}
.circle-list-hscroll input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: #7eaa9e;
}
.circle-list-hscroll input[type="range"]::-moz-range-thumb {
  width: 64px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #0d6e5c;
  box-shadow: 0 2px 7px rgba(13, 110, 92, .24);
}
.circle-list-table {
  width: 100%;
  min-width: 840px;
  table-layout: fixed;
}
.circle-list-table th:nth-child(1),
.circle-list-table td:nth-child(1) { width: 56px; }
.circle-list-table th:nth-child(3),
.circle-list-table td:nth-child(3) { width: 200px; }
.circle-list-table th:last-child,
.circle-list-table td:last-child { width: 270px; }
.circle-list-table th { font-size: calc(14px * 1.05); }
body.admin-mode .circle-list-table td { font-size: calc(14px * 1.05); }
.circle-list-table td { vertical-align: middle; }
.circle-list-table th:last-child,
.circle-list-table td:last-child { position: sticky; right: 0; z-index: 1; background: #fff; box-shadow: -8px 0 12px rgba(16, 40, 34, .05); }
.circle-list-table th:last-child { z-index: 2; background: #fafbfc; }
.circle-list-table tr:hover td:last-child { background: #fbfdfc; }
.circle-list-actions { justify-content: flex-end; flex-wrap: nowrap; }
.circle-list-actions button { min-height: 32px; padding: 0 10px; font-size: calc(14px * 1.05); white-space: nowrap; }
.circle-list-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.circle-list-cover { width: 100px; height: calc(52px * 1.1); flex: 0 0 auto; overflow: hidden; display: grid; place-items: center; border-radius: 7px; color: #fff; background: linear-gradient(145deg, #14866d, #0d6e5c); font-size: 26px; }
.circle-list-cover img { width: 100%; height: 100%; object-fit: cover; }
.circle-list-main > div { min-width: 0; }
.circle-list-main b { display: block; max-width: 290px; overflow: hidden; color: #1d2939; font-size: calc(15px * 1.05); line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.circle-list-main small { display: block; max-width: 320px; margin-top: 4px; overflow: hidden; color: #8f9b99; font-size: calc(12px * 1.05); line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.circle-list-status { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: calc(12px * 1.05); font-weight: 800; }
.circle-list-status.on { color: #067647; background: #e8f7ef; }
.circle-list-status.off { color: #667085; background: #f2f4f7; }
.circle-list-state-cell { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; min-width: 150px; white-space: nowrap; }
.circle-price-badge { padding: 3px 8px; border-radius: 999px; color: #667085; background: #f5f7f6; font-size: calc(12px * 1.05); font-weight: 700; }
.circle-price-badge.paid { color: #8a5b00; background: #fff6df; }
.circle-list-validity { flex-basis: 100%; color: #667085; font-size: calc(11px * 1.05); font-weight: 600; }
.circle-price-inputs { display: flex; align-items: center; gap: 7px; }
.circle-price-inputs input { min-width: 0; flex: 1 1 0; }
.circle-price-inputs span { flex: 0 0 auto; color: #98a2b3; font-size: 11px; }
.circle-admin-tabs { gap: 4px; margin: 0 0 14px; padding: 10px; }
.circle-admin-tabs button { padding: 7px 9px; }
.circle-admin-content { display: grid; gap: 14px; }
.circle-hero { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; padding: 16px; overflow: hidden; }
.circle-hero-cover { height: 122px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #14866d, #0d6e5c 55%, #f2b84b); font-size: 44px; }
.circle-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.circle-hero-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.circle-hero-kicker { color: #14866d; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.circle-hero-copy h2 { margin: 5px 0 7px; font-size: 22px; color: #1d2939; }
.circle-hero-copy p { max-width: 820px; margin: 0; color: #667085; font-size: 13px; line-height: 1.7; }
.circle-hero-rich { width: 100%; min-width: 0; max-width: 900px; color: #667085; font-size: 13px; line-height: 1.7; }
.circle-hero-rich .rich-text { width: 100%; min-width: 0; color: inherit; font-size: inherit; line-height: inherit; }
.circle-hero-rich img { display: block; width: auto; max-width: 100%; height: auto; max-height: none; object-fit: initial; border-radius: 10px; }
.circle-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.circle-hero-meta span { padding: 4px 9px; border-radius: 999px; color: #526070; background: #f2f7f5; font-size: 11px; font-weight: 700; }
.circle-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.circle-stat { padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.circle-stat span { display: block; color: #667085; font-size: 11px; }
.circle-stat b { display: block; margin: 6px 0 3px; color: #1d2939; font-size: 25px; }
.circle-stat em { color: #98a2b3; font-size: 10px; font-style: normal; }
.circle-admin-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.circle-mini-list { display: grid; gap: 0; }
.circle-mini-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #eef1f4; }
.circle-mini-row:last-child { border-bottom: 0; }
.circle-mini-row b { display: block; color: #344054; font-size: 12px; }
.circle-mini-row p { margin: 3px 0 0; color: #667085; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.circle-mini-row small { color: #98a2b3; font-size: 10px; }
.circle-mini-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #edf8f4; color: #0d6e5c; font-size: 17px; }
.circle-ops-panel { padding: 0; overflow: hidden; }
.circle-ops-panel .panel-head { padding: 15px 16px 0; }
.circle-ops-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; padding: 12px 16px; }
.circle-ops-card { min-width: 0; padding: 11px 12px; border: 1px solid #e3ebe8; border-radius: 11px; background: #fbfdfc; }
.circle-ops-card.needs-attention { border-color: #f0dba9; background: #fffaf0; }
.circle-ops-card > span { display: block; color: #667085; font-size: 10px; font-weight: 700; }
.circle-ops-card > b { display: block; margin: 4px 0 2px; color: #1d3c34; font-size: 22px; line-height: 1.15; }
.circle-ops-card.needs-attention > b { color: #8a5b00; }
.circle-ops-card > small { display: block; overflow: hidden; color: #8a9692; font-size: 9px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.circle-ops-low { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px 13px; border-top: 1px solid #edf2f0; background: #f8fbfa; }
.circle-ops-low > div:first-child { flex: 0 0 180px; min-width: 0; }
.circle-ops-low > div:first-child b { display: block; color: #344054; font-size: 11px; }
.circle-ops-low > div:first-child span { display: block; margin-top: 2px; color: #98a2b3; font-size: 9px; line-height: 1.45; }
.circle-ops-members { min-width: 0; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.circle-ops-member { min-width: 124px; display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 1px 6px; align-items: center; padding: 6px 8px; border: 1px solid #dfe9e5; border-radius: 9px; color: #344054; background: #fff; text-align: left; cursor: pointer; }
.circle-ops-member > span { grid-row: 1 / span 2; }
.circle-ops-member .circle-avatar { width: 25px; height: 25px; font-size: 10px; }
.circle-ops-member b { min-width: 0; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.circle-ops-member small { color: #98a2b3; font-size: 8px; }
.circle-ops-clear { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 7px; color: #0d6e5c; }
.circle-ops-clear b { font-size: 10px; }
.circle-ops-clear span { color: #7b8794; font-size: 9px; }
.circle-point-ledger { display: grid; gap: 13px; }
.circle-point-wallet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.circle-point-wallet > span { padding: 11px 12px; border: 1px solid #e1ebe7; border-radius: 10px; background: #f8fbfa; }
.circle-point-wallet small { display: block; color: #7b8794; font-size: 10px; }
.circle-point-wallet b { display: block; margin-top: 4px; color: #173e35; font-size: 20px; line-height: 1; }
.circle-point-history-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.circle-point-history-head b { display: block; color: #344054; font-size: 12px; }
.circle-point-history-head span { display: block; margin-top: 2px; color: #98a2b3; font-size: 9px; }
.circle-point-history { max-height: 292px; overflow: auto; border: 1px solid #e5ece9; border-radius: 11px; background: #fff; }
.circle-point-history-row { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 9px 11px; border-bottom: 1px solid #eef2f0; }
.circle-point-history-row:last-child { border-bottom: 0; }
.circle-point-source { justify-self: start; padding: 3px 7px; border-radius: 999px; color: #0d6e5c; background: #eaf8f3; font-size: 9px; font-weight: 800; white-space: nowrap; }
.circle-point-source.source-manual { color: #8a5b00; background: #fff4d8; }
.circle-point-source.source-challenge { color: #5d4b9b; background: #f1edff; }
.circle-point-history-row > div { min-width: 0; }
.circle-point-history-row b { display: block; color: #344054; font-size: 11px; }
.circle-point-history-row small { display: block; margin-top: 2px; overflow: hidden; color: #98a2b3; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.circle-point-history-row em { min-width: 38px; font-size: 13px; font-style: normal; font-weight: 800; text-align: right; }
.circle-point-history-row em.plus { color: #087b5a; }
.circle-point-history-row em.minus { color: #b42318; }
.circle-point-history-row i { color: #98a2b3; font-size: 9px; font-style: normal; white-space: nowrap; }
.circle-point-empty { padding: 16px; border: 1px dashed #dce7e3; border-radius: 11px; color: #667085; background: #fafcfb; text-align: center; }
.circle-point-empty b { display: block; color: #526070; font-size: 11px; }
.circle-point-empty span { display: block; margin-top: 4px; font-size: 9px; line-height: 1.5; }
.circle-point-adjust { display: grid; grid-template-columns: minmax(160px, .65fr) minmax(0, 1.35fr); gap: 10px; padding-top: 2px; }
.circle-point-adjust .form-field { margin: 0; }
.circle-admin-post-list,
.circle-assignment-list,
.circle-submission-list,
.circle-report-list { display: grid; gap: 10px; }
.circle-report-queue { border-color: #f3d2b6; background: linear-gradient(180deg, #fff9f2, #fff); }
.circle-report-count { display: inline-grid; min-width: 20px; height: 20px; place-items: center; margin-left: 4px; border-radius: 999px; color: #fff; background: #d06b23; font-size: 10px; }
.circle-report-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 12px; border: 1px solid #f0dfcf; border-radius: 11px; background: #fff; }
.circle-report-row > div:first-child { min-width: 0; }
.circle-report-row b { color: #7a3f12; font-size: 12px; }
.circle-report-row p { margin: 4px 0; color: #526070; font-size: 12px; line-height: 1.55; }
.circle-report-row small { color: #98a2b3; font-size: 10px; }
.circle-report-row .row-actions { flex: 0 0 auto; }
.circle-tag-admin-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; padding: 8px 10px; border-radius: 9px; background: #f6f9f8; }
.circle-tag-admin-strip span { color: #98a2b3; font-size: 10px; }
.circle-tag-admin-strip b { padding: 3px 7px; border-radius: 999px; color: #0d6e5c; background: #fff; font-size: 10px; }
.circle-admin-post,
.circle-admin-assignment,
.circle-submission-card { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.circle-admin-post.is-hidden { opacity: 1; }
.circle-admin-post-head,
.circle-submission-head { display: flex; align-items: center; gap: 9px; }
.circle-admin-post-head > div:nth-child(2),
.circle-submission-head > div { min-width: 0; flex: 1; }
.circle-admin-post-head b,
.circle-submission-head b { display: block; color: #344054; font-size: 12px; }
.circle-admin-post-head span,
.circle-submission-head span { display: block; margin-top: 2px; color: #98a2b3; font-size: 10px; }
.circle-admin-post-head .row-actions { flex: 0 0 auto; }
.circle-admin-post-body { margin-top: 10px; color: #344054; font-size: 13px; line-height: 1.75; }
.circle-post-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 9px; color: #98a2b3; font-size: 10px; }
.circle-admin-assignment { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.circle-admin-assignment > div:first-child { min-width: 0; }
.circle-admin-assignment h4 { margin: 4px 0 5px; color: #1d2939; font-size: 14px; }
.circle-admin-assignment p { margin: 0; color: #667085; font-size: 12px; line-height: 1.65; }
.circle-assignment-label { color: #0d6e5c; font-size: 10px; font-weight: 800; }
.circle-assignment-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; color: #98a2b3; font-size: 10px; }
.circle-catalog-mode { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; padding: 8px 11px; border: 1px solid #dcece7; border-radius: 10px; background: #f6fbf9; }
.circle-catalog-mode span { flex: 0 0 auto; color: #7b8794; font-size: 12px; font-weight: 700; }
.circle-catalog-mode b { min-width: 0; overflow: hidden; color: #0d6e5c; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.circle-course-mode-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.circle-catalog-panel .form-field[hidden] { display: none !important; }
.circle-chapter-editor { display: grid; gap: 8px; }
.circle-chapter-editor-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px; border: 1px solid #e1ebe7; border-radius: 10px; background: #f8fbfa; }
.circle-chapter-editor-order { color: #0d6e5c; font-size: 11px; font-weight: 800; text-align: center; }
.circle-chapter-editor-row input { min-width: 0; }
.circle-chapter-editor-actions { display: flex; align-items: center; gap: 5px; }
.circle-chapter-editor-actions button { min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid #d8e5e0; border-radius: 8px; color: #526070; background: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.circle-chapter-editor-actions button:hover:not(:disabled) { color: #0d6e5c; border-color: #9fd4c6; background: #f2faf7; }
.circle-chapter-editor-actions button.danger { color: #b42318; border-color: #efd2ce; }
.circle-chapter-editor-actions button:disabled { opacity: .4; cursor: not-allowed; }
.circle-chapter-editor-add { margin-top: 9px; }
.circle-course-edit-empty { padding: 18px 12px; border: 1px dashed #cfe2db; border-radius: 10px; color: #7b8794; background: #fafcfb; font-size: 12px; text-align: center; }
.circle-catalog-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
.circle-catalog-summary > span { min-width: 0; display: flex; align-items: baseline; gap: 7px; padding: 10px 12px; border: 1px solid #e1ece8; border-radius: 12px; background: #f8fbfa; }
.circle-catalog-summary b { color: #0d6e5c; font-size: 20px; line-height: 1; }
.circle-catalog-summary small { overflow: hidden; color: #667085; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.circle-catalog-list { display: grid; gap: 12px; }
.circle-catalog-list.is-flat { gap: 8px; }
.circle-catalog-list.is-flat .circle-catalog-section { border-radius: 10px; }
.circle-catalog-list.is-flat .circle-catalog-section-head { padding: 11px 12px; }
.circle-catalog-list.is-flat .circle-catalog-chapter > .circle-catalog-section { border-radius: 0; }
.circle-catalog-course { overflow: hidden; border: 1px solid #dfe9e5; border-radius: 14px; background: #fff; }
.circle-catalog-course-head { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid #edf2f0; background: linear-gradient(90deg, #f6fbf9, #fff); }
.circle-catalog-cover { width: 72px; height: 52px; overflow: hidden; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #28b28f, #0c6c59); font-size: 22px; }
.circle-catalog-cover img { width: 100%; height: 100%; object-fit: cover; }
.circle-catalog-course-head > div { min-width: 0; }
.circle-catalog-course-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.circle-catalog-course-actions .secondary-btn { min-height: 30px; padding: 0 10px; }
.circle-catalog-course-head h4 { margin: 5px 0 3px; overflow: hidden; color: #1d2939; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.circle-catalog-course-head p { margin: 0; color: #7b8794; font-size: 11px; }
.circle-catalog-sections { display: grid; gap: 8px; padding: 10px; }
.circle-catalog-chapter { overflow: hidden; border: 1px solid #e2ebe7; border-radius: 11px; background: #f7faf9; }
.circle-catalog-chapter + .circle-catalog-chapter { margin-top: 2px; }
.circle-catalog-chapter-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #e8efec; }
.circle-catalog-chapter-head b { color: #36564c; font-size: 11px; }
.circle-catalog-chapter-head span { color: #8b9995; font-size: 11px; }
.circle-catalog-chapter-title { min-width: 0; flex: 1; display: flex; align-items: center; gap: 8px; }
.circle-catalog-chapter-title b { min-width: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.circle-catalog-chapter-title small { flex: 0 0 auto; color: #7b8794; font-size: 11px; }
.circle-catalog-chapter > .circle-catalog-section { margin: 0; border: 0; border-bottom: 1px solid #e8efec; border-radius: 0; background: #fff; }
.circle-catalog-chapter > .circle-catalog-section:last-child { border-bottom: 0; }
.circle-catalog-chapter > .circle-catalog-section-empty { padding: 10px 12px 12px 48px; }
.circle-catalog-chapter > .circle-catalog-course-empty { margin: 8px; }
.circle-catalog-section { overflow: hidden; border: 1px solid #e6eeeb; border-radius: 11px; background: #fff; }
.circle-catalog-section-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; background: #fbfcfc; }
.circle-catalog-section.is-optional { border-left: 3px solid #e8b84e; }
.circle-catalog-section-info { min-width: 0; }
.circle-catalog-section-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.circle-catalog-type-badge { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 5px; color: #576b64; background: #edf4f1; font-size: 11px; font-weight: 700; }
.circle-catalog-optional-badge { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 5px; color: #8b6413; background: #fff4d7; font-size: 11px; font-weight: 800; }
.circle-catalog-draft-badge { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 5px; color: #9a4b41; background: #fff0ed; font-size: 11px; font-weight: 700; }
.circle-catalog-completion-text { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 5px; color: #315f55; background: #eef7f3; font-size: 11px; font-weight: 700; }
.circle-catalog-completion-stat { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 5px; color: #8a5a14; background: #fff7e8; font-size: 11px; font-weight: 800; white-space: nowrap; }
.circle-catalog-source-badge { max-width: 180px; display: inline-flex; align-items: center; min-height: 20px; overflow: hidden; padding: 0 7px; border-radius: 5px; color: #516b63; background: #eef5f2; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.circle-catalog-row-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 3px; }
.circle-catalog-row-actions .secondary-btn { min-height: 31px; padding: 0 10px; font-size: 12px; }
.circle-catalog-order { width: 28px; color: #91a09b; font-size: 12px; font-weight: 800; text-align: center; }
.circle-catalog-sort-control {
  width: 84px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 24px 32px 24px;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid #d6e4df;
  border-radius: 9px;
  background: #fff;
}
.circle-catalog-sort-control button {
  width: 24px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #0d6e5c;
  background: #edf7f3;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.circle-catalog-sort-control button:hover:not(:disabled) { color: #fff; background: #14866d; }
.circle-catalog-sort-control button:disabled { color: #b8c4c0; background: #f4f7f6; cursor: not-allowed; }
.circle-catalog-sort-control input {
  width: 32px;
  height: 30px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #36564c;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.circle-catalog-sort-control input::-webkit-inner-spin-button,
.circle-catalog-sort-control input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.circle-catalog-sort-control input:focus { border-radius: 5px; background: #eef8f4; box-shadow: 0 0 0 2px rgba(13, 110, 92, .12); }
.circle-catalog-sort-control input:disabled { color: #9eaaa6; cursor: wait; }
.circle-catalog-section-title { min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.circle-catalog-section-title b { display: block; overflow: hidden; color: #344054; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.circle-catalog-section-title small { display: block; margin-top: 3px; color: #667085; font-size: 12px; }
.circle-catalog-edit-icon { display: inline-block; margin-left: 5px; color: #8ca09a; font-size: 11px; font-style: normal; font-weight: 500; }
.circle-catalog-unlock-text { min-height: 20px; padding: 0; border: 0; color: #667085; background: transparent; font-size: 12px; line-height: 1.45; text-align: left; cursor: pointer; }
.circle-catalog-unlock-text:hover { color: #0d6e5c; }
.circle-catalog-unlock-text i { margin-left: 4px; color: #7b8794; font-size: 11px; font-style: normal; }
.circle-catalog-assignments { display: grid; gap: 6px; padding: 8px 10px 10px 48px; border-top: 1px dashed #e8efec; }
.circle-catalog-chapter-assignments { padding-left: 10px; background: #fbfcfc; }
.circle-catalog-assignment { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; background: #f7fbf9; }
.circle-catalog-assignment-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: #0d6e5c; background: #e7f6f0; font-size: 12px; font-weight: 800; }
.circle-catalog-assignment > div { min-width: 0; }
.circle-catalog-assignment b { display: block; overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.circle-catalog-assignment small { display: block; margin-top: 2px; overflow: hidden; color: #7b8794; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.circle-catalog-assignment-stats { color: #667085; font-size: 11px; white-space: nowrap; }
.circle-catalog-assignment-kind { display: inline-flex; align-items: center; min-height: 20px; margin-left: 7px; padding: 0 7px; border-radius: 5px; color: #8a5a14; background: #fff5dc; font-size: 10px; font-weight: 800; vertical-align: middle; }
.circle-catalog-hidden-badge { display: inline-flex; align-items: center; min-height: 20px; margin-left: 6px; padding: 0 7px; border-radius: 5px; color: #9a4b41; background: #fff0ed; font-size: 10px; font-weight: 800; vertical-align: middle; }
.circle-catalog-assignment-actions { min-width: 0; }
.circle-catalog-assignment-actions .circle-catalog-text-action { min-height: 27px; padding: 2px 6px; font-size: 11px; }
.circle-catalog-standalone-assignment { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid #dfe9e5; border-radius: 10px; background: #fff; }
.circle-catalog-standalone-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #8a5a14; background: #fff5dc; font-size: 15px; font-weight: 800; }
.circle-catalog-standalone-main { min-width: 0; }
.circle-catalog-standalone-main > div { display: flex; align-items: center; min-width: 0; }
.circle-catalog-standalone-main b { min-width: 0; overflow: hidden; color: #344054; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.circle-catalog-standalone-main small { display: block; margin-top: 4px; overflow: hidden; color: #7b8794; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.circle-catalog-section-empty { padding: 7px 12px 10px 48px; color: #7b8794; font-size: 12px; }
.circle-catalog-course-empty { padding: 14px; border: 1px dashed #cfe2db; border-radius: 10px; color: #7b8794; background: #fafcfb; font-size: 11px; text-align: center; }
.circle-catalog-unlinked { display: grid; gap: 6px; padding: 0 10px 10px; }
.circle-catalog-unlinked > b { color: #667085; font-size: 10px; }
.circle-catalog-orphans { display: grid; gap: 7px; margin-top: 12px; padding: 11px; border: 1px dashed #d7e4df; border-radius: 12px; background: #fbfcfc; }
.circle-catalog-orphans-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.circle-catalog-orphans-head b { color: #526070; font-size: 11px; }
.circle-catalog-orphans-head span { color: #98a2b3; font-size: 9px; text-align: right; }
.circle-course-workspace { display: block; padding: 0; overflow: hidden; }
.circle-course-workspace-main { min-width: 0; padding: 16px; }
.circle-course-workspace-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.circle-course-workspace-head > div { min-width: 0; }
  .circle-course-head-actions { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
  .circle-course-head-link { padding: 4px 2px; border: 0; color: #0d6e5c; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
  .circle-course-head-link:hover { color: #084f42; text-decoration: underline; }
.circle-course-catalog-search { width: 260px; height: 36px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 0 9px 0 11px; border: 1px solid #d9e5e0; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .03); }
.circle-course-catalog-search:focus-within { border-color: #83cbb7; box-shadow: 0 0 0 3px rgba(33, 176, 141, .1); }
.circle-course-catalog-search > span { color: #7d9089; font-size: 17px; line-height: 1; }
.circle-course-catalog-search input { min-width: 0; height: 32px; padding: 0; border: 0; outline: 0; color: #344054; background: transparent; font-size: 12px; box-shadow: none; }
.circle-course-catalog-search input::placeholder { color: #98a2b3; }
.circle-course-catalog-search button { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #7c8c87; background: #eef4f1; font-size: 16px; line-height: 1; cursor: pointer; }
.circle-course-catalog-search button:hover { color: #0d6e5c; background: #e3f1ec; }
.circle-course-eyebrow { display: block; margin-bottom: 4px; color: #0d6e5c; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.circle-course-workspace-head h3 { margin: 0; color: #1d2939; font-size: 18px; }
.circle-course-workspace-head p { margin: 4px 0 0; color: #7b8794; font-size: 11px; line-height: 1.55; }
.circle-course-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 11px; border: 1px solid #e1ebe7; border-radius: 12px; background: #f8fbfa; }
.circle-course-toolbar-main,
.circle-course-toolbar-extra { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.circle-course-toolbar .primary-btn,
.circle-course-toolbar .secondary-btn { min-height: 32px; padding: 0 11px; font-size: 11px; }
.circle-course-statusline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 9px 0 12px; padding: 0 2px; color: #7b8794; font-size: 10px; }
.circle-course-statusline span { min-width: 0; }
.circle-course-statusline b { color: #0d6e5c; }
.circle-catalog-chapter-head { padding: 0 9px 0 0; border-bottom: 0; background: #f1f5f4; }
.circle-catalog-chapter.is-open .circle-catalog-chapter-head { border-bottom: 1px solid #e1e9e6; }
.circle-catalog-chapter-toggle { min-width: 0; flex: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 7px 9px; padding: 11px 10px; border: 0; color: #36564c; background: transparent; text-align: left; cursor: pointer; }
.circle-catalog-chapter-toggle:hover { background: #eaf1ee; }
.circle-catalog-chapter-toggle b { min-width: 120px; flex: 1 1 180px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.circle-catalog-chapter-toggle small { flex: 0 0 auto; color: #7f918b; font-size: 11px; }
.circle-catalog-chevron { width: 16px; flex: 0 0 auto; color: #557068; font-size: 18px; line-height: 1; text-align: center; transform: rotate(0deg); transition: transform .16s ease; }
.circle-catalog-chapter.is-open .circle-catalog-chevron { transform: rotate(90deg); }
.circle-catalog-chapter-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.circle-catalog-chapter-actions .secondary-btn { min-height: 31px; padding: 0 10px; font-size: 12px; background: #fff; }
.circle-catalog-classify { min-height: 31px; padding: 0 10px; border: 1px solid #c8ddd6; border-radius: 8px; color: #0d6e5c; background: #f3faf7; font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.circle-catalog-classify:hover { color: #084f42; border-color: #93cbb9; background: #eaf7f2; }
.circle-catalog-chapter-title-edit { min-height: 31px; padding: 0 10px; border: 1px solid #d8e5e0; border-radius: 8px; color: #456059; background: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.circle-catalog-chapter-title-edit:hover { color: #0d6e5c; border-color: #a9d9cc; background: #f4fbf8; }
.circle-catalog-add-section,
.circle-catalog-add-exam,
.circle-catalog-add-form { min-height: 31px; padding: 0 10px; border: 1px solid #d8e5e0; border-radius: 8px; color: #456059; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.circle-catalog-add-section span { display: inline-block; margin-left: 4px; color: #81938d; }
.circle-catalog-add-section:hover,
.circle-catalog-add-exam:hover,
.circle-catalog-add-form:hover { color: #0d6e5c; border-color: #a9d9cc; background: #f4fbf8; }
.circle-catalog-chapter-delete { min-height: 31px; padding: 0 10px; border: 1px solid #efd9d6; border-radius: 8px; color: #b5473e; background: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.circle-catalog-chapter-delete:hover { color: #9f2f27; border-color: #e4b7b2; background: #fff7f6; }
.circle-catalog-more { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid #dbe5e1; border-radius: 8px; color: #5d6d68; background: #fff; font-size: 17px; cursor: pointer; }
.circle-catalog-more:hover { color: #0d6e5c; border-color: #a9d9cc; background: #f4fbf8; }
.circle-catalog-text-action { min-height: 30px; padding: 2px 7px; border: 0; border-radius: 6px; color: #0d6e5c; background: transparent; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.circle-catalog-text-action:hover { background: #eaf6f2; }
.circle-catalog-text-action.is-warning { color: #8a5a14; }
.circle-catalog-text-action.is-warning:hover { color: #70470d; background: #fff5dc; }
.circle-catalog-text-action.is-danger { color: #b5473e; }
.circle-catalog-text-action.is-danger:hover { color: #9f2f27; background: #fff0ed; }
.circle-catalog-section-more { width: 30px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; color: #687872; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; }
.circle-catalog-section-more:hover { color: #0d6e5c; background: #eaf6f2; }
.circle-catalog-add-assignment { justify-self: start; min-height: 31px; margin: 8px 10px 10px 48px; padding: 0 11px; border: 1px dashed #cde0da; border-radius: 8px; color: #5d756e; background: #f8fbfa; font-size: 12px; font-weight: 700; cursor: pointer; }
.circle-catalog-add-assignment:hover { color: #0d6e5c; border-color: #97cdbd; background: #f0faf6; }
.circle-catalog-assignment-create-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 10px 10px 48px; }
.circle-catalog-assignment-create-actions .circle-catalog-add-assignment { margin: 0; }
.circle-catalog-add-assignment.is-exam { color: #7b5a12; border-color: #ead8a7; background: #fffaf0; }
.circle-catalog-add-assignment.is-exam:hover { color: #6f4c00; border-color: #dcbe72; background: #fff5dc; }
.circle-catalog-add-assignment.is-form { color: #0d6e5c; border-color: #b8ded3; background: #f2fbf7; }
.circle-catalog-add-assignment.is-form:hover { color: #095d4e; border-color: #85c8b4; background: #e8f8f2; }
.circle-catalog-chapter-body { display: grid; gap: 8px; padding: 9px; background: #fff; }
.circle-catalog-chapter-body[hidden] { display: none !important; }
.circle-catalog-course-head { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 11px 12px; }
.circle-catalog-cover { width: 64px; height: 48px; font-size: 20px; }
.circle-catalog-course-actions { flex-wrap: nowrap; }
.circle-catalog-course-actions .circle-catalog-more { flex: 0 0 auto; }
.circle-course-action-menu { display: grid; gap: 8px; }
.circle-course-action-menu button { width: 100%; display: block; padding: 11px 12px; border: 1px solid #e1e9e6; border-radius: 10px; color: #344054; background: #fff; text-align: left; cursor: pointer; }
.circle-course-action-menu button:hover { border-color: #addbcf; background: #f6fbf9; }
.circle-course-action-menu b { display: block; font-size: 12px; }
.circle-course-action-menu span { display: block; margin-top: 3px; color: #87938f; font-size: 10px; line-height: 1.45; }
.circle-course-setting-list { display: grid; gap: 8px; }
.circle-course-setting-list > label { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border: 1px solid #e1e9e6; border-radius: 10px; background: #fbfcfc; cursor: pointer; }
.circle-course-setting-list > label > span { min-width: 0; }
.circle-course-setting-list b { display: block; color: #344054; font-size: 12px; }
.circle-course-setting-list small { display: block; margin-top: 3px; color: #87938f; font-size: 10px; }
.circle-course-setting-list input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: #0d6e5c; }
.circle-course-audit-loading { min-height: 100px; display: grid; place-content: center; justify-items: center; gap: 9px; color: #667085; font-size: 12px; }
.circle-course-audit-table { max-height: 56vh; overflow: auto; }
.circle-course-audit-table .data-table { min-width: 760px; }
.circle-course-batch-list { display: grid; gap: 7px; }
.circle-course-batch-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 54px; padding: 9px 11px; border: 1px solid #e1e9e6; border-radius: 10px; background: #fbfcfc; cursor: pointer; }
.circle-course-batch-row:hover { border-color: #bfddd4; background: #f6fbf9; }
.circle-course-batch-row input { width: 17px; height: 17px; margin: 0; accent-color: #0d6e5c; }
.circle-course-batch-row > span { min-width: 0; }
.circle-course-batch-row b { display: block; overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.circle-course-batch-row small { display: block; margin-top: 3px; overflow: hidden; color: #87938f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.circle-course-batch-row em { color: #7b8794; font-size: 10px; font-style: normal; white-space: nowrap; }
.circle-course-batch-footer { width: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.circle-classify-intro { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 9px; padding: 11px 12px; border: 1px solid #dce9e4; border-radius: 11px; background: linear-gradient(135deg, #f3faf7, #fbfcfc); }
.circle-classify-intro > span { grid-row: 1 / span 2; min-height: 28px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 7px; color: #0d6e5c; background: #e3f3ed; font-size: 10px; font-weight: 800; }
.circle-classify-intro b { min-width: 0; overflow: hidden; color: #27463d; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.circle-classify-intro small { color: #74847f; font-size: 10px; line-height: 1.5; }
.circle-classify-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 12px 0 10px; padding: 4px; border-radius: 11px; background: #f0f5f3; }
.circle-classify-tabs button { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 10px; border: 1px solid transparent; border-radius: 8px; color: #667085; background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.circle-classify-tabs button b { min-width: 20px; padding: 1px 6px; border-radius: 999px; color: #7b8794; background: #e5ece9; font-size: 9px; }
.circle-classify-tabs button.active { border-color: #b8dacf; color: #0d6e5c; background: #fff; box-shadow: 0 2px 8px rgba(13, 110, 92, .07); }
.circle-classify-tabs button.active b { color: #fff; background: #0d6e5c; }
.circle-classify-panel[hidden] { display: none !important; }
.circle-classify-list { max-height: min(48vh, 430px); display: grid; gap: 7px; overflow: auto; padding: 1px 3px 1px 1px; }
.circle-classify-row { min-height: 56px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid #e1e9e6; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.circle-classify-row:hover { border-color: #b9dacf; background: #f7fbf9; }
.circle-classify-row.is-current { border-color: #b9dacf; background: #f2faf6; }
.circle-classify-row input { width: 18px; height: 18px; margin: 0; accent-color: #0d6e5c; }
.circle-classify-copy { min-width: 0; }
.circle-classify-copy b { display: block; overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.circle-classify-copy small { display: block; margin-top: 3px; overflow: hidden; color: #7b8794; font-size: 10px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.circle-classify-row > em { padding: 3px 7px; border-radius: 999px; color: #73837e; background: #f1f5f3; font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.circle-classify-row.is-current > em { color: #0d6e5c; background: #def2ea; }
.circle-section-source-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px; border-radius: 12px; background: #f1f6f4; }
.circle-section-source-tabs button { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px; color: #667085; background: transparent; cursor: pointer; }
.circle-section-source-tabs button span { color: #344054; font-size: 13px; font-weight: 800; }
.circle-section-source-tabs button small { color: #8b9995; font-size: 10px; }
.circle-section-source-tabs button.active { border-color: #b8ded3; color: #0d6e5c; background: #fff; box-shadow: 0 2px 8px rgba(13, 110, 92, .07); }
.circle-section-source-tabs button.active span,
.circle-section-source-tabs button.active small { color: #0d6e5c; }
.circle-section-picker-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 40px; margin-top: 12px; padding: 0 9px 0 12px; border: 1px solid #d8e5e0; border-radius: 10px; background: #fff; }
.circle-section-picker-search:focus-within { border-color: #83cbb7; box-shadow: 0 0 0 3px rgba(33, 176, 141, .1); }
.circle-section-picker-search > span { color: #71847d; font-size: 18px; line-height: 1; }
.circle-section-picker-search input { min-width: 0; height: 36px; padding: 0; border: 0; outline: 0; color: #344054; background: transparent; font-size: 12px; box-shadow: none; }
.circle-section-picker-search button { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #7c8c87; background: #eef4f1; font-size: 16px; cursor: pointer; }
.circle-section-picker-target { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; margin-top: 8px; padding: 7px 10px; border: 1px solid #e4ece9; border-radius: 9px; background: #fbfcfc; }
.circle-section-picker-target > span { color: #667085; font-size: 10px; font-weight: 700; white-space: nowrap; }
.circle-section-picker-target select { min-width: 0; height: 30px; padding: 0 28px 0 9px; border: 1px solid #dce7e3; border-radius: 7px; color: #344054; background: #fff; font-size: 11px; }
.circle-section-picker-filterbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.circle-section-picker-select { min-width: 160px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px; }
.circle-section-picker-select > span { color: #7b8794; font-size: 10px; white-space: nowrap; }
.circle-section-picker-select select { min-width: 0; height: 32px; padding: 0 28px 0 9px; border: 1px solid #dce7e3; border-radius: 8px; color: #475467; background: #fff; font-size: 11px; }
.circle-section-picker-typebar { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.circle-section-picker-typebar button { min-height: 30px; padding: 0 9px; border: 1px solid #dfe9e5; border-radius: 999px; color: #667085; background: #fff; font-size: 10px; cursor: pointer; }
.circle-section-picker-typebar button small { color: #98a2b3; font-size: 9px; }
.circle-section-picker-typebar button.active { border-color: #0d6e5c; color: #fff; background: #0d6e5c; }
.circle-section-picker-typebar button.active small { color: rgba(255,255,255,.74); }
.circle-section-picker-selection { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 8px 10px; border-radius: 9px; background: #f7faf9; }
.circle-section-picker-selection > span { color: #667085; font-size: 10px; }
.circle-section-picker-selection b { color: #0d6e5c; font-size: 12px; }
.circle-section-picker-selection > div { display: flex; align-items: center; gap: 6px; }
.circle-section-picker-selection button { min-height: 27px; padding: 0 8px; border: 1px solid #d8e5e0; border-radius: 7px; color: #456059; background: #fff; font-size: 9px; font-weight: 700; cursor: pointer; }
.circle-section-picker-selection button:disabled { color: #aeb8b5; cursor: default; opacity: .72; }
.circle-section-picker-results { max-height: min(34vh, 300px); margin-top: 10px; overflow: auto; overscroll-behavior: contain; }
.circle-section-picker-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.circle-section-picker-row { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid #e1e9e6; border-radius: 10px; color: #344054; background: #fff; text-align: left; cursor: pointer; }
.circle-section-picker-row:hover { border-color: #addbcf; background: #f6fbf9; }
.circle-section-picker-row.is-picked { border-color: #77c4ae; background: #f0faf6; box-shadow: inset 0 0 0 1px rgba(13, 110, 92, .08); }
.circle-section-picker-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #0d6e5c; background: #e7f6f0; font-size: 15px; font-weight: 800; }
.circle-section-picker-row.is-audio .circle-section-picker-icon { color: #246b9d; background: #eaf4fb; }
.circle-section-picker-row.is-image .circle-section-picker-icon { color: #9a6a12; background: #fff6df; }
.circle-section-picker-row.is-document .circle-section-picker-icon { color: #7a4d8e; background: #f6edf9; }
.circle-section-picker-row.is-other .circle-section-picker-icon { color: #536272; background: #eef2f6; }
.circle-section-picker-copy { min-width: 0; }
.circle-section-picker-copy b { display: block; overflow: hidden; color: #344054; font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.circle-section-picker-copy small { display: block; margin-top: 3px; overflow: hidden; color: #87938f; font-size: 9px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.circle-section-picker-check { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid #cad8d3; border-radius: 6px; color: #fff; background: #fff; font-size: 12px; font-weight: 900; }
.circle-section-picker-row.is-picked .circle-section-picker-check { border-color: #0d6e5c; background: #0d6e5c; }
.circle-section-picker-row em { padding: 4px 7px; border-radius: 999px; color: #0d6e5c; background: #eaf6f2; font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.circle-section-picker-row:hover em { color: #fff; background: #0d6e5c; }
.circle-section-picker-footer-actions { width: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.circle-section-source-notice { margin-bottom: 12px; }
.circle-course-picker-hint { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 10px; border: 1px solid #dce8e4; border-radius: 9px; color: #667085; background: #f7faf9; font-size: 11px; line-height: 1.55; }
.circle-course-picker-hint b { flex: 0 0 auto; color: #205e50; font-size: 11px; }
.circle-course-picker-hint span { min-width: 0; }
.circle-course-mode-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: start; gap: 14px; margin-top: 14px; }
.circle-course-mode-card { overflow: hidden; border: 1px solid #e1e9e6; border-radius: 13px; background: #fff; }
.circle-course-mode-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #edf1ef; background: #f8fbfa; }
.circle-course-mode-card-head b { display: block; color: #344054; font-size: 12px; }
.circle-course-mode-card-head span:not(.mini-tag) { display: block; margin-top: 3px; color: #87938f; font-size: 10px; }
.circle-course-mode-card .circle-course-mode-form { padding: 14px; }
.circle-course-mode-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-top: 1px solid #edf1ef; background: #fbfcfc; }
.circle-course-mode-footer span { color: #87938f; font-size: 10px; }
.circle-course-mode-help { padding: 13px; border: 1px solid #dcece7; border-radius: 12px; background: #f4faf7; }
.circle-course-mode-help b { color: #205e50; font-size: 12px; }
.circle-course-mode-help p { margin: 7px 0 0; color: #60706b; font-size: 10px; line-height: 1.7; }
.circle-course-mode-help strong { color: #0d6e5c; }
.circle-members-table { min-width: 1180px; }
.circle-stats-table { min-width: 1180px; }
.circle-table-wrap { overflow: auto; }
.circle-member-panel { overflow: hidden; }
.circle-learning-panel { overflow: hidden; }
.circle-learning-filterbar {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(160px, .8fr) minmax(160px, .8fr) auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e3ebe7;
  border-radius: 13px;
  background: linear-gradient(135deg, #f7fbf9, #fffaf0);
}
.circle-learning-filterbar label { min-width: 0; display: grid; gap: 5px; }
.circle-learning-filterbar label > span { color: #667085; font-size: 11px; font-weight: 800; }
.circle-learning-filterbar select {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 30px 0 10px;
  border: 1px solid #d8e5e0;
  border-radius: 9px;
  color: #344054;
  background: #fff;
  font-size: 12px;
}
.circle-learning-filterbar .secondary-btn { min-height: 36px; white-space: nowrap; }
.circle-learning-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding: 8px 11px;
  border-radius: 9px;
  color: #526070;
  background: #f5f9f7;
  font-size: 11px;
  line-height: 1.5;
}
.circle-learning-context b { color: #205e50; font-size: 12px; }
.circle-learning-context span { color: #82908b; text-align: right; }
.circle-learning-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.circle-learning-metric {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #e3ebe7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(16, 24, 40, .035);
}
.circle-learning-metric span { display: block; color: #667085; font-size: 12px; font-weight: 700; }
.circle-learning-metric b { display: block; margin-top: 5px; color: #0d6e5c; font-size: 24px; line-height: 1.15; }
.circle-learning-metric small { display: block; margin-top: 4px; color: #98a2b3; font-size: 10px; line-height: 1.45; }
.circle-learning-metric:nth-child(2) b { color: #8a5b00; }
.circle-learning-metric:nth-child(3) b { color: #1d6d93; }
.circle-learning-block { margin-top: 14px; }
.circle-learning-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.circle-learning-block-head h4 { margin: 0; color: #1d2939; font-size: 15px; }
.circle-learning-block-head span:not(.mini-tag) { display: block; margin-top: 3px; color: #87938f; font-size: 10px; }
.circle-learning-sections-table { width: 100%; min-width: 720px; }
.circle-learning-section-name b { display: block; color: #344054; font-size: 13px; }
.circle-learning-section-name small { display: block; margin-top: 2px; color: #98a2b3; font-size: 10px; }
.circle-learning-section-title { color: #344054; font-size: 13px; font-weight: 700; }
.circle-learning-scope-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.circle-learning-scope-badge.required { color: #176b59; background: #e9f7f2; }
.circle-learning-scope-badge.optional { color: #8b6413; background: #fff3d4; }
.circle-learning-rate { display: grid; grid-template-columns: minmax(66px, 120px) auto; align-items: center; gap: 9px; }
.circle-learning-rate > div { height: 7px; overflow: hidden; border-radius: 999px; background: #edf1f3; }
.circle-learning-rate i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #21b08d, #0d6e5c); }
.circle-learning-rate b { color: #526070; font-size: 11px; white-space: nowrap; }
.circle-learning-state {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.circle-learning-state.complete { color: #087a58; background: #e6f8ef; }
.circle-learning-state.progressing { color: #246b9d; background: #eaf4fb; }
.circle-learning-state.not-started { color: #667085; background: #f0f3f5; }
.circle-learning-count { display: block; margin-top: 3px; color: #98a2b3; font-size: 10px; white-space: nowrap; }
.circle-member-profile { display: grid; gap: 12px; }
.circle-member-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dcebe5;
  border-radius: 16px;
  background: linear-gradient(135deg, #f1faf6 0%, #fff 62%, #fff8e8 100%);
}
.circle-member-profile-person { min-width: 0; }
.circle-member-profile-person > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.circle-member-profile-person h3 { margin: 0; color: #172b26; font-size: 20px; line-height: 1.35; }
.circle-member-profile-person p { margin: 5px 0 0; color: #53645e; font-size: 12px; font-weight: 700; }
.circle-member-profile-person small { display: block; margin-top: 5px; color: #87938f; font-size: 10.5px; line-height: 1.5; }
.circle-member-profile-score { min-width: 132px; text-align: right; }
.circle-member-profile-score b { display: block; color: #0d6e5c; font-size: 28px; line-height: 1; }
.circle-member-profile-score span { display: block; margin-top: 6px; color: #7c8b86; font-size: 10px; }
.circle-member-profile-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.circle-member-profile-metrics > span { min-width: 0; padding: 12px; border: 1px solid #e5ece9; border-radius: 12px; background: #fbfcfc; }
.circle-member-profile-metrics b { display: block; overflow: hidden; color: #23352f; font-size: 17px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.circle-member-profile-metrics small { display: block; margin-top: 5px; color: #87938f; font-size: 10px; }
.circle-member-profile-card { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.circle-member-profile-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid #edf2f0; }
.circle-member-profile-card > header h4 { margin: 0; color: #1d2939; font-size: 15px; }
.circle-member-profile-card > header span { display: block; margin-top: 4px; color: #87938f; font-size: 10px; }
.circle-member-profile-source { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 11px; }
.circle-member-profile-source > div { min-width: 0; padding: 11px; border: 1px solid #e7eeeb; border-radius: 11px; background: #fafcfb; }
.circle-member-profile-source span { display: block; color: #87938f; font-size: 10px; }
.circle-member-profile-source b { display: block; overflow: hidden; margin-top: 5px; color: #263a34; font-size: 12px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.circle-member-profile-source small { display: block; overflow: hidden; margin-top: 4px; color: #8b9793; font-size: 9.5px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.circle-member-profile-courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 11px; }
.circle-member-profile-course { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px 12px; padding: 11px 12px; border: 1px solid #e5ece9; border-radius: 11px; background: #fbfcfc; }
.circle-member-profile-course > div { min-width: 0; }
.circle-member-profile-course b { display: block; overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.circle-member-profile-course span { display: block; margin-top: 3px; color: #87938f; font-size: 9.5px; }
.circle-member-profile-course strong { color: #0d6e5c; font-size: 15px; }
.circle-member-profile-course i { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 999px; background: #edf1f3; }
.circle-member-profile-course i em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #21b08d, #0d6e5c); }
.circle-member-profile-details { margin-top: 11px; border: 1px solid #e6ece9; border-radius: 11px; background: #fbfcfc; }
.circle-member-profile-details > summary { padding: 10px 12px; color: #53645e; font-size: 11px; font-weight: 750; cursor: pointer; list-style: none; }
.circle-member-profile-details > summary::-webkit-details-marker { display: none; }
.circle-member-profile-details > summary::after { content: '展开'; float: right; color: #0d6e5c; font-size: 10px; }
.circle-member-profile-details[open] > summary::after { content: '收起'; }
.circle-member-profile-details > summary b { color: #0d6e5c; }
.circle-member-profile-details > .data-panel,
.circle-member-profile-details > .circle-point-history { margin: 0 10px 10px; }
.circle-member-profile-table { min-width: 760px; }
.circle-member-profile-feedback { display: block; max-width: 320px; margin-top: 4px; color: #66746f; font-size: 10px; line-height: 1.45; }
.circle-member-profile-wallet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.circle-member-profile-wallet > span { padding: 11px; border: 1px solid #e6ece9; border-radius: 11px; background: #fbfcfc; }
.circle-member-profile-wallet b { display: block; color: #23352f; font-size: 17px; }
.circle-member-profile-wallet small { display: block; margin-top: 4px; color: #87938f; font-size: 9.5px; }
.circle-member-profile-posts { display: grid; gap: 7px; margin-top: 10px; }
.circle-member-profile-posts article { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 9px 10px; border-radius: 9px; background: #f7faf9; }
.circle-member-profile-posts b { color: #6e7d78; font-size: 10px; }
.circle-member-profile-posts span { overflow: hidden; color: #40514b; font-size: 11px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.circle-member-profile-empty-line { margin: 10px 0 0; padding: 10px; border-radius: 9px; color: #87938f; background: #f8faf9; font-size: 10.5px; }
.circle-learning-member-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #dcece7;
  border-radius: 13px;
  background: linear-gradient(135deg, #f2faf7, #fffaf0);
}
.circle-learning-member-hero > div { min-width: 0; }
.circle-learning-member-hero b { display: block; color: #1d2939; font-size: 15px; }
.circle-learning-member-hero span { display: block; margin-top: 3px; color: #667085; font-size: 10px; }
.circle-learning-member-score { text-align: right; }
.circle-learning-member-score b { color: #0d6e5c; font-size: 24px; }
.circle-learning-member-score small { display: block; margin-top: 2px; color: #87938f; font-size: 9px; }
.circle-learning-member-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.circle-learning-member-metrics > span {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e6ece9;
  border-radius: 10px;
  background: #fbfcfc;
}
.circle-learning-member-metrics b { display: block; overflow: hidden; color: #344054; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.circle-learning-member-metrics small { display: block; margin-top: 3px; color: #98a2b3; font-size: 9px; }
.circle-stats-table .circle-member-cell b { font-size: 14px; }
.circle-stats-table .circle-member-cell small { font-size: 11px; }
body.admin-mode .circle-members-table th,
body.admin-mode .circle-members-table td { font-size: 14.7px; }
body.admin-mode .circle-members-table td { line-height: 1.55; }
.circle-member-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.circle-member-cell b { display: block; color: #344054; font-size: 12px; }
.circle-member-cell small { display: block; margin-top: 2px; color: #98a2b3; font-size: 10px; }
.circle-members-table .circle-member-cell b { font-size: 15.75px; line-height: 1.35; }
.circle-members-table .circle-member-cell small { margin-top: 3px; font-size: 12.6px; line-height: 1.35; }
.circle-members-table .circle-role { min-height: 25px; padding: 3px 9px; font-size: 12.6px; }
.circle-members-table .circle-avatar.sm { font-size: 12.5px; }
.circle-members-table th,
.circle-members-table td { white-space: nowrap; }
.circle-members-table .circle-member-drill { min-width: 178px; }
.circle-members-table .row-actions { min-width: 310px; white-space: nowrap; }
.circle-members-table .row-actions button { min-height: 33px; padding: 0 10px; font-size: 14px; white-space: nowrap; }
.circle-member-phone,
.circle-member-group {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 9px;
  border-radius: 8px;
  color: #344054;
  background: #f5f8f7;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.circle-member-phone { font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.circle-member-group { color: #526070; background: #f2f6f4; }
.circle-member-phone.is-missing,
.circle-member-group.is-missing { color: #98a2b3; background: #f7f8f8; font-weight: 500; }
.circle-member-entitlement { display: inline-grid; gap: 3px; min-width: 128px; }
.circle-member-entitlement b { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: #667085; font-size: 13px; }
.circle-member-entitlement b::before { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #98a2b3; content: ""; }
.circle-member-entitlement small { color: #98a2b3; font-size: 11px; font-weight: 500; }
.circle-member-entitlement.is-valid b { color: #087a61; }
.circle-member-entitlement.is-valid b::before { background: #16a77f; box-shadow: 0 0 0 3px #e5f7f1; }
.circle-member-entitlement.is-valid small { color: #52736a; }
.circle-member-entitlement.is-expired b { color: #b42318; }
.circle-member-entitlement.is-expired b::before { background: #e04f45; box-shadow: 0 0 0 3px #fff0ee; }
.circle-member-entitlement.is-expired small { color: #9a6762; }
.circle-member-entitlement.is-unknown b { color: #7a5a19; }
.circle-member-entitlement.is-unknown b::before { background: #d89b2b; box-shadow: 0 0 0 3px #fff6df; }
.circle-role { display: inline-flex; min-height: 21px; align-items: center; padding: 2px 7px; border-radius: 999px; color: #526070; background: #f2f4f7; font-size: 10px; font-weight: 800; white-space: nowrap; }
.circle-role-assistant { color: #096b57; background: #e8f7f1; }
.circle-role-monitor { color: #8a5b00; background: #fff3d6; }
.circle-role-guest { color: #3f5da8; background: #edf2ff; }
.circle-role-owner { color: #8d2c60; background: #fbeaf3; }
.circle-avatar { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #24b28f, #0d6b59); font-size: 14px; font-weight: 800; }
.circle-avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.circle-avatar img { width: 100%; height: 100%; object-fit: cover; }
.circle-progress-cell { display: inline-block; width: 92px; height: 7px; margin-right: 7px; overflow: hidden; border-radius: 999px; background: #edf1f3; vertical-align: middle; }
.circle-progress-cell i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #21b08d, #0d6e5c); }
.circle-points-layout { align-items: start; }
.circle-rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.circle-rule-grid label { display: grid; grid-template-columns: minmax(0, 1fr) 88px; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid #edf0f3; border-radius: 10px; background: #fbfcfd; }
.circle-rule-grid span { color: #344054; font-size: 12px; font-weight: 700; }
.circle-rule-grid input { width: 88px; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; text-align: right; }
.circle-rule-grid em { grid-column: 1 / -1; margin-top: -4px; color: #98a2b3; font-size: 9px; font-style: normal; }
.circle-rank-list { display: grid; }
.circle-rank-row { display: grid; grid-template-columns: 28px auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid #eef1f4; }
.circle-rank-row:last-child { border-bottom: 0; }
.circle-rank-row .rank { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: #667085; background: #f2f4f7; font-size: 11px; }
.circle-rank-row .rank-1 { color: #7a5100; background: #fff0bf; }
.circle-rank-row .rank-2 { color: #526070; background: #edf0f3; }
.circle-rank-row .rank-3 { color: #8a4f26; background: #f8e7dc; }
.circle-rank-row > div { min-width: 0; }
.circle-rank-row strong { display: block; color: #344054; font-size: 12px; }
.circle-rank-row span { display: block; margin-top: 2px; color: #98a2b3; font-size: 9px; }
.circle-rank-row em { color: #0d6e5c; font-size: 13px; font-style: normal; font-weight: 800; }
.circle-settings-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.circle-settings-summary > div { padding: 12px; border: 1px solid #edf0f3; border-radius: 11px; background: #fbfcfd; }
.circle-settings-summary span { display: block; color: #98a2b3; font-size: 10px; }
.circle-settings-summary b { display: block; margin-top: 4px; color: #344054; font-size: 13px; }
.circle-share-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfd; }
.circle-share-cover { height: 120px; overflow: hidden; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #14866d, #0d6e5c); font-size: 38px; }
.circle-share-cover img { width: 100%; height: 100%; object-fit: cover; }
.circle-share-card h3 { margin: 6px 0 8px; color: #1d2939; font-size: 18px; }
.circle-share-card p { margin: 0; color: #667085; font-size: 12px; line-height: 1.7; }
.circle-public-switch { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 12px; padding: 11px 12px; border: 1px solid #dcece7; border-radius: 11px; background: #f5fbf8; cursor: pointer; }
.circle-public-switch input { width: auto; margin-top: 2px; accent-color: var(--green); }
.circle-public-switch b { display: block; color: #1d2939; font-size: 13px; }
.circle-public-switch small { display: block; margin-top: 3px; color: #667085; font-size: 10px; }
.circle-public-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.circle-public-summary > div { padding: 11px; border: 1px solid #edf0f3; border-radius: 10px; background: #fbfcfd; }
.circle-public-summary span { display: block; color: #98a2b3; font-size: 10px; }
.circle-public-summary b { display: block; margin-top: 4px; color: #344054; font-size: 14px; }
.circle-public-selected { margin-top: 11px; padding: 10px 11px; border-radius: 10px; background: #f8faf9; }
.circle-public-selected h4 { margin: 0 0 7px; color: #344054; font-size: 12px; }
.circle-public-selected span { display: inline-block; margin: 0 6px 6px 0; padding: 4px 8px; border-radius: 999px; color: #526070; background: #fff; font-size: 10px; }
.circle-public-selected em { color: #98a2b3; font-size: 10px; font-style: normal; }
.circle-public-picker { display: grid; gap: 9px; max-height: 58vh; overflow: auto; }
.circle-public-pick-course { padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.circle-public-pick-course > label { display: flex; align-items: center; gap: 8px; }
.circle-public-pick-course > label input { width: auto; margin: 0; accent-color: var(--green); }
.circle-public-pick-course > label b { color: #1d2939; font-size: 13px; }
.circle-public-pick-course > label small { margin-left: auto; color: #98a2b3; font-size: 9px; }
.circle-public-pick-course > div { display: flex; flex-wrap: wrap; gap: 7px; margin: 9px 0 0 24px; }
.circle-public-pick-course > div label { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid #e4e9ec; border-radius: 8px; color: #526070; background: #fbfcfd; font-size: 10px; }
.circle-public-pick-course > div input { width: auto; margin: 0; accent-color: var(--green); }
.circle-empty-hero { min-height: 260px; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 30px; }
.circle-empty-hero h3 { margin: 0; color: #1d2939; font-size: 20px; }
.circle-empty-hero p { max-width: 520px; margin: 8px 0 16px; color: #667085; font-size: 13px; line-height: 1.7; }
.circle-empty-mark { width: 86px; height: 86px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 28px; color: #0d6e5c; background: linear-gradient(145deg, #e9f8f2, #fff5dc); font-size: 42px; }
.circle-empty { min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.circle-empty .circle-empty-mark { width: 66px; height: 66px; margin-bottom: 10px; border-radius: 22px; font-size: 30px; }
.circle-course-checks { display: flex; flex-wrap: wrap; gap: 7px; max-height: 150px; overflow: auto; padding: 2px 0; }
.circle-course-pick-button { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; text-align: left; background: #fff; cursor: pointer; }
.circle-course-pick-button > span { flex: 0 0 auto; color: #0d6e5c; font-size: 12px; font-weight: 800; }
.circle-course-picker-summary { min-width: 0; text-align: right; }
.circle-course-picker-summary b { display: block; color: #344054; font-size: 12px; }
.circle-course-picker-summary small { display: block; max-width: 460px; margin-top: 2px; overflow: hidden; color: #98a2b3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.circle-course-picker-empty { color: #98a2b3; font-size: 11px; }
.circle-course-picker-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.circle-course-picker-toolbar input { flex: 1 1 auto; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.circle-course-picker-list { max-height: 55vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.circle-course-picker-row { display: grid; grid-template-columns: auto 48px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #eef1f4; cursor: pointer; }
.circle-course-picker-row:last-child { border-bottom: 0; }
.circle-course-picker-row:hover { background: #f7fbf9; }
.circle-course-picker-row input { width: auto; margin: 0; accent-color: var(--green); }
.circle-course-picker-row .thumb { width: 44px; height: 34px; margin: 0; border-radius: 8px; font-size: 15px; }
.circle-course-picker-row b { display: block; color: #344054; font-size: 12px; }
.circle-course-picker-row small { display: block; margin-top: 3px; color: #98a2b3; font-size: 10px; }
.circle-release-settings { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #f8faf9; }
.circle-release-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.circle-release-head b { color: #1d2939; font-size: 14px; }
.circle-release-head span { color: #98a2b3; font-size: 10px; }
.circle-scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.circle-scope-grid .form-field { min-width: 0; padding: 10px; border: 1px solid #e7ecef; border-radius: 11px; background: #fff; }
.circle-scope-grid .form-field > label { margin-bottom: 6px; }
.circle-validity-panel { background: linear-gradient(180deg, #fbfdfc 0%, #f5faf8 100%); }
.circle-validity-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.circle-validity-mode {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #dfe8e4;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.circle-validity-mode:has(input:checked) {
  border-color: #74b9a7;
  background: #f0faf6;
  box-shadow: 0 0 0 2px rgba(13, 110, 92, .07);
}
.circle-validity-mode input { width: auto; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--green); }
.circle-validity-mode span { min-width: 0; }
.circle-validity-mode b { display: block; color: #29463f; font-size: 12px; }
.circle-validity-mode small { display: block; margin-top: 3px; color: #7c8b86; font-size: 10px; line-height: 1.5; }
.circle-validity-config { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(280px, 1.28fr); gap: 10px; margin-top: 10px; }
.circle-validity-config > [hidden] { display: none; }
.circle-validity-config .form-field {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #e4ebe8;
  border-radius: 11px;
  background: #fff;
}
.circle-validity-input-row { display: flex; align-items: center; gap: 8px; }
.circle-validity-input-row input { width: 130px; }
.circle-validity-input-row span { color: #667085; font-size: 12px; }
.circle-validity-note {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #e4ebe8;
  border-radius: 11px;
  background: rgba(255,255,255,.78);
}
.circle-validity-note b { color: #0d6e5c; font-size: 12px; }
.circle-validity-note span { color: #667085; font-size: 11px; line-height: 1.6; }
@media (max-width: 900px) {
  .circle-validity-modes { grid-template-columns: 1fr; }
  .circle-validity-config { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .circle-validity-mode { padding: 10px; }
}
.circle-cover-editor { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.circle-cover-preview { width: 150px; height: 90px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; color: #98a2b3; background: #eef2f6; font-size: 11px; }
.circle-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.circle-cover-buttons { display: flex; flex-direction: column; gap: 8px; }
.circle-feedback { margin-top: 9px; padding: 9px 10px; border-radius: 10px; background: #f3faf7; }
.circle-feedback b { display: block; color: #0d6e5c; font-size: 11px; }
.circle-feedback span { display: block; margin-top: 4px; color: #526070; font-size: 12px; line-height: 1.6; }

/* ===== 圈子：学员端 ===== */
.circle-customer-page { padding: 12px clamp(12px, 3.6vw, 16px) 26px; }
.circle-customer-loading { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #667085; font-size: 12px; }
.circle-customer-loading.small { min-height: 90px; flex-direction: row; }
.circle-customer-hero { overflow: hidden; border-radius: 20px; color: #fff; background: linear-gradient(145deg, #0d6e5c, #075349 70%, #17493f); box-shadow: 0 16px 34px rgba(13,110,92,.18); }
.circle-customer-cover { height: 132px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(242,184,75,.2)); font-size: 48px; }
.circle-customer-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.circle-customer-title { padding: 14px 16px 10px; }
.circle-customer-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.circle-customer-kicker { color: #bcebdd; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.circle-customer-title h2 { margin: 4px 0 5px; font-size: 18px; }
.circle-customer-share { flex: 0 0 auto; padding: 5px 9px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; color: #fff; background: rgba(255,255,255,.12); font-size: 10px; font-weight: 700; }
.circle-public-page { display: grid; gap: 13px; }
.circle-public-block { padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.circle-public-course-list { display: grid; gap: 8px; }
.circle-public-course { padding: 10px; border-radius: 11px; background: #f6faf8; }
.circle-public-course > b { color: #1d2939; font-size: 13px; }
.circle-public-course > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.circle-public-course span { padding: 4px 7px; border-radius: 7px; color: #526070; background: #fff; font-size: 10px; }
.circle-public-join { padding: 16px; border-radius: 16px; color: #fff; background: linear-gradient(145deg, #0d6e5c, #16493f); }
.circle-public-join b { font-size: 15px; }
.circle-public-join p { margin: 7px 0 12px; color: rgba(255,255,255,.78); font-size: 11px; line-height: 1.65; }
.circle-public-price { margin: 0 0 10px; color: #f8d58a; font-size: 20px; font-weight: 900; }
.circle-post.public { border-color: #e3ece8; }
.circle-customer-title p { margin: 0; color: rgba(255,255,255,.78); font-size: 11px; line-height: 1.65; }
.circle-customer-title { min-width: 0; }
.circle-customer-rich { width: 100%; min-width: 0; color: rgba(255,255,255,.8); font-size: 11px; line-height: 1.65; }
.circle-customer-rich .rich-text { width: 100%; min-width: 0; color: inherit; font-size: inherit; line-height: inherit; }
.circle-customer-rich img { display: block; width: auto; max-width: 100%; height: auto; max-height: none; object-fit: initial; border-radius: 10px; }
.circle-customer-rich .circle-detail-view-images img { width: 100%; }
.circle-my-strip { display: grid; grid-template-columns: minmax(0, 1.65fr) repeat(3, minmax(0, .55fr)); gap: 8px; padding: 12px 14px 14px; border-top: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.08); }
.circle-my-strip > div { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.circle-my-strip > div:first-child { flex-direction: row; align-items: flex-start; gap: 8px; }
.circle-my-strip > div:first-child > .circle-member-info { width: 100%; min-width: 0; align-items: flex-start; gap: 4px; text-align: left; }
.circle-member-name-row { display: flex; width: 100%; min-width: 0; align-items: center; gap: 8px; }
.circle-member-name-row > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.circle-member-name-row .circle-role { flex: 0 0 auto; margin-top: 0; }
.circle-name-edit { flex: 0 0 auto; min-height: 24px; padding: 2px 7px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.86); background: rgba(255,255,255,.1); font-size: 9px; line-height: 1.4; cursor: pointer; }
.circle-name-edit:hover { border-color: rgba(255,255,255,.36); background: rgba(255,255,255,.16); }
.circle-validity-inline { display: block; width: 100%; margin-top: 0; overflow: hidden; color: rgba(255,255,255,.58); font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.circle-validity-inline.is-expired { color: #ffd5ca; }
.circle-my-strip b { font-size: 16px; }
.circle-my-strip small { margin-top: 2px; color: rgba(255,255,255,.66); font-size: 9px; }
.circle-my-strip .circle-role { color: #d8fff3; background: rgba(255,255,255,.14); }
.circle-join-badge { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.08); }
.circle-join-badge b { color: #f8d58a; font-size: 18px; }
.circle-join-badge span { color: rgba(255,255,255,.72); font-size: 10px; text-align: right; }
.circle-purchase-card { display: grid; gap: 10px; margin-top: 12px; padding: 15px; border: 1px solid #e4ece9; border-radius: 17px; background: #fff; box-shadow: 0 8px 24px rgba(29,41,57,.06); }
.circle-purchase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.circle-purchase-head span { display: block; color: #98a2b3; font-size: 10px; }
.circle-purchase-head b { display: block; margin-top: 2px; color: #0d6e5c; font-size: 24px; }
.circle-purchase-head del { color: #98a2b3; font-size: 12px; }
.circle-purchase-card p { margin: 0; color: #526070; font-size: 12px; line-height: 1.7; }
.circle-purchase-card > small { color: #98a2b3; font-size: 10px; line-height: 1.55; }
.circle-purchase-courses { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-radius: 11px; background: #f5faf8; }
.circle-purchase-courses span { width: 100%; color: #667085; font-size: 10px; }
.circle-purchase-courses b { padding: 4px 7px; border-radius: 7px; color: #0d6e5c; background: #fff; font-size: 10px; }
.circle-purchase-confirm { display: grid; gap: 10px; font-size: 12px; line-height: 1.7; }
.circle-purchase-confirm > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #f7faf9; }
.circle-purchase-confirm > div span { color: #667085; }
.circle-purchase-confirm > div b { color: #0d6e5c; font-size: 17px; }
.circle-purchase-confirm del { color: #98a2b3; }
.circle-purchase-confirm ul { margin: 0; padding-left: 18px; color: #526070; }
.circle-purchase-confirm p { margin: 0; color: #667085; font-size: 11px; }
.circle-lead-popup { display: grid; justify-items: center; gap: 8px; padding: 3px 4px 8px; text-align: center; }
.circle-lead-popup-kicker { padding: 4px 10px; border-radius: 999px; color: #8a5b06; background: #fff4d6; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.circle-lead-popup h3 { margin: 2px 0 0; color: #1d2939; font-size: 19px; line-height: 1.45; }
.circle-lead-popup p { max-width: 360px; margin: 0; color: #667085; font-size: 12px; line-height: 1.7; }
.circle-lead-popup-qr { position: relative; display: grid; justify-items: center; gap: 7px; width: min(100%, 252px); margin-top: 5px; padding: 13px; border: 1px solid #e5d29e; border-radius: 15px; background: linear-gradient(145deg, #fffdf7, #f4fbf7); box-shadow: 0 10px 24px rgba(122, 81, 0, .08); }
.circle-lead-popup-qr img { width: 190px; height: 190px; display: block; object-fit: contain; border-radius: 9px; background: #fff; }
.circle-lead-popup-qr span { color: #7a5b1d; font-size: 11px; font-weight: 800; }
.circle-checkin-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 0; padding: 11px 12px; border: 1px solid #e4ece9; border-radius: 14px; background: #fff; }
.circle-checkin-bar b { display: block; color: #1d2939; font-size: 13px; }
.circle-checkin-bar span { display: block; margin-top: 2px; color: #98a2b3; font-size: 10px; }
.circle-checkin-bar button { flex: 0 0 auto; padding: 7px 12px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #21b08d, #0d6e5c); font-size: 11px; font-weight: 800; }
.circle-checkin-bar button.done { color: #667085; background: #eef2f1; }
.circle-checkin-bar.is-expired { border-color: #f0d7d2; background: #fff8f6; }
.circle-checkin-bar.is-expired button { color: #a15b50; background: #f7e7e3; }
.circle-customer-tabs { display: flex; gap: 1px; margin: 14px 0 12px; padding: 3px; overflow-x: auto; border-radius: 12px; background: #eef3f1; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.circle-customer-tabs::-webkit-scrollbar { display: none; }
.circle-customer-tabs button { flex: 1 1 0; min-width: 0; height: 34px; padding: 0 3px; border: 0; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 1px; color: #667085; background: transparent; font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.circle-customer-tabs button.active { color: #0d6e5c; background: #fff; box-shadow: 0 3px 10px rgba(29,41,57,.07); }
.circle-tab-badge { display: inline-grid; min-width: 13px; height: 13px; place-items: center; margin-left: 0; padding: 0 3px; border-radius: 999px; color: #fff; background: #e05252; font-size: 8px; font-weight: 900; vertical-align: 1px; }

/* 圈子沉浸浏览：收起全站底部导航，并把大页眉压缩成单行返回栏。 */
.mini-app.circle-detail-active .mini-header::before,
.mini-app.circle-detail-active .mini-header::after { display: none !important; }
.mini-app.circle-detail-active .mini-nav,
body.customer-mode .mini-app.circle-detail-active .mini-nav,
body.customer-mode .phone-wrap.circle-detail-active .mini-nav,
#appShell.circle-detail-active .android-nav {
  display: none !important;
  flex: 0 0 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.mini-app.circle-detail-active .mini-view { flex: 1 1 auto; min-height: 0; }
.circle-mobile-topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: calc(6px + env(safe-area-inset-top, 0px)) 14px 6px;
}
.circle-mobile-back {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0 0 2px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.1);
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
}
.circle-mobile-topbar > b {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: .01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.circle-mobile-brand { display: flex; align-items: center; justify-content: flex-end; }
.circle-mobile-brand img { display: block; width: 102px; height: 31px; object-fit: contain; object-position: right center; }
#appShell.circle-detail-active .android-header {
  height: 44px;
  padding: 0 12px;
  color: #fff;
  border-bottom: 2px solid var(--gold);
  background: linear-gradient(145deg, #171c1a 0%, #17372f 58%, #0e241e 100%);
}
#appShell.circle-detail-active .android-view { top: 76px; bottom: var(--android-system-nav-height); }
body.customer-mode #appShell.circle-detail-active .android-view { bottom: 0; }
#appShell.circle-detail-active .android-nav { display: none !important; }
.circle-mobile-topbar.android { min-height: 44px; padding: 0; gap: 9px; }
.circle-mobile-topbar.android .circle-mobile-brand img { width: 92px; height: 28px; }
@media (max-width: 360px) {
  .circle-mobile-topbar { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; padding-left: 11px; padding-right: 11px; }
  .circle-mobile-back { width: 32px; height: 32px; font-size: 25px; }
  .circle-mobile-topbar > b { font-size: 17px; }
  .circle-mobile-brand img { width: 88px; height: 27px; }
}

.circle-challenge-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.circle-challenge-summary > span { display: flex; align-items: baseline; gap: 5px; min-width: 0; padding: 10px 12px; border: 1px solid #e2ece8; border-radius: 12px; background: #f8fbfa; }
.circle-challenge-summary b { color: #0d6e5c; font-size: 20px; line-height: 1; }
.circle-challenge-summary small { overflow: hidden; color: #667085; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.circle-challenge-admin-list,
.circle-challenge-list { display: grid; gap: 10px; }
.circle-challenge-admin-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.circle-challenge-admin-row.is-closed { opacity: .68; background: #fafbfb; }
.circle-challenge-admin-main { min-width: 0; flex: 1 1 auto; }
.circle-challenge-admin-main > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.circle-challenge-admin-main h4 { margin: 6px 0 4px; color: #1d2939; font-size: 14px; }
.circle-challenge-admin-main p { margin: 0; color: #667085; font-size: 12px; line-height: 1.65; }
.circle-challenge-admin-row > button { flex: 0 0 auto; }
.circle-challenge-admin-row > .mini-btn { min-height: 32px; padding: 0 11px; border: 1px solid #d5e7e0; border-radius: 9px; color: #0d6e5c; background: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.circle-challenge-state,
.circle-challenge-period { padding: 2px 7px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.circle-challenge-state { color: #0d6e5c; background: #eaf8f3; }
.circle-challenge-admin-row.is-closed .circle-challenge-state { color: #667085; background: #eef1f2; }
.circle-challenge-period { color: #8a5b06; background: #fff5df; }
.circle-challenge-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; color: #98a2b3; font-size: 10px; }
.circle-challenge-strip { display: grid; gap: 8px; padding: 12px; border: 1px solid #dcece7; border-radius: 15px; background: linear-gradient(145deg, #f5fcf9, #fff); }
.circle-challenge-strip .mini-btn { min-height: 28px; padding: 0 9px; border: 1px solid #cfe4dd; border-radius: 8px; color: #0d6e5c; background: #fff; font-size: 10px; font-weight: 700; cursor: pointer; }
.circle-challenge-strip-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(66px, 112px) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e5efeb; border-radius: 11px; text-align: left; background: #fff; cursor: pointer; }
.circle-challenge-strip-row > span { min-width: 0; }
.circle-challenge-strip-row b { display: block; overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.circle-challenge-strip-row small { display: block; margin-top: 3px; color: #98a2b3; font-size: 9px; }
.circle-challenge-strip-row i { height: 6px; overflow: hidden; border-radius: 999px; background: linear-gradient(90deg, #21b08d 0 var(--p), #edf1f3 var(--p) 100%); }
.circle-challenge-strip-row em { color: #0d6e5c; font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }
.circle-challenge-card { padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.circle-challenge-card.is-claimed { opacity: .76; background: #f8faf9; }
.circle-challenge-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.circle-challenge-card-head > div { min-width: 0; }
.circle-challenge-card-head span { color: #14866d; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.circle-challenge-card-head h4 { margin: 4px 0 0; color: #1d2939; font-size: 15px; line-height: 1.45; }
.circle-challenge-card-head em { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; color: #8a5b06; background: #fff4d6; font-size: 10px; font-style: normal; font-weight: 800; }
.circle-challenge-card > p { margin: 8px 0 0; color: #667085; font-size: 11px; line-height: 1.65; }
.circle-challenge-progress { height: 7px; margin-top: 11px; overflow: hidden; border-radius: 999px; background: #edf1f3; }
.circle-challenge-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #21b08d, #0d6e5c); }
.circle-challenge-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.circle-challenge-card-foot > span { color: #667085; font-size: 10px; }
.circle-challenge-claim { flex: 0 0 auto; min-height: 31px; padding: 0 11px; border: 0; border-radius: 9px; color: #fff; background: linear-gradient(145deg, #21b08d, #0d6e5c); font-size: 10px; font-weight: 800; }
.circle-challenge-claim.pending { display: inline-flex; align-items: center; color: #667085; background: #eef3f1; font-weight: 700; }
.circle-challenge-claim.done { color: #0d6e5c; background: #eaf8f3; }
.circle-notice-center { display: grid; gap: 10px; }
.circle-notice-center .circle-section-title { align-items: center; gap: 12px; }
.circle-notice-center .circle-section-title > div { display: flex; min-width: 0; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; }
.circle-notice-center .circle-section-title span { color: #98a2b3; font-size: 10px; }
.circle-notice-readall {
  flex: 0 0 auto;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid #cfe7df;
  border-radius: 999px;
  color: #0d6e5c;
  background: linear-gradient(145deg, #f6fcfa, #e8f7f2);
  box-shadow: 0 3px 9px rgba(13,110,92,.07);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.circle-notice-readall::before { content: "✓"; margin-right: 5px; font-size: 11px; font-weight: 900; }
.circle-notice-readall:hover { border-color: #b6dcd1; background: #e4f5ef; }
.circle-notice-readall:active { transform: translateY(1px); }
.circle-notice-list { display: grid; gap: 8px; }
.circle-notice-row { width: 100%; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; text-align: left; background: #fff; }
.circle-notice-row.unread { border-color: #bce5d9; background: #f7fcfa; }
.circle-notice-dot { width: 7px; height: 7px; border-radius: 50%; background: #d7dedb; }
.circle-notice-row.unread .circle-notice-dot { background: #21b08d; box-shadow: 0 0 0 3px rgba(33,176,141,.12); }
.circle-notice-copy { min-width: 0; }
.circle-notice-copy b { display: block; color: #344054; font-size: 12px; }
.circle-notice-copy small { display: block; margin-top: 3px; overflow: hidden; color: #667085; font-size: 11px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.circle-notice-copy em { display: block; margin-top: 4px; color: #98a2b3; font-size: 9px; font-style: normal; }
.circle-notice-arrow { color: #0d6e5c; font-size: 20px; }
.circle-duty-center { display: grid; gap: 10px; }
.circle-duty-center .circle-section-title > div { display: flex; align-items: baseline; gap: 8px; }
.circle-duty-center .circle-section-title span { color: #98a2b3; font-size: 10px; }
.circle-duty-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; border: 1px solid #d8e9e3; border-radius: 14px; background: linear-gradient(145deg, #effaf6, #fff); }
.circle-duty-card b { display: block; color: #1d2939; font-size: 13px; }
.circle-duty-card span { display: block; margin-top: 3px; color: #667085; font-size: 10px; }
.circle-duty-card em { color: #0d6e5c; font-size: 22px; font-style: normal; font-weight: 900; }
.circle-report-list.mobile { display: grid; gap: 8px; }
.circle-mod-report { padding: 11px; border: 1px solid #f0dfcf; border-radius: 12px; background: #fffaf5; }
.circle-mod-report b { color: #7a3f12; font-size: 12px; }
.circle-mod-report p { margin: 4px 0; color: #526070; font-size: 11px; line-height: 1.55; }
.circle-mod-report small { color: #98a2b3; font-size: 10px; }
.circle-mod-report .row-actions { margin-top: 8px; }
.circle-mod-post-list { display: grid; gap: 8px; }
.circle-mod-post { padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.circle-mod-post.is-hidden { opacity: .66; background: #fafafa; }
.circle-mod-post-head { display: flex; align-items: center; gap: 8px; }
.circle-mod-post-head b { display: block; color: #344054; font-size: 12px; }
.circle-mod-post-head small { display: block; margin-top: 2px; color: #98a2b3; font-size: 9px; }
.circle-mod-post > p { margin: 7px 0; color: #526070; font-size: 11px; line-height: 1.55; }
.circle-mod-post .row-actions { justify-content: flex-end; }
.circle-feed { display: grid; gap: 10px; }
.circle-feed-tags { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.circle-feed-tags button { flex: 0 0 auto; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: #667085; background: #fff; font-size: 10px; }
.circle-feed-tags button.active { color: #fff; border-color: #0d6e5c; background: #0d6e5c; }
.circle-compose-entry { width: 100%; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; text-align: left; background: #fff; }
.circle-compose-plus { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #21b08d, #0d6e5c); font-size: 20px; }
.circle-compose-entry b { display: block; color: #344054; font-size: 13px; }
.circle-compose-entry small { display: block; margin-top: 3px; color: #98a2b3; font-size: 10px; }
.circle-compose-entry em { color: #0d6e5c; font-size: 11px; font-style: normal; font-weight: 800; }
.circle-post { padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.circle-post-head { display: flex; align-items: center; gap: 8px; }
.circle-post-head > div { min-width: 0; flex: 1; }
.circle-post-head b { display: block; color: #344054; font-size: 12px; }
.circle-post-head span { display: block; margin-top: 2px; color: #98a2b3; font-size: 9px; }
.circle-pinned { flex: 0 0 auto; padding: 2px 6px; border-radius: 999px; color: #8a5b00 !important; background: #fff2cd; font-size: 9px !important; font-weight: 800; }
.circle-featured { flex: 0 0 auto; padding: 2px 6px; border-radius: 999px; color: #7c4a00 !important; background: #fff0c7; font-size: 9px !important; font-weight: 800; }
.circle-post.announcement { border-color: #f1d597; background: linear-gradient(180deg, #fffaf0, #fff); }
.circle-post-copy { margin-top: 10px; color: #344054; font-size: 13px; line-height: 1.78; word-break: break-word; }
.circle-post-images { display: grid; gap: 5px; margin-top: 10px; }
.circle-post-images.count-1 { grid-template-columns: 1fr; }
.circle-post-images.count-2 { grid-template-columns: repeat(2, 1fr); }
.circle-post-images.count-3 { grid-template-columns: repeat(3, 1fr); }
.circle-post-images.count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.circle-post-images.count-many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.circle-post-image { aspect-ratio: 1; min-height: 90px; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: #eef2f6; }
.circle-post-images.count-1 .circle-post-image { aspect-ratio: 16 / 10; }
.circle-post-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.circle-linked-course { margin-top: 9px; padding: 7px 9px; border: 1px solid #d9eee7; border-radius: 9px; color: #0d6e5c; background: #f4fbf8; font-size: 10px; font-weight: 700; }
.circle-post-actions { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #f0f2f4; }
.circle-post-actions button { padding: 5px 8px; border: 0; border-radius: 8px; color: #667085; background: transparent; font-size: 11px; }
.circle-post-actions button.active { color: #d64545; background: #fff1f1; }
.circle-post-actions .circle-report-link { margin-left: auto; color: #b26a2c; font-size: 10px; }
.circle-post-actions .circle-report-link + .circle-post-tag { margin-left: 0; }
.circle-post-actions > span { margin-left: auto; color: #0d6e5c; font-size: 9px; font-weight: 800; }
.circle-post-tag { margin-left: auto; padding: 2px 7px; border-radius: 999px; color: #0d6e5c; background: #edf8f4; font-size: 9px; }
.circle-mobile-section { display: grid; gap: 10px; }
.circle-section-title { display: flex; align-items: center; justify-content: space-between; }
.circle-section-title h3 { margin: 0; color: #1d2939; font-size: 15px; }
.circle-section-title span { color: #98a2b3; font-size: 10px; }
.circle-course-card { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.circle-course-cover { width: 84px; height: 64px; overflow: hidden; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #14866d, #0d6e5c); font-size: 24px; }
.circle-course-cover img { width: 100%; height: 100%; object-fit: cover; }
.circle-course-copy { min-width: 0; }
.circle-course-copy b { display: block; overflow: hidden; color: #1d2939; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.circle-course-copy span { display: block; margin-top: 3px; color: #98a2b3; font-size: 9px; }
.circle-course-progress { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: #edf1f3; }
.circle-course-progress i { display: block; height: 100%; border-radius: inherit; background: #21b08d; }
.circle-course-copy small { display: block; margin-top: 3px; color: #667085; font-size: 9px; }
.circle-assignment-card { padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.circle-assignment-top { display: flex; align-items: center; justify-content: space-between; color: #98a2b3; font-size: 9px; }
.circle-assignment-top > span { padding: 2px 6px; border-radius: 999px; color: #0d6e5c; background: #eaf8f3; font-weight: 800; }
.circle-assignment-card h4 { margin: 8px 0 5px; color: #1d2939; font-size: 15px; }
.circle-assignment-source { margin: -1px 0 7px; color: #14866d; font-size: 10px; font-weight: 700; }
.circle-assignment-card p { margin: 0; color: #667085; font-size: 11px; line-height: 1.65; }
.circle-assignment-summary,
.circle-assignment-requirement > div { max-height: 220px; overflow: auto; color: #667085; font-size: 11px; line-height: 1.7; }
.circle-assignment-summary *,
.circle-assignment-requirement > div * { max-width: 100%; }
.circle-assignment-summary img,
.circle-assignment-requirement img { max-width: 100%; height: auto; display: block; margin: 7px 0; border-radius: 8px; }
.circle-assignment-bottom { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 11px; }
.circle-assignment-bottom b { color: #526070; font-size: 10px; }
.circle-exam-picker { display: grid; gap: 13px; }
.circle-exam-picker-intro { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #eadfbd; border-radius: 11px; background: linear-gradient(135deg, #fffdf7, #fff8e7); }
.circle-exam-picker-intro > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: #7b5a12; background: #f7e7b8; font-size: 14px; font-weight: 900; }
.circle-exam-picker-intro > div { min-width: 0; }
.circle-exam-picker-intro b { display: block; color: #344054; font-size: 12px; }
.circle-exam-picker-intro small { display: block; margin-top: 3px; color: #7b8794; font-size: 10px; line-height: 1.55; }
.circle-exam-picker-context { display: flex; align-items: center; gap: 7px; padding: 9px 11px; border-radius: 9px; color: #526070; background: #f5faf8; font-size: 11px; }
.circle-exam-picker-context span { flex: 0 0 auto; color: #7b8794; }
.circle-exam-picker-context b { min-width: 0; overflow: hidden; color: #0d6e5c; text-overflow: ellipsis; white-space: nowrap; }
.circle-exam-picker-empty { padding: 11px 12px; border: 1px dashed #e6cf92; border-radius: 9px; color: #7b5a12; background: #fffaf0; font-size: 11px; line-height: 1.6; }
.circle-assignment-editor { display: grid; gap: 14px; color: #344054; }
.circle-assignment-editor-body { padding-bottom: 10px; }
.circle-assignment-linked-context { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 10px; border: 1px solid #dcece7; border-radius: 9px; background: #f5faf8; font-size: 11px; }
.circle-assignment-linked-context span { flex: 0 0 auto; padding: 2px 6px; border-radius: 5px; color: #0d6e5c; background: #e5f5ef; font-size: 9px; font-weight: 800; }
.circle-assignment-linked-context b { min-width: 0; overflow: hidden; color: #526070; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.circle-assignment-label { color: #475467; font-size: 12px; font-weight: 700; }
.circle-assignment-label i { color: #d64545; font-style: normal; }
.circle-assignment-name-row,
.circle-assignment-validity { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 12px; }
.circle-assignment-name-input { position: relative; }
.circle-assignment-name-input input { width: 100%; padding-right: 54px; }
.circle-assignment-name-input small { position: absolute; right: 11px; top: 50%; color: #98a2b3; font-size: 10px; transform: translateY(-50%); }
.circle-assignment-validity > div { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.circle-assignment-validity input { width: min(235px, calc(50% - 18px)); min-width: 180px; }
.circle-assignment-validity em { color: #7b8794; font-size: 11px; font-style: normal; }
.circle-assignment-validity small { flex-basis: 100%; color: #98a2b3; font-size: 10px; }
.circle-assignment-description { min-width: 0; }
.circle-assignment-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.circle-assignment-section-head > span { color: #98a2b3; font-size: 10px; text-align: right; }
.circle-assignment-description .rich-editor { border: 1px solid #dce7e3; border-radius: 10px; overflow: hidden; background: #fff; }
.circle-assignment-description .rich-toolbar { border: 0; border-bottom: 1px solid #e5ece9; border-radius: 0; background: #f8fbfa; }
.circle-assignment-description .rich-body { min-height: 190px; padding: 13px 14px; color: #344054; font-size: 13px; line-height: 1.7; outline: 0; }
.circle-assignment-description .rich-body img { max-width: 100%; height: auto; display: block; margin: 8px auto; border-radius: 8px; }
.circle-assignment-template-card { overflow: hidden; border: 1px solid #dfe9e5; border-radius: 11px; background: #fbfcfc; }
.circle-assignment-template-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; }
.circle-assignment-template-head > div { min-width: 0; }
.circle-assignment-template-head b { display: block; color: #344054; font-size: 12px; }
.circle-assignment-template-head span { display: block; margin-top: 3px; color: #7b8794; font-size: 10px; line-height: 1.5; }
.circle-switch { flex: 0 0 auto; display: inline-flex; align-items: center; cursor: pointer; }
.circle-switch input { position: absolute; opacity: 0; pointer-events: none; }
.circle-switch > span { position: relative; width: 36px; height: 20px; margin: 0; border-radius: 999px; background: #d8e1de; transition: background .18s ease; }
.circle-switch > span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(16, 24, 40, .2); transition: transform .18s ease; }
.circle-switch input:checked + span { background: #14866d; }
.circle-switch input:checked + span::after { transform: translateX(16px); }
.circle-assignment-template-body { position: relative; padding: 0 12px 12px; border-top: 1px solid #edf2f0; }
.circle-assignment-template-body[hidden] { display: none !important; }
.circle-assignment-template-body textarea { width: 100%; min-height: 132px; margin-top: 11px; resize: vertical; }
.circle-assignment-template-body > small { position: absolute; right: 22px; bottom: 19px; color: #98a2b3; font-size: 9px; }
.circle-assignment-options { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr); gap: 14px; }
.circle-assignment-option-block { min-width: 0; }
.circle-assignment-scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 7px; }
.circle-assignment-scope label { min-width: 0; display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border: 1px solid #dfe8e4; border-radius: 9px; background: #fff; cursor: pointer; }
.circle-assignment-scope input { width: 17px; height: 17px; margin: 1px 0 0; flex: 0 0 auto; accent-color: #0d6e5c; }
.circle-assignment-scope b { display: block; color: #344054; font-size: 11px; }
.circle-assignment-scope small { display: block; margin-top: 2px; color: #98a2b3; font-size: 9px; line-height: 1.45; }
.circle-assignment-scope label:has(input:checked) { border-color: #9bd2c2; background: #f3faf7; box-shadow: inset 0 0 0 1px rgba(20, 134, 109, .07); }
.circle-assignment-groups { margin-top: 7px; }
.circle-assignment-groups[hidden] { display: none !important; }
.circle-assignment-complete { min-height: 59px; display: flex; flex-direction: column; justify-content: center; margin-top: 7px; padding: 9px 11px; border: 1px solid #e1e9e6; border-radius: 9px; background: #fbfcfc; }
.circle-assignment-complete b { color: #0d6e5c; font-size: 12px; }
.circle-assignment-complete small { margin-top: 3px; color: #7b8794; font-size: 9px; line-height: 1.45; }
.circle-assignment-advanced { border-top: 1px solid #edf2f0; padding-top: 11px; }
.circle-assignment-advanced summary { color: #526070; font-size: 11px; font-weight: 700; cursor: pointer; }
.circle-assignment-advanced summary span { margin-left: 7px; color: #98a2b3; font-size: 9px; font-weight: 500; }
.circle-assignment-advanced .form-grid { margin-top: 11px; }
.circle-course-catalog { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.circle-mobile-course-mode { display: flex; align-items: flex-start; gap: 6px; margin: -2px 0 9px; padding: 8px 10px; border: 1px solid #dcece7; border-radius: 10px; color: #526070; background: #f4faf7; font-size: 10px; line-height: 1.5; }
.circle-mobile-course-mode span { flex: 0 0 auto; color: #7b8794; font-weight: 700; }
.circle-mobile-course-mode b { color: #0d6e5c; font-weight: 700; }
.circle-course-catalog-head { border: 0; border-bottom: 1px solid #edf2f0; border-radius: 0; }
.circle-mobile-course-catalog { display: grid; gap: 0; padding: 5px 10px 9px; }
.circle-mobile-catalog-chapter { overflow: hidden; margin-top: 7px; border: 1px solid #e1ebe7; border-radius: 12px; background: #fff; }
.circle-mobile-catalog-chapter + .circle-mobile-catalog-chapter { margin-top: 8px; }
.circle-mobile-catalog-chapter-head { width: 100%; min-height: 46px; display: grid; grid-template-columns: 17px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border: 0; color: #557068; background: #f6faf8; text-align: left; cursor: pointer; }
.circle-mobile-catalog-chapter.is-open .circle-mobile-catalog-chapter-head { border-bottom: 1px solid #e6efeb; background: #f1f7f4; }
.circle-mobile-catalog-chevron { color: #6f8a82; font-size: 18px; line-height: 1; transform: rotate(0); transition: transform .16s ease; }
.circle-mobile-catalog-chapter.is-open .circle-mobile-catalog-chevron { transform: rotate(90deg); }
.circle-mobile-catalog-chapter-copy { min-width: 0; }
.circle-mobile-catalog-chapter-head b { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.circle-mobile-catalog-chapter-head small { display: block; margin-top: 2px; overflow: hidden; color: #98a2b3; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.circle-mobile-catalog-chapter-head em { color: #0d6e5c; font-size: 9px; font-style: normal; font-weight: 700; white-space: nowrap; }
.circle-mobile-catalog-chapter-body { display: block; padding: 0 10px 5px; background: #fff; }
.circle-mobile-catalog-chapter-body[hidden] { display: none !important; }
.circle-mobile-catalog-section { border-bottom: 1px solid #eef2f0; }
.circle-mobile-catalog-section:last-child { border-bottom: 0; }
.circle-mobile-catalog-section-main { width: 100%; display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 2px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.circle-mobile-catalog-section-main > span { color: #93a29d; font-size: 10px; font-weight: 800; text-align: center; }
.circle-mobile-catalog-section-main > div { min-width: 0; }
.circle-mobile-catalog-section-main b { display: block; overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.circle-mobile-optional-badge { display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 4px; color: #8b6413; background: #fff3d4; font-size: 9px; font-style: normal; font-weight: 800; vertical-align: 1px; }
.circle-mobile-catalog-section-main small { display: block; margin-top: 2px; color: #98a2b3; font-size: 9px; }
.circle-mobile-catalog-section-main em { color: #9ab4ab; font-size: 18px; font-style: normal; }
.circle-mobile-catalog-section.is-locked .circle-mobile-catalog-section-main { cursor: default; background: #fafbfb; }
.circle-mobile-catalog-section.is-locked .circle-mobile-catalog-section-main b,
.circle-mobile-catalog-section.is-locked .circle-mobile-catalog-section-main small { color: #98a2b3; }
.circle-mobile-catalog-section.is-locked .circle-mobile-catalog-section-main em { color: #aeb8b5; font-size: 10px; font-weight: 800; }
.circle-mobile-catalog-section.is-optional:not(.is-locked) { background: linear-gradient(90deg, rgba(255, 244, 215, .48), transparent 46%); }
.circle-mobile-catalog-assignments,
.circle-mobile-catalog-standalone-assignment,
.circle-mobile-catalog-unlinked { display: grid; gap: 5px; padding: 0 0 9px 35px; }
.circle-mobile-catalog-standalone-assignment { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; margin: 0 2px 7px; padding: 8px 9px; border: 1px solid #dcebe5; border-radius: 10px; color: #344054; background: #f4fbf8; text-align: left; cursor: pointer; }
.circle-mobile-catalog-unlinked { padding-left: 0; }
.circle-mobile-catalog-unlinked > b { color: #667085; font-size: 10px; }
.circle-mobile-catalog-assignments button,
.circle-mobile-catalog-standalone-assignment,
.circle-mobile-catalog-unlinked button { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 7px 8px; border: 1px solid #e0eee8; border-radius: 9px; color: #344054; background: #f5fbf8; text-align: left; cursor: pointer; }
.circle-mobile-catalog-assignments button > span,
.circle-mobile-catalog-standalone-assignment > span,
.circle-mobile-catalog-unlinked button > span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: #0d6e5c; background: #e2f4ed; font-size: 11px; font-weight: 800; }
.circle-mobile-catalog-assignments button b,
.circle-mobile-catalog-standalone-assignment b,
.circle-mobile-catalog-unlinked button b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.circle-mobile-catalog-assignments button small,
.circle-mobile-catalog-standalone-assignment small,
.circle-mobile-catalog-unlinked button small { color: #0d6e5c; font-size: 9px; white-space: nowrap; }
.circle-mobile-catalog-empty { padding: 14px 5px; color: #98a2b3; font-size: 10px; text-align: center; }
.primary-btn.small { width: auto; min-height: 30px; padding: 0 11px; font-size: 11px; }
.circle-courses-page {
  --circle-course-text-scale: 1.15;
}
.circle-courses-page .circle-section-title h3 { font-size: calc(15px * var(--circle-course-text-scale)); }
.circle-courses-page .circle-section-title span { font-size: calc(10px * var(--circle-course-text-scale)); }
.circle-courses-page .circle-mobile-course-mode { font-size: calc(10px * var(--circle-course-text-scale)); }
.circle-courses-page .circle-course-copy b { font-size: calc(12px * var(--circle-course-text-scale)); }
.circle-courses-page .circle-course-copy span,
.circle-courses-page .circle-course-copy small { font-size: calc(9px * var(--circle-course-text-scale)); }
.circle-courses-page .circle-course-catalog .primary-btn.small { font-size: calc(11px * var(--circle-course-text-scale)); }
.circle-courses-page .circle-mobile-catalog-chapter-head b { font-size: calc(11px * var(--circle-course-text-scale)); }
.circle-courses-page .circle-mobile-catalog-chapter-head small,
.circle-courses-page .circle-mobile-catalog-chapter-head em { font-size: calc(9px * var(--circle-course-text-scale)); }
.circle-courses-page .circle-mobile-catalog-section-main > span { font-size: calc(10px * var(--circle-course-text-scale)); }
.circle-courses-page .circle-mobile-catalog-section-main b { font-size: calc(12px * var(--circle-course-text-scale)); }
.circle-courses-page .circle-mobile-optional-badge,
.circle-courses-page .circle-mobile-catalog-section-main small { font-size: calc(9px * var(--circle-course-text-scale)); }
.circle-courses-page .circle-mobile-catalog-section.is-locked .circle-mobile-catalog-section-main em { font-size: calc(10px * var(--circle-course-text-scale)); }
.circle-courses-page .circle-mobile-catalog-unlinked > b { font-size: calc(10px * var(--circle-course-text-scale)); }
.circle-courses-page .circle-mobile-catalog-assignments button > span,
.circle-courses-page .circle-mobile-catalog-standalone-assignment > span,
.circle-courses-page .circle-mobile-catalog-unlinked button > span { font-size: calc(11px * var(--circle-course-text-scale)); }
.circle-courses-page .circle-mobile-catalog-assignments button b,
.circle-courses-page .circle-mobile-catalog-standalone-assignment b,
.circle-courses-page .circle-mobile-catalog-unlinked button b { font-size: calc(10px * var(--circle-course-text-scale)); }
.circle-courses-page .circle-mobile-catalog-assignments button small,
.circle-courses-page .circle-mobile-catalog-standalone-assignment small,
.circle-courses-page .circle-mobile-catalog-unlinked button small { font-size: calc(9px * var(--circle-course-text-scale)); }
.circle-courses-page .circle-mobile-catalog-empty { font-size: calc(10px * var(--circle-course-text-scale)); }
.circle-rank-list.mobile { padding: 4px 12px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.circle-refresh-link { display: block; margin: 18px auto 4px; border: 0; color: #98a2b3; background: transparent; font-size: 10px; }
.circle-composer { display: grid; gap: 10px; }
.circle-composer textarea { width: 100%; min-height: 150px; resize: vertical; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: #344054; background: #fbfcfd; font-size: 14px; line-height: 1.7; }
.circle-compose-course { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.circle-compose-course select,
.circle-composer > input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #344054; font-size: 12px; }
.circle-upload-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.circle-upload-thumb { position: relative; width: 84px; height: 84px; overflow: hidden; border-radius: 11px; background: #eef2f6; }
.circle-upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.circle-upload-thumb button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.62); }
.circle-upload-button { display: inline-flex; width: fit-content; align-items: center; gap: 5px; padding: 8px 11px; border: 1px dashed #a9d9cc; border-radius: 10px; color: #0d6e5c; background: #f5fcf9; font-size: 11px; font-weight: 700; cursor: pointer; }
.circle-upload-button small { color: #98a2b3; font-size: 9px; font-weight: 400; }
.circle-comment-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; margin-top: 12px; }
.circle-comment-form textarea { width: 100%; min-height: 76px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; resize: vertical; }
.circle-comment-row { display: flex; gap: 9px; padding: 10px 0; border-bottom: 1px solid #eef1f4; }
.circle-comment-row:last-child { border-bottom: 0; }
.circle-comment-row > div { min-width: 0; }
.circle-comment-row b { color: #344054; font-size: 11px; }
.circle-comment-row p { margin: 4px 0; color: #526070; font-size: 12px; line-height: 1.65; }
.circle-comment-row span { color: #98a2b3; font-size: 9px; }
body.customer-mode .mini-nav button { font-size: 10px; }
body.customer-mode .mini-nav button .nav-icon { font-size: 19px; }

/* 圈子成员：单人添加与批量导入保持同一水平线、同一高度 */
.circle-member-heading { min-width: 0; }
.circle-member-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; min-width: 0; }
.circle-member-counts { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 0; }
.circle-member-panel .circle-member-count {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 9px;
  border: 1px solid #e0e8e5;
  border-radius: 999px;
  color: #60706b;
  background: #f7faf8;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}
.circle-member-panel .circle-member-count b { color: #233c35; font-size: 13.2px; font-weight: 850; }
.circle-member-panel .circle-member-count.total { border-color: #0d6e5c; color: #fff; background: #0d6e5c; }
.circle-member-panel .circle-member-count.total b { color: #fff; }
.circle-member-panel .circle-member-count.role-student { border-color: #cce7de; color: #176b59; background: #eef9f5; }
.circle-member-panel .circle-member-count.role-assistant { border-color: #d3e1f7; color: #345f9f; background: #f1f6fd; }
.circle-member-panel .circle-member-count.role-monitor { border-color: #f0ddb3; color: #8b641f; background: #fff8e9; }
.circle-member-panel .circle-member-count.role-guest { border-color: #e3dcf6; color: #6550a3; background: #f7f3ff; }
.circle-member-panel .circle-member-count.role-owner { border-color: #f0d7d7; color: #a14040; background: #fff4f4; }
.circle-member-actions { align-items: center; gap: 8px; }
.circle-member-actions .primary-btn,
.circle-member-actions .secondary-btn {
  min-width: 104px;
  min-height: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}
.circle-member-actions .secondary-btn {
  border: 1px solid #d8e2df;
  color: #245f52;
  background: #f7fbf9;
}
.circle-member-actions .secondary-btn:hover { border-color: #9bcaba; color: #0d6e5c; background: #eef8f4; }
.circle-member-actions .primary-btn { color: #fff; background: var(--navy); border-color: var(--navy); }
.modal-card.circle-member-add-modal { width: min(820px, 100%); }
.circle-member-add-modal .modal-footer .primary-btn,
.circle-member-add-modal .modal-footer .secondary-btn { width: auto; min-width: 112px; flex: 0 0 auto; }
.circle-member-add { display: grid; gap: 14px; }
.circle-member-add-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid #dfe8e5;
  border-radius: 13px;
  background: #f3f7f5;
}
.circle-member-add-tabs button {
  min-height: 54px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  color: #586964;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.circle-member-add-tabs button.active {
  color: #174f43;
  background: #fff;
  box-shadow: 0 2px 9px rgba(24, 61, 51, .09);
}
.circle-member-add-tabs b,
.circle-member-add-tabs span { display: block; }
.circle-member-add-tabs b { font-size: 13px; }
.circle-member-add-tabs span { margin-top: 3px; color: #86948f; font-size: 11px; }
.circle-member-add-existing,
.circle-member-add-new { display: grid; gap: 12px; }
.circle-member-add-search {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #cfded9;
  border-radius: 11px;
  color: #6f7f79;
  background: #fbfdfc;
}
.circle-member-add-search:focus-within { border-color: #52a690; box-shadow: 0 0 0 3px rgba(13, 110, 92, .08); }
.circle-member-add-search input { width: 100%; height: 40px; padding: 0; border: 0; outline: 0; color: #263b35; background: transparent; font: inherit; font-size: 13px; }
.circle-member-add-loading,
.circle-member-add-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 9px;
  color: #62736d;
  background: #f5f9f7;
  font-size: 12px;
}
.circle-member-add-warning { border: 1px solid #f0dfb5; color: #795d24; background: #fff9e9; }
.circle-member-add-list {
  max-height: min(43vh, 360px);
  overflow: auto;
  border: 1px solid #e0e8e5;
  border-radius: 12px;
  background: #fff;
}
.circle-member-add-user {
  display: grid;
  grid-template-columns: 20px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 9px 12px;
  border-bottom: 1px solid #edf1ef;
  cursor: pointer;
}
.circle-member-add-user:last-child { border-bottom: 0; }
.circle-member-add-user:hover { background: #f7fbf9; }
.circle-member-add-user.is-disabled { cursor: default; background: #fafcfb; }
.circle-member-add-user.is-disabled:hover { background: #fafcfb; }
.circle-member-add-user input { width: 17px; height: 17px; margin: 0; accent-color: #0d6e5c; }
.circle-member-add-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #14866d, #0d5f50);
  font-size: 13px;
  font-weight: 850;
}
.circle-member-add-copy,
.circle-member-add-meta { min-width: 0; }
.circle-member-add-copy b,
.circle-member-add-copy small,
.circle-member-add-meta em,
.circle-member-add-meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.circle-member-add-copy b { color: #263b35; font-size: 13px; }
.circle-member-add-copy small { margin-top: 3px; color: #83908c; font-size: 11px; }
.circle-member-add-meta { max-width: 118px; text-align: right; }
.circle-member-add-meta em { color: #43635a; font-size: 11px; font-style: normal; font-weight: 700; }
.circle-member-add-meta small { margin-top: 3px; color: #95a19d; font-size: 10px; }
.circle-member-add-user.is-added .circle-member-add-meta small { color: #a26819; }
.circle-member-add-empty { padding: 30px 20px; text-align: center; }
.circle-member-add-empty b,
.circle-member-add-empty span { display: block; }
.circle-member-add-empty b { color: #3e514b; font-size: 13px; }
.circle-member-add-empty span { margin-top: 5px; color: #8a9893; font-size: 11px; }
.circle-member-add-list-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #84918d; font-size: 11px; }
.circle-member-add-list-foot > div { display: flex; gap: 6px; }
.circle-member-add-list-foot .secondary-btn { min-height: 30px; height: 30px; }
.circle-member-add-fields { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(0, 1.25fr); gap: 12px; }
.circle-member-add-fields .form-field { margin: 0; }
.circle-member-add-new-note { padding: 11px 13px; border: 1px solid #d9eae4; border-radius: 11px; background: #f2faf7; }
.circle-member-add-new-note b,
.circle-member-add-new-note span { display: block; }
.circle-member-add-new-note b { color: #1b594c; font-size: 13px; }
.circle-member-add-new-note span { margin-top: 4px; color: #678078; font-size: 11px; line-height: 1.6; }
.circle-member-add-modal .modal-footer .primary-btn:disabled,
.circle-member-add-modal .modal-footer .secondary-btn:disabled { opacity: .5; cursor: not-allowed; }
.modal-card.circle-member-import-modal { width: min(760px, 100%); }
.circle-member-import-modal .modal-footer .primary-btn,
.circle-member-import-modal .modal-footer .secondary-btn { width: auto; min-width: 104px; flex: 0 0 auto; }
.circle-member-import { display: grid; gap: 13px; }
.circle-member-import-note {
  padding: 11px 13px;
  border: 1px solid #dcebe6;
  border-radius: 11px;
  background: #f4fbf8;
}
.circle-member-import-note b { display: block; color: #1d4d43; font-size: 13px; }
.circle-member-import-note span { display: block; margin-top: 3px; color: #6b7c77; font-size: 12px; line-height: 1.55; }
.circle-member-import-file {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 12px;
  padding: 9px 11px;
  border: 1px dashed #a9d9cc;
  border-radius: 11px;
  color: #0d6e5c;
  background: #fbfefd;
  cursor: pointer;
}
.circle-member-import-file > span { font-size: 13px; font-weight: 750; }
.circle-member-import-file > small { grid-column: 1; color: #84918d; font-size: 11px; line-height: 1.45; }
.circle-member-import-file > input { grid-column: 2; grid-row: 1 / span 2; width: 154px; max-width: 42vw; font-size: 11px; }
.circle-member-import .form-field { margin: 0; }
.circle-member-import .form-field textarea { min-height: 142px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; line-height: 1.65; }
.circle-member-import-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.circle-member-import-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #e1e8e6;
  border-radius: 10px;
  color: #60706b;
  background: #f8faf9;
}
.circle-member-import-preview.ready { border-color: #b7ded2; color: #205e50; background: #f0faf6; }
.circle-member-import-preview b { color: #0d6e5c; font-size: 18px; line-height: 1; }
.circle-member-import-preview span { font-size: 12px; }
.circle-member-import-preview small { color: #7b8985; font-size: 11px; line-height: 1.5; text-align: right; }
.circle-member-import-result {
  padding: 12px;
  border: 1px solid #cce5dc;
  border-radius: 11px;
  color: #40504b;
  background: #f7fcfa;
}
.circle-member-import-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.circle-member-import-result-head b { color: #155c4d; font-size: 14px; }
.circle-member-import-result-head span { color: #0d6e5c; font-size: 12px; font-weight: 750; }
.circle-member-import-result-stats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.circle-member-import-result-stats span { padding: 4px 8px; border-radius: 999px; color: #53635e; background: #eaf3f0; font-size: 11px; }
.circle-member-import-result-stats b { color: #263c36; }
.circle-member-import-result p { margin: 9px 0 0; color: #5b6b66; font-size: 11px; line-height: 1.6; }
.circle-member-import-result p b { color: #3f4f4a; }
.circle-member-import .primary-btn:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 1100px) {
  .circle-editor-layout { grid-template-columns: 1fr; }
  .circle-editor-preview { position: static; order: -1; }
  .circle-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .circle-learning-filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .circle-learning-filterbar label:nth-of-type(3) { grid-column: 1 / -1; }
  .circle-member-profile-source { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .circle-member-profile-courses { grid-template-columns: 1fr; }
  .circle-admin-two-col { grid-template-columns: 1fr; }
  .circle-settings-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .circle-course-mode-layout { grid-template-columns: minmax(0, 1fr) 220px; }
}
@media (max-width: 760px) {
  .circle-learning-filterbar { grid-template-columns: 1fr; }
  .circle-learning-filterbar label:nth-of-type(3) { grid-column: auto; }
  .circle-learning-filterbar .secondary-btn { width: 100%; }
  .circle-learning-context { align-items: flex-start; flex-direction: column; gap: 3px; }
  .circle-learning-context span { text-align: left; }
  .circle-learning-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .circle-learning-block-head { align-items: flex-start; }
  .circle-learning-member-hero { grid-template-columns: auto minmax(0, 1fr); }
  .circle-learning-member-score { grid-column: 1 / -1; text-align: left; }
  .circle-learning-member-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .circle-member-profile-hero { grid-template-columns: auto minmax(0, 1fr); padding: 13px; }
  .circle-member-profile-score { grid-column: 1 / -1; text-align: left; }
  .circle-member-profile-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .circle-member-profile-metrics > span { padding: 10px; }
  .circle-member-profile-card { padding: 12px; }
  .circle-member-profile-card > header { align-items: flex-start; flex-direction: column; }
  .circle-member-profile-source,
  .circle-member-profile-courses,
  .circle-member-profile-wallet { grid-template-columns: 1fr 1fr; }
  .circle-member-profile-posts article { grid-template-columns: 1fr; gap: 3px; }
  .circle-list-table th:last-child,
  .circle-list-table td:last-child { position: static; box-shadow: none; }
  .circle-member-panel .panel-head { flex-wrap: wrap; gap: 10px; }
  .circle-member-panel .panel-head > div:first-child { flex: 1 1 240px; }
  .circle-member-title { align-items: flex-start; gap: 7px; }
  .circle-member-counts { gap: 4px; }
  .circle-member-panel .circle-member-count { min-height: 25px; padding: 0 8px; font-size: 11.5px; }
  .circle-member-panel .circle-member-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: 0; }
  .circle-member-panel .circle-member-actions .primary-btn,
  .circle-member-panel .circle-member-actions .secondary-btn { width: 100%; min-width: 0; }
  .circle-member-add-modal .modal-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .circle-member-add-modal .modal-footer .primary-btn,
  .circle-member-add-modal .modal-footer .secondary-btn { width: 100%; min-width: 0; }
  .circle-member-add-user { grid-template-columns: 20px 32px minmax(0, 1fr); gap: 8px; padding: 9px 10px; }
  .circle-member-add-avatar { width: 32px; height: 32px; }
  .circle-member-add-meta { grid-column: 3; max-width: none; display: flex; align-items: center; gap: 7px; text-align: left; }
  .circle-member-add-meta small { margin-top: 0; }
  .circle-member-add-fields { grid-template-columns: 1fr 1fr; gap: 9px; }
  .circle-member-add-list { max-height: min(42vh, 320px); }
  .circle-member-import-file { grid-template-columns: 1fr; }
  .circle-member-import-file > input { grid-column: 1; grid-row: auto; width: 100%; max-width: none; margin-top: 3px; }
  .circle-member-import { gap: 10px; }
  .circle-member-import .form-field textarea { min-height: 116px; }
  .circle-member-import-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .circle-member-import-preview { align-items: flex-start; flex-direction: column; gap: 5px; }
  .circle-member-import-preview small { text-align: left; }
  .circle-editor-panel { padding: 13px; }
  .circle-editor-scope-grid { grid-template-columns: 1fr; }
  .circle-detail-image-layout { grid-template-columns: 1fr; }
  .circle-detail-image-actions { grid-template-columns: 1fr 1fr; }
  .circle-lead-grid { grid-template-columns: 1fr; }
  .circle-lead-grid .form-field.full { grid-column: auto; }
  .circle-lead-qr-row { grid-template-columns: 1fr; }
  .circle-lead-qr-preview { width: min(100%, 172px); height: 172px; }
  .circle-lead-qr-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .circle-lead-qr-actions .mini-btn { grid-column: 1 / -1; }
  .circle-lead-popup-qr img { width: min(190px, 62vw); height: min(190px, 62vw); }
  .course-lead-card { grid-template-columns: minmax(0, 1fr) 82px; gap: 10px; padding: 12px; }
  .course-lead-card-qr img { width: 82px; height: 82px; }
  .course-lead-card-form { width: 82px; min-height: 82px; }
  .circle-enrollment-reminder { align-items: stretch; flex-direction: column; gap: 10px; }
  .circle-enrollment-reminder .primary-btn { width: 100%; }
  .lead-form-timing-options { flex-direction: column; }
  .circle-hero { grid-template-columns: 1fr; }
  .circle-hero-cover { height: 150px; }
  .circle-stat-grid,
  .circle-rule-grid,
  .circle-scope-grid { grid-template-columns: 1fr; }
    .circle-ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .circle-ops-low { align-items: stretch; flex-direction: column; }
    .circle-ops-low > div:first-child { flex-basis: auto; }
    .circle-ops-members { justify-content: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .circle-ops-member { min-width: 0; width: 100%; }
    .circle-ops-clear { justify-content: flex-start; }
    .circle-point-wallet { gap: 6px; }
    .circle-point-wallet > span { padding: 9px 8px; }
    .circle-point-wallet b { font-size: 18px; }
    .circle-point-history-row { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 7px; }
    .circle-point-history-row i { grid-column: 2 / -1; justify-self: end; margin-top: -2px; }
    .circle-point-adjust { grid-template-columns: 1fr; }
    .circle-settings-summary { grid-template-columns: 1fr 1fr; }
    .circle-public-summary { grid-template-columns: 1fr 1fr; }
    .circle-admin-assignment { display: grid; }
    .circle-assignment-name-row,
    .circle-assignment-validity { grid-template-columns: 1fr; align-items: stretch; gap: 6px; }
    .circle-assignment-validity input { width: 100%; min-width: 0; }
    .circle-assignment-section-head { align-items: flex-start; flex-direction: column; gap: 3px; }
    .circle-assignment-section-head > span { text-align: left; }
    .circle-assignment-description .rich-toolbar { overflow-x: auto; flex-wrap: nowrap; }
    .circle-assignment-options { grid-template-columns: 1fr; }
    .circle-assignment-linked-context { align-items: flex-start; }
    .circle-assignment-linked-context b { white-space: normal; }
    .circle-challenge-admin-row { gap: 10px; }
  .circle-challenge-summary > span { align-items: center; flex-direction: column; gap: 4px; padding: 9px 7px; text-align: center; }
  .circle-challenge-summary small { width: 100%; text-align: center; }
  .circle-challenge-strip-row { grid-template-columns: minmax(0, 1fr) auto; }
  .circle-challenge-strip-row i { grid-column: 1 / -1; grid-row: 2; }
  .circle-challenge-card-foot { align-items: flex-start; flex-wrap: wrap; }
  .circle-catalog-summary { grid-template-columns: 1fr 1fr; }
  .circle-catalog-summary > span { align-items: center; justify-content: center; flex-direction: column; gap: 4px; padding: 9px 7px; text-align: center; }
  .circle-catalog-summary small { width: 100%; text-align: center; }
  .circle-catalog-course-head { grid-template-columns: 58px minmax(0, 1fr); }
  .circle-catalog-cover { width: 58px; height: 46px; }
  .circle-catalog-course-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; }
  .circle-catalog-course-actions .secondary-btn { width: 100%; min-width: 0; }
  .circle-catalog-section-head { grid-template-columns: auto minmax(0, 1fr); }
    .circle-catalog-row-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(52px, 1fr)); gap: 4px; }
    .circle-catalog-row-actions .secondary-btn { width: 100%; min-width: 0; }
    .circle-catalog-text-action,
    .circle-catalog-section-more { width: 100%; min-width: 0; min-height: 32px; }
    .circle-catalog-section-more { font-size: 18px; }
    .circle-catalog-assignments { padding-left: 10px; }
    .circle-catalog-assignment { grid-template-columns: auto minmax(0, 1fr) auto; }
    .circle-catalog-assignment-stats { display: none; }
    .circle-catalog-assignment > .circle-catalog-row-actions,
    .circle-catalog-standalone-assignment > .circle-catalog-row-actions { grid-column: 1 / -1; width: 100%; }
    .circle-catalog-standalone-assignment { grid-template-columns: auto auto minmax(0, 1fr); }
    .circle-catalog-standalone-assignment .circle-catalog-assignment-stats { grid-column: 3; }
    .circle-catalog-standalone-main small { white-space: normal; }
    .circle-catalog-add-assignment { width: calc(100% - 20px); margin: 7px 10px 9px; }
    .circle-catalog-assignment-create-actions { width: calc(100% - 20px); margin: 7px 10px 9px; }
    .circle-catalog-assignment-create-actions .circle-catalog-add-assignment { width: auto; flex: 1 1 130px; margin: 0; }
  .circle-catalog-section-empty { padding-left: 10px; }
  .circle-catalog-orphans-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .circle-catalog-orphans-head span { text-align: left; }
        .circle-course-workspace-main { padding: 12px; }
        .circle-course-workspace-head { align-items: stretch; flex-direction: column; gap: 10px; }
        .circle-course-head-actions { width: 100%; justify-content: space-between; }
        .circle-course-catalog-search { width: 100%; order: 3; }
        .circle-course-head-link { min-height: 32px; padding: 0 4px; }
    .circle-course-toolbar { align-items: stretch; flex-direction: column; }
  .circle-course-toolbar-main,
  .circle-course-toolbar-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .circle-course-toolbar .primary-btn,
    .circle-course-toolbar .secondary-btn { width: 100%; min-width: 0; padding: 0 7px; }
    .circle-course-statusline { align-items: flex-start; flex-direction: column; gap: 3px; }
    .circle-catalog-sort-control { width: 78px; grid-template-columns: 22px 30px 22px; }
    .circle-catalog-sort-control button { width: 22px; height: 32px; }
    .circle-catalog-sort-control input { width: 30px; height: 32px; }
    .circle-section-source-tabs button { align-items: flex-start; flex-direction: column; gap: 2px; }
    .circle-section-picker-filterbar { align-items: stretch; flex-direction: column; }
    .circle-section-picker-select { min-width: 0; grid-template-columns: 1fr; gap: 4px; }
    .circle-section-picker-typebar { justify-content: flex-start; }
    .circle-section-picker-selection { align-items: stretch; flex-direction: column; gap: 7px; }
    .circle-section-picker-selection > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .circle-section-picker-selection button { width: 100%; }
    .circle-section-picker-results { max-height: min(18vh, 170px); }
    .circle-section-picker-list { grid-template-columns: 1fr; }
    .circle-section-picker-copy b,
    .circle-section-picker-copy small { white-space: normal; }
    .circle-section-picker-footer-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .circle-section-picker-footer-actions .primary-btn,
    .circle-section-picker-footer-actions .secondary-btn { width: 100%; min-width: 0; }
    .circle-section-picker-footer-actions .primary-btn { grid-column: 1 / -1; }
    .circle-course-picker-hint { align-items: flex-start; flex-direction: column; gap: 2px; }
      .circle-catalog-course-actions { grid-template-columns: minmax(0, 1fr) 34px; }
    .circle-catalog-course-actions .circle-catalog-more { width: 34px; height: 100%; }
    .circle-chapter-editor-row { grid-template-columns: 28px minmax(0, 1fr); }
    .circle-chapter-editor-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .circle-chapter-editor-actions button { width: 100%; }
  .circle-catalog-chapter-head { align-items: stretch; flex-wrap: wrap; padding: 8px 9px; }
  .circle-catalog-chapter-toggle { flex-basis: 100%; }
    .circle-catalog-chapter-title { padding: 9px 10px; flex-wrap: wrap; }
    .circle-catalog-chapter-actions { width: 100%; justify-content: flex-end; padding: 0 9px 9px; }
    .circle-catalog-chapter-actions .secondary-btn { flex: 1; }
    .circle-catalog-chapter-actions .circle-catalog-chapter-title-edit { flex: 1; }
    .circle-catalog-chapter-actions .circle-catalog-classify { flex: 1; }
    .circle-catalog-chapter-actions .circle-catalog-add-section { flex: 1; }
    .circle-catalog-chapter-actions .circle-catalog-add-form { flex: 1; }
    .circle-catalog-chapter-actions .circle-catalog-add-exam { flex: 1; }
    .circle-catalog-chapter-actions .circle-catalog-chapter-delete { flex: 1; }
    .circle-course-batch-row { grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
    .circle-course-batch-row em { grid-column: 2; }
    .circle-course-batch-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .circle-course-batch-footer .primary-btn,
    .circle-course-batch-footer .secondary-btn { width: 100%; min-width: 0; }
  .circle-classify-intro { grid-template-columns: 1fr; }
  .circle-classify-intro > span { grid-row: auto; justify-self: start; }
  .circle-classify-intro b,
  .circle-classify-intro small { white-space: normal; }
  .circle-classify-list { max-height: min(42vh, 330px); }
  .circle-classify-row { grid-template-columns: auto minmax(0, 1fr); }
  .circle-classify-row > em { grid-column: 2; justify-self: start; }
  .circle-classify-copy b,
  .circle-classify-copy small { white-space: normal; }
  .circle-course-mode-layout { grid-template-columns: 1fr; }
  .circle-course-mode-footer { align-items: stretch; flex-direction: column; }
  .circle-course-mode-footer .primary-btn { width: 100%; }
  .circle-list-hscroll { grid-template-columns: auto minmax(80px, 1fr); gap: 8px; padding: 8px 10px; }
  .circle-list-hscroll > span:last-child { display: none; }
  .circle-compose-course { grid-template-columns: 1fr; }
  .circle-share-card { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .circle-member-add-tabs button { min-height: 50px; padding: 7px 8px; }
  .circle-member-add-tabs b { font-size: 12px; }
  .circle-member-add-tabs span { font-size: 10px; }
  .circle-member-add-fields { grid-template-columns: 1fr; }
  .circle-member-add-list-foot { align-items: flex-start; flex-direction: column; }
  .circle-member-add-list-foot > div { width: 100%; }
  .circle-member-add-list-foot .secondary-btn { flex: 1; }
  .circle-member-import-modal .modal-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .circle-member-import-modal .modal-footer .primary-btn,
  .circle-member-import-modal .modal-footer .secondary-btn { width: 100%; min-width: 0; }
}
@media (max-width: 340px) {
  .circle-member-import-fields { grid-template-columns: 1fr; }
}

/* ===== 全局配色平衡：绿为主品牌、金黄做重点、深黑做结构 ===== */
/* 深色页头承托品牌信息，金黄只做少量高亮，避免整页被绿色铺满。 */
.mini-header {
  background:
    radial-gradient(circle at 88% 17%, rgba(243,182,58,.34) 0 12%, transparent 35%),
    linear-gradient(145deg, #171c1a 0%, #17372f 58%, #0e241e 100%);
  border-bottom: 3px solid var(--gold);
}
.mini-header::after {
  border: 1px solid rgba(255,211,106,.42);
  background: rgba(243,182,58,.12);
}
.mini-header .header-search {
  color: #fff4d4;
  border-color: rgba(255,211,106,.34);
  background: rgba(255,248,225,.12);
}
.mini-header .home-notice {
  color: #2c2109;
  border-color: #ffd777;
  background: linear-gradient(135deg, #ffd875, var(--gold));
  text-shadow: none;
}
.mobile-hero {
  border-bottom: 3px solid var(--gold);
  background:
    radial-gradient(circle at 90% 16%, rgba(243,182,58,.34) 0 13%, transparent 36%),
    linear-gradient(145deg, #1a1f1d 0%, #153a31 62%, #10271f 100%);
}
.mobile-hero .member-level {
  color: #332507;
  background: linear-gradient(135deg, #ffe18b, var(--gold));
  box-shadow: 0 4px 12px rgba(0,0,0,.16);
}

/* 首页卡片：暖黄选中、深黑图标、浅黄描边，减少成片浅绿色块。 */
.quick-item {
  border: 1px solid #eee7d6;
  background: #fff;
  box-shadow: 0 4px 14px rgba(38,31,14,.055);
}
.quick-item .q-icon {
  color: #704b00;
  border: 1px solid rgba(243,182,58,.24);
  background: var(--gold-soft);
}
.quick-item:nth-child(2) .q-icon {
  color: #ffd777;
  border-color: #2b302d;
  background: #202522;
}
.quick-item:nth-child(3) .q-icon {
  color: #155e4f;
  border-color: rgba(20,134,109,.14);
  background: var(--green-soft);
}
.quick-item:nth-child(4) .q-icon {
  color: #345bb0;
  border-color: rgba(63,114,230,.12);
  background: var(--blue-soft);
}
.quick-item.cat-item.selected {
  color: #2b210c;
  border-color: #e6b83e;
  background: #fff9e9;
  box-shadow: 0 6px 16px rgba(173,118,7,.13), inset 0 0 0 1px rgba(243,182,58,.35);
}
.quick-item.cat-item.selected .q-icon {
  color: #ffd775;
  border-color: #202522;
  background: #202522;
}
.mobile-search {
  border-color: #eadfbd;
  color: #5f5b50;
  background: #fffdf7;
}
.section-title h4 {
  display: flex;
  align-items: center;
  gap: 7px;
}
.section-title h4::before {
  content: "";
  width: 4px;
  height: 15px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: linear-gradient(180deg, #ffd66d, var(--gold));
  box-shadow: 0 2px 6px rgba(191,132,12,.16);
}

/* 继续学习卡和课程列表加入深黑与暖黄层级，保留少量绿色用于进度感。 */
.continue-card {
  border: 1px solid rgba(255,211,106,.18);
  background:
    radial-gradient(circle at 92% 10%, rgba(243,182,58,.2) 0 12%, transparent 34%),
    linear-gradient(135deg, #202522 0%, #121613 100%);
}
.continue-cover {
  color: #2b210b;
  background: linear-gradient(140deg, #ffe083, var(--gold));
}
.continue-card .progress i {
  background: linear-gradient(90deg, #ffe08a, var(--gold));
}
.content-mini-card {
  border-color: #ece6d8;
  border-left: 3px solid #e9bd50;
  box-shadow: 0 4px 13px rgba(38,31,14,.045);
}
.content-grid-card {
  border-color: #ece6d8;
  box-shadow: 0 4px 14px rgba(38,31,14,.05);
}
.mini-tag {
  color: #674600;
  background: var(--gold-soft);
}
.mini-tag.vip {
  color: #3b2a08;
  background: #ffdf88;
}
.tabs-row button.active {
  color: #ffd66c;
  background: #1e2320;
  box-shadow: 0 4px 12px rgba(30,35,32,.16);
}

/* 客户端底部导航：选中项用暖金图标胶囊聚焦，文字保留品牌深绿，避免色块挡住文字。 */
.mini-nav button {
  position: relative;
  min-height: 60px;
  gap: 4px;
  padding: 3px 5px 5px;
  border-radius: 14px;
  line-height: 1.2;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}
.mini-nav button .nav-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}
.mini-nav button.active {
  color: #0b6252;
  background: transparent;
  box-shadow: none;
}
.mini-nav button.active .nav-icon {
  color: #785000;
  background:
    radial-gradient(circle at 34% 24%, #fffdf5 0 18%, transparent 45%),
    linear-gradient(145deg, #fff5d5, #ffe39a);
  box-shadow:
    0 5px 14px rgba(180, 125, 10, .16),
    inset 0 0 0 1px rgba(222, 171, 52, .34),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  transform: translateY(-1px);
}
.mini-nav button.active .nav-icon img,
.mini-nav button.active .nav-icon svg {
  filter: none;
  opacity: 1;
}
.mini-nav button:active {
  transform: scale(.96);
}

/* 会员/个人中心：黑色底承担信息层级，金色只点缀关键数字和小图标。 */
.profile-card {
  border: 1px solid rgba(255,211,106,.16);
  background:
    radial-gradient(circle at 92% 8%, rgba(243,182,58,.2) 0 12%, transparent 34%),
    linear-gradient(145deg, #222824, #0d1210);
}
.profile-stats b {
  color: #ffda79;
}
.mine-quick-btn {
  border-color: #eee5cd;
  background: #fffdf7;
}
.mine-quick-btn .mine-quick-icon {
  color: #8a5d00;
}

/* 后台：沿用深色侧栏，增强金色选中边界；主按钮继续使用深黑。 */
.admin-nav button.active,
.admin-nav-sub button.active {
  box-shadow: inset 3px 0 0 var(--gold);
}
.admin-global-search-box:focus-within {
  border-color: #d8a936;
  box-shadow: 0 0 0 3px rgba(243,182,58,.14);
}
.ghost-btn {
  color: #644500;
  background: #fff3d0;
}
.course-cat-chip.active {
  border-color: #1e2320;
  background: #1e2320;
}
.course-cat-chip.active button {
  color: #ffdc7e;
}

/* 商城：头部改成深黑+金色气氛；购买动作更符合电商重点，购物车用深黑描边。 */
.shop-store-heading {
  background:
    radial-gradient(circle at 88% 14%, rgba(243,182,58,.34) 0 12%, transparent 34%),
    linear-gradient(135deg, #1d221f 0%, #17392f 64%, #10251f 100%);
  box-shadow: 0 9px 22px rgba(15,29,24,.2);
}
.shop-product-cart-btn {
  color: #1c211e;
  border-color: #2b302d;
  background: linear-gradient(180deg, #fffdf7, #f8f3e8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
}
.shop-product-cart-btn:active:not([disabled]) {
  background: #f4ecd9;
}
.shop-product-buy-btn {
  color: #241b07;
  background: linear-gradient(145deg, #ffd66c, #efb52f);
  box-shadow: 0 7px 18px rgba(180,121,5,.24);
}

.circle-section-complete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #cfe6df;
  border-radius: 14px;
  background: #f3faf7;
  color: #17483f;
}
.circle-section-complete > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.circle-section-complete b { font-size: 14px; }
.circle-section-complete span {
  color: #667085;
  font-size: 12px;
  line-height: 1.6;
}
.circle-section-complete button { flex: 0 0 auto; }
.circle-section-complete.is-complete {
  background: #f7f9f8;
  border-color: #e2e8e5;
}
.circle-section-complete button:disabled {
  opacity: .7;
  cursor: default;
}
.circle-section-completion-stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #dbeae5;
  border-radius: 12px;
  background: #f6fbf9;
}
.circle-section-completion-stat span { color: #53645f; font-size: 12px; font-weight: 700; }
.circle-section-completion-stat b { color: #173f37; font-size: 20px; line-height: 1; }
.circle-section-completion-stat em { padding: 3px 8px; border-radius: 999px; color: #7a5310; background: #fff1cf; font-size: 12px; font-style: normal; font-weight: 800; }
.circle-section-completion-stat small { grid-column: 1 / -1; color: #7b8794; font-size: 11px; }
.circle-percent-input { display: flex; align-items: center; gap: 8px; }
.circle-percent-input input { flex: 1; min-width: 0; }
.circle-percent-input span { flex: 0 0 auto; color: #53645f; font-size: 13px; font-weight: 800; }
@media (max-width: 520px) {
  .circle-section-complete {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }
  .circle-section-complete button { width: 100%; }
}

/* 营销中心 · 独立打卡 */
.checkin-admin-page { display: grid; gap: 14px; min-width: 0; max-width: 100%; }
.checkin-admin-statbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}
.checkin-admin-statbar > span {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #dfeae6;
  border-radius: 13px;
  color: #667085;
  background: linear-gradient(145deg, #fff, #f7fbf9);
  font-size: 12px;
}
.checkin-admin-statbar b {
  display: block;
  margin-top: 5px;
  color: #164e43;
  font-size: 20px;
  line-height: 1;
}
.checkin-admin-panel { min-width: 0; max-width: 100%; }
.checkin-admin-panel .panel-head { align-items: flex-start; min-width: 0; }
.checkin-admin-panel .panel-head > div:first-child { min-width: 0; }
.checkin-admin-panel .panel-head-actions { display: flex; align-items: center; flex: 0 0 auto; flex-wrap: nowrap; justify-content: flex-end; gap: 7px; }
.checkin-category-strip { margin: 0; overflow-x: auto; padding-bottom: 2px; }
.checkin-list-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  margin-bottom: 10px;
  min-width: 0;
}
.checkin-toolbar-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(118px, .8fr)) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.checkin-toolbar-filters .checkin-search-box { width: 100%; min-width: 0; }
.checkin-toolbar-filters select {
  width: 100%;
  min-width: 0;
  max-width: none;
}
.checkin-toolbar-filters .secondary-btn { white-space: nowrap; }
.checkin-toolbar-batch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 7px;
  min-width: 0;
}
.checkin-list-toolbar .secondary-btn { white-space: nowrap; }
.checkin-selection-count { white-space: nowrap; }
.checkin-admin-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.checkin-admin-table {
  min-width: 1156px;
  table-layout: fixed;
}
.checkin-admin-table .checkin-col-select { width: 38px; }
.checkin-admin-table .checkin-col-name { width: 250px; }
.checkin-admin-table .checkin-col-order { width: 64px; }
.checkin-admin-table .checkin-col-status { width: 70px; }
.checkin-admin-table .checkin-col-price { width: 160px; }
.checkin-admin-table .checkin-col-target { width: 84px; }
.checkin-admin-table .checkin-col-period { width: 135px; }
.checkin-admin-table .checkin-col-owner { width: 120px; }
.checkin-admin-table .checkin-col-actions { width: 235px; }
.checkin-admin-table th,
.checkin-admin-table td { vertical-align: middle; }
.checkin-admin-table tr.is-selected td { background: #f2faf7; }
.checkin-select-cell { width: 34px; min-width: 34px; padding-right: 4px !important; text-align: center; }
.checkin-select-cell input { width: 16px; height: 16px; accent-color: #0d6e5c; cursor: pointer; }
.checkin-order-input {
  width: 58px !important;
  min-width: 58px;
  height: 34px;
  padding: 5px 6px !important;
  box-sizing: border-box;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
.checkin-admin-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.checkin-admin-title > div { min-width: 0; }
.checkin-admin-title b {
  display: inline-block;
  max-width: calc(100% - 74px);
  overflow: hidden;
  color: #263a35;
  font-size: 13px;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}
.checkin-category-tag {
  display: inline-block;
  max-width: 68px;
  margin: 0 0 0 4px;
  overflow: hidden;
  padding: 2px 6px;
  border-radius: 999px;
  color: #0d6e5c;
  background: #eaf6f1;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}
.checkin-admin-title small {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: #8a9894;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.checkin-admin-thumb {
  width: 52px;
  height: 40px;
  flex: 0 0 auto;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, #21b08d, #0d6e5c);
  font-size: 17px;
  font-weight: 800;
}
.checkin-admin-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.checkin-muted-block {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: #8b9793;
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.checkin-circle-link-note { color: #14866d; }
.checkin-price-cell > b { display: inline-block; margin-right: 5px; vertical-align: top; }
.checkin-price-cell .checkin-muted-block { display: inline-block; max-width: calc(100% - 48px); margin-top: 0; vertical-align: top; }
.checkin-price-cell .checkin-circle-link-note { display: block; max-width: 100%; margin-top: 3px; }
.checkin-target-cell,
.checkin-period-cell,
.checkin-owner-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkin-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;
  min-width: 0;
  white-space: nowrap;
}
.checkin-row-actions .mini-btn { padding-inline: 5px; white-space: nowrap; }
.checkin-pagination { margin-top: 10px; }
.checkin-editor-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px;
  border: 1px solid #dce8e4;
  border-radius: 14px;
  background: #f3f8f6;
}
.checkin-editor-tabs button {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  color: #60736d;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.checkin-editor-tabs button b { color: inherit; font-size: 13px; }
.checkin-editor-tabs button small { color: #8a9a95; font-size: 9px; }
.checkin-editor-tabs button.active { color: #0d6e5c; background: #fff; box-shadow: 0 3px 10px rgba(24,78,65,.08); }
.checkin-editor-tabs button.active small { color: #6e8980; }
.checkin-editor-panel[hidden] { display: none !important; }
.checkin-edit-anchor-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 8px;
  border: 1px solid #e1ebe7;
  border-radius: 11px;
  background: #f8fbfa;
}
.checkin-edit-anchor-nav button {
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid #dce8e4;
  border-radius: 8px;
  color: #48645b;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.checkin-edit-anchor-nav button:hover { border-color: #a9d2c7; color: #0d6e5c; }
.checkin-edit-section-anchor { scroll-margin-top: 12px; }
.checkin-content-builder { display: grid; gap: 11px; }
.checkin-content-builder-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid #dce9e5;
  border-radius: 12px;
  background: #f7fbf9;
}
.checkin-content-builder-intro > div { min-width: 0; }
.checkin-content-builder-intro b { display: block; color: #23483e; font-size: 13px; }
.checkin-content-builder-intro span { display: block; margin-top: 4px; color: #71827d; font-size: 10px; line-height: 1.6; }
.checkin-content-builder-intro .primary-btn { flex: 0 0 auto; }
.checkin-field-editor-list { display: grid; gap: 10px; }
.checkin-field-editor-card {
  overflow: hidden;
  border: 1px solid #dce8e4;
  border-radius: 13px;
  background: #fff;
}
.checkin-field-editor-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf2f0;
  background: #f8fbfa;
}
.checkin-field-editor-card > header > div:first-child { min-width: 0; }
.checkin-field-editor-card > header span { display: block; color: #8b9894; font-size: 9px; }
.checkin-field-editor-card > header b { display: block; margin-top: 2px; overflow: hidden; color: #2c4b43; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.checkin-field-card-actions { display: flex; align-items: center; gap: 5px; }
.checkin-field-card-actions button {
  min-width: 29px;
  height: 29px;
  padding: 0 7px;
  border: 1px solid #dce8e4;
  border-radius: 8px;
  color: #48645b;
  background: #fff;
  font-size: 11px;
  cursor: pointer;
}
.checkin-field-card-actions button.danger { color: #a14646; border-color: #efdada; }
.checkin-field-card-actions button:disabled { opacity: .35; cursor: default; }
.checkin-field-editor-grid { padding: 12px; }
.checkin-field-required {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #e1ebe7;
  border-radius: 9px;
  background: #fbfcfc;
}
.checkin-field-required input { width: 16px; height: 16px; margin-top: 1px; accent-color: #0d6e5c; }
.checkin-field-required b { display: block; color: #344054; font-size: 11px; }
.checkin-field-required small { display: block; margin-top: 2px; color: #7b8794; font-size: 9px; }
.checkin-field-editor-empty {
  display: grid;
  place-items: center;
  min-height: 154px;
  padding: 18px;
  border: 1px dashed #bad5cd;
  border-radius: 13px;
  color: #7a8c86;
  background: #f8fbfa;
  text-align: center;
}
.checkin-field-editor-empty b { display: block; color: #34574d; font-size: 13px; }
.checkin-field-editor-empty span { display: block; max-width: 520px; margin-top: 5px; font-size: 10px; line-height: 1.65; }
.checkin-content-builder-note { margin: 0; padding: 9px 11px; border-radius: 9px; color: #758680; background: #f7f9f8; font-size: 10px; line-height: 1.6; }
.checkin-preview-fields {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 9px;
  border-radius: 9px;
  background: #f6faf8;
}
.checkin-preview-fields > b { color: #344054; font-size: 10px; }
.checkin-preview-fields > span { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding-top: 5px; border-top: 1px solid #e8efec; }
.checkin-preview-fields strong { overflow: hidden; color: #456057; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.checkin-preview-fields i { color: #8b9894; font-size: 8px; font-style: normal; }
.checkin-editor-stats-panel { display: grid; gap: 11px; }
.checkin-editor-stats-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid #dce8e4;
  border-radius: 12px;
  background: #f7fbf9;
}
.checkin-editor-stats-head > div:first-child { min-width: 0; }
.checkin-editor-stats-head b { display: block; color: #23483e; font-size: 14px; }
.checkin-editor-stats-head span { display: block; margin-top: 4px; color: #71827d; font-size: 10px; line-height: 1.6; }
.checkin-editor-stats-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.checkin-stats-loading,
.checkin-stats-empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 20px;
  border: 1px dashed #bad5cd;
  border-radius: 12px;
  color: #778983;
  background: #f8fbfa;
  text-align: center;
  font-size: 11px;
  line-height: 1.7;
}
.checkin-stats-empty b { display: block; color: #34574d; font-size: 14px; }
.checkin-stats-empty span { display: block; margin-top: 5px; }
.checkin-activity-records-table .data-table { min-width: 760px; }
.checkin-admin-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.checkin-admin-guide > div {
  padding: 13px 15px;
  border: 1px solid #dcebe6;
  border-radius: 13px;
  background: #f7fbf9;
}
.checkin-admin-guide b { display: block; color: #174e43; font-size: 12px; }
.checkin-admin-guide span { display: block; margin-top: 4px; color: #6d7d78; font-size: 11px; line-height: 1.6; }
.checkin-admin-editor { display: grid; gap: 12px; }
.checkin-editor-section {
  padding: 14px;
  border: 1px solid #e0e9e6;
  border-radius: 14px;
  background: #fff;
}
.checkin-editor-section > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid #edf2f0;
}
.checkin-editor-section > header b { color: #24433b; font-size: 13px; }
.checkin-editor-section > header span { color: #98a2b3; font-size: 10px; text-align: right; }
.checkin-editor-two-col { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 14px; }
.checkin-cover-field { display: grid; grid-template-columns: 154px minmax(0, 1fr); align-items: center; gap: 12px; }
.checkin-cover-preview {
  width: 154px;
  height: 92px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px dashed #a9cdc3;
  border-radius: 11px;
  color: #5d8f82;
  background: #f2faf7;
}
.checkin-cover-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.checkin-cover-preview b { font-size: 25px; line-height: 1; }
.checkin-cover-preview small { margin-top: 3px; color: #8aa29b; font-size: 9px; }
.checkin-cover-empty { display: grid; place-items: center; }
.checkin-cover-empty b { display: block; }
.checkin-cover-empty small { display: block; }
.checkin-cover-field > div { display: grid; gap: 7px; min-width: 0; }
.checkin-cover-upload { justify-self: start; }
.checkin-cover-upload input { display: none; }
.checkin-circle-link-box { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr); gap: 12px; }
.checkin-circle-link-box > label:first-child { display: grid; gap: 6px; }
.checkin-circle-link-box > label:first-child > span { color: #475467; font-size: 12px; font-weight: 700; }
.checkin-circle-sync-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid #dfe9e5;
  border-radius: 11px;
  background: #fbfcfc;
  cursor: pointer;
}
.checkin-circle-sync-toggle:has(input:disabled) { cursor: default; opacity: .68; }
.checkin-circle-sync-toggle input { width: 17px; height: 17px; margin: 2px 0 0; flex: 0 0 auto; accent-color: #0d6e5c; }
.checkin-circle-sync-toggle span { min-width: 0; }
.checkin-circle-sync-toggle b { display: block; color: #344054; font-size: 12px; }
.checkin-circle-sync-toggle small { display: block; margin-top: 3px; color: #7b8794; font-size: 10px; line-height: 1.5; }
.checkin-responsible-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.checkin-responsible-card { min-width: 0; padding: 12px; border: 1px solid #dfe9e5; border-radius: 12px; background: #fbfcfc; }
.checkin-responsible-card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.checkin-responsible-card > header b { color: #344054; font-size: 12px; }
.checkin-responsible-card > header small { color: #8b9894; font-size: 9px; text-align: right; }
.checkin-owner-select { width: 100%; min-height: 38px; box-sizing: border-box; }
.checkin-owner-search { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 10px; border: 1px solid #d8e4e0; border-radius: 9px; background: #fff; box-sizing: border-box; }
.checkin-owner-search:focus-within { border-color: #21b08d; box-shadow: 0 0 0 2px rgba(33,176,141,.12); }
.checkin-owner-search > span { flex: 0 0 auto; color: #6f958b; font-size: 15px; }
.checkin-owner-search input { width: 100%; min-width: 0; height: 34px; padding: 0; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; font-size: 12px; }
.checkin-owner-search input:disabled { cursor: not-allowed; opacity: .6; }
.checkin-owner-results { display: grid; gap: 5px; max-height: 208px; margin-top: 7px; overflow: auto; }
.checkin-owner-result {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid #e1ebe7;
  border-radius: 9px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.checkin-owner-result:hover { border-color: #b8dcd1; background: #f4fbf8; }
.checkin-owner-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #0d6e5c; background: #e6f5ef; font-size: 11px; font-weight: 800; }
.checkin-owner-result-main { min-width: 0; }
.checkin-owner-result-main b { display: block; overflow: hidden; color: #334a43; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.checkin-owner-result-main small { display: block; margin-top: 2px; overflow: hidden; color: #8a9793; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.checkin-owner-result em { flex: 0 0 auto; color: #0d6e5c; font-size: 9px; font-style: normal; font-weight: 800; }
.checkin-owner-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.checkin-owner-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 5px 5px 5px 8px; border-radius: 9px; background: #eaf6f1; }
.checkin-owner-chip > span { min-width: 0; }
.checkin-owner-chip b { display: block; max-width: 180px; overflow: hidden; color: #28564a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.checkin-owner-chip small { display: block; margin-top: 1px; color: #78958c; font-size: 8px; }
.checkin-owner-chip button { flex: 0 0 auto; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; color: #58766d; background: rgba(255,255,255,.72); cursor: pointer; line-height: 20px; }
.checkin-owner-empty,
.checkin-owner-loading { display: block; padding: 7px 1px 1px; color: #8b9894; font-size: 9px; line-height: 1.5; }
.checkin-owner-hint { margin: 7px 1px 0; color: #8b9894; font-size: 9px; line-height: 1.55; }
.checkin-owner-privacy { margin: 9px 1px 0; color: #7c8c87; font-size: 9px; line-height: 1.55; }
.checkin-editor-publish-panel { margin-top: 14px; }
.checkin-editor-publish-panel .checkin-editor-two-col { align-items: start; }
.checkin-editor-preview {
  position: sticky;
  top: 12px;
  min-width: 0;
}
.checkin-editor-preview .deco-preview-phone {
  width: min(100%, 290px);
  border-width: 6px;
  border-radius: 25px;
}
.checkin-preview-cover-fallback {
  background:
    radial-gradient(circle at 78% 20%, rgba(242,184,75,.34), transparent 31%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.14), transparent 28%),
    linear-gradient(135deg, #0d6e5c, #103f48);
}
.checkin-preview-cover-fallback small {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: rgba(255,255,255,.78);
  font-size: 9px;
  font-weight: 700;
}
.checkin-preview-cover-mark {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translate(-50%,-50%);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  color: #fff;
  background: rgba(4,24,20,.46);
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 5px 16px rgba(0,0,0,.16);
}
.checkin-editor-phone-real .course-preview-price small {
  color: #98a2b3;
  font-size: 9px;
}
.checkin-preview-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #e6eeeb;
  border-radius: 10px;
  background: #e6eeeb;
}
.checkin-preview-progress span {
  min-width: 0;
  padding: 8px 3px;
  background: #f8fbfa;
  text-align: center;
}
.checkin-preview-progress b {
  display: block;
  color: #0d6e5c;
  font-size: 14px;
}
.checkin-preview-progress small {
  display: block;
  margin-top: 2px;
  color: #8b9793;
  font-size: 7.5px;
}
.checkin-preview-rules {
  margin-top: 11px;
  padding: 9px;
  border-radius: 9px;
  background: #f6faf8;
}
.checkin-preview-rules b {
  color: #344054;
  font-size: 10.5px;
}
.checkin-preview-rules p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 9px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.checkin-delete-warning { padding: 14px; border: 1px solid #f1d6c3; border-radius: 12px; background: #fff9f4; }
.checkin-delete-warning b { color: #9a4c1d; font-size: 13px; }
.checkin-delete-warning p { margin: 7px 0 0; color: #7a6457; font-size: 11px; line-height: 1.65; }
.checkin-stats-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 11px;
  border: 1px solid #dfeae6;
  border-radius: 12px;
  background: #f5faf8;
}
.checkin-stats-summary span { color: #667085; font-size: 11px; text-align: center; }
.checkin-stats-summary b { display: block; margin-top: 3px; color: #174e43; font-size: 17px; }
.checkin-stats-subtitle { margin: 16px 0 8px; color: #344054; font-size: 13px; }
.checkin-print-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 9px; color: #667085; background: #f7f9f8; font-size: 11px; }
.checkin-stats-table { overflow: auto; }
.checkin-stats-table .data-table { min-width: 560px; }

@media (max-width: 1360px) {
  .checkin-list-toolbar { grid-template-columns: minmax(0, 1fr); }
  .checkin-toolbar-batch {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .checkin-selection-count { margin-right: auto; }
}

@media (max-width: 1120px) {
  .checkin-toolbar-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .checkin-toolbar-filters .checkin-search-box,
  .checkin-toolbar-filters .secondary-btn { grid-column: 1 / -1; }
  .checkin-toolbar-batch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .checkin-toolbar-batch > * { width: 100%; min-width: 0; }
  .checkin-selection-count {
    grid-column: 1 / -1;
    margin-right: 0;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .checkin-admin-statbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkin-admin-statbar > span:last-child { grid-column: 1 / -1; }
  .checkin-toolbar-filters { grid-template-columns: minmax(0, 1fr); }
  .checkin-toolbar-filters > * { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .checkin-toolbar-batch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkin-toolbar-batch .danger-outline { grid-column: 1 / -1; }
  .checkin-admin-panel .panel-head { flex-direction: column; }
  .checkin-admin-panel .panel-head-actions { justify-content: flex-start; width: 100%; }
  .checkin-admin-panel .panel-head-actions .primary-btn { flex: 1 1 100%; }
  .checkin-pagination { align-items: flex-start; flex-wrap: wrap; }
}

.checkin-home-section { padding-top: 2px; }
.checkin-home-count { color: #0d6e5c !important; font-size: 10px; font-weight: 700; }
.checkin-home-list { display: grid; gap: 8px; }
.checkin-home-card {
  width: 100%;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid #dfeae6;
  border-radius: 15px;
  color: inherit;
  background: #fff;
  text-align: left;
  box-shadow: 0 5px 16px rgba(18, 75, 62, .06);
}
.checkin-home-cover { width: 78px; height: 58px; overflow: hidden; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(145deg, #21b08d, #0d6e5c); }
.checkin-home-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.checkin-cover-fallback { color: #fff; font-size: 23px; font-weight: 800; }
.checkin-home-copy { min-width: 0; }
.checkin-home-copy small { display: block; color: #14866d; font-size: 9px; font-weight: 700; }
.checkin-home-copy b { display: block; margin-top: 3px; overflow: hidden; color: #233b35; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.checkin-home-copy em { display: -webkit-box; margin-top: 3px; overflow: hidden; color: #8a9793; font-size: 9px; font-style: normal; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.checkin-home-arrow { color: #9eb3ad; font-size: 22px; }

.checkin-page {
  min-height: 100%;
  color: #263b35;
  background: #f4f8f6;
}
.checkin-page-top {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 47px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(216, 229, 224, .84);
  background: rgba(249, 252, 251, .94);
  backdrop-filter: blur(14px);
}
.checkin-page-top button {
  width: 38px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #28483f;
  background: transparent;
  font-size: 27px;
  line-height: 1;
}
.checkin-page-top > b { overflow: hidden; color: #263b35; font-size: 14px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.checkin-share-top { justify-self: end; color: #0d6e5c !important; font-size: 12px !important; font-weight: 700; }
.checkin-hero { position: relative; height: 210px; overflow: hidden; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #1c9c7d, #0d6e5c); }
.checkin-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.checkin-hero-fallback { font-size: 76px; font-weight: 800; opacity: .34; }
.checkin-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,39,32,.05), rgba(9,39,32,.82)); }
.checkin-hero-copy { position: absolute; left: 18px; right: 18px; bottom: 17px; }
.checkin-status-pill { display: inline-flex; padding: 3px 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #ecfff9; background: rgba(10,66,54,.52); font-size: 9px; font-weight: 700; backdrop-filter: blur(6px); }
.checkin-hero-copy h2 { margin: 8px 0 5px; color: #fff; font-size: 23px; line-height: 1.25; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.checkin-hero-copy p { display: -webkit-box; margin: 0; overflow: hidden; color: rgba(255,255,255,.88); font-size: 11px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.checkin-hero-copy small { display: block; margin-top: 7px; color: #ffe7a2; font-size: 10px; font-weight: 700; }
.checkin-page-body { display: grid; gap: 10px; padding: 11px 12px calc(30px + env(safe-area-inset-bottom)); }
.checkin-progress-grid {
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: -25px;
  overflow: hidden;
  border: 1px solid #e1ebe7;
  border-radius: 15px;
  background: #e6efec;
  box-shadow: 0 8px 22px rgba(24, 78, 65, .1);
}
.checkin-progress-grid > div { min-width: 0; padding: 12px 5px; background: #fff; text-align: center; }
.checkin-progress-grid b { display: block; color: #0d6e5c; font-size: 19px; line-height: 1; }
.checkin-progress-grid span { display: block; margin-top: 5px; color: #84928e; font-size: 9px; }
.checkin-login-card,
.checkin-notice,
.checkin-linked-context,
.checkin-empty { border-radius: 13px; }
.checkin-login-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
  border: 1px solid #d9eae5;
  background: linear-gradient(145deg, #fff, #f3faf7);
}
.checkin-login-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #21aa66; font-size: 14px; font-weight: 800; }
.checkin-login-card > div { min-width: 0; }
.checkin-login-card b { display: block; color: #25443b; font-size: 13px; }
.checkin-login-card p { margin: 4px 0 0; color: #71817c; font-size: 10px; line-height: 1.6; }
.checkin-login-card > button {
  grid-column: 1 / -1;
  min-height: 39px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #21b08d, #0d6e5c);
  font-size: 12px;
  font-weight: 800;
}
.checkin-login-card > .checkin-login-alt { min-height: 34px; color: #0d6e5c; background: transparent; font-weight: 700; }
.checkin-notice { display: grid; gap: 3px; padding: 11px 12px; border: 1px solid #d8eae4; color: #49655c; background: #f3faf7; }
.checkin-notice b { font-size: 12px; }
.checkin-notice span { font-size: 10px; line-height: 1.6; }
.checkin-notice.warning { border-color: #f1dfbb; color: #76591e; background: #fffaf0; }
.checkin-notice.success { border-color: #cfe7dd; color: #1b6654; background: #f1faf6; }
.checkin-inline-error { padding: 10px 12px; border: 1px solid #f0d1d1; border-radius: 11px; color: #9a3e3e; background: #fff6f6; font-size: 11px; line-height: 1.6; }
.checkin-linked-context {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #d8e8e3;
  background: #fff;
}
.checkin-linked-context > span { flex: 0 0 auto; padding: 3px 6px; border-radius: 5px; color: #0d6e5c; background: #e9f6f1; font-size: 9px; font-weight: 800; }
.checkin-linked-context > div { min-width: 0; }
.checkin-linked-context b { display: block; color: #334c45; font-size: 12px; }
.checkin-linked-context small { display: block; margin-top: 3px; color: #7c8b86; font-size: 9px; line-height: 1.55; }
.checkin-action-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checkin-action-row > button {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #dce8e4;
  border-radius: 11px;
  color: #34534a;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}
.checkin-action-row > button:only-child { grid-column: 1 / -1; }
.checkin-action-row span { display: inline-grid; min-width: 19px; height: 19px; margin-left: 4px; place-items: center; border-radius: 999px; color: #0d6e5c; background: #e9f6f1; font-size: 9px; }
.checkin-compose,
.checkin-done-card,
.checkin-rules-card,
.checkin-detail-section,
.checkin-team-section,
.checkin-records-section {
  border: 1px solid #e0e9e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(21, 70, 58, .045);
}
.checkin-compose { padding: 12px; }
.checkin-compose-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.checkin-compose-head b { display: block; color: #263e37; font-size: 13px; }
.checkin-compose-head span { display: block; margin-top: 3px; color: #8a9894; font-size: 9px; line-height: 1.5; }
.checkin-compose-head > small { flex: 0 0 auto; color: #9aa7a3; font-size: 9px; }
.checkin-compose textarea { width: 100%; min-height: 88px; resize: vertical; border-color: #dfe9e5; background: #fbfcfc; }
.checkin-custom-content { display: grid; gap: 9px; margin-bottom: 10px; padding: 10px; border: 1px solid #e1ebe7; border-radius: 11px; background: #f9fcfb; }
.checkin-custom-content > header b { display: block; color: #294a41; font-size: 12px; }
.checkin-custom-content > header span { display: block; margin-top: 3px; color: #879590; font-size: 9px; line-height: 1.5; }
.checkin-custom-field { display: grid; gap: 6px; padding-top: 9px; border-top: 1px solid #e9efed; }
.checkin-custom-field:first-of-type { padding-top: 2px; border-top: 0; }
.checkin-custom-field-label { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.checkin-custom-field-label b { color: #354e47; font-size: 11px; }
.checkin-custom-field-label em,
.checkin-custom-field-label small { padding: 2px 5px; border-radius: 5px; font-size: 8px; font-style: normal; font-weight: 700; }
.checkin-custom-field-label em { color: #9e4747; background: #fff0f0; }
.checkin-custom-field-label small { color: #7e8d88; background: #edf3f1; }
.checkin-custom-field-label span { flex-basis: 100%; color: #8a9894; font-size: 9px; line-height: 1.5; }
.checkin-custom-field > input,
.checkin-custom-field > select,
.checkin-custom-field > textarea { width: 100%; border-color: #dfe9e5; background: #fff; }
.checkin-custom-field > textarea { min-height: 70px; resize: vertical; }
.checkin-field-number { display: flex; align-items: center; gap: 7px; }
.checkin-field-number input { flex: 1; min-width: 0; }
.checkin-field-number span { flex: 0 0 auto; color: #688078; font-size: 10px; font-weight: 700; }
.checkin-field-options { display: flex; flex-wrap: wrap; gap: 6px; }
.checkin-field-options label { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid #dce8e4; border-radius: 8px; color: #466158; background: #fff; font-size: 10px; }
.checkin-field-options input { width: 15px; height: 15px; accent-color: #0d6e5c; }
.checkin-field-images { display: grid; gap: 5px; margin-top: 2px; }
.checkin-field-images-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.checkin-field-images-head span { color: #60736c; font-size: 9px; font-weight: 700; }
.checkin-field-images-head small { color: #98a2b3; font-size: 8px; }
.checkin-field-image-grid { margin-top: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.checkin-record-answers { display: grid; gap: 4px; margin-top: 7px; }
.checkin-record-answer { display: flex; align-items: flex-start; gap: 6px; padding: 5px 7px; border-radius: 7px; background: #f5f9f7; }
.checkin-record-answer b { flex: 0 0 auto; color: #5b7069; font-size: 9px; }
.checkin-record-answer span { min-width: 0; flex: 1; color: #334b43; font-size: 9px; line-height: 1.5; word-break: break-word; }
.checkin-record-answer small { flex: 0 0 auto; color: #8b9995; font-size: 8px; }
.checkin-image-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.checkin-selected-image,
.checkin-add-image { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 10px; }
.checkin-selected-image { background: #eef3f1; }
.checkin-selected-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.checkin-selected-image button { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(20,31,28,.7); font-size: 16px; line-height: 22px; }
.checkin-add-image { display: grid; place-items: center; align-content: center; border: 1px dashed #a8c9c0; color: #669287; background: #f5faf8; cursor: pointer; }
.checkin-add-image > span { font-size: 23px; line-height: 1; }
.checkin-add-image > small { margin-top: 4px; font-size: 9px; }
.checkin-add-image input { display: none; }
.checkin-compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; }
.checkin-compose-foot > span { color: #9aa5a2; font-size: 9px; line-height: 1.4; }
.checkin-compose-foot .primary-btn { flex: 0 0 auto; min-height: 38px; }
.checkin-done-card { display: flex; align-items: center; gap: 10px; padding: 13px; border-color: #cfe6dd; background: linear-gradient(145deg, #f7fcfa, #eef8f4); }
.checkin-done-card > span { width: 37px; height: 37px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #21a67e; font-size: 17px; font-weight: 800; }
.checkin-done-card b { color: #1d5a4b; font-size: 13px; }
.checkin-done-card p { margin: 3px 0 0; color: #6f837d; font-size: 10px; line-height: 1.55; }
.checkin-done-card button {
  margin-top: 8px;
  padding: 5px 9px;
  border: 1px solid #cfe4dd;
  border-radius: 8px;
  color: #0d6e5c;
  background: #fff;
  font-size: 9px;
  font-weight: 700;
}
.checkin-rules-card,
.checkin-detail-section,
.checkin-team-section,
.checkin-records-section { padding: 12px; }
.checkin-rules-card header,
.checkin-detail-section header,
.checkin-team-section > header,
.checkin-records-section > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.checkin-rules-card b,
.checkin-detail-section header b,
.checkin-team-section header b,
.checkin-records-section header b { color: #314b44; font-size: 12px; }
.checkin-rules-card header span,
.checkin-detail-section header span,
.checkin-team-section header span,
.checkin-records-section header span { display: block; margin-top: 3px; color: #98a2b3; font-size: 9px; line-height: 1.5; }
.checkin-rules-card p { margin: 9px 0 0; color: #61716c; font-size: 10px; line-height: 1.75; white-space: pre-wrap; }
.checkin-rules-card > small { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid #eff3f1; color: #8e9b97; font-size: 9px; }
.checkin-detail-rich {
  margin-top: 9px;
  color: #55645f;
  font-size: 10px;
  line-height: 1.75;
  word-break: break-word;
}
.checkin-detail-rich > :first-child { margin-top: 0; }
.checkin-detail-rich > :last-child { margin-bottom: 0; }
.checkin-detail-rich img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 9px;
}
.checkin-detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}
.checkin-detail-gallery a {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #eef2f1;
}
.checkin-detail-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.checkin-team-section header button { padding: 4px 8px; border: 0; border-radius: 7px; color: #0d6e5c; background: #edf8f4; font-size: 9px; }
.checkin-team-list { display: grid; gap: 7px; margin-top: 10px; }
.checkin-team-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 9px; padding: 9px 0; border-top: 1px solid #f0f3f2; }
.checkin-team-row:first-child { border-top: 0; }
.checkin-team-row > div { min-width: 0; }
.checkin-team-row b { display: block; overflow: hidden; color: #334a43; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.checkin-team-row small { display: block; margin-top: 2px; color: #98a2b3; font-size: 9px; }
.checkin-team-row em { grid-column: 1 / -1; color: #74827e; font-size: 9px; font-style: normal; }
.checkin-team-empty { margin-top: 9px; padding: 11px; border-radius: 10px; color: #73817d; background: #f7f9f8; font-size: 10px; line-height: 1.6; }
.checkin-team-empty b { display: block; color: #52645e; }
.checkin-team-empty span { display: block; margin-top: 3px; }
.checkin-role-badge,
.checkin-reviewer-badge,
.checkin-legacy-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.5;
}
.checkin-role-badge { color: #466158; background: #edf4f1; }
.checkin-role-badge.guest { color: #7a5a17; background: #fff4d8; }
.checkin-role-badge.monitor { color: #62438a; background: #f1eafa; }
.checkin-role-badge.assistant { color: #1d6580; background: #e8f5fa; }
.checkin-reviewer-badge { color: #8a5a10; background: linear-gradient(135deg, #fff2c7, #ffe4a0); }
.checkin-legacy-badge { margin-top: 4px; color: #7c8582; background: #eef1f0; }
.checkin-feed-section { display: grid; gap: 10px; padding: 12px; border: 1px solid #e3ebe8; border-radius: 14px; background: #fff; box-shadow: 0 4px 16px rgba(28,78,65,.04); }
.checkin-feed-section > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.checkin-feed-section > header > div { min-width: 0; }
.checkin-feed-section > header b { display: block; color: #2d4a42; font-size: 13px; }
.checkin-feed-section > header span { display: block; margin-top: 3px; color: #879590; font-size: 9px; line-height: 1.55; }
.checkin-feed-section > header em { flex: 0 0 auto; color: #0d6e5c; font-size: 9px; font-style: normal; font-weight: 800; }
.checkin-feed-join-note { padding: 13px; border-radius: 10px; color: #74847f; background: #f7faf9; font-size: 10px; line-height: 1.65; text-align: center; }
.checkin-feed-list { display: grid; gap: 9px; }
.checkin-feed-card { min-width: 0; padding: 11px; border: 1px solid #e7eeeb; border-radius: 12px; background: linear-gradient(180deg, #fff, #fcfdfd); }
.checkin-feed-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.checkin-feed-card > header > div { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 0; }
.checkin-feed-card > header b { color: #314b44; font-size: 11px; }
.checkin-feed-card > header time { flex: 0 0 auto; color: #9aa6a2; font-size: 8px; }
.checkin-feed-card p { margin: 7px 0 0; color: #526660; font-size: 10px; line-height: 1.65; white-space: pre-wrap; }
.checkin-feed-card .checkin-record-images { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checkin-feed-comments { display: grid; gap: 5px; margin-top: 8px; padding: 8px; border-radius: 9px; background: #f6f9f8; }
.checkin-feed-comment { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; color: #5d706a; font-size: 9px; line-height: 1.55; }
.checkin-feed-comment b { color: #34564c; font-size: 9px; }
.checkin-feed-comment small { color: #94a09c; font-size: 8px; }
.checkin-feed-comment span { flex-basis: 100%; padding-left: 2px; }
.checkin-feed-card > footer { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 9px; padding-top: 8px; border-top: 1px solid #eef2f0; }
.checkin-feed-card > footer button { min-height: 28px; padding: 4px 9px; border: 1px solid #deebe6; border-radius: 8px; color: #5f746d; background: #fff; font-size: 9px; font-weight: 700; }
.checkin-feed-card > footer button.active { border-color: #f0c8cf; color: #c64e63; background: #fff5f7; }
.checkin-comment-modal { display: grid; gap: 11px; }
.checkin-comment-target { padding: 11px; border: 1px solid #e1ebe7; border-radius: 12px; background: #fbfdfc; }
.checkin-comment-target > header { display: flex; align-items: center; gap: 6px; }
.checkin-comment-target > header b { color: #29483f; font-size: 12px; }
.checkin-comment-target p { margin: 7px 0 0; color: #50645d; font-size: 11px; line-height: 1.65; }
.checkin-comment-modal h4 { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; color: #344d46; font-size: 12px; }
.checkin-comment-modal h4 span { color: #8c9995; font-size: 9px; }
.checkin-comment-list { display: grid; gap: 7px; max-height: 320px; overflow: auto; }
.checkin-comment-item { padding: 9px 10px; border-radius: 10px; background: #f7f9f8; }
.checkin-comment-item > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.checkin-comment-item > header > div { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.checkin-comment-item b { color: #324b44; font-size: 10px; }
.checkin-comment-item small,
.checkin-comment-item time { color: #99a5a1; font-size: 8px; }
.checkin-comment-item p { margin: 5px 0 0; color: #566861; font-size: 10px; line-height: 1.65; white-space: pre-wrap; }
.checkin-comment-empty { padding: 14px; border-radius: 10px; color: #8b9894; background: #f7f9f8; font-size: 10px; text-align: center; }
.checkin-comment-compose textarea { min-height: 82px; }
.checkin-reviewer-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid #efddae; border-radius: 12px; background: linear-gradient(135deg, #fffdf6, #fff8e8); }
.checkin-reviewer-summary.empty { border-color: #e5eae8; background: #fafcfb; }
.checkin-reviewer-summary > div:first-child { min-width: 0; }
.checkin-reviewer-summary span { display: block; color: #91732b; font-size: 9px; font-weight: 800; }
.checkin-reviewer-summary b { display: block; margin-top: 2px; color: #4b3a17; font-size: 12px; }
.checkin-reviewer-summary small { display: block; margin-top: 3px; color: #88795b; font-size: 9px; line-height: 1.5; }
.checkin-reviewer-summary.empty span,
.checkin-reviewer-summary.empty b { color: #657670; }
.checkin-participant-table .data-table { min-width: 980px; }
.checkin-participant-table tr.checkin-reviewer-row > td { background: #fffdf7; }
.checkin-reviewer-caption { display: block; margin-top: 3px; color: #a27622; font-size: 8px; font-weight: 700; }
.checkin-participant-actions { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.checkin-participant-actions .mini-btn { padding-inline: 6px; }
.checkin-action-hint { color: #939f9b; font-size: 8px; }
.checkin-stats-note { margin: -2px 0 2px; color: #7c8c87; font-size: 9px; line-height: 1.6; }
.checkin-reviewer-editor { display: grid; gap: 12px; }
.checkin-reviewer-candidate { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid #e4ebe8; border-radius: 11px; background: #fbfdfc; }
.checkin-reviewer-candidate > span { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #21b08d, #0d6e5c); font-size: 14px; font-weight: 800; }
.checkin-reviewer-candidate b { display: block; color: #2f4b43; font-size: 12px; }
.checkin-reviewer-candidate small { display: block; margin-top: 3px; color: #7f8f89; font-size: 9px; line-height: 1.5; }
.checkin-reviewer-members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 270px; overflow: auto; padding: 8px; border-radius: 10px; background: #f7f9f8; }
.checkin-reviewer-members label { display: flex; align-items: flex-start; gap: 7px; padding: 8px; border: 1px solid #e4ebe8; border-radius: 9px; background: #fff; cursor: pointer; }
.checkin-reviewer-members input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: #0d6e5c; }
.checkin-reviewer-members label > span { min-width: 0; }
.checkin-reviewer-members b { display: block; color: #384f48; font-size: 10px; }
.checkin-reviewer-members small { display: block; margin-top: 2px; color: #8b9894; font-size: 8px; }
.checkin-reviewer-members p { grid-column: 1 / -1; margin: 0; color: #8b9894; font-size: 9px; }
.checkin-record-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 8px; }
.checkin-record-images a { aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #eef2f1; }
.checkin-record-images img { width: 100%; height: 100%; display: block; object-fit: cover; }
.checkin-timeline { display: grid; gap: 0; margin-top: 10px; }
.checkin-timeline-item { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; padding-bottom: 10px; }
.checkin-timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: -2px; width: 1px; background: #dbe8e4; }
.checkin-timeline-dot { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 10px; border: 3px solid #d9f1e9; border-radius: 50%; background: #21a57e; }
.checkin-timeline-card { min-width: 0; padding: 10px 11px; border: 1px solid #e8eeec; border-radius: 11px; background: #fbfcfc; }
.checkin-timeline-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.checkin-timeline-card header b { color: #3c544d; font-size: 10px; }
.checkin-timeline-card time { color: #9ca8a4; font-size: 9px; }
.checkin-timeline-card p { margin: 6px 0 0; color: #536761; font-size: 10px; line-height: 1.65; white-space: pre-wrap; }
.checkin-empty { padding: 18px 12px; color: #8c9995; background: #f8faf9; text-align: center; }
.checkin-empty b { display: block; color: #5f716b; font-size: 11px; }
.checkin-empty span { display: block; margin-top: 4px; font-size: 9px; }
.checkin-empty-page { display: grid; place-items: center; align-content: center; min-height: 340px; padding: 24px; color: #788682; text-align: center; }
.checkin-empty-page b { color: #334b43; font-size: 16px; }
.checkin-empty-page span { margin-top: 6px; font-size: 11px; }

.checkin-assignment-checkin {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 7px;
  padding: 7px 8px;
  border: 1px solid #d9ebe5;
  border-radius: 9px;
  background: #f3faf7;
}
.circle-assignment-checkin > span { flex: 0 0 auto; padding: 2px 5px; border-radius: 5px; color: #0d6e5c; background: #e2f4ee; font-size: 9px; font-weight: 800; }
.circle-assignment-checkin > b { min-width: 0; flex: 1; overflow: hidden; color: #365249; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.circle-assignment-checkin > small { flex: 0 0 auto; color: #789089; font-size: 9px; }
.circle-assignment-checkin.unavailable { border-color: #f0dfc8; background: #fffaf2; }
.circle-assignment-checkin.unavailable > span { color: #8a5a16; background: #fff0d4; }
.circle-assignment-checkin.unavailable > b { color: #7b6241; }
.circle-assignment-card.is-checkin { border-color: #cfe6df; }
.circle-assignment-card.is-form { border-color: #d9e5ef; background: linear-gradient(180deg, #fbfdff, #fff 70%); }
.circle-assignment-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 13px 0 0;
  padding: 11px 12px;
  border: 1px solid #dde9e5;
  border-radius: 11px;
  background: #f7fbf9;
}
.circle-assignment-form-head > div { min-width: 0; }
.circle-assignment-form-head span { display: block; color: #879893; font-size: 9px; }
.circle-assignment-form-head b { display: block; margin-top: 3px; color: #28483f; font-size: 13px; }
.circle-assignment-form-head em {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  color: #0d6e5c;
  background: #e5f5ef;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.circle-assignment-form-desc {
  margin: 9px 1px 0;
  color: #71807b;
  font-size: 11px;
  line-height: 1.7;
}
.circle-assignment-form-fields { margin-top: 12px; }
.circle-submission-head-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.circle-form-answer-note { color: #7b8b86 !important; font-size: 10px !important; }
.circle-form-answer-card { border: 0; padding: 0; }
.circle-form-answer-form-name { margin-top: 10px; padding: 7px 9px; border-radius: 8px; color: #0d6e5c; background: #f0faf6; font-size: 11px; font-weight: 700; }

@media (max-width: 900px) {
  .checkin-editor-two-col,
  .checkin-circle-link-box,
  .checkin-responsible-grid { grid-template-columns: 1fr; }
  .checkin-editor-preview { position: static; order: 2; }
  .checkin-admin-editor { order: 1; }
  .circle-submission-head { flex-wrap: wrap; }
  .circle-submission-head-actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 760px) {
  body.admin-mode .checkin-admin-table:has(tbody .row-actions) th:last-child,
  body.admin-mode .checkin-admin-table:has(tbody .row-actions) td:last-child {
    position: static;
    box-shadow: none;
  }
  .checkin-admin-statbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkin-admin-panel .panel-head { flex-direction: column; }
  .checkin-admin-panel .panel-head-actions { width: 100%; justify-content: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkin-admin-panel .panel-head-actions .primary-btn { grid-column: 1 / -1; }
  .checkin-admin-panel .panel-head-actions > * { width: 100%; min-width: 0; }
  .checkin-admin-guide { grid-template-columns: 1fr; }
  .checkin-admin-table-wrap { overflow: visible; background: transparent; border: 0; }
  .checkin-admin-table { min-width: 0; display: block; }
  .checkin-admin-table thead { display: none; }
  .checkin-admin-table tbody { display: grid; gap: 9px; }
  .checkin-admin-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 12px;
    padding: 12px;
    border: 1px solid #dfe8e5;
    border-radius: 13px;
    background: #fff;
  }
  .checkin-admin-table td { display: block; min-width: 0; padding: 0 !important; border: 0 !important; }
  .checkin-admin-table td:nth-child(1) { grid-column: 1; grid-row: 1; width: auto; min-width: 0; text-align: left; }
  .checkin-admin-table td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; }
  .checkin-admin-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .checkin-admin-table td:nth-child(3) { grid-column: 1; grid-row: 3; text-align: left; }
  .checkin-admin-table td:nth-child(5) { grid-column: 2; grid-row: 3; text-align: right; }
  .checkin-admin-table td:nth-child(6) { grid-column: 1; grid-row: 4; }
  .checkin-admin-table td:nth-child(7) { grid-column: 2; grid-row: 4; text-align: right; }
  .checkin-admin-table td:nth-child(8) { grid-column: 1 / -1; grid-row: 5; }
  .checkin-admin-table td:nth-child(9) { grid-column: 1 / -1; grid-row: 6; }
  .checkin-admin-table td:nth-child(3)::before,
  .checkin-admin-table td:nth-child(5)::before,
  .checkin-admin-table td:nth-child(6)::before,
  .checkin-admin-table td:nth-child(7)::before,
  .checkin-admin-table td:nth-child(8)::before {
    display: block;
    margin-bottom: 3px;
    color: #98a2b3;
    font-size: 9px;
    font-weight: 700;
  }
  .checkin-admin-table td:nth-child(3)::before { content: "排序"; }
  .checkin-admin-table td:nth-child(5)::before { content: "价格 / 权限"; }
  .checkin-admin-table td:nth-child(6)::before { content: "目标"; }
  .checkin-admin-table td:nth-child(7)::before { content: "周期"; }
  .checkin-admin-table td:nth-child(8)::before { content: "负责人"; }
  .checkin-admin-title { min-width: 0; }
  .checkin-admin-title small { max-width: none; }
  .checkin-admin-table td.checkin-row-actions { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .checkin-row-actions .mini-btn { width: 100%; min-width: 0; padding-left: 4px; padding-right: 4px; }
  .checkin-stats-summary { grid-template-columns: 1fr; }
  .checkin-stats-summary span { text-align: left; }
  .checkin-stats-summary b { display: inline; margin: 0 0 0 5px; }
}

@media (max-width: 520px) {
  .checkin-editor-tabs { gap: 5px; padding: 4px; }
  .checkin-editor-tabs button { padding: 8px 7px; text-align: center; }
  .checkin-editor-tabs button b { font-size: 12px; }
  .checkin-editor-tabs button small { display: none; }
  .checkin-edit-anchor-nav { flex-wrap: nowrap; overflow-x: auto; }
  .checkin-edit-anchor-nav button { flex: 0 0 auto; }
  .checkin-content-builder-intro,
  .checkin-editor-stats-head { align-items: stretch; flex-direction: column; }
  .checkin-content-builder-intro .primary-btn { width: 100%; }
  .checkin-editor-stats-actions { justify-content: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkin-editor-stats-actions > * { width: 100%; min-width: 0; }
  .checkin-editor-stats-actions .primary-btn { grid-column: 1 / -1; }
  .checkin-field-editor-card > header { align-items: flex-start; flex-direction: column; }
  .checkin-field-card-actions { width: 100%; }
  .checkin-field-card-actions button { flex: 1; }
  .checkin-field-image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .checkin-editor-section { padding: 12px; }
  .checkin-editor-section > header { align-items: flex-start; flex-direction: column; gap: 3px; }
  .checkin-editor-section > header span { text-align: left; }
  .checkin-cover-field { grid-template-columns: 1fr; }
  .checkin-cover-preview { width: min(100%, 210px); height: 118px; }
  .checkin-editor-publish-panel { padding: 12px; }
  .checkin-editor-preview .deco-preview-phone { width: min(100%, 300px); }
  .checkin-hero { height: 188px; }
  .checkin-hero-copy { left: 14px; right: 14px; bottom: 14px; }
  .checkin-hero-copy h2 { font-size: 20px; }
  .checkin-page-body { padding-left: 10px; padding-right: 10px; }
  .checkin-action-row > button { padding-left: 7px; padding-right: 7px; }
  .checkin-compose-foot { align-items: stretch; flex-direction: column; }
  .checkin-compose-foot .primary-btn { width: 100%; }
  .checkin-feed-section > header { flex-direction: column; }
  .checkin-feed-section > header em { align-self: flex-start; }
  .checkin-feed-card > footer button { flex: 1; }
  .checkin-reviewer-summary { align-items: stretch; flex-direction: column; }
  .checkin-reviewer-summary .secondary-btn { width: 100%; }
  .checkin-reviewer-members { grid-template-columns: 1fr; max-height: 230px; }
  .checkin-participant-table { overflow: visible; }
  .checkin-participant-table .data-table { min-width: 0; }
  .checkin-participant-table thead { display: none; }
  .checkin-participant-table tbody { display: grid; gap: 8px; }
  .checkin-participant-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 11px; border: 1px solid #e6ecea; border-radius: 11px; background: #fff; }
  .checkin-participant-table td { display: block; padding: 0 !important; border: 0 !important; color: #596b65; font-size: 10px; }
  .checkin-participant-table td:first-child,
  .checkin-participant-table td:last-child { grid-column: 1 / -1; }
  .checkin-participant-table td:nth-child(n+3):not(:last-child)::before {
    display: block;
    margin-bottom: 2px;
    color: #98a39f;
    font-size: 8px;
  }
  .checkin-participant-table td:nth-child(3)::before { content: "累计"; }
  .checkin-participant-table td:nth-child(4)::before { content: "连续"; }
  .checkin-participant-table td:nth-child(5)::before { content: "目标完成率"; }
  .checkin-participant-table td:nth-child(6)::before { content: "出勤率"; }
  .checkin-participant-table td:nth-child(7)::before { content: "最近打卡"; }
  .checkin-participant-table td:nth-child(8)::before { content: "今日"; }
  .checkin-participant-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .checkin-participant-actions .mini-btn { width: 100%; }
  .circle-assignment-checkin { align-items: flex-start; flex-wrap: wrap; }
  .circle-assignment-checkin > b { flex-basis: calc(100% - 60px); }
  .circle-assignment-checkin > small { flex-basis: 100%; padding-left: 44px; }
}

/* ===== 后台列表统一紧凑排版 =====
   所有列表共用更紧凑的单元格、单行操作区和可横向滚动的容器。
   有操作列的表格把操作列固定在右侧，窗口变窄时按钮不会被挤出视野。 */
body.admin-mode .data-panel {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}
body.admin-mode .data-table th { padding: 9px 12px; }
body.admin-mode .data-table td {
  padding: 9px 12px;
  line-height: 1.4;
  vertical-align: middle;
}
body.admin-mode .data-table .row-actions {
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  white-space: nowrap;
}
body.admin-mode .data-table .row-actions button {
  min-height: 28px;
  padding: 4px 8px;
  white-space: nowrap;
}
body.admin-mode .data-table:has(tbody .row-actions) th:last-child,
body.admin-mode .data-table:has(tbody .row-actions) td:last-child {
  position: sticky;
  right: 0;
  z-index: 1;
  background: #fff;
  box-shadow: -7px 0 12px rgba(20, 44, 37, .055);
}
body.admin-mode .data-table:has(tbody .row-actions) th:last-child {
  z-index: 2;
  background: #fafbfc;
}
body.admin-mode .data-table:has(tbody .row-actions) tr:hover td:last-child { background: #fbfdfc; }
body.admin-mode .data-table:has(tbody .row-actions) tr.admin-muted-row td:last-child { background: #fbfcfb; }
body.admin-mode .data-table:has(tbody .row-actions) tr.is-selected td:last-child { background: #f2faf7; }
body.admin-mode .shop-product-table tbody td {
  padding: 6px 10px;
  line-height: 1.45;
}
body.admin-mode .member-list-table {
  min-width: 1080px;
}
body.admin-mode .member-list-table .member-col-user { width: 140px; }
body.admin-mode .member-list-table td {
  padding: 8px 10px;
  line-height: 1.35;
}
body.admin-mode .member-list-table .member-list-actions button {
  min-height: 27px;
  padding: 4px 5px;
}

@media (max-width: 900px) {
  body.admin-mode .data-table:has(tbody .row-actions) th:last-child,
  body.admin-mode .data-table:has(tbody .row-actions) td:last-child {
    position: static;
    box-shadow: none;
  }
  body.admin-mode .admin-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    padding-inline: 0;
  }
  body.admin-mode .admin-toolbar > .search-box {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
  }
  body.admin-mode .admin-toolbar > .checkin-toolbar-filters,
  body.admin-mode .admin-toolbar > .checkin-toolbar-batch {
    grid-column: 1 / -1;
    min-width: 0;
  }
  body.admin-mode .admin-toolbar > select {
    width: 100%;
    min-width: 0;
  }
  body.admin-mode .admin-toolbar > .spacer { display: none; }
  body.admin-mode .admin-toolbar > .secondary-btn,
  body.admin-mode .admin-toolbar > .primary-btn,
  body.admin-mode .admin-toolbar > .ghost-btn {
    width: 100%;
    min-width: 0;
  }
  body.admin-mode .admin-toolbar > .mini-tag {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

@media (max-width: 760px) {
  body.admin-mode .checkin-admin-table:has(tbody .row-actions) th:last-child,
  body.admin-mode .checkin-admin-table:has(tbody .row-actions) td:last-child {
    position: static;
    box-shadow: none;
  }
}

/* 优惠券适用范围：后台一次选择商品 / 课程 / 圈子 / 直播 */
.coupon-form-grid {
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coupon-form-grid > * {
  min-width: 0;
}

.coupon-validity-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.coupon-validity-inline input {
  flex: 1 1 140px;
  min-width: 0;
}

.coupon-validity-inline select {
  flex: 0 0 100px;
  min-width: 0;
}

.coupon-apply-scope {
  min-width: 0;
}

.coupon-scope-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.coupon-scope-options > label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #d9e4e0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.coupon-scope-options > label:has(input:checked) {
  border-color: #14866d;
  background: #f2faf7;
  box-shadow: 0 0 0 2px rgba(20, 134, 109, .08);
}

.coupon-scope-options input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  accent-color: #14866d;
}

.coupon-scope-options span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.coupon-scope-options b {
  color: #173c34;
  font-size: 13px;
}

.coupon-scope-options small {
  color: #667085;
  font-size: 11px;
  line-height: 1.55;
}

.coupon-target-picker {
  min-width: 0;
  margin-top: 10px;
}

.coupon-target-all-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px dashed #b9d7ce;
  border-radius: 12px;
  background: #f7fbf9;
  color: #53665f;
  font-size: 12px;
  line-height: 1.6;
}

.coupon-target-all-note b {
  flex: 0 0 auto;
  color: #0d6e5c;
}

.coupon-target-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.coupon-target-toolbar > label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 280px;
  min-width: 0;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid #d7e2de;
  border-radius: 10px;
  background: #fff;
  color: #7a8b85;
}

.coupon-target-toolbar input {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #20332e;
  font: inherit;
}

.coupon-target-summary {
  flex: 0 0 auto;
  color: #667085;
  font-size: 12px;
}

.coupon-target-summary b {
  color: #0d6e5c;
}

.coupon-target-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.coupon-target-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e1e8e5;
  border-radius: 12px;
  background: #fff;
}

.coupon-target-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid #edf2f0;
  background: #f8faf9;
}

.coupon-target-group-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.coupon-target-group-head > div:first-child > span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #e8f5f1;
  color: #0d6e5c;
  font-size: 11px;
  font-weight: 800;
}

.coupon-target-group-head b {
  color: #24443b;
  font-size: 12px;
  white-space: nowrap;
}

.coupon-target-group-head small {
  color: #7a8b85;
  font-size: 10px;
  white-space: nowrap;
}

.coupon-target-group-actions {
  display: flex;
  gap: 5px;
  flex: 0 0 auto;
}

.coupon-target-group-actions button {
  min-height: 26px;
  padding: 3px 7px;
  border: 1px solid #d5e2dd;
  border-radius: 7px;
  background: #fff;
  color: #45635a;
  font-size: 10px;
  cursor: pointer;
}

.coupon-target-list {
  display: grid;
  max-height: 248px;
  overflow: auto;
  padding: 5px;
}

.coupon-target-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.coupon-target-row:hover,
.coupon-target-row.is-selected {
  background: #f1f8f5;
}

.coupon-target-row input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  accent-color: #14866d;
}

.coupon-target-row > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.coupon-target-row b {
  overflow: hidden;
  color: #263f38;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coupon-target-row small {
  overflow: hidden;
  color: #87948f;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coupon-target-empty {
  padding: 18px 10px;
  color: #87948f;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 760px) {
  .coupon-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .coupon-validity-inline select {
    flex-basis: 92px;
  }

  .coupon-scope-options,
  .coupon-target-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .coupon-target-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .coupon-target-toolbar > label {
    flex-basis: auto;
  }

  .coupon-target-summary {
    align-self: flex-end;
  }

  .coupon-target-list {
    max-height: 210px;
  }
}

.purchase-coupon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #dce7e3;
  border-radius: 11px;
  background: #f8fbfa;
}

.purchase-coupon-row > span {
  flex: 0 0 auto;
  color: #496159;
  font-size: 12px;
  font-weight: 700;
}

.purchase-coupon-row > select {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  border: 1px solid #d5e2dd;
  border-radius: 8px;
  background: #fff;
  color: #203a32;
}

/* 客户底栏不受系统字号、页面文字缩放和显示大小影响：固定在设备真实底部。 */
body.customer-mode .mini-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  overflow: hidden !important;
  contain: layout paint style;
  z-index: 200 !important;
  -webkit-text-size-adjust: none !important;
  text-size-adjust: none !important;
}

html body.customer-mode #miniNav button,
html body.customer-mode #appNav button {
  flex: 1 1 0 !important;
  width: 0 !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: 100% !important;
  padding: 0 2px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
  -webkit-text-size-adjust: none !important;
  text-size-adjust: none !important;
}

html body.customer-mode #miniNav button .nav-icon,
html body.customer-mode #appNav button .nav-icon {
  flex: 0 0 auto !important;
  width: 30px !important;
  height: 30px !important;
  font-size: 19px !important;
}

body.customer-mode #miniApp:not(.customer-detail-active):not(.circle-detail-active) > .mini-view,
body.customer-mode #appShell:not(.customer-detail-active):not(.circle-detail-active) #appView {
  padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  scroll-padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 900px) {
  body.customer-mode .mini-nav {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
  }
}
