/* ==========================================================================
   达知 · 机构端（jiaowu.dazhix.com）设计系统

   - 配色与小程序 / 官网一致：主色 #FFB400、青蓝 #0FA3B1、暖白底 #FFFBF2
   - 三档配色：浅色 / 深色 / 跟随系统（与 manage 后台一致）
     <html data-theme="light|dark|system">，由 base.html 顶部脚本在读 localStorage 后打上
   - 不依赖任何外网资源（字体走系统字体栈、图标是内联 SVG）
   ========================================================================== */
:root {
  --dz-brand: #ffb400;
  --dz-brand-light: #fff3d6;
  --dz-brand-dark: #e69e00;
  --dz-accent: #0fa3b1;
  --dz-text-1: #1f2937;
  --dz-text-2: #6b7280;
  --dz-text-3: #9ca3af;
  --dz-bg: #fffbf2;
  --dz-card: #ffffff;
  --dz-card-soft: #fffdf7;
  --dz-input: #ffffff;
  --dz-line: #f0e7d3;
  --dz-line-strong: #e3d8bd;
  --dz-danger: #d64545;
  --dz-ok: #12876f;
  --dz-tag-bg: #f3f4f6;
  --dz-info-bg: #eef7f6;
  --dz-info-text: #0b6b61;
  --dz-info-line: #cdeae5;
  --dz-error-bg: #fdeeee;
  --dz-error-text: #9b2c2c;
  --dz-error-line: #f6d5d5;
  --dz-warn-bg: #fff6e5;
  --dz-warn-text: #8a6100;
  --dz-warn-line: #ffe3ad;
  --dz-success-bg: #e9f7f0;
  --dz-success-text: #14624c;
  --dz-success-line: #c9ebdc;
  --dz-shadow: 0 1px 2px rgba(31, 41, 55, 0.04), 0 8px 24px rgba(31, 41, 55, 0.04);
  --dz-ring: 0 0 0 3px rgba(255, 180, 0, 0.28);
  --dz-side: 232px;
  --dz-side-collapsed: 68px;
  --dz-radius: 10px;
  --dz-radius-lg: 14px;
}

/* ---------- 深色 ---------- */
html[data-theme="dark"] {
  --dz-brand-light: rgba(255, 180, 0, 0.16);
  --dz-brand-dark: #ffc633;
  --dz-accent: #22b8c4;
  --dz-text-1: #e8e9ec;
  --dz-text-2: #a9afba;
  --dz-text-3: #7c8494;
  --dz-bg: #17181c;
  --dz-card: #202226;
  --dz-card-soft: #26282d;
  --dz-input: #1c1e22;
  --dz-line: #2f3238;
  --dz-line-strong: #3a3e45;
  --dz-danger: #f87171;
  --dz-ok: #4ade80;
  --dz-tag-bg: #2f3238;
  --dz-info-bg: #1b2b2c;
  --dz-info-text: #7fded4;
  --dz-info-line: #2a4849;
  --dz-error-bg: #2c1e1e;
  --dz-error-text: #f8a5a5;
  --dz-error-line: #4a2c2c;
  --dz-warn-bg: #2b2418;
  --dz-warn-text: #f2c879;
  --dz-warn-line: #4a3c1f;
  --dz-success-bg: #1a2b22;
  --dz-success-text: #86e0b4;
  --dz-success-line: #2b4636;
  --dz-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

/* ---------- 跟随系统 ---------- */
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --dz-brand-light: rgba(255, 180, 0, 0.16);
    --dz-brand-dark: #ffc633;
    --dz-accent: #22b8c4;
    --dz-text-1: #e8e9ec;
    --dz-text-2: #a9afba;
    --dz-text-3: #7c8494;
    --dz-bg: #17181c;
    --dz-card: #202226;
    --dz-card-soft: #26282d;
    --dz-input: #1c1e22;
    --dz-line: #2f3238;
    --dz-line-strong: #3a3e45;
    --dz-danger: #f87171;
    --dz-ok: #4ade80;
    --dz-tag-bg: #2f3238;
    --dz-info-bg: #1b2b2c;
    --dz-info-text: #7fded4;
    --dz-info-line: #2a4849;
    --dz-error-bg: #2c1e1e;
    --dz-error-text: #f8a5a5;
    --dz-error-line: #4a2c2c;
    --dz-warn-bg: #2b2418;
    --dz-warn-text: #f2c879;
    --dz-warn-line: #4a3c1f;
    --dz-success-bg: #1a2b22;
    --dz-success-text: #86e0b4;
    --dz-success-line: #2b4636;
    --dz-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

/* `hidden` 属性必须真的不显示：作者样式里的 display（.org-mask{display:flex}、
   .org-btn{display:inline-flex}）会压过浏览器默认的 `[hidden]{display:none}`，
   所以这里统一兜底。2026-10-16 踩过：弹窗关不掉、清除按钮去不掉。 */
[hidden] { display: none !important; }

/* ---------- 招生活动 / 拼好课 ---------- */
.activity-page { display: grid; gap: 18px; }
.activity-hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; padding: 28px 30px;
  border: 1px solid var(--dz-line); border-radius: var(--dz-radius-lg);
  background:
    radial-gradient(circle at 88% 12%, rgba(255,180,0,.28), transparent 28%),
    linear-gradient(135deg, var(--dz-card) 0%, var(--dz-card-soft) 100%);
  box-shadow: var(--dz-shadow);
}
.activity-hero h2 { margin: 5px 0 8px; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.02em; }
.activity-hero p { margin: 0; color: var(--dz-text-2); max-width: 720px; }
.activity-eyebrow { color: var(--dz-accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.activity-filters { margin: 0; }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.activity-card {
  display: block; overflow: hidden; color: var(--dz-text-1);
  border: 1px solid var(--dz-line); border-radius: 16px;
  background: var(--dz-card); box-shadow: var(--dz-shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.activity-card:hover { transform: translateY(-3px); border-color: var(--dz-brand); color: var(--dz-text-1); }
.activity-cover {
  position: relative; aspect-ratio: 16 / 9; background-size: cover; background-position: center;
  background-color: var(--dz-brand-light); display: flex; align-items: center; justify-content: center;
}
.activity-cover > span, .activity-detail-cover > span {
  color: var(--dz-brand-dark); font-size: 42px; font-weight: 900; letter-spacing: .1em;
}
.activity-status {
  display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px;
  border-radius: 999px; background: rgba(31,41,55,.72); color: #fff;
  font-size: 12px; font-style: normal; font-weight: 700; backdrop-filter: blur(8px);
}
.activity-cover .activity-status { position: absolute; top: 12px; right: 12px; }
.activity-status--published, .activity-status--success { background: rgba(18,135,111,.9); }
.activity-status--paused, .activity-status--draft { background: rgba(138,97,0,.9); }
.activity-status--cancelled, .activity-status--ended { background: rgba(107,114,128,.9); }
.activity-card-body { padding: 16px; }
.activity-card-title { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.activity-card-title b { font-size: 17px; line-height: 1.35; }
.activity-card-title strong { color: var(--dz-brand-dark); white-space: nowrap; }
.activity-card-body p {
  min-height: 44px; margin: 8px 0 14px; color: var(--dz-text-2); font-size: 13px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.activity-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--dz-text-2); font-size: 12px; }
.activity-meta span { padding: 4px 8px; border-radius: 7px; background: var(--dz-tag-bg); }
.activity-time { margin-top: 12px; color: var(--dz-text-3); font-size: 12px; }
.activity-empty { grid-column: 1 / -1; padding: 54px; text-align: center; }
.activity-empty b { font-size: 20px; }
.activity-empty p { color: var(--dz-text-2); }
.activity-form { display: grid; gap: 16px; max-width: 1120px; }
.activity-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 18px; }
.activity-form-grid .org-field { margin: 0; }
.activity-campus-options .org-check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.activity-campus-options label { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--dz-line); border-radius: 9px; }
.activity-toggle { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 600; }
.activity-current-cover img { width: min(420px,100%); aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; border: 1px solid var(--dz-line); }
.activity-submit-bar { position: sticky; bottom: 12px; padding: 12px; border: 1px solid var(--dz-line); border-radius: 12px; background: color-mix(in srgb, var(--dz-card) 92%, transparent); backdrop-filter: blur(12px); }
.org-btn--lg { min-height: 44px; padding: 0 18px; font-weight: 700; }
.org-btn--sm { min-height: 30px; padding: 0 10px; font-size: 12px; }
.org-btn--danger { border-color: var(--dz-error-line); color: var(--dz-danger); }
.activity-detail-head { display: grid; grid-template-columns: minmax(220px, 330px) 1fr; gap: 24px; align-items: center; }
.activity-detail-cover { aspect-ratio: 16/9; border-radius: 16px; border: 1px solid var(--dz-line); background-size: cover; background-position: center; background-color: var(--dz-brand-light); display: flex; align-items: center; justify-content: center; }
.activity-detail-main h2 { margin: 10px 0 8px; font-size: clamp(23px,2.4vw,34px); }
.activity-detail-main p { margin: 0 0 16px; color: var(--dz-text-2); }
.activity-detail-label, .activity-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--dz-text-2); font-size: 12px; }
.activity-detail-actions form { margin: 0; }
.activity-stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.activity-stat { padding: 16px; border: 1px solid var(--dz-line); border-radius: 13px; background: var(--dz-card); box-shadow: var(--dz-shadow); }
.activity-stat span { display: block; color: var(--dz-text-2); font-size: 12px; }
.activity-stat b { display: block; margin-top: 8px; font-size: 23px; color: var(--dz-text-1); }
.activity-stat small { color: var(--dz-text-3); }
.activity-tabs { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--dz-line); border-radius: 12px; background: var(--dz-card); overflow-x: auto; }
.activity-tabs a { padding: 9px 16px; border-radius: 8px; color: var(--dz-text-2); white-space: nowrap; }
.activity-tabs a.on { background: var(--dz-brand-light); color: var(--dz-brand-dark); font-weight: 700; }
.activity-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.activity-dl { display: grid; grid-template-columns: 90px 1fr; gap: 12px 16px; margin: 0; }
.activity-dl dt { color: var(--dz-text-3); }
.activity-dl dd { margin: 0; }
.activity-content { line-height: 1.85; color: var(--dz-text-2); }
.activity-inline-filter { margin: 0; }
.activity-inline-filter select { min-width: 150px; }
.activity-block-muted { display: block; color: var(--dz-text-3); margin-top: 2px; }
.activity-error { display: block; margin-top: 4px; color: var(--dz-danger); }
.org-table-wrap { width: 100%; overflow-x: auto; }
.activity-dialog { width: min(500px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--dz-line); border-radius: 16px; background: var(--dz-card); color: var(--dz-text-1); box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.activity-dialog::backdrop { background: rgba(10,12,16,.55); backdrop-filter: blur(2px); }
.activity-dialog h3 { margin: 0 0 6px; }
.activity-dialog p { color: var(--dz-text-2); }
.org-pagination { display: flex; justify-content: center; align-items: center; gap: 12px; }
@media (max-width: 1180px) {
  .activity-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .activity-stat-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .activity-hero { align-items: flex-start; flex-direction: column; padding: 22px; }
  .activity-grid, .activity-two-col, .activity-form-grid, .activity-detail-head { grid-template-columns: 1fr; }
  .activity-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .activity-detail-cover { max-height: 240px; }
  .activity-detail-actions .org-btn { flex: 1; justify-content: center; }
}

body.org {
  margin: 0;
  background: var(--dz-bg);
  color: var(--dz-text-1);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--dz-brand-dark); text-decoration: none; }
a:hover { text-decoration: none; color: var(--dz-brand); }
table { border-collapse: separate; border-spacing: 0; width: 100%; }
::selection { background: var(--dz-brand-light); }

/* 滚动条：细一点，跟底色一致 */
* { scrollbar-width: thin; scrollbar-color: var(--dz-line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: var(--dz-line-strong); border-radius: 999px;
  border: 3px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-track { background: transparent; }

/* ==========================================================================
   骨架：左侧菜单 + 主区
   ========================================================================== */
.org-shell { display: flex; min-height: 100vh; }

.org-side {
  width: var(--dz-side);
  flex-shrink: 0;
  background: var(--dz-card);
  border-right: 1px solid var(--dz-line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: width 0.16s ease;
  z-index: 20;
}

.org-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 14px; flex-shrink: 0;
}
.org-brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--dz-brand) 0%, #ffd166 100%);
  color: #1f2937; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 180, 0, 0.35);
}
.org-brand-text b { display: block; font-size: 16px; line-height: 1.3; }
.org-brand-text i { font-style: normal; font-size: 12px; color: var(--dz-text-3); }

/* ---------- 二级菜单 ---------- */
.org-nav { flex: 1; padding: 6px 10px 12px; }
.org-nav-group + .org-nav-group { margin-top: 6px; }
.org-nav-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 9px 10px; margin: 6px 0 3px;
  background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700;
  letter-spacing: 0.01em; color: var(--dz-text-1);
  border-radius: 8px;
}
.org-nav-group-head:hover { color: var(--dz-text-1); background: var(--dz-card-soft); }
.org-nav-caret { transition: transform 0.15s ease; opacity: 0.8; }
.org-nav-group.is-collapsed .org-nav-caret { transform: rotate(-90deg); }
.org-nav-group.is-collapsed .org-nav-items { display: none; }

.org-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin: 2px 0;
  border-radius: 9px; color: var(--dz-text-2); font-size: 14px; font-weight: 400;
  position: relative;
}
.org-nav-item:hover { background: var(--dz-card-soft); color: var(--dz-text-1); }
.org-nav-item.on {
  background: var(--dz-brand-light); color: var(--dz-brand-dark); font-weight: 600;
}
.org-nav-item.on::before {
  content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--dz-brand);
}
.org-nav-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex-shrink: 0; color: var(--dz-text-3);
}
.org-nav-item.on .org-nav-icon { color: var(--dz-brand-dark); }
.org-nav-item:hover .org-nav-icon { color: var(--dz-text-2); }
.org-nav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.org-side-foot {
  padding: 14px;
  border-top: 1px solid var(--dz-line);
}
.org-side-qr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
  background: var(--dz-card-soft);
}
.org-side-qr img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: contain;
  padding: 3px;
  border-radius: 8px;
  background: #fff;
}
.org-side-qr-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.4;
}
.org-side-qr-copy b {
  color: var(--dz-text-1);
  font-size: 13px;
  font-weight: 600;
}
.org-side-qr-copy small {
  color: var(--dz-text-3);
  font-size: 11px;
}

/* 收起状态：只留图标 */
.org-side--collapsed { width: var(--dz-side-collapsed); }
.org-side--collapsed .org-brand-text,
.org-side--collapsed .org-nav-label,
.org-side--collapsed .org-nav-group-head,
.org-side--collapsed .org-nav-caret { display: none; }
.org-side--collapsed .org-brand { justify-content: center; padding: 18px 0 14px; }
.org-side--collapsed .org-nav { padding: 6px 8px 12px; }
.org-side--collapsed .org-nav-item { justify-content: center; padding: 10px 0; }
.org-side--collapsed .org-nav-item.on::before { left: -8px; }
.org-side--collapsed .org-side-foot { display: none; }

/* ---------- 主区 ---------- */
.org-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.org-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 32px 0 24px; height: 58px; flex-shrink: 0;
  background: color-mix(in srgb, var(--dz-card) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--dz-line);
  position: sticky; top: 0; z-index: 15;
}
.org-top-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.org-heading { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.2px; }
.org-user { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.org-tenant { color: var(--dz-text-2); }
.org-user-name { font-weight: 600; }
/* 顶栏控件左上的小标志（切换机构 / 配色） */
.org-top-label {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--dz-text-3); font-size: 12px; white-space: nowrap;
}
.org-top-label em { font-style: normal; }
.org-theme-wrap { display: inline-flex; align-items: center; gap: 8px; }
/* ---------- 账号菜单（姓名 + 角色 → 修改密码 / 退出登录） ---------- */
.org-usermenu { position: relative; flex: 0 0 auto; margin-left: 4px; }
.org-user-btn {
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px 0 6px;
  background: none; border: 1px solid transparent; border-radius: 10px;
  font-family: inherit; cursor: pointer; color: var(--dz-text-1);
  transition: background 0.12s ease, border-color 0.12s ease;
}
.org-user-btn:hover { background: var(--dz-card-soft); border-color: var(--dz-line); }
.org-user-btn[aria-expanded="true"] { background: var(--dz-card-soft); border-color: var(--dz-line); }
.org-user-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--dz-brand-light); color: var(--dz-brand-dark);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.org-user-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.org-user-meta .org-user-name { font-size: 13px; font-weight: 600; }
.org-user-role { font-size: 11px; color: var(--dz-text-3); }
.org-user-caret { color: var(--dz-text-3); flex-shrink: 0; }

.org-usermenu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  min-width: 168px; padding: 6px;
  background: var(--dz-card); border: 1px solid var(--dz-line);
  border-radius: var(--dz-radius-lg); box-shadow: var(--dz-shadow);
}
.org-usermenu-panel form { margin: 0; }
.org-usermenu-item {
  display: flex; align-items: center; width: 100%;
  padding: 8px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--dz-text-1); font-family: inherit;
  font-size: 13.5px; text-align: left; cursor: pointer;
}
.org-usermenu-item:hover { background: var(--dz-card-soft); color: var(--dz-text-1); }
.org-usermenu-item--danger { color: var(--dz-danger); }
.org-usermenu-item--danger:hover { background: var(--dz-error-bg); color: var(--dz-danger); }
.org-usermenu-panel::before {
  content: ""; position: absolute; top: -6px; right: 18px;
  width: 10px; height: 10px; transform: rotate(45deg);
  background: var(--dz-card); border-left: 1px solid var(--dz-line);
  border-top: 1px solid var(--dz-line);
}
/* 顶栏控件（切换机构 / 配色）：
   ⚠️ 必须用 `body.org .org-top ...` 这个权重，否则会被后面的
   `body.org select { width: 100% }`（全局控件样式）压过去——
   曾经就是这里权重写低了，导致两个下拉都变成 width:100% 而互相重叠。 */
body.org .org-top .org-switch,
body.org .org-top .org-theme-wrap { display: inline-flex; align-items: center; gap: 8px; }
body.org .org-top .org-switch select,
body.org .org-top .org-theme {
  width: auto; flex: 0 0 auto; cursor: pointer;
  color: var(--dz-text-2); background-color: var(--dz-input);
}
body.org .org-top .org-theme { max-width: 160px; }
/* 机构名要能看全：给足最小宽度，最长不超过 360px（超长机构名才会截断） */
body.org .org-top .org-switch select { min-width: 180px; max-width: 360px; }
body.org .org-top .org-switch select:hover,
body.org .org-top .org-theme:hover {
  border-color: var(--dz-line-strong); color: var(--dz-text-1);
}
.org-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid transparent; background: none; color: var(--dz-text-2);
  cursor: pointer;
}
.org-icon-btn:hover {
  background: var(--dz-card-soft); border-color: var(--dz-line); color: var(--dz-text-1);
}

.org-body { padding: 20px 24px 48px; }
.org-foot {
  padding: 16px 24px;
  color: var(--dz-text-3);
  font-size: 12px;
  text-align: center;
}

/* ==========================================================================
   卡片 / 栅格
   ========================================================================== */
.org-card {
  background: var(--dz-card);
  border: 1px solid var(--dz-line);
  border-radius: var(--dz-radius-lg);
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: var(--dz-shadow);
}
.org-card-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: -2px 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--dz-line);
}
.org-card-head b { font-size: 15px; font-weight: 600; }
.org-card-head .org-muted, .org-card-head span { font-size: 12px; }

.org-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.org-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.org-stat { display: flex; flex-direction: column; gap: 2px; }
.org-stat b { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.5px; }
.org-stat span { color: var(--dz-text-2); font-size: 13px; }
.org-stat i { font-style: normal; color: var(--dz-text-3); font-size: 12px; }
.org-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.org-num { font-size: 15px; }
/* 概览页欢迎语：左边问候 + 机构，右边会员信息 */
.org-welcome {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  background:
    linear-gradient(120deg, var(--dz-brand-light) 0%, transparent 55%),
    var(--dz-card);
}
.org-welcome-hello { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.org-welcome-org { font-size: 13px; color: var(--dz-text-2); margin-top: 4px; }
.org-welcome-member { text-align: right; font-size: 13px; }
.org-member-line {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  margin-bottom: 4px;
}
.org-member-line:last-child { margin-bottom: 0; }
.org-member-warn { font-size: 12.5px; color: var(--dz-warn-text); }
/* 需要用户注意的提示卡（单校区升级 / 校区上限） */
.org-notice { 
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
  background:
    linear-gradient(120deg, var(--dz-warn-bg) 0%, transparent 60%),
    var(--dz-card);
  border-color: var(--dz-warn-line);
}
.org-notice form { margin: 0; }
/* ---------- 课表周视图 ---------- */
.org-week {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px;
}
.org-week-col {
  background: var(--dz-card); border: 1px solid var(--dz-line);
  border-radius: var(--dz-radius-lg); padding: 10px; min-height: 160px;
}
.org-week-col.is-today { border-color: var(--dz-brand); box-shadow: var(--dz-ring); }
.org-week-col.is-drop-target,
body.org .org-month-cell.is-drop-target {
  background: var(--dz-brand-light);
  outline: 2px dashed var(--dz-brand);
  outline-offset: -3px;
}
.org-week-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--dz-line);
  font-size: 13px;
}
.org-week-head b { font-size: 13.5px; }
.org-week-head span { color: var(--dz-text-3); font-size: 12px; }
.org-week-empty { color: var(--dz-text-3); text-align: center; padding: 24px 0; font-size: 12px; }

.org-lesson {
  display: block; padding: 9px 10px; margin-bottom: 8px;
  border: 1px solid var(--dz-line); border-left: 3px solid var(--dz-brand);
  border-radius: 10px; background: var(--dz-card-soft); color: var(--dz-text-1);
}
.org-lesson:hover { border-color: var(--dz-brand); background: var(--dz-brand-light); }
.org-lesson.is-cancelled {
  border-left-color: var(--dz-text-3); opacity: 0.75;
}
.org-lesson.is-cancelled .org-lesson-title { text-decoration: line-through; }
.org-lesson.is-dragging { opacity: .45; cursor: grabbing; }
.org-lesson[draggable="true"] { cursor: grab; }
.org-lesson-time { font-size: 12px; color: var(--dz-brand-dark); font-weight: 600; }
.org-lesson-title { font-size: 13.5px; font-weight: 600; margin: 2px 0; }
.org-lesson-meta { font-size: 12px; color: var(--dz-text-2); }
.org-lesson-foot { margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.org-week .org-tag { font-size: 11px; padding: 0 7px; }

/* ==========================================================================
   表格
   ========================================================================== */
.org-table { font-size: 13.5px; }
.org-table th, .org-table td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--dz-line);
  vertical-align: middle;
}
.org-table thead th {
  color: var(--dz-text-3); font-weight: 600; font-size: 12px;
  letter-spacing: 0.02em; background: var(--dz-card-soft);
  border-bottom: 1px solid var(--dz-line);
}
.org-table thead th:first-child { border-top-left-radius: 8px; }
.org-table thead th:last-child { border-top-right-radius: 8px; }
.org-table tbody tr:hover td { background: var(--dz-card-soft); }
.org-table tbody tr:last-child td { border-bottom: 0; }
.org-table a { font-weight: 500; }
.org-review-stars { color: var(--dz-brand-dark); font-weight: 600; white-space: nowrap; }
.org-review-comment {
  min-width: 220px;
  max-width: 420px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.65;
}
.org-student-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 0 18px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--dz-line);
}
.org-student-profile form { margin: 0; }
.org-student-avatar {
  position: relative;
  display: flex;
  width: 86px;
  height: 86px;
  overflow: hidden;
  border: 1px solid var(--dz-line);
  border-radius: 50%;
  background: var(--dz-brand-light);
  color: var(--dz-brand-dark);
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  cursor: pointer;
}
.org-student-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.org-student-avatar .org-student-avatar-placeholder {
  width: 62%;
  height: 62%;
  object-fit: contain;
  opacity: .9;
}
.org-student-avatar input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.org-student-avatar em {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 0;
  background: rgba(17, 24, 39, .72);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  text-align: center;
  opacity: 0;
  transition: opacity .15s ease;
}
.org-student-avatar:hover em { opacity: 1; }
.org-student-profile-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.org-student-profile-main b { font-size: 20px; }
.org-student-profile-main span { color: var(--dz-text-2); font-size: 13px; }
.org-student-profile-main i {
  color: var(--dz-text-3);
  font-size: 11.5px;
  font-style: normal;
}
.student-hours-cell {
  min-width: 250px;
}
.student-sort-form {
  margin: 0;
  flex: 0 0 auto;
}
.student-sort-form label {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 7px;
  color: var(--dz-text-3);
  font-size: 12px;
  white-space: nowrap;
}
.student-sort-form label > span {
  flex: 0 0 auto;
  white-space: nowrap;
}
.student-sort-form select {
  min-width: 190px;
}
.student-name-cell {
  min-width: 150px;
}
.student-name-display {
  display: flex;
  align-items: center;
  gap: 9px;
}
.student-name-display a {
  font-weight: 600;
}
.student-list-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.student-list-avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dz-brand-light);
}
.student-list-avatar--placeholder img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: .9;
}
.student-hours-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.45;
}
.student-hours-item + .student-hours-item {
  border-top: 1px dashed var(--dz-line);
}
.student-hours-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
}
.student-hours-icon--course {
  background: var(--dz-brand-light);
  color: var(--dz-brand-dark);
}
.student-hours-kind {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.student-hours-kind--general {
  background: var(--dz-info-bg);
  color: var(--dz-info-text);
}
.student-hours-kind--time-card {
  background: var(--dz-warn-bg);
  color: var(--dz-warn-text);
}
.student-hours-name {
  color: var(--dz-text-1);
  font-weight: 700;
}
.student-hours-value {
  color: var(--dz-text-2);
  font-size: 12.5px;
  white-space: nowrap;
}
.student-account-list {
  display: grid;
  gap: 12px;
}
.student-account-card {
  padding: 14px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
  background: var(--dz-card-soft);
}
.student-account-card.is-muted { opacity: .76; }
.student-account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.student-account-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.student-account-title strong {
  font-size: 14px;
  line-height: 1.45;
}
.student-account-course {
  margin-top: 6px;
  color: var(--dz-text-2);
  font-size: 12.5px;
  line-height: 1.6;
}
.student-account-note {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--dz-warn-bg);
  color: var(--dz-warn-text);
  font-size: 12.5px;
}
.student-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--dz-line);
}
.student-account-metric {
  min-width: 0;
}
.student-account-metric span,
.student-account-metric b {
  display: block;
}
.student-account-metric span {
  color: var(--dz-text-3);
  font-size: 11.5px;
}
.student-account-metric b {
  margin-top: 3px;
  color: var(--dz-text-1);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.student-toggle-summary {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
}
.student-toggle-impact {
  padding: 12px 14px;
  border: 1px solid var(--dz-warn-line);
  border-radius: 10px;
  background: var(--dz-warn-bg);
  color: var(--dz-text-1);
  font-size: 13px;
  line-height: 1.7;
}
.student-toggle-impact ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.student-not-found {
  max-width: 720px;
  margin: 48px auto;
  padding: 40px 28px;
  text-align: center;
}
.student-not-found-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--dz-warn-bg);
  color: var(--dz-warn-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}
.student-not-found h2 {
  margin: 0 0 10px;
  font-size: 22px;
}
.student-not-found p {
  margin: 0 0 10px;
  line-height: 1.7;
}
.student-not-found .org-btn { margin-top: 12px; }
.org-table--kv th {
  width: 116px; color: var(--dz-text-2); font-weight: 500;
  background: none; font-size: 13px;
}
.org-table--kv tr:hover td, .org-table--kv tr:hover th { background: none; }
.org-table--form td, .org-table--form th { padding: 6px 8px; }
.org-table--form input[type="text"] { width: 100%; }
.org-row-actions { white-space: nowrap; }
.org-row-actions > * { margin-right: 12px; }
.org-row-actions > *:last-child { margin-right: 0; }
.org-center { text-align: center !important; }
.org-right { text-align: right; }
.org-empty {
  padding: 32px 16px; text-align: center; color: var(--dz-text-3); font-size: 13px;
}

/* 课表月视图（2026-10-17 二期） */
body.org .org-month-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border-left: 1px solid var(--dz-line); border-top: 1px solid var(--dz-line);
}
body.org .org-month-head {
  padding: 8px; font-size: 12px; font-weight: 600; color: var(--dz-text-2);
  background: var(--dz-card-soft); border-right: 1px solid var(--dz-line);
  border-bottom: 1px solid var(--dz-line); text-align: center;
}
body.org .org-month-cell {
  min-height: 108px; padding: 6px 8px;
  border-right: 1px solid var(--dz-line); border-bottom: 1px solid var(--dz-line);
  display: flex; flex-direction: column; gap: 4px;
}
body.org .org-month-cell--out { background: var(--dz-card-soft); opacity: .55; }
body.org .org-month-cell--today { outline: 2px solid var(--dz-brand); outline-offset: -2px; }
body.org .org-month-cell.is-selected { background: var(--dz-brand-light); }
body.org .org-month-date {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 600;
}
body.org .org-month-day-link {
  color: var(--dz-text-1); font-weight: 700; min-width: 24px;
  padding: 1px 5px; margin-left: -5px; border-radius: 6px;
}
body.org .org-month-day-link:hover { color: var(--dz-brand-dark); background: var(--dz-card); }
body.org .org-month-date .org-link { font-size: 11px; visibility: hidden; }
body.org .org-month-cell:hover .org-month-date .org-link { visibility: visible; }
body.org .org-month-lesson {
  display: block; padding: 2px 6px; border-radius: 6px; font-size: 12px;
  background: var(--dz-info-bg); color: var(--dz-info-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.org .org-month-lesson.is-cancelled {
  text-decoration: line-through; background: var(--dz-error-bg); color: var(--dz-error-text);
}
body.org .org-month-more { font-size: 11px; color: var(--dz-text-3); }
body.org .org-day-panel { margin-top: 16px; }
body.org .org-day-lessons {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
body.org .org-day-lessons .org-lesson { margin-bottom: 0; }
body.org .org-form--compact {
  margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--dz-line);
}
body.org .org-check-cell { width: 38px; text-align: center !important; }
body.org .org-check-cell input { width: 16px; height: 16px; }
body.org .org-filter-label {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--dz-text-2); font-size: 12.5px; white-space: nowrap;
}
body.org .org-filters .org-filter-label input[type="date"] {
  width: 148px; min-width: 148px;
}

/* 课时设置：全机构赠送扣减顺序。独立的大号滑块，不复用表单里的小 checkbox。 */
body.org .org-actions--gift-order {
  align-items: stretch;
  margin-bottom: 10px;
}
.package-page-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.package-page-help {
  width: 100%;
  color: var(--dz-text-2);
  font-size: 13px;
  line-height: 1.65;
}
.package-top-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.package-gift-order-setting {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.package-gift-current {
  color: var(--dz-text-2);
  font-size: 13px;
  white-space: nowrap;
}
.package-gift-current b {
  color: var(--dz-text-1);
  font-weight: 600;
}
.package-gift-trigger {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.package-gift-trigger:disabled {
  opacity: .55;
  cursor: not-allowed;
  background: var(--dz-card-soft);
}
.package-gift-choice {
  flex: none;
  min-height: 0;
}
.package-gift-help {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
}
body.org .org-pref-toggle {
  position: relative;
  flex: 1 1 520px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px;
  border: 1px solid var(--dz-line);
  border-radius: var(--dz-radius-lg);
  background: var(--dz-card-soft);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
body.org .org-pref-toggle:hover {
  border-color: var(--dz-brand);
  background: var(--dz-brand-light);
}
body.org .org-pref-toggle > input[type="checkbox"] {
  position: absolute;
  width: 1px; height: 1px; min-height: 0;
  opacity: 0; pointer-events: none;
}
body.org .org-pref-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
body.org .org-pref-copy b { font-size: 14px; color: var(--dz-text-1); }
body.org .org-pref-copy em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--dz-text-2);
}
body.org .org-pref-control {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
body.org .org-pref-state {
  font-size: 12px;
  color: var(--dz-text-3);
  transition: color .15s ease, font-weight .15s ease;
}
body.org .org-pref-track {
  position: relative;
  width: 52px; height: 30px;
  display: block;
  border-radius: 999px;
  background: var(--dz-line-strong);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12);
  transition: background .16s ease;
}
body.org .org-pref-track > span {
  position: absolute;
  top: 4px; left: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
  transition: transform .16s ease;
}
body.org .org-pref-toggle > input:checked ~ .org-pref-control .org-pref-track {
  background: var(--dz-brand);
}
body.org .org-pref-toggle > input:checked ~ .org-pref-control .org-pref-track > span {
  transform: translateX(22px);
}
body.org .org-pref-toggle > input:not(:checked) ~ .org-pref-control .org-pref-state--off,
body.org .org-pref-toggle > input:checked ~ .org-pref-control .org-pref-state--on {
  color: var(--dz-text-1);
  font-weight: 700;
}
body.org .org-pref-toggle > input:focus-visible ~ .org-pref-control .org-pref-track {
  box-shadow: var(--dz-ring), inset 0 1px 2px rgba(0, 0, 0, .12);
}
body.org .org-actions--gift-order > .org-btn {
  min-width: 126px;
  height: auto;
}
@media (max-width: 900px) {
  body.org .org-month-cell { min-height: 84px; padding: 4px; }
  body.org .org-day-lessons { grid-template-columns: 1fr; }
  body.org .org-pref-toggle {
    flex-basis: 100%;
    min-height: 76px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  body.org .org-pref-control { align-self: flex-end; }
  body.org .org-actions--gift-order > .org-btn { width: 100%; }
  body.org .org-check-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .package-top-actions > .org-btn { flex: 1; }
  .package-gift-order-setting {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }
  .package-gift-order-setting .org-btn { flex: 1; }
  .package-gift-current {
    width: 100%;
    text-align: right;
  }
  .package-gift-trigger { max-width: none; }
}

/* 操作日志：行内「明细」展开（字段级 old→new + IP / 浏览器） */
/* 概览页：运营数据（SVG 柱状 / 圆环）——零依赖，颜色跟主题变量走 */
body.org .org-grid-2 {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 980px) {
  body.org .org-grid-2 { grid-template-columns: 3fr 2fr; }
  /* 本月经营 : 今日概况 = 4 : 3（两块并排，但看得出是两块） */
  body.org .org-grid-2--intro { grid-template-columns: 4fr 3fr; }
  /* 今日提示 + 系统公告：两列等宽更均衡 */
  body.org .org-grid-2--even { grid-template-columns: 1fr 1fr; }
}
/* 并排的两块：强制等高 + 去掉卡片自带的下边距（否则底边会差 16px），
   但**容器自己要保留下边距**，否则上下两行会贴在一起（2026-10-17 踩过）。
   内容少的左块垂直居中；消息多时在卡片内部滚动，不把整行撑高。 */
body.org .org-grid-2 { align-items: stretch; margin-bottom: 16px; }
body.org .org-grid-2 > .org-card { margin-bottom: 0; display: flex; flex-direction: column; }
body.org .org-grid-2--even > .org-card:first-child { justify-content: center; }
body.org .org-msg-scroll { flex: 1 1 auto; min-height: 0; max-height: 236px; overflow-y: auto; }
body.org .org-msg-scroll .org-table { margin: 0; }
/* ⚠️ org.css 后面还有一份 .org-stat 的"卡片"样式（报表等页面用），这里把
   卡片内部的统计项还原成普通数字块，避免变成"卡片套卡片"显得挤在一起。 */
body.org .org-stats--tight > .org-stat {
  background: transparent; border: 0; border-radius: 0;
  padding: 8px 6px; margin: 0; box-shadow: none;
}
body.org .org-stats--tight > .org-stat b { font-size: 22px; }
/* 本月经营 + 在读学员 / 班级 / 今日签到：PC 端同一行（7 张卡），窄屏自动换行 */
body.org .org-stats--tight {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px;
}
body.org .org-stats--tight > .org-stat { padding: 12px 14px; }
body.org .org-stats--tight > .org-stat b { font-size: 20px; }
/* 局部小标题：**不要用负 margin**（会压到下面的卡片上，2026-10-17 踩过） */
body.org .org-section-title {
  font-size: 13px; font-weight: 600; color: var(--dz-text-2);
  margin: 10px 0 2px; line-height: 1.6;
}
body.org .org-section-title .org-muted { font-weight: 400; }
body.org .org-svg-chart { width: 100%; height: auto; display: block; }
body.org .org-chart-axis { stroke: var(--dz-line-strong); stroke-width: 1; }
body.org .org-chart-bar { fill: var(--dz-accent); opacity: .85; }
body.org .org-chart-bar:hover { opacity: 1; }
body.org .org-chart-bar--refund { fill: var(--dz-danger); }
body.org .org-chart-label { fill: var(--dz-text-3); font-size: 9px; }
body.org .org-chart-legend {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    margin: 2px 0 4px;
    color: var(--dz-text-2);
    font-size: 12px;
}
body.org .org-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
body.org .org-chart-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
body.org .org-chart-dot--income { background: var(--dz-accent); }
body.org .org-chart-dot--refund { background: var(--dz-danger); }
body.org .org-donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
body.org .org-donut { width: 120px; height: 120px; flex-shrink: 0; }
body.org .org-donut-legend { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
body.org .org-swatch {
  display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px;
}
body.org .org-inline-form { display: inline; margin: 0; }

.org-row-actions details { display: inline-block; }
.org-row-actions summary { cursor: pointer; list-style: none; }
.org-row-actions summary::-webkit-details-marker { display: none; }
.org-row-actions summary::after { content: " ▾"; font-size: 11px; opacity: .7; }
.org-row-actions details[open] summary::after { content: " ▴"; }
.org-audit-detail {
  margin-top: 8px; padding: 8px 10px; min-width: 240px; max-width: 420px;
  background: var(--dz-card-soft); border: 1px solid var(--dz-line); border-radius: 8px;
  font-size: 12px; line-height: 1.7; white-space: normal;
  color: var(--dz-text-1);
}
.org-audit-detail > div { word-break: break-all; }

/* ==========================================================================
   表单

   ⚠️ 控件样式**按 `body.org` 全局生效**，不靠 `.org-field` 之类的祖先类：
   表格里的行内表单（监护人）、卡片里没有 label 的输入框、右上角的下拉，
   以前就是因为没被祖先类覆盖到，才显得"粗糙、不统一"。
   ========================================================================== */
body.org input[type="text"],
body.org input[type="search"],
body.org input[type="date"],
body.org input[type="number"],
body.org input[type="password"],
body.org input[type="email"],
body.org input[type="tel"],
body.org input[type="url"],
body.org select,
body.org textarea {
  min-height: 38px; padding: 8px 11px; width: 100%;
  border: 1px solid var(--dz-line-strong); border-radius: var(--dz-radius);
  font-size: 14px; font-family: inherit; color: var(--dz-text-1);
  background-color: var(--dz-input);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
body.org textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
body.org input::placeholder, body.org textarea::placeholder { color: var(--dz-text-3); }

/* 下拉：统一自绘箭头（浅深色都清晰） */
body.org select {
  appearance: none; -webkit-appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  background-size: 14px 14px;
}
body.org select[multiple] { min-height: 168px; padding: 6px; background-image: none; }
body.org select[multiple] option { padding: 5px 8px; border-radius: 6px; }
/* 深色模式下原生下拉弹层可能使用白底；显式设置 option 防止白字白底。 */
body.org select option {
  color: var(--dz-text-1);
  background-color: var(--dz-card);
}
body.org select[multiple] option:checked {
  background-color: Highlight;
  color: HighlightText;
}

body.org input:focus, body.org select:focus, body.org textarea:focus {
  outline: none; border-color: var(--dz-brand); box-shadow: var(--dz-ring);
}
body.org input:hover:not(:focus):not(:disabled), body.org select:hover:not(:focus):not(:disabled),
body.org textarea:hover:not(:focus):not(:disabled) {
  border-color: var(--dz-text-3);
}
body.org input:disabled, body.org select:disabled, body.org textarea:disabled,
body.org input[readonly] {
  background-color: var(--dz-card-soft); color: var(--dz-text-3); cursor: not-allowed;
}
body.org input[type="checkbox"], body.org input[type="radio"] {
  width: 16px; height: 16px; accent-color: var(--dz-brand);
  cursor: pointer; vertical-align: -2px;
}

/* 布尔开关（在读 / 启用 / 在职 这类）：做成 unfold 那种滑块。
   ⚠️ 必须带 body.org：全局 `body.org input[type=checkbox]` 是 0-2-2，
   旧选择器只有 0-2-1，会把它压回 16×16 的裸复选框。 */
body.org input[type="checkbox"][name="is_active"],
body.org .org-field--inline input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  position: relative; width: 48px; height: 28px; min-height: 28px;
  border-radius: 999px; background: var(--dz-line-strong);
  border: 0; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12);
  transition: background 0.15s ease; flex-shrink: 0;
}
body.org input[type="checkbox"][name="is_active"]::after,
body.org .org-field--inline input[type="checkbox"]::after {
  content: ""; position: absolute; top: 4px; left: 4px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28); transition: transform 0.15s ease;
}
body.org input[type="checkbox"][name="is_active"]:checked,
body.org .org-field--inline input[type="checkbox"]:checked {
  background: var(--dz-brand);
}
body.org input[type="checkbox"][name="is_active"]:checked::after,
body.org .org-field--inline input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}
body.org input[type="checkbox"][name="is_active"]:focus-visible,
body.org .org-field--inline input[type="checkbox"]:focus-visible {
  box-shadow: var(--dz-ring), inset 0 1px 2px rgba(0, 0, 0, .12);
}
body.org input[type="file"] {
  font-size: 13px; color: var(--dz-text-2);
}
body.org input[type="file"]::file-selector-button {
  height: 32px; margin-right: 10px; padding: 0 12px;
  border: 1px solid var(--dz-line); border-radius: 8px;
  background: var(--dz-card); color: var(--dz-text-1);
  font-family: inherit; font-size: 13px; cursor: pointer;
}

/* 顶栏等"紧凑"位置的控件：与配色下拉同高（32px）。
   同样要压过 `body.org select`（全局 38px / width:100%），所以用 body.org 前缀。 */
body.org .org-top select,
body.org .org-top input,
body.org .org-top .org-theme {
  width: auto; min-height: 32px; height: 32px; padding: 0 28px 0 10px;
  font-size: 13px; border-radius: 8px;
}

/* 表格里的行内表单（监护人）：更紧凑，但保持同一套观感 */
.org-table--form td input, .org-table--form td select {
  min-height: 34px; height: 34px; padding: 6px 9px; font-size: 13px;
  border-radius: 8px;
}
.org-table--form td input[type="text"], .org-table--form td select { width: 100%; }
.org-table--form td input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; }

/* 布局（label / 字段间距）——控件样式由上面统一负责 */
.org-field { display: block; margin-bottom: 14px; }
.org-field > span {
  display: block; color: var(--dz-text-2); margin-bottom: 6px;
  font-size: 12.5px; font-weight: 500;
}
body.org .org-field--inline { display: flex; align-items: center; gap: 10px; }
body.org .org-field--inline > span { margin: 0; }
body.org .org-check-inline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--dz-text-2); cursor: pointer;
}
body.org .org-check-inline input[type="checkbox"] {
  width: 16px; height: 16px; min-height: 0; accent-color: var(--dz-brand);
}
.org-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.org-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 4px; }
body.org .org-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
body.org .org-check-grid > .org-check {
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--dz-line);
  border-radius: var(--dz-radius);
  background: var(--dz-card-soft);
}
body.org .org-check-grid > .org-check > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body.org .org-check-grid b { font-size: 13px; font-weight: 600; }
body.org .org-check-grid em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--dz-text-3);
}

.org-filters {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px; padding: 12px 14px;
  background: var(--dz-card); border: 1px solid var(--dz-line);
  border-radius: var(--dz-radius-lg);
}
.org-filters input[type="search"] { max-width: 240px; }
.org-filters select { max-width: 220px; }
/* 报表筛选：日期范围必须在同一行 —— 全局 `body.org input[type="date"]{width:100%}`
   会让两个日期各占一行，这里用带前缀的窄条规则压过去 */
.org-date-range { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
body.org .org-filters .org-date-range input[type="date"] {
  width: 148px; min-width: 148px;
}
.org-right.org-btn, a.org-right { margin-left: auto; }
.org-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.org-inline { display: inline; }
.org-form .errorlist {
  list-style: none; margin: 6px 0 0; padding: 0;
  color: var(--dz-error-text); font-size: 12px;
}
.org-form .errorlist::before { content: "⚠ "; }

/* ==========================================================================
   按钮 / 链接 / 标签
   ========================================================================== */
.org-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: var(--dz-radius);
  border: 1px solid var(--dz-line); background: var(--dz-card);
  color: var(--dz-text-1); font-size: 14px; font-family: inherit; font-weight: 500;
  cursor: pointer; transition: all 0.12s ease; white-space: nowrap;
}
.org-btn:hover { border-color: var(--dz-brand); color: var(--dz-brand-dark); background: var(--dz-brand-light); }
.org-btn:active { transform: translateY(1px); }
.org-btn:focus-visible { outline: none; box-shadow: var(--dz-ring); }
.org-btn--primary {
  background: var(--dz-brand); border-color: var(--dz-brand);
  color: #1f2937; font-weight: 600;
}
.org-btn--primary:hover { background: #ffc633; border-color: #ffc633; color: #1f2937; }
.org-btn--ghost { height: 30px; padding: 0 12px; font-size: 13px; background: none; }
.org-btn--danger { color: var(--dz-danger); border-color: var(--dz-line); }
.org-btn--danger:hover {
  color: var(--dz-danger); border-color: var(--dz-danger);
  background: var(--dz-error-bg);
}
.org-btn--block { width: 100%; }
.org-btn[disabled], .org-btn:disabled {
  opacity: 0.5; cursor: not-allowed; transform: none;
}
.org-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--dz-brand-dark); font-size: 13px; font-family: inherit;
}
.org-link:hover { color: var(--dz-brand); text-decoration: underline; }
.org-link--danger { color: var(--dz-danger); }
.org-link--danger:hover { color: var(--dz-danger); }

.org-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 9px; border-radius: 999px;
  background: var(--dz-tag-bg); color: var(--dz-text-2);
  font-size: 12px; line-height: 1.7; white-space: nowrap;
}
.org-tag--ok { background: var(--dz-success-bg); color: var(--dz-ok); }
.org-tag--soft { background: var(--dz-brand-light); color: var(--dz-brand-dark); margin: 1px 4px 1px 0; }
.org-tag--warn { background: var(--dz-warn-bg); color: var(--dz-warn-text); }
.org-inline-actions { display: flex; align-items: center; gap: 10px; }
.org-inline-actions form { margin: 0; }
.org-password-row { display: flex; align-items: stretch; gap: 10px; }
.org-password-row input { flex: 1; min-width: 0; }
.org-password-row .org-password { flex: 1; display: flex; align-items: center; min-width: 0; }
.org-password-row .org-btn { flex: none; white-space: nowrap; }
.org-multi-hint {
  margin: 8px 0 0;
  color: var(--dz-text-3);
  font-size: 12px;
  line-height: 1.6;
}
.org-multi-hint span {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--dz-brand-dark);
  background: var(--dz-brand-light);
  font-weight: 600;
}
.org-multi-hint kbd {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid var(--dz-line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--dz-text-2);
  background: var(--dz-card);
  font-family: inherit;
  font-size: 11px;
}
.org-muted { color: var(--dz-text-2); }
/* 说明性小字（模板里到处在用的 `.small`，以前没定义过，等于没生效） */
.small, .org-muted.small, .org-link.small { font-size: 12px; }

/* ==========================================================================
   选择器 + 弹窗（充课时页「选择学员」用；学员量大时不靠下拉）
   ========================================================================== */
.org-picker { display: flex; align-items: center; gap: 10px; }
.org-picker-value {
  flex: 1; min-height: 38px; display: flex; align-items: center;
  padding: 0 12px; border: 1px solid var(--dz-line); border-radius: var(--dz-radius);
  background: var(--dz-card); font-size: 14px;
}
body.org .org-picker .org-btn { flex: 0 0 auto; width: auto; }

/* 弹窗遮罩：**默认 display:none + .is-open 才显示**。
   不要用 `hidden` 属性配 `display:flex`——自定义的 display 会压过浏览器对
   `[hidden]` 的 `display:none`，结果弹窗一直显示、`hidden=true` 也关不掉（2026-10-16 踩过）。 */
.org-mask { display: none; }
.org-mask.is-open {
  display: flex; align-items: center; justify-content: center;
  position: fixed; inset: 0; z-index: 80;
  background: rgba(17, 24, 39, 0.45); padding: 24px;
}
.org-modal {
  width: min(720px, 100%); max-height: 82vh; display: flex; flex-direction: column;
  background: var(--dz-card); border-radius: var(--dz-radius-lg);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.24); overflow: hidden;
}
.org-modal--compact { width: min(480px, 100%); }
.org-modal > form { display: flex; flex-direction: column; min-height: 0; }
.org-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--dz-line);
}
.org-modal-body { padding: 18px; overflow-y: auto; }
.org-modal-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 14px 18px; border-top: 1px solid var(--dz-line);
}
.org-modal-filters {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 18px; border-bottom: 1px solid var(--dz-line);
}
.org-modal-filters select { max-width: 200px; }
.org-modal-filters input[type="search"] { flex: 1; min-width: 180px; }
.org-modal-hint { padding: 10px 18px 0; font-size: 12px; color: var(--dz-text-3); }
.org-modal-list { padding: 6px 18px 18px; overflow-y: auto; }
.org-modal-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--dz-line);
}
.org-modal-row:last-child { border-bottom: 0; }
.org-modal-row-main { flex: 1; min-width: 0; }
.org-modal-empty { padding: 24px 0; text-align: center; color: var(--dz-text-3); font-size: 13px; }

.booking-cancel-reason {
  max-width: 220px; margin-top: 4px; white-space: normal;
  overflow-wrap: anywhere; font-size: 12px; color: var(--dz-text-2);
}
.booking-cancel-reason span {
  display: inline-block; margin-right: 5px; color: var(--dz-text-3);
}
.booking-cancel-summary {
  margin: 0 0 14px; color: var(--dz-text-1); line-height: 1.65;
}
.booking-cancel-field { display: block; }
.booking-cancel-field > span {
  display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600;
}
.booking-cancel-hint { margin: 10px 0 0; }

@media (max-width: 560px) {
  .org-modal-actions .org-btn { flex: 1; }
  .student-account-head { flex-wrap: wrap; }
  .student-account-grid { grid-template-columns: 1fr; }
}

/* 报表：统计卡 + 可横向滚动的宽表 */
.org-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.org-stat {
  background: var(--dz-card); border: 1px solid var(--dz-line);
  border-radius: var(--dz-radius-lg); padding: 14px 16px;
}
.org-stat b { display: block; font-size: 22px; line-height: 1.3; }
.org-stat span { display: block; color: var(--dz-text-2); font-size: 13px; }
.org-stat i { display: block; color: var(--dz-text-3); font-size: 11.5px; font-style: normal; margin-top: 2px; }
.org-warn-text { color: var(--dz-warn-text); font-weight: 600; }
.org-scroll { overflow-x: auto; }
.org-scroll table { min-width: 720px; }
.org-table tfoot th {
  border-top: 1px solid var(--dz-line-strong);
  background: var(--dz-card-soft); font-weight: 600; padding: 10px 12px;
  text-align: left; white-space: nowrap;
}
.org-password {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px; letter-spacing: 1px; background: var(--dz-brand-light);
  color: var(--dz-brand-dark); padding: 3px 10px; border-radius: 8px;
}
.org-qr {
  width: 176px; height: 176px; border: 1px solid var(--dz-line);
  border-radius: var(--dz-radius); background: #fff; padding: 6px;
}
.org-bind { display: flex; align-items: center; gap: 24px; justify-content: space-between; }

/* ==========================================================================
   提示条 / 分页
   ========================================================================== */
.org-messages { padding: 14px 24px 0; }
.org-msg {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; margin-bottom: 10px; border-radius: var(--dz-radius);
  font-size: 13px; border: 1px solid var(--dz-info-line);
  background: var(--dz-info-bg); color: var(--dz-info-text);
  border-left-width: 3px;
}
.org-msg--error { background: var(--dz-error-bg); color: var(--dz-error-text); border-color: var(--dz-error-line); }
.org-msg--warning { background: var(--dz-warn-bg); color: var(--dz-warn-text); border-color: var(--dz-warn-line); }
.org-msg--success { background: var(--dz-success-bg); color: var(--dz-success-text); border-color: var(--dz-success-line); }

/* 会员到期横幅：每个页面顶部各显示一次（只读 / 即将到期） */
body.org .org-banner {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin: 14px 24px 0; padding: 10px 14px;
  border-radius: var(--dz-radius); border: 1px solid var(--dz-line);
  font-size: 13px; line-height: 1.6;
  background: var(--dz-card); color: var(--dz-text-1);
}
body.org .org-banner b { font-size: 13.5px; }
body.org .org-banner span { color: var(--dz-text-2); }
body.org .org-banner--warn {
  background: var(--dz-warn-bg); border-color: var(--dz-warn-line); color: var(--dz-warn-text);
}
body.org .org-banner--warn span { color: var(--dz-warn-text); }
body.org .org-banner--danger {
  background: var(--dz-error-bg); border-color: var(--dz-error-line); color: var(--dz-error-text);
}
body.org .org-banner--danger span { color: var(--dz-error-text); }

.org-pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--dz-line);
  font-size: 13px; color: var(--dz-text-2);
}
.org-pager-btns { display: flex; gap: 8px; }
.org-pager-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.org-pager-size-form { margin: 0; }
.org-pager-size-form label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: var(--dz-text-2);
}
.org-pager-size-form select {
  width: 72px;
  min-width: 72px;
  height: 34px;
  padding: 0 8px;
}
@media (max-width: 640px) {
  .org-pager {
    align-items: flex-start;
    flex-direction: column;
  }
  .org-pager-controls {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   登录 / 选机构
   ========================================================================== */
.org--login {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
  background:
    radial-gradient(1000px 500px at 12% -10%, var(--dz-brand-light), transparent 60%),
    var(--dz-bg);
}
.org-login { width: 100%; max-width: 400px; }
.org-login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.org-login-brand .org-brand-mark { width: 42px; height: 42px; font-size: 20px; border-radius: 12px; }
.org-login-brand b { display: block; font-size: 19px; }
.org-login-brand i { font-style: normal; font-size: 12px; color: var(--dz-text-3); }
.org-login-card { padding: 24px; border-radius: var(--dz-radius-lg); }
.org-login-card .org-btn--block { height: 42px; margin-top: 6px; }
.org-login-tip { font-size: 12px; margin: 14px 0 0; color: var(--dz-text-3); line-height: 1.7; }
.org-login-foot { text-align: center; font-size: 12px; color: var(--dz-text-3); margin-top: 18px; }
.org-choices { display: flex; flex-direction: column; gap: 10px; }
.org-choice {
  text-align: left; padding: 14px 16px; border-radius: var(--dz-radius);
  border: 1px solid var(--dz-line); background: var(--dz-card); cursor: pointer;
  font-family: inherit; font-size: 15px; color: var(--dz-text-1);
  display: flex; flex-direction: column; gap: 2px;
  transition: all 0.12s ease;
}
.org-choice:hover { border-color: var(--dz-brand); background: var(--dz-brand-light); }
.org-choice b { font-weight: 600; }

/* ==========================================================================
   响应式

   ≥1201px  电脑端完整布局（左侧菜单常驻）
   901–1200 两栏折成一栏，菜单仍常驻
   ≤900     抽屉式菜单（汉堡开关 + 遮罩）、单列表单、表格横向滚动、触摸友好尺寸
   ≤640     更紧凑（登录卡、卡片标题、统计数字）
   ========================================================================== */
@media (max-width: 1200px) {
  .org-cols { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .org-top { padding: 0 16px; height: 54px; gap: 10px; }
  .org-heading { font-size: 16px; }
  .org-body { padding: 16px 16px 40px; }
  .org-messages { padding: 12px 16px 0; }
  .org-foot { padding: 14px 16px; }

  /* 侧栏 → 抽屉：默认滑出屏幕外，点汉堡滑入，点遮罩或菜单项关闭 */
  .org-side {
    position: fixed; left: 0; top: 0; bottom: 0; height: 100vh;
    width: var(--dz-side); transform: translateX(-100%);
    transition: transform 0.2s ease; box-shadow: var(--dz-shadow);
  }
  .org-side.is-open { transform: translateX(0); }
  /* 手机上"收成图标条"没有意义，忽略收起态 */
  .org-side--collapsed { width: var(--dz-side); }
  .org-side--collapsed .org-brand-text,
  .org-side--collapsed .org-nav-label,
  .org-side--collapsed .org-nav-group-head,
  .org-side--collapsed .org-nav-caret { display: revert; }
  .org-side--collapsed .org-nav-item { justify-content: flex-start; padding: 8px 10px; }
  .org-side--collapsed .org-side-foot { display: block; }
  .org-backdrop {
    position: fixed; inset: 0; z-index: 19;
    background: rgba(0, 0, 0, 0.45);
  }
  .org-main { margin-left: 0; }

  /* 顶栏瘦身：标志只留图标、账号只留头像 */
  .org-user { gap: 8px; }
  .org-top-label em { display: none; }
  .org-user-meta { display: none; }
  .org-user-btn { padding: 0 8px; }
  body.org .org-top .org-switch select { min-width: 132px; max-width: 190px; }
  body.org .org-top select,
  body.org .org-top input,
  body.org .org-top .org-theme { min-height: 36px; height: 36px; }

  /* 表单 / 卡片 / 统计：单列 + 触摸友好的控件高度 */
  .org-grid2 { grid-template-columns: 1fr; }
  .org-stats { grid-template-columns: 1fr; }
  .org-card { padding: 16px; }
  body.org input[type="text"], body.org input[type="search"], body.org input[type="date"],
  body.org input[type="number"], body.org input[type="password"], body.org input[type="email"],
  body.org input[type="tel"], body.org select, body.org textarea { min-height: 42px; }
  .org-btn { height: 40px; }
  .org-actions { gap: 8px; }
  .org-welcome { flex-direction: column; align-items: flex-start; }
  .org-welcome-member { text-align: left; }
  .org-member-line { justify-content: flex-start; }
  .org-bind { flex-direction: column; align-items: flex-start; }

  /* 表格：卡片内横向滚动，别把整页撑破 */
  .org-card { overflow-x: auto; }
  .org-table { min-width: 560px; }
  .org-table--form { min-width: 620px; }
  .org-table--kv { min-width: 0; }
}

@media (max-width: 640px) {
  .org-login { max-width: 100%; }
  .org-login-card { padding: 20px; }
  .org-stat b { font-size: 26px; }
  .org-card-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .org-usermenu-panel { min-width: 148px; }
}

/* ==========================================================================
   拼好课编辑器（2026-10-27）
   ========================================================================== */
.activity-editor-shell { max-width: none; }
.activity-editor-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 410px;
  align-items: start;
  gap: 22px;
}
.activity-editor-main { display: grid; gap: 16px; min-width: 0; }
.activity-editor-section { margin: 0; }
.activity-editor-section .org-card-head > div { display: flex; flex-direction: column; gap: 2px; }
.activity-editor-section .org-card-head small { font-weight: 400; }
.activity-form-grid.compact { gap: 12px 16px; }
.activity-campus-options.compact .org-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.activity-campus-options.compact label {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--dz-line);
  border-radius: 9px;
  background: var(--dz-card-soft);
}
.activity-campus-field { margin-top: 14px; }
.activity-notice-field { margin-top: 16px; }
.activity-fixed-fields {
  flex: 0 1 auto;
  min-width: 330px;
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
  background: var(--dz-card-soft);
}
.activity-fixed-fields > span { color: var(--dz-text-3); font-size: 12px; font-weight: 600; }
.activity-fixed-fields > div { display: flex; flex-wrap: wrap; gap: 8px; }
.activity-fixed-fields b {
  padding: 7px 11px;
  border: 1px solid var(--dz-line);
  border-radius: 8px;
  background: var(--dz-card);
  color: var(--dz-text-2);
  font-size: 12px;
}
.activity-optional-fields {
  flex: 1 1 500px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}
.activity-signup-fields-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}
.activity-optional-fields-title {
  flex: 1 0 100%;
  color: var(--dz-text-3);
  font-size: 12px;
  font-weight: 600;
}
.activity-optional-field {
  flex: 1 1 150px;
  min-height: 74px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--dz-line);
  border-radius: 11px;
  background: var(--dz-card);
  cursor: pointer;
}
.activity-optional-field input { margin-top: 3px; }
.activity-optional-field > span { display: flex; flex-direction: column; gap: 3px; }
.activity-optional-field b { font-size: 13px; }
.activity-optional-field small { color: var(--dz-text-3); line-height: 1.5; }
.activity-hour-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
}
.activity-hour-control input,
.activity-hour-control select { width: 100%; }

.activity-asset-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(210px, .8fr);
  gap: 14px;
}
.activity-asset-stack { display: flex; flex-direction: column; gap: 12px; }
.activity-asset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
  background: var(--dz-card-soft);
}
.activity-asset-row:first-child { display: block; }
.activity-asset-row--poster { grid-template-columns: minmax(0, 1fr) 180px; }
.activity-asset-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.activity-asset-copy > div { display: flex; flex-direction: column; gap: 2px; }
.activity-asset-copy small { color: var(--dz-text-3); }
.activity-asset-copy p { margin: 0 0 5px; font-size: 12px; line-height: 1.65; }
.activity-asset-card, .activity-banner-editor {
  padding: 14px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
  background: var(--dz-card-soft);
}
.activity-asset-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.activity-asset-head > div { display: flex; flex-direction: column; gap: 2px; }
.activity-asset-head small { color: var(--dz-text-3); }
.activity-asset-change {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--dz-line-strong);
  border-radius: 8px;
  background: var(--dz-card);
  color: var(--dz-brand-dark);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.activity-asset-change input { display: none; }
.activity-asset-preview {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px dashed var(--dz-line-strong);
  border-radius: 10px;
  background-color: var(--dz-card);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}
.activity-asset-preview.ratio-cover { aspect-ratio: 16 / 9; }
.activity-asset-preview.ratio-share { width: 220px; aspect-ratio: 5 / 4; justify-self: end; }
.activity-asset-preview.ratio-poster { width: 180px; aspect-ratio: 3 / 4; justify-self: end; }
.activity-asset-preview > span { padding: 16px; color: var(--dz-text-3); text-align: center; font-size: 12px; }
.activity-asset-preview.has-image > span { display: none; }
.activity-asset-remove {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  color: var(--dz-danger);
  font-size: 12px;
}
.activity-banner-editor { margin-top: 14px; }
.activity-asset-strip, .activity-new-banners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.activity-new-banners:empty { display: none; }
.activity-new-banners { margin-top: 10px; }
.activity-banner-item {
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--dz-line);
  border-radius: 9px;
  background: var(--dz-card);
}
.activity-banner-item label { display: flex; gap: 5px; align-items: center; margin-top: 6px; color: var(--dz-danger); font-size: 11px; }
.activity-banner-item small { display: block; overflow: hidden; margin-top: 5px; color: var(--dz-text-3); text-overflow: ellipsis; white-space: nowrap; }
.activity-banner-item.is-removing { opacity: .38; filter: grayscale(1); }
.activity-banner-remove {
  margin-top: 5px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--dz-danger);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.activity-rich-editor {
  overflow: hidden;
  border: 1px solid var(--dz-line-strong);
  border-radius: 12px;
  background: var(--dz-card);
}
.activity-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--dz-line);
  background: var(--dz-card-soft);
}
.activity-rich-toolbar button,
.activity-rich-toolbar-upload {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--dz-text-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.activity-rich-toolbar button:hover,
.activity-rich-toolbar-upload:hover { border-color: var(--dz-line); background: var(--dz-card); color: var(--dz-text-1); }
.activity-rich-toolbar button[disabled] { opacity: .55; cursor: wait; }
.activity-rich-toolbar-upload { display: inline-flex; align-items: center; }
.activity-rich-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.activity-rich-upload-status {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: var(--dz-text-3);
  font-size: 11px;
}
.activity-rich-upload-status.is-ok { color: var(--dz-ok); }
.activity-rich-upload-status.is-error { color: var(--dz-danger); }
.activity-rich-canvas {
  min-height: 280px;
  max-height: 620px;
  overflow-y: auto;
  padding: 18px;
  outline: none;
  line-height: 1.75;
}
.activity-rich-canvas:empty::before {
  content: attr(data-placeholder);
  color: var(--dz-text-3);
  pointer-events: none;
}
.activity-rich-canvas:focus { box-shadow: inset 0 0 0 2px rgba(255,180,0,.2); }
.activity-rich-canvas img, .activity-rich-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px auto;
  border-radius: 8px;
}
.activity-rich-canvas h2, .activity-rich-content h2 { font-size: 21px; margin: 18px 0 8px; }
.activity-rich-canvas h3, .activity-rich-content h3 { font-size: 17px; margin: 16px 0 7px; }
.activity-rich-canvas p, .activity-rich-content p { margin: 8px 0; }
.activity-rich-canvas blockquote, .activity-rich-content blockquote {
  margin: 12px 0;
  padding: 8px 12px;
  border-left: 3px solid var(--dz-brand);
  background: var(--dz-brand-light);
}
.activity-rich-hint { padding: 7px 12px; border-top: 1px solid var(--dz-line); color: var(--dz-text-3); font-size: 11px; }
.activity-bgm-mode-options > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 16px;
}
.activity-bgm-mode-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  color: var(--dz-text-2);
  cursor: pointer;
}
.activity-bgm-mode-options input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
}
.activity-bgm-mode-options ul.errorlist { flex-basis: 100%; margin: 0; }
.activity-bgm-track-row {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(260px, 1fr);
  align-items: end;
  gap: 16px;
}
.activity-bgm-track-row[hidden] { display: none; }
.activity-bgm-track-row .org-field { margin-bottom: 0; }
.activity-bgm-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  margin-bottom: 14px;
  padding: 9px 12px;
  border: 1px solid var(--dz-line);
  border-radius: 10px;
  background: var(--dz-card-soft);
}
.activity-bgm-preview > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.activity-bgm-preview b {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-bgm-preview small { color: var(--dz-text-3); font-size: 10px; }
.activity-bgm-preview audio { width: min(250px, 46%); height: 32px; }
.activity-bgm-help { display: block; margin-top: 12px; line-height: 1.65; }
.activity-custom-fields { display: grid; gap: 12px; }
.activity-custom-fields-empty {
  padding: 20px;
  border: 1px dashed var(--dz-line);
  border-radius: 10px;
  text-align: center;
}
.activity-custom-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 180px) max-content;
  align-items: start;
  gap: 10px 12px;
  padding: 14px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
  background: var(--dz-card-soft);
}
.activity-custom-field .org-field { margin: 0; }
.activity-custom-field-index {
  grid-column: 1 / -1;
  color: var(--dz-text-3);
  font-size: 12px;
  font-weight: 700;
}
.activity-custom-required {
  grid-column: 3;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  font-size: 12px;
  white-space: nowrap;
}
.activity-custom-field-name { grid-column: 1; }
.activity-custom-field-type { grid-column: 2; }
.activity-custom-field .activity-custom-options {
  grid-column: 1 / -1;
}
.activity-custom-field-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}
@media (max-width: 760px) {
  .activity-bgm-track-row { grid-template-columns: 1fr; }
  .activity-bgm-preview { align-items: stretch; flex-direction: column; }
  .activity-bgm-preview audio { width: 100%; }
  .activity-custom-field { grid-template-columns: 1fr; }
  .activity-custom-field-name,
  .activity-custom-field-type,
  .activity-custom-required,
  .activity-custom-field .activity-custom-options { grid-column: 1; }
  .activity-custom-field-actions { justify-content: flex-start; flex-wrap: wrap; }
}

.activity-preview-panel {
  position: sticky;
  top: 84px;
  align-self: start;
}
.activity-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}
.activity-preview-head > div { display: flex; flex-direction: column; }
.activity-preview-head small { color: var(--dz-text-3); }
.activity-preview-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--dz-ok);
  font-size: 12px;
  font-weight: 700;
}
.activity-preview-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dz-ok);
  box-shadow: 0 0 0 4px rgba(18,135,111,.12);
}
.activity-phone {
  position: relative;
  overflow: hidden;
  width: 370px;
  height: 740px;
  margin: 0 auto;
  border: 8px solid #181a1f;
  border-radius: 34px;
  background: #fffbf2;
  box-shadow: 0 24px 60px rgba(30, 25, 12, .2);
  color: #1f2937;
}
.activity-phone-status {
  height: 28px;
  padding: 7px 17px 0;
  display: flex;
  justify-content: space-between;
  color: #1f2937;
  font-size: 9px;
}
.activity-phone-nav {
  height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  font-size: 11px;
}
.activity-phone-nav b { font-size: 13px; }
.activity-phone-scroll {
  height: calc(100% - 112px);
  overflow-y: auto;
  padding: 0 10px 22px;
  scrollbar-width: none;
}
.activity-phone-scroll::-webkit-scrollbar { display: none; }
.activity-phone-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background-color: #fff1cf;
  background-position: center;
  background-size: cover;
}
.activity-phone-hero.has-image .activity-phone-hero-placeholder { display: none; }
.activity-phone-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d88700;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
}
.activity-phone-tag {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,180,0,.94);
  color: #452f00;
  font-size: 9px;
  font-weight: 800;
}
.activity-phone-card {
  margin-top: 9px;
  padding: 13px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(93, 68, 8, .05);
}
.activity-phone-intro { position: relative; margin-top: -20px; z-index: 2; }
.activity-phone-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.activity-phone-chips span {
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff4d6;
  color: #9d6500;
  font-size: 8px;
  font-weight: 700;
}
.activity-phone-intro h3 { margin: 8px 0 4px; font-size: 20px; line-height: 1.3; }
.activity-phone-share-title { margin: 0; color: #6b7280; font-size: 10px; line-height: 1.5; }
.activity-phone-price { display: flex; align-items: baseline; gap: 7px; margin-top: 8px; }
.activity-phone-price strong { color: #d88700; font-size: 24px; }
.activity-phone-price del { color: #9ca3af; font-size: 9px; }
.activity-phone-info { display: grid; gap: 8px; font-size: 10px; }
.activity-phone-info > div { display: flex; justify-content: space-between; gap: 10px; }
.activity-phone-info span { color: #9ca3af; }
.activity-phone-info b { max-width: 70%; color: #4b5563; text-align: right; font-weight: 500; }
.activity-phone-registration-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 9px;
  background: #eee6d6;
}
.activity-phone-registration-tabs button {
  flex: 1;
  margin: 0;
  padding: 7px 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #9ca3af;
  font-size: 9px;
  font-weight: 650;
}
.activity-phone-registration-tabs button.is-active {
  background: #fff;
  color: #735100;
  box-shadow: 0 2px 7px rgba(82, 58, 5, .1);
}
.activity-phone-registration-tabs button span {
  margin-left: 3px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #fff0c3;
  font-size: 8px;
}
.activity-phone-registration-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.activity-phone-registration-list-head span { color: #9ca3af; font-size: 9px; }
.activity-phone-registration-person {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  border-bottom: 1px solid #f0e7d3;
  color: #4b5563;
  font-size: 10px;
}
.activity-phone-registration-person:last-child { border-bottom: 0; }
.activity-phone-registration-person i {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff4d5;
  color: #735100;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
  font-style: normal;
}
.activity-phone-registration-person b { flex: 1; font-weight: 600; }
.activity-phone-registration-person > span { color: #9ca3af; font-size: 9px; }
.activity-phone-signup { display: grid; gap: 7px; }
.activity-phone-signup h4 { margin-bottom: 2px; }
.activity-phone-signup > div {
  display: flex;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0e7d3;
  color: #6b7280;
  font-size: 10px;
}
.activity-phone-signup > div:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-phone-signup em { color: #b19055; font-size: 9px; font-style: normal; }
.activity-phone-card h4 { margin: 0 0 8px; font-size: 13px; }
.activity-phone-rich { color: #6b7280; font-size: 10px; line-height: 1.7; }
.activity-phone-rich img { display: block; max-width: 100%; height: auto; margin: 7px auto; border-radius: 6px; }
.activity-phone-share-card { display: grid; gap: 4px; background: #fff8e7; }
.activity-phone-share-card span { color: #a58642; font-size: 8px; }
.activity-phone-share-card b { margin-bottom: 4px; font-size: 11px; }
.activity-phone-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  padding: 8px 10px;
  display: flex;
  gap: 7px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 -5px 20px rgba(0,0,0,.06);
}
.activity-phone-bottom button {
  margin: 0;
  border: 0;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
}
.activity-phone-bottom button:first-child { width: 45px; background: #fff; border: 1px solid #f0e7d3; }
.activity-phone-bottom button:nth-child(2) { width: 73px; background: #fff; border: 1px solid #f0e7d3; color: #735100; }
.activity-phone-bottom button:last-child { flex: 1; background: #ffb400; color: #422d00; }
.activity-share-preview-card {
  margin-top: 16px;
  padding: 14px 14px 12px;
  border: 1px solid var(--dz-line);
  border-radius: 14px;
  background: var(--dz-card);
  box-shadow: var(--dz-shadow);
}
.activity-share-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.activity-share-preview-head span { color: var(--dz-text-3); font-size: 11px; }
.activity-wechat-share-card {
  width: min(286px, 100%);
  overflow: hidden;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,.1);
}
.activity-share-cover {
  position: relative;
  aspect-ratio: 5 / 4;
  background: #f4efe4 center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.activity-share-cover span {
  color: #a09684;
  text-align: center;
  font-size: 11px;
  line-height: 1.55;
}
.activity-share-cover.has-image span { display: none; }
.activity-share-meta {
  display: grid;
  gap: 8px;
  min-height: 82px;
  padding: 10px 11px 9px;
}
.activity-share-meta > b {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.activity-share-meta > div { display: flex; align-items: center; gap: 5px; color: #a0a4ab; font-size: 9px; }
.activity-share-meta i {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #ffb400;
  color: #493100;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}
.activity-moments-share-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--dz-line);
  font-size: 11px;
}
.activity-moments-share-line span { color: var(--dz-text-3); }
.activity-moments-share-line b { max-width: 68%; text-align: right; }
.activity-poster-preview-card {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--dz-line);
  border-radius: 14px;
  background: var(--dz-card);
  box-shadow: var(--dz-shadow);
}
.activity-poster-live {
  position: relative;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid #eadfce;
  border-radius: 4px;
  background: #fffdf9;
  box-shadow: 0 4px 18px rgba(65, 48, 12, .09);
  box-sizing: border-box;
  color: #211b14;
}
.activity-poster-live-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
}
.activity-poster-live-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffb400;
  color: #3d2b00;
  font-size: 15px;
  font-weight: 900;
}
.activity-poster-live-head > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.activity-poster-live-head small {
  color: #a96d00;
  font-size: 8px;
  font-weight: 700;
}
.activity-poster-live-head b {
  display: -webkit-box;
  overflow: hidden;
  color: #443a2d;
  font-size: 11px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.activity-poster-live-image {
  position: relative;
  width: 51%;
  aspect-ratio: 3 / 4;
  margin: 7px auto 9px;
  border: 1px solid #eadfce;
  background: #f6f0e6 center / contain no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.activity-poster-live-image span {
  color: #ae9d84;
  font-size: 10px;
}
.activity-poster-live-image.has-image span { display: none; }
.activity-poster-live-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 18px;
  color: #211b14;
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.activity-poster-live-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 5px;
  max-width: 58%;
  margin-top: 7px;
}
.activity-poster-live-price span,
.activity-poster-live-price small {
  color: #8b7961;
  font-size: 9px;
}
.activity-poster-live-price strong {
  color: #e33f36;
  font-size: 24px;
  line-height: 1;
}
.activity-poster-live-date {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  width: 100%;
  color: #6e604e;
  font-size: 8px;
  white-space: nowrap;
}
.activity-poster-live-date span { color: #9a8b77; }
.activity-poster-live-date b { font-weight: 500; }
.activity-poster-live-org {
  position: absolute;
  left: 12px;
  bottom: 30px;
  max-width: 46%;
  overflow: hidden;
  color: #6e604e;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-poster-live-code {
  position: absolute;
  right: 28px;
  bottom: 43px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eadfce;
  background:
    linear-gradient(90deg, transparent 45%, #e9dfcf 45%, #e9dfcf 55%, transparent 55%),
    linear-gradient(transparent 45%, #e9dfcf 45%, #e9dfcf 55%, transparent 55%),
    #fbf6ed;
  color: #9a8b77;
  font-size: 8px;
}
.activity-poster-live-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 11px;
  color: #9a8b77;
  font-size: 8px;
}
.activity-preview-tip { margin: 10px 18px 0; color: var(--dz-text-3); text-align: center; font-size: 11px; }

@media (max-width: 1380px) {
  .activity-editor-layout { grid-template-columns: minmax(560px, 1fr) 390px; }
  .activity-phone { width: 350px; height: 700px; }
}
@media (max-width: 1120px) {
  .activity-editor-layout { grid-template-columns: 1fr; }
  .activity-preview-panel { position: static; }
  .activity-preview-panel { order: 2; }
}
@media (max-width: 720px) {
  .activity-asset-grid, .activity-asset-strip, .activity-new-banners, .activity-campus-options.compact .org-check-grid { grid-template-columns: 1fr; }
  .activity-asset-row, .activity-asset-row--poster { grid-template-columns: 1fr; }
  .activity-fixed-fields { min-width: 100%; }
  .activity-optional-fields { flex-basis: 100%; }
  .activity-asset-preview.ratio-share, .activity-asset-preview.ratio-poster { width: min(100%, 280px); justify-self: start; }
  .activity-hour-control { grid-template-columns: minmax(0, 1fr) 104px; }
  .activity-phone { width: min(350px, 100%); height: 700px; }
}

/* ==========================================================================
   拼好课活动概览（小程序效果 + 完整配置）
   ========================================================================== */
.activity-detail-head {
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--dz-line);
  border-radius: 16px;
  background: var(--dz-card);
  box-shadow: var(--dz-shadow);
}
.activity-detail-cover {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
}
.activity-detail-main { min-width: 0; padding: 4px 4px 4px 0; }
.activity-detail-main h2 { margin: 12px 0 9px; line-height: 1.35; }
.activity-detail-main p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 18px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.activity-detail-label { margin-bottom: 2px; }
.activity-detail-actions { gap: 8px; }
.activity-stat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.activity-stat-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.activity-tabs { margin-bottom: 18px; }
.activity-overview-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}
.activity-overview-side { grid-column: 1; grid-row: 1; }
.activity-mini-preview-card { grid-column: 2; grid-row: 1; }
.activity-qr-side {
  grid-column: 3;
  grid-row: 1;
  position: sticky;
  top: 18px;
  min-width: 0;
}
.activity-qr-card { margin: 0; }
.activity-qr-frame {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--dz-line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 180, 0, .08), transparent 62%),
    var(--dz-card-soft);
}
.activity-qr-frame img {
  width: min(220px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}
.activity-qr-error {
  padding: 28px 12px;
  color: var(--dz-warn-text);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}
.activity-qr-card > p {
  margin: 13px 0;
  color: var(--dz-text-2);
  font-size: 12.5px;
  line-height: 1.65;
}
.activity-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.activity-qr-actions .org-btn {
  flex: 1;
  min-width: 110px;
  margin: 0;
}
.activity-qr-tip {
  display: block;
  margin-top: 12px;
  color: var(--dz-text-3);
  line-height: 1.6;
}
.activity-qr-placeholder {
  min-height: 230px;
  padding: 34px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px dashed var(--dz-line-strong);
  border-radius: 14px;
  background: var(--dz-card-soft);
  text-align: center;
}
.activity-qr-placeholder > span {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--dz-brand-light);
  color: var(--dz-brand-dark);
  font-size: 22px;
  font-weight: 800;
}
.activity-qr-placeholder small { color: var(--dz-text-3); line-height: 1.6; }
.activity-mini-preview-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--dz-line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255,180,0,.12), transparent 30%),
    var(--dz-card);
  box-shadow: var(--dz-shadow);
}
.activity-mini-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.activity-mini-preview-head > div { display: flex; flex-direction: column; gap: 2px; }
.activity-mini-preview-head small { color: var(--dz-text-3); }
.activity-mini-page {
  width: min(390px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 7px solid #181a1f;
  border-radius: 30px;
  background: #fffbf2;
  box-shadow: 0 20px 48px rgba(28, 23, 10, .18);
}
.activity-mini-nav {
  height: 42px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: #1f2937;
  font-size: 11px;
}
.activity-mini-nav b { font-size: 13px; }
.activity-mini-scroll {
  height: min(760px, calc(100vh - 235px));
  min-height: 520px;
  overflow-y: auto;
  padding: 10px;
  scrollbar-width: none;
}
.activity-mini-scroll::-webkit-scrollbar { display: none; }
.activity-mini-hero {
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  background: #fff1cf center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d88700;
  font-size: 28px;
  font-weight: 900;
}
.activity-mini-intro {
  position: relative;
  z-index: 2;
  margin: -18px 4px 0;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(74, 56, 11, .07);
}
.activity-mini-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.activity-mini-chips span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff3d6;
  color: #996200;
  font-size: 10px;
  font-weight: 700;
}
.activity-mini-intro h3 { margin: 9px 0 5px; font-size: 22px; line-height: 1.3; }
.activity-mini-intro p { margin: 0; color: #6b7280; font-size: 12px; line-height: 1.55; }
.activity-mini-price { display: flex; align-items: baseline; gap: 8px; margin-top: 9px; }
.activity-mini-price strong { color: #d88700; font-size: 25px; }
.activity-mini-price del { color: #9ca3af; font-size: 11px; }
.activity-mini-info,
.activity-mini-section {
  margin: 9px 4px 0;
  padding: 13px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(74, 56, 11, .05);
}
.activity-mini-info { display: grid; gap: 10px; font-size: 11px; }
.activity-mini-info > div { display: flex; justify-content: space-between; gap: 14px; }
.activity-mini-info span { flex: 0 0 auto; color: #9ca3af; }
.activity-mini-info b { color: #4b5563; text-align: right; font-weight: 500; }
.activity-mini-section h4 { margin: 0 0 10px; font-size: 14px; }
.activity-mini-section p { margin: 0; color: #6b7280; font-size: 12px; line-height: 1.75; }
.activity-mini-registration-feed p {
  margin: 6px 0 0;
  padding: 6px 8px;
  border-radius: 7px;
  background: #fff7df;
  color: #7a5700;
  font-size: 11px;
}
.activity-mini-notice { background: #fff9e9; border: 1px solid #ffe5aa; }
.activity-mini-section .activity-rich-content { color: #6b7280; font-size: 12px; line-height: 1.75; }
.activity-mini-section .activity-rich-content p { margin: 7px 0; }
.activity-mini-section .activity-rich-content img { display: block; max-width: 100%; height: auto; margin: 9px auto; border-radius: 7px; }
.activity-overview-side { display: grid; gap: 16px; min-width: 0; }
.activity-config-card { margin: 0; }
.activity-config-list { display: grid; gap: 0; margin: 0; }
.activity-config-list > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--dz-line);
}
.activity-config-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-config-list dt { color: var(--dz-text-3); font-size: 12px; }
.activity-config-list dd {
  min-width: 0;
  margin: 0;
  color: var(--dz-text-1);
  text-align: right;
  overflow-wrap: anywhere;
}
.activity-price-strong { color: var(--dz-brand-dark); font-size: 18px; }
.activity-share-assets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.activity-share-assets > div { display: flex; flex-direction: column; gap: 7px; }
.activity-share-assets span { color: var(--dz-text-2); font-size: 12px; font-weight: 600; }
.activity-share-thumb { width: 100%; aspect-ratio: 5 / 4; border-radius: 9px; background: var(--dz-card-soft) center / cover no-repeat; border: 1px solid var(--dz-line); }
.activity-poster-thumb { width: 78%; aspect-ratio: 3 / 4; border-radius: 9px; background: var(--dz-card-soft) center / cover no-repeat; border: 1px solid var(--dz-line); }
.activity-share-assets small { color: var(--dz-text-3); line-height: 1.55; }
.activity-order-table .activity-team-cell {
  min-width: 156px;
  padding-top: 8px;
  padding-bottom: 8px;
  vertical-align: top;
  background-color: color-mix(in srgb, var(--dz-brand-light) 26%, transparent);
}
.activity-team-tree {
  position: relative;
  min-height: 48px;
  padding-left: 0;
}
.activity-team-order.is-team-start td {
  border-top: 1px solid var(--dz-line);
}
.activity-team-group tr:first-child .activity-team-cell {
  padding-top: 14px;
}
.activity-team-group tr:last-child .activity-team-cell {
  padding-bottom: 14px;
}
.activity-team-group + .activity-team-group tr:first-child td {
  border-top: 7px solid var(--dz-card-soft);
}
.activity-order-table tbody tr:first-child td { border-top: 0; }
.activity-order-table tbody:first-of-type tr:first-child .activity-team-cell { border-top: 0; }
.activity-team-heading {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  padding: 7px 9px;
  border: 1px solid var(--dz-line);
  border-radius: 8px;
  background: var(--dz-card);
}
.activity-team-heading b {
  display: block;
  color: var(--dz-text-1);
  font-size: 13px;
}
.activity-team-heading small {
  display: block;
  margin-top: 2px;
  color: var(--dz-text-3);
  font-size: 11px;
}
.activity-team-role {
  display: flex;
  align-items: center;
  min-height: 25px;
  color: var(--dz-text-2);
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Microsoft YaHei", monospace;
  white-space: pre;
}
.activity-team-role.is-leader {
  color: var(--dz-brand-dark);
  font-weight: 700;
}
.activity-team-leader-node { margin-right: 7px; color: var(--dz-brand); }
.activity-team-indent { flex: none; }
.activity-team-branch {
  flex: none;
  margin-right: 6px;
  color: var(--dz-line-strong);
}
.activity-order-action { white-space: nowrap; }

@media (max-width: 1180px) {
  .activity-stat-grid--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .activity-overview-layout { grid-template-columns: minmax(410px, 450px) minmax(340px, 1fr); }
  .activity-qr-side {
    grid-column: 2;
    grid-row: 2;
    position: static;
  }
}
@media (max-width: 980px) {
  .activity-overview-layout { grid-template-columns: 1fr; }
  .activity-overview-side {
    grid-template-columns: 1fr;
    grid-column: 1;
    grid-row: 1;
    position: static;
  }
  .activity-mini-preview-card { grid-column: 1; grid-row: 2; }
  .activity-qr-side { grid-column: 1; grid-row: 3; }
}
@media (max-width: 760px) {
  .activity-detail-head { grid-template-columns: 1fr; padding: 14px; }
  .activity-detail-main { padding: 0; }
  .activity-stat-grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-overview-side { grid-template-columns: 1fr; }
  .activity-mini-preview-card { padding: 12px; }
  .activity-mini-preview-head { flex-direction: column; gap: 8px; }
  .activity-mini-scroll { height: 680px; }
  .activity-config-list > div { grid-template-columns: 108px minmax(0, 1fr); gap: 10px; }
}

/* 拼好课订单核销 */
.verification-search { margin-bottom: 16px; }
.verification-search-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.verification-code-field { flex: 1; max-width: 560px; margin: 0; }
.verification-search-form .org-btn {
  height: 38px;
  min-height: 38px;
  margin-bottom: 0;
}
.verification-tip {
  margin: 12px 0 0;
  color: var(--dz-text-3);
  font-size: 12px;
}
.verification-result {
  margin-bottom: 16px;
  border-color: color-mix(in srgb, var(--dz-brand) 40%, var(--dz-line));
  box-shadow: 0 12px 34px rgba(79, 58, 2, .06);
}
.verification-result-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dz-line);
}
.verification-result-main h2 {
  margin: 5px 0 6px;
  font-size: 25px;
}
.verification-result-main p {
  margin: 0;
  color: var(--dz-text-2);
}
.verification-order-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}
.verification-order-grid > div {
  min-width: 0;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--dz-line);
}
.verification-order-grid dt {
  margin-bottom: 6px;
  color: var(--dz-text-3);
  font-size: 12px;
}
.verification-order-grid dd {
  margin: 0;
  color: var(--dz-text-1);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.verification-actions { margin: 18px 0 0; }
.verification-actions form { margin: 0; }
.verification-blocked {
  padding: 9px 13px;
  border-radius: 8px;
  background: var(--dz-card-soft);
  color: var(--dz-text-2);
  font-size: 13px;
}
@media (max-width: 900px) {
  .verification-order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .verification-search-form { align-items: stretch; flex-direction: column; }
  .verification-code-field { max-width: none; }
  .verification-search-form .org-btn { width: 100%; margin: 0 0 8px; }
  .verification-order-grid { grid-template-columns: 1fr; }
  .verification-result-main { flex-direction: column; }
}

/* 拼好课招生线索 */
.lead-list-head > div { display: flex; flex-direction: column; gap: 5px; }
.lead-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(140px, 180px) minmax(150px, 200px) auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.lead-filters input,
.lead-filters select {
  width: 100%;
  min-height: 38px;
}
.lead-filters .org-btn { white-space: nowrap; }
.lead-table td { vertical-align: middle; }
.lead-age {
  margin-left: 7px;
  color: var(--dz-text-3);
  font-size: 11px;
  font-weight: 400;
}
.lead-status { white-space: nowrap; }
.lead-status--new { background: var(--dz-brand-light); color: var(--dz-brand-dark); }
.lead-status--contacted,
.lead-status--interested { background: rgba(59,130,246,.1); color: #2563a8; }
.lead-status--appointed { background: var(--dz-warn-bg); color: var(--dz-warn-text); }
.lead-status--enrolled { background: var(--dz-success-bg); color: var(--dz-ok); }
.lead-status--invalid { background: var(--dz-card-soft); color: var(--dz-text-3); }
.lead-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .85fr);
  align-items: start;
  gap: 16px;
  margin-bottom: 16px;
}
.lead-summary-card { min-height: 100%; }
.lead-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}
.lead-summary > div {
  min-width: 0;
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--dz-line);
}
.lead-summary dt {
  margin-bottom: 6px;
  color: var(--dz-text-3);
  font-size: 12px;
}
.lead-summary dd {
  margin: 0;
  color: var(--dz-text-1);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.lead-summary-actions { display: flex; gap: 10px; margin-top: 18px; }
.lead-action-column { display: grid; gap: 16px; }
.lead-action-column .org-card { margin: 0; }
.lead-form { margin: 0; }
.lead-form .org-btn { width: 100%; }
.lead-timeline-card { margin-top: 0; }
.lead-timeline {
  position: relative;
  padding-left: 22px;
}
.lead-timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 1px;
  background: var(--dz-line);
  content: "";
}
.lead-timeline-item {
  position: relative;
  padding: 0 0 24px 8px;
}
.lead-timeline-item:last-child { padding-bottom: 4px; }
.lead-timeline-dot {
  position: absolute;
  top: 5px;
  left: -22px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--dz-card);
  border-radius: 50%;
  background: var(--dz-brand);
  box-shadow: 0 0 0 1px var(--dz-brand);
}
.lead-timeline-content {
  padding: 14px 16px;
  border: 1px solid var(--dz-line);
  border-radius: 11px;
  background: var(--dz-card-soft);
}
.lead-timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.lead-timeline-head span { color: var(--dz-text-3); font-size: 12px; }
.lead-timeline-content p {
  margin: 10px 0;
  color: var(--dz-text-2);
  line-height: 1.75;
}
.lead-timeline-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.lead-timeline-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--dz-brand-light);
  color: var(--dz-brand-dark);
  font-size: 11px;
}
.lead-empty { padding: 32px 0; text-align: center; }
@media (max-width: 1050px) {
  .lead-filters { grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(140px, 180px)); }
  .lead-detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .lead-filters { grid-template-columns: 1fr; }
  .lead-summary { grid-template-columns: 1fr; }
  .lead-summary-actions { flex-direction: column; }
}

/* 拼好课活动漏斗 */
.funnel-head > div { display: flex; flex-direction: column; gap: 5px; }
.funnel-date-range { display: flex; align-items: center; gap: 8px; }
.funnel-date-range input[type="date"] { width: 148px; }
.funnel-date-range span { color: var(--dz-text-3); font-size: 12px; }
.funnel-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 22px;
}
.funnel-step {
  position: relative;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border: 1px solid var(--dz-line);
  border-radius: 13px;
  background: var(--dz-card-soft);
  overflow: hidden;
}
.funnel-step::after {
  position: absolute;
  right: -7px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--dz-line);
  border-right: 1px solid var(--dz-line);
  background: var(--dz-card-soft);
  transform: translateY(-50%) rotate(45deg);
  content: "";
}
.funnel-step:last-child::after { display: none; }
.funnel-step span { color: var(--dz-text-2); font-size: 12px; }
.funnel-step b { margin-top: 7px; color: var(--dz-text-1); font-size: 25px; }
.funnel-step--views { border-top: 3px solid #6b8afd; }
.funnel-step--shares { border-top: 3px solid #8b7cf6; }
.funnel-step--signups { border-top: 3px solid var(--dz-brand); }
.funnel-step--paid { border-top: 3px solid #f59e0b; }
.funnel-step--verified { border-top: 3px solid #16a36a; }
.funnel-table td:nth-child(n+2) { white-space: nowrap; }
.funnel-rate {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--dz-brand-light);
  color: var(--dz-brand-dark);
  font-size: 11px;
  font-weight: 700;
}
@media (max-width: 800px) {
  .funnel-head { align-items: flex-start; flex-direction: column; }
  .funnel-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel-step::after { display: none; }
}
@media (max-width: 520px) {
  .funnel-date-range { width: 100%; flex-wrap: wrap; }
  .funnel-date-range input { flex: 1; min-width: 130px; }
  .funnel-track { grid-template-columns: 1fr; }
}
