/* 三项岗位人员培训管理系统 · 应用壳层与第 1 核心验证切片布局样式（配套 sx-theme.css） */

/* ========== 1. 顶栏（60px 瓷白底 + 2px 紫金典章金丝冠线 + 底部 1px 细线） ========== */
.sx-topbar {
  position: sticky; top: 0; z-index: var(--sx-z-top);
  height: var(--sx-top-h); background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sx-line);
  box-shadow: 0 1px 0 rgba(0, 58, 52, .02), 0 2px 8px rgba(0, 58, 52, .03);
  display: grid; grid-template-columns: var(--sx-side-w) minmax(0, 1fr);
  align-items: center;
}
.sx-topbar::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2.5px; pointer-events: none;
  background: linear-gradient(90deg, var(--sx-brand-deep) 0%, var(--sx-brand-600) 14%, var(--sx-accent-bar) 26%, rgba(221, 164, 0, .38) 54%, transparent 100%);
}
.sx-topbar-left {
  width: var(--sx-side-w); flex-shrink: 0; padding: 2px var(--sx-5) 0;
  display: flex; align-items: center; gap: 10px;
}
.sx-nav-toggle { display: none; }
.sx-brand {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 2px; min-width: 0; text-decoration: none; white-space: nowrap;
}
.sx-app a.sx-brand:hover { text-decoration: none; }
.sx-brand-lockup {
  display: block; height: 21px; width: auto; max-width: 184px; object-fit: contain;
}
.sx-brand-sub {
  font-size: 11px; line-height: 14px; font-weight: var(--sx-fw-medium);
  letter-spacing: 0.08em; color: var(--sx-ink-3);
}
.sx-app a.sx-brand:hover .sx-brand-sub { color: var(--sx-brand-700); }

/* 顶栏右轨道（搜索框左缘严格齐平 .sx-main-inner 左缘，用户胶囊贴视口右角防漂移） */
.sx-topbar-right-rail {
  position: relative; height: 100%; padding: 0 var(--sx-8);
  display: flex; align-items: center; min-width: 0;
}
.sx-topbar-center {
  width: 100%; max-width: var(--sx-content-max); margin-inline: auto; padding-right: 160px;
  display: flex; align-items: center; gap: var(--sx-3); min-width: 0;
}
.sx-topbar-search {
  position: relative; flex: 0 1 380px; width: 100%; max-width: 380px; min-width: 160px; margin: 0;
}
.sx-topbar-search-ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--sx-ink-3); pointer-events: none;
}
.sx-topbar-search-input {
  width: 100%; height: var(--sx-ctl-h); padding: 0 64px 0 36px;
  border: 1px solid transparent; border-radius: var(--sx-r-sm);
  background: var(--sx-sunken); color: var(--sx-ink);
  font-family: inherit; font-size: var(--sx-fs-14);
  transition: background var(--sx-fast) var(--sx-ease), border-color var(--sx-fast) var(--sx-ease);
}
.sx-topbar-search-input::placeholder { color: var(--sx-ink-3); }
.sx-topbar-search-input:focus { background: var(--sx-surface); border-color: var(--sx-focus); }
.sx-kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; padding: 0 5px; border-radius: 4px;
  background: var(--sx-surface); border: 1px solid var(--sx-line-strong);
  color: var(--sx-ink-3); font-family: inherit; font-size: 11px; line-height: 18px;
  text-align: center; white-space: nowrap; pointer-events: none;
  transition: opacity var(--sx-fast) var(--sx-ease);
}
.sx-topbar-search:focus-within .sx-kbd { opacity: 0; }
.sx-search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: var(--sx-z-pop);
  max-height: 420px; overflow-y: auto; padding: var(--sx-1);
  background: var(--sx-surface); border: 1px solid var(--sx-line);
  border-radius: var(--sx-r-md); box-shadow: var(--sx-shadow-pop);
}
.sx-suggest-group {
  padding: 6px 10px 3px; font-size: 11px; font-weight: var(--sx-fw-medium);
  color: var(--sx-ink-3); letter-spacing: .04em;
}
.sx-suggest-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 7px 10px; border-radius: var(--sx-r-sm); color: var(--sx-ink);
  font-size: var(--sx-fs-13); text-decoration: none;
}
.sx-app a.sx-suggest-item:hover, .sx-app a.sx-suggest-item.is-focused {
  background: var(--sx-brand-50); color: var(--sx-brand-800); text-decoration: none;
}
.sx-suggest-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--sx-fw-medium); }
.sx-suggest-sub { flex-shrink: 0; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--sx-fs-12); color: var(--sx-ink-3); }
.sx-suggest-foot {
  display: block; margin-top: 4px; padding: 8px 10px; border-top: 1px solid var(--sx-line);
  border-radius: 0 0 var(--sx-r-sm) var(--sx-r-sm); font-size: var(--sx-fs-12);
  font-weight: var(--sx-fw-medium); color: var(--sx-brand-700); text-decoration: none;
}
.sx-app a.sx-suggest-foot:hover, .sx-app a.sx-suggest-foot.is-focused {
  background: var(--sx-brand-50); color: var(--sx-brand-800); text-decoration: none;
}
.sx-suggest-empty { padding: 12px 10px; font-size: var(--sx-fs-12); color: var(--sx-ink-3); text-align: center; }

/* 顶栏右侧用户胶囊（原生 <details> 下拉，贴视口右角） */
.sx-user {
  position: absolute; right: var(--sx-4); top: 50%; transform: translateY(-50%);
  flex-shrink: 0;
}
.sx-user > summary {
  list-style: none; height: var(--sx-ctl-h); padding: 4px 12px 4px 4px;
  border-radius: var(--sx-r-pill); border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--sx-ink); font-size: var(--sx-fs-14); font-weight: var(--sx-fw-medium);
  cursor: pointer; user-select: none;
  transition: background var(--sx-fast) var(--sx-ease);
}
.sx-user > summary::-webkit-details-marker { display: none; }
.sx-user > summary:hover, .sx-user[open] > summary { background: var(--sx-hover); }
.sx-avatar {
  width: 28px; height: 28px; border-radius: var(--sx-r-pill);
  background: var(--sx-brand-100); color: var(--sx-brand-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--sx-fs-13); font-weight: var(--sx-fw-bold);
}
.sx-user-menu { width: 200px; }
.sx-menu-form { margin: 0; }

/* ========== 2. 侧栏壳层（224px 冷浅底，3 组不折叠）+ 内容区 ========== */
.sx-shell {
  flex: 1; display: grid; grid-template-columns: var(--sx-side-w) minmax(0, 1fr);
  min-height: calc(100vh - var(--sx-top-h));
}
/* 侧栏 .sx-sidebar / .sx-nav-* 基础样式见 sx-theme.css「侧栏导航」节；此处仅保留下方响应式抽屉断点 */

.sx-main {
  padding: var(--sx-6) var(--sx-8) var(--sx-12);
  width: 100%; min-width: 0;
}
.sx-main-inner {
  width: 100%; max-width: var(--sx-content-max); margin-inline: auto; min-width: 0;
}

/* ========== 3. 登录与认证外壳（紫金典章双栏登录 + 单卡修改密码/一次链兼容） ========== */
.sx-auth-shell {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--sx-8) var(--sx-4); gap: var(--sx-5);
  background: radial-gradient(ellipse 80% 60% at 22% 14%, rgba(0, 117, 105, .07), transparent 62%),
              radial-gradient(ellipse 60% 50% at 84% 86%, rgba(221, 164, 0, .06), transparent 58%),
              var(--sx-canvas);
}
.sx-login-stage {
  width: 100%; max-width: 920px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  background: var(--sx-surface); border: 1px solid #D5E0DC; border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 52, 46, .13), 0 4px 16px rgba(0, 52, 46, .06);
}
.sx-login-brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px 42px 34px; color: var(--sx-ink-on-brand);
  background: linear-gradient(155deg, #00312B 0%, #00443D 52%, #00584F 100%);
  border-top: 3px solid var(--sx-accent-bar);
}
.sx-login-arc {
  position: absolute; right: -56px; bottom: -18px; width: 320px; height: auto;
  opacity: .16; pointer-events: none; user-select: none;
}
.sx-login-star {
  position: absolute; right: 32px; top: 30px; width: 36px; height: 36px;
  opacity: .22; pointer-events: none; user-select: none;
}
.sx-login-brand-top { position: relative; z-index: 1; }
.sx-login-logo { display: block; height: 32px; width: auto; max-width: 100%; object-fit: contain; }
.sx-login-brand-hero { position: relative; z-index: 1; margin: 36px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.sx-login-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--sx-fs-12); font-weight: var(--sx-fw-medium); letter-spacing: .12em;
  color: #D2EBE5;
}
.sx-login-kicker::before { content: ""; width: 20px; height: 2px; background: var(--sx-accent-bar); border-radius: 1px; flex-shrink: 0; }
.sx-login-hero-title {
  margin: 0; font-size: 26px; line-height: 1.3; font-weight: var(--sx-fw-bold);
  letter-spacing: -.01em; color: #FFFFFF; text-wrap: balance;
}
.sx-login-hero-desc { margin: 0; font-size: var(--sx-fs-13); line-height: 1.65; color: rgba(255, 255, 255, .82); }
.sx-login-pillars {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, .14);
}
.sx-login-pillars li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: var(--sx-fs-12); line-height: 1.5;
}
.sx-login-pillar-tag { font-weight: var(--sx-fw-bold); color: #FFFFFF; letter-spacing: .04em; }
.sx-login-pillar-txt { color: rgba(255, 255, 255, .82); }
.sx-login-brand-foot {
  position: relative; z-index: 1; font-size: var(--sx-fs-12); letter-spacing: .04em;
  color: rgba(255, 255, 255, .74);
}
.sx-auth-card {
  width: 100%; max-width: 400px; background: var(--sx-surface);
  border: 1px solid var(--sx-line); border-radius: var(--sx-r-md);
  box-shadow: var(--sx-shadow-card); padding: var(--sx-10);
}
.sx-auth-card.is-split {
  max-width: none; border: 0; border-radius: 0; box-shadow: none;
  padding: 48px 42px 42px; display: flex; flex-direction: column; justify-content: center;
  border-top: 3px solid var(--sx-brand-deep);
}
.sx-login-form-head { margin-bottom: 4px; }
.sx-auth-mark { color: var(--sx-brand-600); margin-bottom: var(--sx-3); }
.sx-auth-title { margin: 0 0 6px; font-size: 22px; line-height: 30px; font-weight: var(--sx-fw-bold); color: var(--sx-ink); }
.sx-auth-sub { margin: 0 0 26px; font-size: var(--sx-fs-13); color: var(--sx-ink-2); }
.sx-auth-form { display: flex; flex-direction: column; gap: var(--sx-4); }
.sx-auth-card.is-split .sx-input { height: 40px; }
.sx-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sx-field-label { font-size: var(--sx-fs-13); line-height: var(--sx-lh-13); font-weight: var(--sx-fw-medium); color: var(--sx-ink); }
.sx-auth-submit { width: 100%; height: 42px; margin-top: var(--sx-2); }
.sx-pwd-wrap { position: relative; display: flex; align-items: center; }
.sx-pwd-wrap .sx-input { padding-right: 54px; }
.sx-pwd-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  height: 24px; padding: 0 8px; border: 0; border-radius: var(--sx-r-xs);
  background: transparent; color: var(--sx-ink-2); font-family: inherit;
  font-size: var(--sx-fs-12); font-weight: var(--sx-fw-medium); line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background var(--sx-fast) var(--sx-ease), color var(--sx-fast) var(--sx-ease);
}
.sx-pwd-toggle:hover { background: var(--sx-hover); color: var(--sx-brand-700); }
.sx-caps-hint { font-size: var(--sx-fs-12); line-height: var(--sx-lh-12); color: var(--sx-warn-ink); font-weight: var(--sx-fw-medium); }
.sx-login-help { margin: 18px 0 0; font-size: var(--sx-fs-12); color: var(--sx-ink-3); text-align: center; }
.sx-auth-foot { margin: 0; font-size: var(--sx-fs-12); color: var(--sx-ink-3); text-align: center; letter-spacing: .02em; }
@media (max-width: 860px) {
  .sx-login-stage { grid-template-columns: 1fr; max-width: 460px; }
  .sx-login-brand { padding: 28px 28px 24px; }
  .sx-login-brand-hero { margin: 20px 0 14px; }
  .sx-login-pillars { display: none; }
  .sx-auth-card.is-split { padding: 32px 28px; border-top: 0; }
}

/* ========== 4. 工作台（双列主区 + 340px 右栏） ========== */
.sx-dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sx-6); align-items: start; }
.sx-dash-main { display: flex; flex-direction: column; gap: var(--sx-6); min-width: 0; }
.sx-greeting-wrap { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: var(--sx-3); }
.sx-greeting { margin: 0; font-size: var(--sx-fs-24); line-height: var(--sx-lh-24); font-weight: var(--sx-fw-bold); color: var(--sx-ink); }
.sx-greeting-sub { margin: 4px 0 0; font-size: var(--sx-fs-14); color: var(--sx-ink-2); }
.sx-section { display: flex; flex-direction: column; gap: var(--sx-3); min-width: 0; }
.sx-section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sx-3); }
.sx-section-title { margin: 0; font-size: var(--sx-fs-13); font-weight: var(--sx-fw-medium); color: var(--sx-ink-2); }

.sx-todo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sx-3); }
.sx-todo-grid:has(> :only-child) { grid-template-columns: minmax(240px, 360px); }
.sx-todo {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px; border-radius: var(--sx-r-md);
  background: var(--sx-surface); border: 1px solid var(--sx-line);
  box-shadow: var(--sx-shadow-card); color: var(--sx-ink); text-decoration: none;
  transition: border-color var(--sx-fast) var(--sx-ease), box-shadow var(--sx-fast) var(--sx-ease), transform var(--sx-fast) var(--sx-ease);
}
.sx-app a.sx-todo:hover {
  border-color: var(--sx-brand-200); box-shadow: var(--sx-shadow-pop);
  transform: translateY(-1px); text-decoration: none; color: var(--sx-ink);
}
.sx-todo-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sx-todo-label { font-size: var(--sx-fs-14); font-weight: var(--sx-fw-medium); color: var(--sx-ink); }
.sx-todo-indicator { width: 8px; height: 8px; border-radius: var(--sx-r-pill); background: var(--sx-info-solid); flex-shrink: 0; }
.sx-todo-indicator.is-warn { background: var(--sx-warn-solid); }
.sx-todo-indicator.is-danger { background: var(--sx-danger-solid); }
.sx-todo-bottom { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sx-todo-count { font-size: var(--sx-fs-24); line-height: 1; font-weight: var(--sx-fw-bold); font-variant-numeric: tabular-nums; color: var(--sx-ink); }
.sx-todo-detail { font-size: var(--sx-fs-13); color: var(--sx-ink-2); }
.sx-cleared-line { display: inline-flex; align-items: center; gap: 6px; font-size: var(--sx-fs-12); color: var(--sx-ink-3); }
.sx-cleared-ico { color: var(--sx-ok-solid); }
.sx-all-cleared {
  height: var(--sx-ctl-h); padding: 0 var(--sx-3); border-radius: var(--sx-r-sm);
  background: var(--sx-sunken); color: var(--sx-ink-2); font-size: var(--sx-fs-13);
  display: flex; align-items: center; gap: 8px;
}

.sx-cohort-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--sx-4); }
.sx-card-action {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  font-size: var(--sx-fs-13); font-weight: var(--sx-fw-medium); color: var(--sx-brand-700);
  white-space: nowrap; text-decoration: none;
}
.sx-app a.sx-card-action:hover { color: var(--sx-brand-800); text-decoration: underline; }
.sx-cohort-card {
  display: flex; flex-direction: column; gap: var(--sx-3);
  transition: border-color var(--sx-fast) var(--sx-ease), box-shadow var(--sx-fast) var(--sx-ease), transform var(--sx-fast) var(--sx-ease);
}
.sx-cohort-card:hover { border-color: var(--sx-brand-200); box-shadow: var(--sx-shadow-hover); transform: translateY(-1px); }
.sx-cohort-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sx-2); }
.sx-cohort-card-title { margin: 0; font-size: var(--sx-fs-16); line-height: var(--sx-lh-16); font-weight: var(--sx-fw-bold); color: var(--sx-ink); text-wrap: balance; }
.sx-app a.sx-cohort-card-title:hover { color: var(--sx-brand-700); text-decoration: none; }
.sx-cohort-card-meta { margin: 2px 0 0; font-size: var(--sx-fs-13); color: var(--sx-ink-2); }
.sx-cohort-card-next {
  flex: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sx-3);
  padding-top: var(--sx-3); border-top: 1px solid var(--sx-line);
}
.sx-cohort-card-next-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sx-next-kicker { font-size: var(--sx-fs-12); font-weight: var(--sx-fw-medium); color: var(--sx-ink-3); }
.sx-next-msg { font-size: var(--sx-fs-14); color: var(--sx-ink); }
.sx-next-msg.is-done { color: var(--sx-ok-ink); display: inline-flex; align-items: center; gap: 6px; }
.sx-cohort-card-foot { font-size: var(--sx-fs-12); color: var(--sx-ink-3); font-variant-numeric: tabular-nums; }

.sx-activity-card { padding: var(--sx-5); }
.sx-activity-title { margin: 0 0 var(--sx-2); font-size: var(--sx-fs-16); font-weight: var(--sx-fw-bold); color: var(--sx-ink); }
.sx-activity-list { list-style: none; margin: 0; padding: 0; }
.sx-activity-item { padding: 10px 0; border-bottom: 1px solid var(--sx-line); display: flex; flex-direction: column; gap: 2px; }
.sx-activity-item:last-child { border-bottom: 0; padding-bottom: 0; }
.sx-activity-time { font-size: var(--sx-fs-12); color: var(--sx-ink-3); font-variant-numeric: tabular-nums; }
.sx-activity-text { font-size: var(--sx-fs-13); line-height: var(--sx-lh-13); color: var(--sx-ink); text-wrap: pretty; }
.sx-app a.sx-activity-text:hover { color: var(--sx-brand-700); text-decoration: none; }

/* ========== 5. 6 步进度条（.sx-steps，纯状态类零 style=） ========== */
.sx-steps {
  list-style: none; margin: 0; padding: 4px 0 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0;
}
.sx-step { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sx-step-track { display: flex; align-items: center; height: 18px; }
.sx-step-node {
  width: 14px; height: 14px; border-radius: var(--sx-r-pill); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sx-surface); border: 1.5px solid var(--sx-line-strong);
  color: var(--sx-ink-on-brand);
}
.sx-step-node svg { width: 10px; height: 10px; }
.sx-step-skip-dash { font-size: 10px; line-height: 1; font-weight: var(--sx-fw-bold); }
.sx-step-line { flex: 1; height: 2px; background: var(--sx-line-strong); }
.sx-step:last-child .sx-step-line { display: none; }
.sx-step-label { font-size: var(--sx-fs-12); line-height: 16px; color: var(--sx-ink-3); white-space: nowrap; }
.sx-step[data-state="done"] .sx-step-node { background: var(--sx-brand-600); border-color: var(--sx-brand-600); }
.sx-step[data-state="done"] .sx-step-line { background: var(--sx-brand-600); }
.sx-step[data-state="done"]:has(+ .sx-step[data-state="todo"]) .sx-step-line,
.sx-step[data-state="done"]:has(+ .sx-step[data-state="missing"]) .sx-step-line { background: var(--sx-line-strong); }
.sx-step[data-state="current"] .sx-step-node {
  background: var(--sx-surface); border: 2px solid var(--sx-brand-600);
  box-shadow: 0 0 0 4px var(--sx-brand-100);
}
.sx-step[data-state="current"] .sx-step-label { color: var(--sx-brand-700); font-weight: var(--sx-fw-medium); }
.sx-step[data-state="skipped"] .sx-step-node {
  background: var(--sx-sunken); border-color: var(--sx-line-strong); color: var(--sx-ink-3);
}
.sx-step[data-state="skipped"] .sx-step-label { color: var(--sx-ink-3); }
.sx-step[data-state="missing"] .sx-step-node {
  background: var(--sx-warn-bg); border: 2px solid var(--sx-warn-solid); color: var(--sx-warn-ink);
}
.sx-step[data-state="missing"] .sx-step-label { color: var(--sx-warn-ink); font-weight: var(--sx-fw-medium); }
.sx-step[data-state="missing"] .sx-step-line { background: var(--sx-line-strong); }

/* ========== 6. 期次班详情页头、现在该做、更多操作、5 页签 ========== */
.sx-page-stack { display: flex; flex-direction: column; gap: var(--sx-4); min-width: 0; }
.sx-cohort-header { display: flex; flex-direction: column; gap: 8px; }
.sx-cohort-title-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sx-3); flex-wrap: wrap; }
.sx-cohort-title-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.sx-page-title { margin: 0; font-size: var(--sx-fs-20); line-height: var(--sx-lh-20); font-weight: var(--sx-fw-bold); color: var(--sx-ink); text-wrap: balance; }
.sx-page-sub { margin: 4px 0 0; font-size: var(--sx-fs-13); line-height: var(--sx-lh-13); color: var(--sx-ink-2); }
.sx-meta-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--sx-fs-13); color: var(--sx-ink-2); }

.sx-more { position: relative; flex-shrink: 0; }
.sx-more > summary { list-style: none; }
.sx-more > summary::-webkit-details-marker { display: none; }
.sx-more-menu { width: 240px; }

.sx-guide {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sx-3);
  padding: 14px 16px; border-radius: var(--sx-r-md);
  border: 1px solid var(--sx-brand-200); background: var(--sx-brand-50);
}
.sx-guide.is-warning { background: var(--sx-warn-bg); border-color: var(--sx-warn-border); }
.sx-guide.is-danger { background: var(--sx-danger-bg); border-color: var(--sx-danger-border); }
.sx-guide.is-done { background: var(--sx-ok-bg); border-color: var(--sx-ok-border); }
.sx-guide-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 260px; }
.sx-guide-ico { color: var(--sx-brand-600); flex-shrink: 0; }
.sx-guide.is-warning .sx-guide-ico { color: var(--sx-warn-ink); }
.sx-guide.is-danger .sx-guide-ico { color: var(--sx-danger-ink); }
.sx-guide.is-done .sx-guide-ico { color: var(--sx-ok-ink); }
.sx-guide-body { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; min-width: 0; }
.sx-guide-kicker { font-size: var(--sx-fs-12); font-weight: var(--sx-fw-medium); color: var(--sx-ink-2); }
.sx-guide-text { font-size: var(--sx-fs-14); font-weight: var(--sx-fw-medium); color: var(--sx-ink); }
.sx-guide-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sx-2); }
.sx-guide-finish-pop { width: 256px; padding: var(--sx-3); gap: var(--sx-3); }
.sx-guide-field-label { font-size: var(--sx-fs-12); color: var(--sx-ink-2); white-space: nowrap; }

.sx-tabs { display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--sx-line-strong); overflow-x: auto; scrollbar-width: none; }
.sx-tabs::-webkit-scrollbar { display: none; }
.sx-tab {
  height: var(--sx-row-h); padding: 0 4px; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--sx-fs-14); color: var(--sx-ink-2); border-bottom: 2px solid transparent;
  text-decoration: none; white-space: nowrap;
}
.sx-app a.sx-tab:hover { color: var(--sx-ink); text-decoration: none; }
.sx-tab[aria-current="page"], .sx-tab.is-active {
  color: var(--sx-ink); font-weight: var(--sx-fw-bold); border-bottom-color: var(--sx-brand-600);
}
.sx-tab.is-disabled { color: var(--sx-ink-disabled); cursor: not-allowed; }
.sx-tab-count { font-size: var(--sx-fs-12); color: var(--sx-ink-3); font-weight: var(--sx-fw-regular); font-variant-numeric: tabular-nums; }
.sx-tab-dot { width: 6px; height: 6px; border-radius: var(--sx-r-pill); background: var(--sx-brand-600); flex-shrink: 0; }
.sx-tab-sep { width: 1px; height: 18px; background: var(--sx-line-strong); flex-shrink: 0; align-self: center; }
.sx-tab-tail-note { margin-left: auto; font-size: var(--sx-fs-12); color: var(--sx-ink-3); white-space: nowrap; flex-shrink: 0; }
.sx-focus-row, .sx-table tbody tr.sx-focus-row {
  background: var(--sx-brand-50); box-shadow: inset 3px 0 0 var(--sx-brand-600);
}

/* ========== 7. 名单表、6 枚微徽章、行尾菜单、预报名选人、实时提示条 ========== */
.sx-roster-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sx-3); }
.sx-table-card { background: var(--sx-surface); border: 1px solid var(--sx-line); border-radius: var(--sx-r-md); box-shadow: var(--sx-shadow-card); }
.sx-table-scroll { width: 100%; overflow: visible; }
.sx-table { width: 100%; border-collapse: collapse; font-size: var(--sx-fs-13); line-height: var(--sx-lh-13); }
.sx-table thead th:first-child { border-top-left-radius: calc(var(--sx-r-md) - 1px); }
.sx-table thead th:last-child { border-top-right-radius: calc(var(--sx-r-md) - 1px); }
.sx-table th {
  height: 36px; padding: 0 10px; text-align: left; white-space: nowrap;
  background: #F1F5F4; color: #445752; font-size: var(--sx-fs-12); font-weight: var(--sx-fw-medium);
  letter-spacing: .01em; border-bottom: 1px solid var(--sx-line-strong);
}
.sx-table td {
  height: var(--sx-tbl-row); padding: 3px 10px; text-align: left; vertical-align: middle; line-height: 1.2;
  border-bottom: 1px solid var(--sx-line); color: var(--sx-ink);
}
.sx-table tbody tr:last-child td { border-bottom: 0; }
.sx-table tbody tr:hover { background: var(--sx-hover); }
.sx-table tfoot td { background: #F4F8F7; font-weight: var(--sx-fw-bold); border-top: 1px solid var(--sx-line-strong); border-bottom: 0; }
.sx-table tbody tr.sx-row-rollup td { background: #F8FBFA; color: var(--sx-ink-2); }
.sx-sort-link { display: inline-flex; align-items: center; gap: 3px; color: inherit; font-weight: inherit; text-decoration: none; }
.sx-app a.sx-sort-link:hover, .sx-app a.sx-sort-link.is-active { color: var(--sx-brand-700); text-decoration: none; }
.sx-app a.sx-sort-link.is-active { font-weight: var(--sx-fw-bold); }
.sx-per-page { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; }
.sx-per-page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 24px; padding: 0 6px; border-radius: var(--sx-r-xs);
  border: 1px solid transparent; color: var(--sx-ink-2); font-size: var(--sx-fs-12);
  font-variant-numeric: tabular-nums; text-decoration: none;
}
.sx-app a.sx-per-page-link:hover { background: var(--sx-hover); color: var(--sx-ink); text-decoration: none; }
.sx-app a.sx-per-page-link.is-active {
  background: var(--sx-brand-50); border-color: var(--sx-brand-200);
  color: var(--sx-brand-700); font-weight: var(--sx-fw-bold);
}
.sx-table tr.sx-row-new td { background: var(--sx-canvas); border-top: 1px dashed var(--sx-line-strong); }
.sx-table th.is-num, .sx-table td.is-num, .sx-table th.sx-money, .sx-table td.sx-money { text-align: right; }
.sx-table th.is-narrow { width: 72px; }
.sx-table td.is-num .sx-cell-input { min-width: 0; text-align: right; }
.sx-cell-name { font-size: var(--sx-fs-14); font-weight: var(--sx-fw-medium); color: var(--sx-ink); }
.sx-cell-sub { font-size: var(--sx-fs-12); color: var(--sx-ink-3); }
.sx-table .sx-cell-name { font-size: var(--sx-fs-13); line-height: 16px; }
.sx-table .sx-cell-sub { font-size: var(--sx-fs-12); line-height: 15px; color: var(--sx-ink-2); }
.sx-table .sx-pill { height: 18px; padding: 0 6px; font-size: 11px; }
.sx-table .sx-btn.is-sm { height: 24px; padding: 0 8px; font-size: 12px; }
.sx-table .sx-page-actions { gap: 4px; }
.sx-sub-inline { margin-left: 6px; font-size: var(--sx-fs-12); color: var(--sx-ink-3); font-weight: var(--sx-fw-regular); font-variant-numeric: tabular-nums; }
.sx-nowrap { white-space: nowrap; }
.sx-money { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: var(--sx-fw-medium); }
.sx-link-main { color: var(--sx-ink); font-weight: var(--sx-fw-medium); text-decoration: none; }
.sx-app a.sx-link-main:hover { color: var(--sx-brand-700); text-decoration: underline; }
.sx-col-cap { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 6 枚 20×20 微徽章（照/线/考/收/票/证） */
.sx-dots { display: inline-flex; align-items: center; gap: 4px; }
.sx-dot {
  width: 20px; height: 20px; border-radius: var(--sx-r-xs);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--sx-fs-12); font-weight: var(--sx-fw-medium); line-height: 1;
}
.sx-dot.is-done { background: var(--sx-ok-bg); color: var(--sx-ok-ink); }
.sx-dot.is-todo { background: var(--sx-surface); border: 1px solid var(--sx-line-strong); color: var(--sx-ink-3); }
.sx-dot.is-bad { background: var(--sx-danger-bg); color: var(--sx-danger-ink); }
.sx-dot.is-na { background: transparent; color: var(--sx-ink-disabled); text-decoration: line-through; }

/* 行尾 ⋯ 菜单（表尾最后 2 行自动向上弹出） */
.sx-rowmenu { position: relative; display: inline-block; }
.sx-rowmenu > summary {
  list-style: none; width: 24px; height: 24px; border-radius: var(--sx-r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--sx-ink-2); cursor: pointer;
}
.sx-rowmenu > summary::-webkit-details-marker { display: none; }
.sx-rowmenu > summary:hover, .sx-rowmenu[open] > summary { background: var(--sx-hover); color: var(--sx-ink); }
.sx-rowmenu .sx-menu { width: 160px; }
.sx-table tbody tr:nth-last-child(-n+2) .sx-rowmenu .sx-menu { top: auto; bottom: calc(100% + 4px); }

/* 可展开内嵌工作面板（预报名批量选人 / 添加学员） */
.sx-picker {
  background: var(--sx-surface); border: 1px solid var(--sx-line);
  border-radius: var(--sx-r-md); box-shadow: var(--sx-shadow-card);
}
.sx-picker .sx-picker { box-shadow: none; background: var(--sx-canvas); }
.sx-picker > summary {
  list-style: none; padding: 12px 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: flex-start; gap: var(--sx-3);
  font-size: var(--sx-fs-14); font-weight: var(--sx-fw-medium); color: var(--sx-ink);
}
.sx-picker > summary::-webkit-details-marker { display: none; }
.sx-picker > summary > :last-child { margin-left: auto; }
.sx-picker > summary::after {
  content: ""; width: 14px; height: 14px; flex-shrink: 0; margin-left: var(--sx-2);
  background: url("../img/chevron-down.4e47a50723ff.svg") center/14px 14px no-repeat;
  transition: transform var(--sx-fast) var(--sx-ease);
}
.sx-picker[open] > summary::after { transform: rotate(180deg); }
.sx-picker[open] > summary { border-bottom: 1px solid var(--sx-line); }
.sx-picker-body { padding: var(--sx-4); display: flex; flex-direction: column; gap: var(--sx-3); }
.sx-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sx-3) var(--sx-4); }
.sx-form-grid .is-wide { grid-column: span 2; }
.sx-field.is-id { max-width: 360px; }
.sx-picker-list { display: flex; flex-direction: column; max-height: 320px; overflow-y: auto; border: 1px solid var(--sx-line); border-radius: var(--sx-r-sm); }
.sx-picker-row {
  min-height: 40px; padding: 6px 12px; border-bottom: 1px solid var(--sx-line);
  display: grid; grid-template-columns: 24px minmax(0, 1.2fr) minmax(0, 1.4fr) auto; gap: 10px;
  align-items: center; cursor: pointer; font-size: var(--sx-fs-13);
}
.sx-picker-row:last-child { border-bottom: 0; }
.sx-picker-row:hover { background: var(--sx-hover); }
.sx-picker-row:has(input:checked) { background: var(--sx-brand-50); }
.sx-picker-foot {
  position: sticky; bottom: 0; background: var(--sx-surface);
  border-top: 1px solid var(--sx-line); padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sx-3);
}

/* HTMX 实时提示条（身份证查重 / 排课占用） */
.sx-hint-slot { margin-top: 6px; min-height: 0; }
.sx-hint {
  padding: 8px 12px; border-radius: var(--sx-r-sm); font-size: var(--sx-fs-13); line-height: var(--sx-lh-13);
  display: flex; align-items: flex-start; gap: 8px;
  animation: sxFadeIn var(--sx-fast) var(--sx-ease);
}
.sx-hint.is-mute { background: var(--sx-mute-bg); color: var(--sx-mute-ink); }
.sx-hint.is-info { background: var(--sx-info-bg); color: var(--sx-info-ink); }
.sx-hint.is-ok { background: var(--sx-ok-bg); color: var(--sx-ok-ink); }
.sx-hint.is-warn { background: var(--sx-warn-bg); color: var(--sx-warn-ink); }
.sx-hint.is-danger { background: var(--sx-danger-bg); color: var(--sx-danger-ink); }
.sx-busy-row { display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: 6px; align-items: center; font-size: var(--sx-fs-13); }
.sx-busy-vals { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
@keyframes sxFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ========== 8. 旧业务页共用辅助布局类（无缝兼容） ========== */
.sx-page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--sx-3); padding-bottom: var(--sx-3); border-bottom: 1px solid var(--sx-line); }
.sx-page-head-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 280px; }
.sx-page-head .sx-meta-line { text-wrap: pretty; }
.sx-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sx-2); }
.sx-filter-bar, .sx-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sx-2); }
.sx-filter-bar { padding: var(--sx-3); background: var(--sx-canvas); border: 1px solid var(--sx-line); border-radius: var(--sx-r-md); }
.sx-filter-bar .sx-input {
  width: auto; min-width: 140px; flex: 0 1 240px; max-width: 100%; height: var(--sx-ctl-h-sm);
  padding: 0 10px; font-size: var(--sx-fs-13);
}
/* 工具栏常嵌在 .sx-row-between 内：给显式宽度，使表单 max-content 与实际占宽一致，按钮不再被挤到下一行 */
.sx-toolbar .sx-input {
  width: 168px; min-width: 120px; flex: 0 1 168px; max-width: 100%; height: var(--sx-ctl-h-sm);
  padding: 0 10px; font-size: var(--sx-fs-13);
}
.sx-toolbar .sx-input[type="search"] { width: 200px; min-width: 160px; flex: 0 1 200px; }
.sx-toolbar .sx-input[type="file"] { width: 240px; min-width: 160px; flex: 0 1 240px; }
@media (min-width: 1100px) {
  .sx-filter-bar.is-dense .sx-input { flex: 1 1 160px; min-width: 120px; }
}
.sx-inline-form { display: inline-flex; align-items: center; gap: var(--sx-2); flex-wrap: nowrap; margin: 0; }
.sx-inline-form .sx-input { width: 168px; flex: 0 0 auto; height: var(--sx-ctl-h-sm); padding: 0 10px; font-size: var(--sx-fs-13); }
.sx-compact-input { width: auto; min-width: 116px; max-width: 220px; height: var(--sx-ctl-h-sm); padding: 0 10px; font-size: var(--sx-fs-13); }
.sx-cell-input { width: 100%; min-width: 0; max-width: 100%; height: var(--sx-ctl-h-sm); padding: 0 6px; font-size: var(--sx-fs-12); }
select.sx-cell-input, select.sx-compact-input,
.sx-filter-bar select.sx-input, .sx-toolbar select.sx-input,
.sx-inline-form select.sx-input { padding-right: 24px; background-position: right 6px center; }
.sx-kpi-grid, .sx-kpi-grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: var(--sx-3); }
.sx-kpi-grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sx-3); }
.sx-kpi-money { font-size: var(--sx-fs-20); line-height: var(--sx-lh-20); text-align: left; }
.sx-kpi-sub { font-size: var(--sx-fs-12); color: var(--sx-ink-2); }
.sx-kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--sx-3); padding: var(--sx-3) var(--sx-4); background: var(--sx-canvas); border: 1px solid var(--sx-line); border-radius: var(--sx-r-md); }
.sx-kv-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 20px;
  padding: 10px 16px; background: var(--sx-surface);
  border: 1px solid var(--sx-line); border-radius: var(--sx-r-md); box-shadow: var(--sx-shadow-card);
}
.sx-kv-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sx-kv-label { font-size: var(--sx-fs-12); color: var(--sx-ink-3); }
.sx-kv-val { font-weight: var(--sx-fw-bold); color: var(--sx-ink); font-variant-numeric: tabular-nums; word-break: break-word; }
.sx-stat-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  min-height: 44px; padding: 8px 16px; background: var(--sx-surface);
  border: 1px solid var(--sx-line); border-radius: var(--sx-r-md); box-shadow: var(--sx-shadow-card);
}
.sx-stat-item { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.sx-stat-item + .sx-stat-item { padding-left: 20px; border-left: 1px solid var(--sx-line); }
.sx-stat-label { font-size: var(--sx-fs-12); color: var(--sx-ink-3); white-space: nowrap; }
.sx-stat-val { font-size: var(--sx-fs-16); line-height: 1.25; font-weight: var(--sx-fw-bold); color: var(--sx-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sx-stat-val.is-ok { color: var(--sx-ok-ink); }
.sx-stat-val.is-warn { color: var(--sx-warn-ink); }
.sx-stat-val.is-danger { color: var(--sx-danger-ink); }
.sx-stat-sub { font-size: var(--sx-fs-12); color: var(--sx-ink-2); white-space: nowrap; }
.sx-finance-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 10px 14px; background: var(--sx-surface);
  border: 1px solid var(--sx-line); border-radius: var(--sx-r-md); box-shadow: var(--sx-shadow-card);
}
.sx-finance-bar .sx-input { height: var(--sx-ctl-h-sm); padding: 0 10px; font-size: var(--sx-fs-13); width: auto; max-width: 240px; }
.sx-finance-bar select.sx-input { padding-right: 28px; }
.sx-finance-bar-end { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.sx-per-person-col { display: none; }
.is-per-person .sx-per-person-col { display: table-cell; }
.sx-cond-field { display: none; align-items: center; gap: 6px; }
.sx-cond-field.is-show { display: inline-flex; }
.sx-cell-stack { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sx-checkbox-list { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 8px 12px; background: var(--sx-canvas); border: 1px solid var(--sx-line); border-radius: var(--sx-r-sm); }
.sx-inline-check { display: inline-flex; align-items: center; gap: 6px; font-size: var(--sx-fs-13); color: var(--sx-ink-2); cursor: pointer; }
.sx-alert-list { margin: 4px 0 0; padding-left: 18px; }
.sx-row-divider { padding-top: var(--sx-3); border-top: 1px solid var(--sx-line); }
.sx-modal-meta { margin: 0; font-size: var(--sx-fs-12); color: var(--sx-ink-3); font-variant-numeric: tabular-nums; }
.sx-code-cell { font-size: var(--sx-fs-12); color: var(--sx-ink-2); max-width: 100%; word-break: break-all; }
.sx-dirty { outline: 2px solid var(--sx-warn-solid); border-radius: var(--sx-r-sm); }
.sx-dirty-hint { display: none; color: var(--sx-warn-ink); font-size: var(--sx-fs-12); font-weight: var(--sx-fw-medium); }
.sx-dirty .sx-dirty-hint { display: inline; }
.sx-pagination {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sx-2);
  margin-top: var(--sx-4); padding-top: var(--sx-3); border-top: 1px solid var(--sx-line);
  font-size: var(--sx-fs-12); color: var(--sx-ink-2); font-variant-numeric: tabular-nums;
}

/* ========== 9. 响应式断点 ========== */
@media (min-width: 1800px) {
  .sx-dash-grid { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 1360px) {
  .sx-col-cap { max-width: 180px; }
}
@media (max-width: 1279px) {
  .sx-dash-grid { grid-template-columns: 1fr; }
  .sx-kpi-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  body:not(.sx-drawer-open) .sx-table-scroll { overflow-x: clip; }
  body:not(.sx-drawer-open) .sx-table thead th {
    position: sticky; top: var(--sx-top-h); z-index: 2;
    background: #F7FAF9; box-shadow: inset 0 -1px 0 var(--sx-line);
  }
  body.sx-drawer-open .sx-table thead th { position: static; box-shadow: none; }
}
@media (min-width: 1024px) {
  .sx-sidebar { box-shadow: none; }
  body.sx-drawer-open .sx-table-scroll { overflow-x: auto; }
  body.sx-drawer-open .sx-table-scroll:has(.sx-rowmenu[open]) { overflow: visible; }
}
@media (max-width: 1023px) {
  .sx-topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sx-3); padding-right: var(--sx-3); }
  .sx-nav-toggle { display: inline-flex; width: 44px; height: 44px; }
  .sx-topbar-left { width: auto; padding: 0 0 0 var(--sx-2); flex: 0 1 auto; min-width: 0; }
  .sx-topbar-right-rail { flex: 1 1 auto; padding: 0; gap: var(--sx-3); justify-content: flex-end; }
  .sx-topbar-center { max-width: none; margin-inline: 0; padding-right: 0; flex: 1 1 auto; justify-content: flex-end; }
  .sx-topbar-search { flex: 0 1 260px; width: min(260px, 100%); min-width: 120px; }
  .sx-user { position: static; transform: none; }
  .sx-shell { grid-template-columns: 1fr; }
  .sx-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(264px, 85vw); height: 100vh;
    z-index: var(--sx-z-nav); box-shadow: none; visibility: hidden; scrollbar-width: none;
    transform: translateX(-100%); transition: transform var(--sx-base) var(--sx-ease), visibility var(--sx-base) var(--sx-ease);
  }
  .sx-sidebar.is-open { transform: translateX(0); box-shadow: var(--sx-shadow-pop); visibility: visible; }
  .sx-mobile-nav-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 4px 4px 10px; border-bottom: 1px solid var(--sx-line);
    font-size: var(--sx-fs-14); font-weight: var(--sx-fw-bold); color: var(--sx-ink);
  }
  .sx-main { padding: var(--sx-5) var(--sx-4) var(--sx-10); }
  .sx-table-scroll { overflow-x: auto; }
  .sx-table-scroll:has(.sx-rowmenu[open]) { overflow: visible; }
  .sx-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .sx-topbar { gap: var(--sx-2); padding-right: var(--sx-2); }
  .sx-topbar-center { display: none; }
  .sx-brand-lockup { height: 18px; max-width: 148px; }
  .sx-brand-sub { font-size: 10px; }
  .sx-user-name { display: none; }
  .sx-mobile-search { display: block; margin: 8px 0; }
  .sx-nav-link { min-height: var(--sx-row-h); }
  .sx-main { padding: var(--sx-4) var(--sx-3) var(--sx-8); }
  .sx-todo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-cohort-grid { grid-template-columns: 1fr; }
  .sx-kpi-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-form-grid { grid-template-columns: 1fr; }
  .sx-form-grid .is-wide { grid-column: auto; }
  .sx-btn.is-sm { height: var(--sx-ctl-h); }
  .sx-inline-form { flex-wrap: wrap; width: 100%; }
  .sx-stat-item + .sx-stat-item { padding-left: 0; border-left: 0; }
  .sx-finance-bar-end { margin-left: 0; width: 100%; justify-content: flex-end; }
  .sx-filter-bar .sx-input, .sx-toolbar .sx-input, .sx-toolbar .sx-input[type="search"], .sx-toolbar .sx-input[type="file"], .sx-inline-form .sx-input {
    width: 100%; min-width: 0; flex: 1 1 100%;
  }
  .sx-auth-card { padding: var(--sx-6) var(--sx-5); }
}
