:root {
  --bg1: #071836;
  --bg2: #123c7c;
  --bg3: #1d7ecb;
  --text: #102033;
  --muted: #68778b;
  --blue: #1d63ff;
  --blue2: #1147ca;
  --line: rgba(255,255,255,.26);
  --glass: rgba(255,255,255,.78);
  --danger: #d93025;
  --ok: #13955f;
  --warn: #e88400;
  --shadow: 0 24px 80px rgba(0, 32, 94, .20);
}

/* ===== V2.11.15 后台真实分页与加载反馈 ===== */
.admin-list-loading {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #56708f;
  font-size: 14px;
  font-weight: 700;
}

.admin-loading-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #dbe8ff;
  border-top-color: #2764e7;
  border-radius: 50%;
  animation: admin-data-spin .8s linear infinite;
}

@keyframes admin-data-spin {
  to { transform: rotate(360deg); }
}

.course-center-loading-card {
  overflow: hidden;
}

.course-center-loading-card span,
.course-center-loading-card b,
.course-center-loading-card small {
  display: block;
  width: 72%;
  height: 12px;
  margin: 8px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf3fb 20%, #f8fbff 50%, #edf3fb 80%);
  background-size: 220% 100%;
  animation: admin-data-shimmer 1.2s ease-in-out infinite;
}

.course-center-loading-card b {
  width: 38%;
  height: 28px;
}

.course-center-loading-card small {
  width: 86%;
}

@keyframes admin-data-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -20% 0; }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 14%, rgba(91, 171, 255, .55), transparent 28%),
    radial-gradient(circle at 82% 6%, rgba(107, 90, 255, .28), transparent 26%),
    linear-gradient(135deg, #eef6ff 0%, #f6fbff 46%, #eef5ff 100%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
.glass {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.hidden { display: none !important; }
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #0c56d7;
  background: rgba(29,99,255,.10);
  border: 1px solid rgba(29,99,255,.15);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.primary-btn, .secondary-btn, .logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.primary-btn {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  box-shadow: 0 12px 26px rgba(29, 99, 255, .22);
}
.secondary-btn {
  background: rgba(255,255,255,.92);
  color: #17417b;
  border: 1px solid rgba(23,65,123,.12);
}
.logout-btn {
  background: rgba(255,255,255,.54);
  color: #5d6c7c;
  border: 1px solid rgba(93,108,124,.14);
}
.primary-btn:hover, .secondary-btn:hover, .logout-btn:hover { transform: translateY(-1px); }
.primary-btn:disabled, .secondary-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.full-btn { width: 100%; }
.input {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(17, 48, 87, .12);
  background: rgba(255,255,255,.84);
  color: var(--text);
  outline: none;
  transition: border .12s ease, box-shadow .12s ease;
}
.input:focus {
  border-color: rgba(29,99,255,.45);
  box-shadow: 0 0 0 4px rgba(29,99,255,.10);
}
.textarea { min-height: 96px; resize: vertical; }
.field-label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #27384b;
}
.hint { color: var(--muted); font-size: 13px; line-height: 1.7; }
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 50;
  max-width: min(92vw, 520px);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(16, 32, 51, .92);
  color: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
  font-size: 14px;
}
.home-page {
  background: linear-gradient(135deg, #061735, #0d4a9a 50%, #eaf5ff 50.1%, #f6fbff);
}
.hero-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 42px 0;
}
.hero-card {
  border-radius: 34px;
  padding: clamp(28px, 6vw, 64px);
  overflow: hidden;
  position: relative;
}
.hero-card::after {
  content: '';
  position: absolute;
  inset: auto -80px -100px auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(29,99,255,.18), transparent 70%);
}
.hero-card h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: .95;
  letter-spacing: -0.06em;
}
.hero-desc {
  max-width: 620px;
  font-size: 18px;
  color: #526275;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.feature-card {
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 8px;
}
.feature-card b { color: #0d3979; }
.feature-card span { color: var(--muted); font-size: 13px; line-height: 1.7; }
.student-layout {
  width: min(820px, calc(100% - 28px));
  margin: 0 auto;
  padding: 30px 0 calc(34px + env(safe-area-inset-bottom));
  display: grid;
  gap: 18px;
}
.student-banner, .form-card, .success-card {
  border-radius: 28px;
  padding: clamp(20px, 4vw, 34px);
}
.student-banner h1, .login-panel h1 {
  margin: 16px 0 8px;
  font-size: clamp(30px, 8vw, 52px);
  letter-spacing: -0.04em;
}
.student-banner p { color: var(--muted); line-height: 1.8; margin: 0; }
.form-card h2, .success-card h2 { margin: 0 0 18px; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.course-confirm {
  display: grid;
  gap: 5px;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(29,99,255,.10);
  border: 1px solid rgba(29,99,255,.16);
}
.course-confirm span { color: #41617d; font-size: 13px; font-weight: 700; }
.course-confirm strong { color: #0d4bd0; font-size: 18px; }
.profile-form { display: grid; gap: 16px; }
.address-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.success-card { text-align: center; }
.success-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(19,149,95,.12);
  color: var(--ok);
  font-size: 44px;
  font-weight: 900;
}
.admin-body { overflow: hidden; }
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-panel {
  width: min(520px, 100%);
  border-radius: 30px;
  padding: clamp(22px, 5vw, 38px);
}
.login-panel p { color: var(--muted); line-height: 1.7; }
.region-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.region-card {
  min-height: 54px;
  border-radius: 16px;
  background: rgba(255,255,255,.75);
  color: #21415f;
  font-weight: 900;
  border: 1px solid rgba(33,65,95,.10);
}
.region-card.active {
  color: #fff;
  background: linear-gradient(135deg, #1d63ff, #113fb1);
}
.login-form { display: grid; gap: 14px; }
.admin-app {
  height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 16px;
  padding: 16px;
}
.sidebar {
  border-radius: 26px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sidebar-brand { display: grid; gap: 6px; padding: 8px 6px 18px; }
.sidebar-brand b { font-size: 20px; }
.sidebar-brand span { color: #0d4bd0; font-size: 13px; font-weight: 800; }
.side-nav { display: grid; gap: 8px; }
.nav-btn {
  text-align: left;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  color: #40526a;
  background: transparent;
  font-weight: 800;
}
.nav-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  box-shadow: 0 12px 28px rgba(29,99,255,.18);
}
.logout-btn { margin-top: auto; width: 100%; }
.admin-main {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  min-width: 0;
  min-height: 0;
}
.admin-topbar {
  border-radius: 26px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.admin-topbar h1 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.admin-topbar p { margin: 6px 0 0; color: var(--muted); }
.view-section { min-height: 0; overflow: auto; padding-right: 4px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stat-card {
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: 0 14px 42px rgba(21,70,132,.10);
}
.stat-card span { color: var(--muted); font-size: 13px; font-weight: 800; }
.stat-card b { display: block; margin-top: 8px; font-size: 30px; color: #0c397a; }
.panel {
  border-radius: 26px;
  padding: 18px;
  min-width: 0;
}
.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.panel-title h2 { margin: 0; }
.panel-title span { color: var(--muted); font-size: 13px; }
.toolbar-form, .table-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0 16px;
}
.wrap-toolbar { flex-wrap: wrap; }
.search-input { max-width: 360px; }
.mini-select { max-width: 150px; }
.inline-date-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.mini-date-input {
  width: 154px;
  min-width: 154px;
}
.change-log-cell {
  min-width: 150px;
  vertical-align: top;
}
.change-log-line {
  min-height: 28px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(30, 48, 78, .09);
  white-space: normal;
  word-break: break-word;
}
.change-log-line:last-child { border-bottom: 0; }
.before-value { color: #7a8799; }
.after-value { color: #153d78; }
.table-wrap {
  width: 100%;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(16,32,51,.08);
  background: rgba(255,255,255,.64);
}
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(16,32,51,.08);
  font-size: 14px;
  vertical-align: top;
}
th { color: #40526a; font-size: 12px; background: rgba(236,244,255,.86); }
tr:last-child td { border-bottom: 0; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.badge.ok { color: var(--ok); background: rgba(19,149,95,.10); }
.badge.warn { color: var(--warn); background: rgba(232,132,0,.12); }
.badge.danger { color: var(--danger); background: rgba(217,48,37,.10); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 220px; }
.small-btn {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(29,99,255,.10);
  color: #0d4bd0;
  font-weight: 900;
}
.small-btn.gray { background: rgba(16,32,51,.08); color: #435369; }
.small-btn.danger { background: rgba(217,48,37,.10); color: var(--danger); }
.ship-input {
  min-width: 118px;
  height: 34px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(16,32,51,.12);
  background: rgba(255,255,255,.9);
}
.address-cell { min-width: 280px; line-height: 1.7; }
.recent-list { display: grid; gap: 10px; }
.recent-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(16,32,51,.08);
}
.recent-item b { display: block; }
.recent-item span { color: var(--muted); font-size: 13px; }
.batch-hint { color: var(--muted); font-size: 13px; margin: -6px 0 12px; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7,24,54,.42);
}
.modal-card {
  width: min(720px, 100%);
  border-radius: 28px;
  padding: 22px;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.modal-head h2 { margin: 0; }
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(16,32,51,.08);
  color: #40526a;
  font-size: 24px;
}
.csv-area { margin: 12px 0; min-height: 200px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-body { overflow: auto; }
  .admin-app { height: auto; min-height: 100vh; grid-template-columns: 1fr; padding: 12px; }
  /*
   * Keep the mobile navigation in normal document flow.
   * A sticky sidebar is taller than most phone viewports and covers controls
   * farther down the page after scrolling (including the Plaso backfill link).
   */
  .sidebar { position: static; top: auto; z-index: auto; }
  .side-nav { grid-template-columns: repeat(4, 1fr); }
  .nav-btn { text-align: center; padding: 0 8px; }
  .logout-btn { margin-top: 12px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar-form { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .home-page { background: linear-gradient(180deg, #061735, #0d4a9a 42%, #eef6ff 42.1%); }
  .hero-shell { width: min(100% - 22px, 1120px); padding: 18px 0; }
  .hero-card { border-radius: 26px; }
  .hero-actions { display: grid; }
  .feature-grid { grid-template-columns: 1fr; }
  .student-layout { width: min(100% - 18px, 820px); padding-top: 12px; }
  .inline-form { grid-template-columns: 1fr; }
  .address-grid { grid-template-columns: 1fr; }
  .region-cards { grid-template-columns: 1fr; }
  .login-screen { padding: 12px; align-items: start; }
  .side-nav { grid-template-columns: repeat(2, 1fr); }
  .admin-topbar { align-items: flex-start; flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr; }
  .panel-title { align-items: flex-start; flex-direction: column; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .search-input, .mini-select, .mini-date-input { width: 100%; max-width: 100%; }
  .inline-date-filter { align-items: flex-start; flex-direction: column; }
  table { min-width: 880px; }
}

/* V1.1 additions */
.book-options {
  padding: 14px;
  border-radius: 18px;
  background: rgba(42, 123, 255, .07);
  border: 1px solid rgba(42, 123, 255, .14);
}
.book-options h3 { margin: 0 0 6px; color: #0c397a; }
.book-options-list { display: grid; gap: 10px; margin-top: 10px; }
.book-row {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(16,32,51,.08);
}
.book-row label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #314258; }
.book-tag {
  display: inline-flex;
  margin: 2px 4px 2px 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(42,123,255,.10);
  color: #174b8d;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.book-cell { min-width: 150px; }
.muted-text { color: var(--muted); font-size: 12px; }
.stat-card {
  text-align: left;
  border: 1px solid rgba(18,54,101,.08);
  font-family: inherit;
}
.stat-card em {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}
.stat-clickable { cursor: pointer; }
.stat-clickable:hover { transform: translateY(-1px); box-shadow: 0 18px 40px rgba(15,70,140,.12); }
.compact-form { max-width: 760px; }
.add-order-form { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr .8fr .9fr auto; }
.full-mobile-btn { margin-top: 12px; }
.wide-modal { width: min(980px, 100%); }
.wide-modal .table-wrap { max-height: 58vh; overflow: auto; }

@media (max-width: 1200px) {
  .add-order-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .book-row { grid-template-columns: 1fr; align-items: start; }
  .add-order-form { grid-template-columns: 1fr; }
  .modal { padding: 10px; place-items: start center; overflow: auto; }
  .modal-card { border-radius: 22px; }
  table { min-width: 1080px; }
}

/* V1.2 additions: clean order page + separate add-order page */
.order-toolbar-clean {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.order-toolbar-clean .search-input { max-width: 520px; }
.admin-add-body { overflow: auto; }
.add-page-shell {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 calc(34px + env(safe-area-inset-bottom));
  display: grid;
  gap: 16px;
}
.add-page-topbar { position: sticky; top: 12px; z-index: 3; }
.add-page-panel { padding: clamp(18px, 3vw, 28px); }
.add-order-page-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.add-order-page-form .field-label:first-child,
.add-order-page-form .field-label:nth-child(2),
.add-form-actions {
  grid-column: 1 / -1;
}
.add-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 6px;
}
@media (max-width: 760px) {
  .order-toolbar-clean { flex-direction: column; align-items: stretch; }
  .order-toolbar-clean .search-input { max-width: 100%; }
  .add-page-topbar { position: static; }
  .add-order-page-form { grid-template-columns: 1fr; }
  .add-form-actions { display: grid; }
}

/* V2.1 additions */
.preview-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(18,54,101,.10);
}
.panel-title.slim { margin-bottom: 8px; }
.check-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  font-weight: 900;
  color: #26415d;
}
.address-cell { min-width: 220px; line-height: 1.7; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.field-label input:disabled,
.field-label textarea:disabled,
.book-row input:disabled {
  opacity: .72;
  cursor: not-allowed;
}
#studentEditForm { gap: 12px; }
#editBookOptions {
  padding: 12px;
  border-radius: 14px;
  background: rgba(29,99,255,.06);
}

/* V2.2 additions: 小鹅通预览订单课程筛选 */
.preview-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 8px;
}
.course-filter-card { position: relative; min-width: 260px; }
.filter-toggle {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 84, 190, .16);
  background: rgba(255,255,255,.86);
  color: #16355b;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.course-filter-panel {
  position: absolute;
  z-index: 20;
  left: 0;
  top: calc(100% + 8px);
  width: min(520px, 88vw);
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(16, 84, 190, .18);
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 42px rgba(23, 50, 87, .18);
}
.filter-panel-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}
.text-btn {
  border: 0;
  background: transparent;
  color: #1f5bd8;
  font-weight: 900;
  cursor: pointer;
  padding: 4px 2px;
}
.course-filter-list {
  display: grid;
  gap: 8px;
}
.course-filter-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(240, 246, 255, .76);
  color: #243a56;
  font-weight: 800;
  line-height: 1.35;
}
.course-filter-item input { margin-top: 3px; }
.preview-filter-hint {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 4px;
}
@media (max-width: 760px) {
  .preview-filter-bar { align-items: stretch; }
  .course-filter-card, .preview-filter-bar .mini-select, .preview-filter-bar button { width: 100%; max-width: 100%; }
  .course-filter-panel { position: static; width: 100%; margin-top: 8px; max-height: 280px; }
}

/* V2.3: 简约后台 UI + 订单清理独立页面 */
:root {
  --simple-bg: #f4f7fb;
  --simple-panel: rgba(255,255,255,.94);
  --simple-line: rgba(30, 48, 78, .10);
}
.admin-body {
  background: var(--simple-bg);
}
.admin-app {
  gap: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #f4f8ff 0%, #f7f9fc 100%);
}
.sidebar.glass,
.admin-topbar.glass,
.panel.glass,
.modal-card.glass,
.login-panel.glass,
.add-page-panel.glass,
.add-page-topbar.glass {
  background: var(--simple-panel);
  border: 1px solid var(--simple-line);
  box-shadow: 0 10px 34px rgba(30, 56, 92, .08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.sidebar {
  border-radius: 24px;
}
.sidebar-brand {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(30,48,78,.08);
  margin-bottom: 10px;
}
.nav-btn {
  min-height: 44px;
  border-radius: 13px;
}
.nav-btn:hover {
  background: rgba(29,99,255,.08);
  color: #1147ca;
}
.nav-btn.active {
  box-shadow: 0 10px 22px rgba(29,99,255,.16);
}
.admin-topbar {
  border-radius: 24px;
  padding: 20px 22px;
}
.admin-topbar h1 {
  font-size: 30px;
}
.view-section {
  padding-right: 8px;
}
.panel {
  border-radius: 24px;
  padding: 22px;
}
.panel + .panel { margin-top: 16px; }
.panel-title {
  align-items: center;
  margin-bottom: 18px;
}
.panel-title h2 {
  letter-spacing: -0.02em;
  color: #102033;
}
.table-toolbar {
  padding: 12px;
  border-radius: 18px;
  background: rgba(245,248,252,.78);
  border: 1px solid rgba(30,48,78,.06);
}
.order-toolbar-clean {
  display: grid;
  grid-template-columns: minmax(260px, 520px) auto auto;
  justify-content: stretch;
}
.input {
  background: #fff;
  border-color: rgba(34, 58, 90, .12);
}
.table-wrap {
  border-radius: 20px;
  border: 1px solid rgba(30,48,78,.08);
  background: #fff;
}
table {
  min-width: 980px;
}
th {
  padding-top: 15px;
  padding-bottom: 15px;
  background: #f0f5fb;
  color: #53657c;
  letter-spacing: .02em;
}
td {
  padding-top: 15px;
  padding-bottom: 15px;
}
tbody tr:hover td {
  background: rgba(29,99,255,.035);
}
.primary-btn, .secondary-btn, .danger-btn, .logout-btn {
  min-height: 44px;
  border-radius: 14px;
}
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  background: rgba(217,48,37,.10);
  color: #c5221f;
  border: 1px solid rgba(217,48,37,.16);
  font-weight: 900;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.danger-btn:hover {
  transform: translateY(-1px);
  background: rgba(217,48,37,.14);
  box-shadow: 0 12px 26px rgba(217,48,37,.10);
}
.danger-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}
.danger-strong {
  background: linear-gradient(135deg, #e1443a, #bd1f1a);
  color: #fff;
  border: 0;
  box-shadow: 0 12px 28px rgba(217,48,37,.16);
}
.delete-page-shell {
  width: min(1380px, calc(100% - 28px));
}
.minimal-admin-page {
  background: linear-gradient(180deg, #f6f9fd 0%, #f3f6fb 100%);
}
.minimal-topbar {
  position: sticky;
  top: 14px;
  z-index: 4;
}
.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.minimal-panel {
  display: grid;
  gap: 12px;
}
.split-title {
  align-items: flex-start;
}
.clean-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  gap: 10px;
}
.danger-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(232, 132, 0, .08);
  border: 1px solid rgba(232,132,0,.16);
  color: #75501d;
  font-size: 13px;
  line-height: 1.7;
}
.select-all-line {
  margin: 4px 0 8px;
}
.clean-table-wrap {
  max-height: calc(100vh - 330px);
}
@media (max-width: 980px) {
  .order-toolbar-clean,
  .clean-toolbar {
    grid-template-columns: 1fr;
  }
  .topbar-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .minimal-topbar { position: static; }
  .clean-table-wrap { max-height: none; }
}
/* V2.4 简约同步页与操作日志 */
.sync-shell { display: block; padding: 18px; }
.sync-main { margin: 0 auto; width: min(1480px, 100%); }
.pager-bar { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 0 4px; }
.log-detail { display: inline-block; max-width: 520px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #526275; }
.row-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .sync-shell { padding: 10px; }
  .pager-bar { flex-direction: column; align-items: stretch; }
  .pager-bar .secondary-btn { width: 100%; }
}


/* V2.6: 修复小鹅通同步页滚动 + 总览页卡片一行化 */
.sync-page-body {
  overflow: auto !important;
  min-height: 100vh;
}
.sync-page-body .admin-app.sync-shell {
  height: auto !important;
  min-height: 100vh;
  display: block !important;
  overflow: visible !important;
}
.sync-page-body .admin-main.sync-main {
  display: block !important;
  min-height: auto !important;
  overflow: visible !important;
  padding-bottom: calc(34px + env(safe-area-inset-bottom));
}
.sync-page-body .panel {
  overflow: visible;
}
.sync-page-body .table-wrap {
  max-height: none;
}

/* 总览统计卡：PC 尽量一行展示，减少无意义换行 */
#dashboardView .stat-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
}
#dashboardView .stat-card {
  min-height: 150px;
}
#dashboardView .stat-card b {
  font-size: clamp(26px, 2.1vw, 36px);
}
#dashboardView .stat-card em {
  line-height: 1.55;
}

/* 小鹅通订单总数：输入框和按钮保持同一行 */
#dashboardView .compact-form {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: stretch;
  gap: 12px;
}
#dashboardView .compact-form .primary-btn {
  min-width: 124px;
  white-space: nowrap;
}

@media (max-width: 1380px) {
  #dashboardView .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  #dashboardView .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #dashboardView .stat-card { min-height: 132px; padding: 16px; }
  #dashboardView .compact-form { grid-template-columns: 1fr; }
  #dashboardView .compact-form .primary-btn { width: 100%; }
}
@media (max-width: 420px) {
  #dashboardView .stat-grid { grid-template-columns: 1fr; }
}


/* V2.7 学生信息表格：单行展示 + 横向滑动，避免姓名/课程/地址被挤成多行 */
.table-hint {
  margin: -6px 0 12px;
  color: #7a8aa0;
  font-size: 13px;
  line-height: 1.6;
}
.student-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
}
.table-scroll-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}
.compact-btn {
  min-height: 40px;
  padding: 0 14px;
}
.student-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
.student-info-table {
  min-width: 1680px;
  table-layout: auto;
}
.student-info-table th,
.student-info-table td {
  white-space: nowrap;
  vertical-align: middle;
}
.student-info-table th:nth-child(1),
.student-info-table td:nth-child(1) { min-width: 110px; }
.student-info-table th:nth-child(2),
.student-info-table td:nth-child(2) { min-width: 130px; }
.student-info-table th:nth-child(3),
.student-info-table td:nth-child(3) { min-width: 110px; }
.student-info-table th:nth-child(4),
.student-info-table td:nth-child(4) { min-width: 260px; }
.student-info-table th:nth-child(5),
.student-info-table td:nth-child(5) { min-width: 340px; }
.student-info-table th:nth-child(6),
.student-info-table td:nth-child(6) { min-width: 180px; }
.student-info-table th:nth-child(7),
.student-info-table td:nth-child(7) { min-width: 310px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.student-info-table th:nth-child(8),
.student-info-table td:nth-child(8) { min-width: 150px; }
.student-info-table th:nth-child(9),
.student-info-table td:nth-child(9) { min-width: 150px; }
.student-info-table .row-actions {
  flex-wrap: nowrap;
  min-width: 0;
}
.student-info-table .book-cell {
  min-width: 180px;
}
@media (max-width: 760px) {
  .student-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .table-scroll-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .student-info-table {
    min-width: 1500px;
  }
}


.account-summary {
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 16px;
  margin:8px 0 14px;
  border:1px solid #dce7f7;
  border-radius:16px;
  background:#f7fbff;
  color:#12345f;
  font-weight:800;
}
.account-form-grid {
  display:grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1fr auto;
  gap:12px;
  align-items:center;
}
.student-status-box {
  border:1px solid #dce7f7;
  background:#f8fbff;
  border-radius:18px;
  padding:14px;
  margin:14px 0;
  display:grid;
  gap:10px;
}
.status-row {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  border-bottom:1px dashed #dbe6f5;
  padding-bottom:8px;
}
.status-row:last-child { border-bottom:0; padding-bottom:0; }
.status-row span { color:#68778b; font-weight:700; flex:0 0 auto; }
.status-row strong { color:#11284a; text-align:right; }
.status-ok { color:#10a56b; }
.status-warn { color:#e89018; }
.status-danger { color:#e85c5c; }
@media (max-width: 860px) {
  .account-form-grid { grid-template-columns: 1fr; }
  .status-row { display:block; }
  .status-row strong { display:block; text-align:left; margin-top:6px; }
}

/* V2.9 权限与后台财务字段 */
.topbar-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.permission-checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;padding:12px;border:1px solid rgba(143,160,190,.24);border-radius:18px;background:rgba(246,249,255,.78)}
.permission-checklist.full-row,.field-label.full-row,.product-scope-fields.full-row{grid-column:1/-1}
.perm-item{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:12px;background:#fff;color:#19365d;font-weight:700;box-shadow:0 8px 20px rgba(47,85,140,.05)}
.perm-item input{width:16px;height:16px;accent-color:#1f5bea}
.perm-summary{white-space:nowrap;color:#60708a;font-weight:700}
.remark-cell{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#52657f}
.student-info-table th,.student-info-table td{white-space:nowrap}
@media(max-width:720px){.topbar-actions{width:100%;justify-content:flex-start}.permission-checklist{grid-template-columns:1fr}.remark-cell{max-width:220px}}


/* V2.9.4 学生端验证码输入样式优化 */
.sms-verify-box{
  border:1px solid #dce7f7;
  background:linear-gradient(180deg,#f8fbff,#fff);
  border-radius:24px;
  padding:16px 18px;
  display:grid;
  gap:12px;
}
.sms-label-bar{display:flex;justify-content:space-between;gap:12px;align-items:center;color:#15345c;font-weight:800}
.sms-label-bar span{font-size:13px;color:#e89018;background:#fff4df;border-radius:999px;padding:4px 10px;white-space:nowrap}
.sms-label-bar span.verified{color:#0f9f6e;background:#e8f7f1}
.sms-compact-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
.sms-send-btn{min-width:160px;white-space:nowrap}
@media(max-width:720px){
  .sms-verify-box{padding:14px}
  .sms-compact-row{grid-template-columns:1fr}
  .sms-send-btn{width:100%;min-width:0}
}


/* XIAOLANSHU_V295_FINAL_START */
/* V2.9.7 主标题 logo：PC 左侧，移动端上方；只影响大标题区域 */
.hero-title-row{
  display:flex;
  align-items:center;
  gap:14px;
  margin:16px 0 8px;
}
.hero-title-row h1{
  margin:0 !important;
  min-width:0;
}
.hero-main-logo{
  width:1.05em;
  height:1.05em;
  min-width:1.05em;
  border-radius:.26em;
  object-fit:cover;
  object-position:center;
  flex:0 0 auto;
  box-shadow:0 8px 22px rgba(31,91,234,.16);
  border:2px solid rgba(255,255,255,.96);
  background:#eaf3ff;
}

/* 学生端表单：统一输入区高度、字体、圆角 */
.profile-form .field-label,
.sms-label-bar{
  font-size:14px !important;
  font-weight:800 !important;
  color:#27384b !important;
  line-height:1.35 !important;
}
.profile-form .input,
.profile-form select.input,
.profile-form textarea.input,
.sms-compact-row .input{
  width:100% !important;
  min-height:58px !important;
  height:58px !important;
  box-sizing:border-box !important;
  border:1px solid #dfe7f2 !important;
  border-radius:18px !important;
  background:#fff !important;
  color:#142840 !important;
  font-size:16px !important;
  font-weight:700 !important;
  line-height:1.4 !important;
  padding:0 22px !important;
  outline:none !important;
  box-shadow:none !important;
}
.profile-form .input::placeholder,
.sms-compact-row .input::placeholder{
  color:#7f8790 !important;
  font-size:16px !important;
  font-weight:700 !important;
}
.profile-form .input:focus,
.profile-form select.input:focus,
.profile-form textarea.input:focus,
.sms-compact-row .input:focus{
  border-color:#aac4f7 !important;
  box-shadow:0 0 0 3px rgba(31,91,234,.08) !important;
}
.profile-form textarea.input{
  height:auto !important;
  min-height:108px !important;
  padding:18px 22px !important;
  resize:vertical !important;
}
.sms-verify-box{
  border:0 !important;
  background:transparent !important;
  border-radius:0 !important;
  padding:0 !important;
  box-shadow:none !important;
  display:grid !important;
  gap:8px !important;
  margin:0 !important;
}
.sms-label-bar{
  display:flex !important;
  justify-content:flex-start !important;
  align-items:center !important;
  gap:10px !important;
}
.sms-label-bar b{
  font-size:14px !important;
  font-weight:800 !important;
  color:#27384b !important;
}
.sms-label-bar span{
  position:static !important;
  font-size:13px !important;
  font-weight:800 !important;
  color:#e89018 !important;
  background:#fff4df !important;
  border-radius:999px !important;
  padding:4px 10px !important;
  white-space:nowrap !important;
}
.sms-label-bar span.verified{
  color:#0f9f6e !important;
  background:#e8f7f1 !important;
}
.sms-compact-row{
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) 240px !important;
  gap:16px !important;
  align-items:center !important;
}
.sms-send-btn{
  width:100% !important;
  height:58px !important;
  min-height:58px !important;
  box-sizing:border-box !important;
  border:1px solid #dfe7f2 !important;
  border-radius:18px !important;
  background:#fff !important;
  color:#0f3b78 !important;
  font-size:16px !important;
  font-weight:900 !important;
  padding:0 22px !important;
  line-height:1 !important;
  outline:none !important;
  box-shadow:none !important;
  white-space:nowrap !important;
}
.sms-send-btn:hover{
  border-color:#b9cef3 !important;
  background:#f8fbff !important;
}
.sms-send-btn:focus{
  border-color:#aac4f7 !important;
  box-shadow:0 0 0 3px rgba(31,91,234,.08) !important;
}
.sms-send-btn:disabled{
  color:#91a0b5 !important;
  background:#f4f7fb !important;
  border-color:#e3eaf5 !important;
  cursor:not-allowed !important;
}
.profile-form .hint,
.sms-verify-box .hint{
  margin-top:6px !important;
  color:#697b93 !important;
  font-size:14px !important;
  line-height:1.7 !important;
}
.profile-form{gap:20px !important;}

/* 后台学生信息表：统一字体，并将财务字段放到最后 */
.student-info-table{
  min-width:1900px !important;
  table-layout:auto !important;
}
.student-info-table th,
.student-info-table td,
.student-info-table td b{
  font-family:inherit !important;
  font-size:14px !important;
  line-height:1.45 !important;
  color:#1a2f4a !important;
  white-space:nowrap !important;
  vertical-align:middle !important;
}
.student-info-table th{font-weight:800 !important;}
.student-info-table td,
.student-info-table td b{font-weight:700 !important;}
.student-info-table th:nth-child(1),.student-info-table td:nth-child(1){min-width:110px !important;}
.student-info-table th:nth-child(2),.student-info-table td:nth-child(2){min-width:130px !important;}
.student-info-table th:nth-child(3),.student-info-table td:nth-child(3){min-width:110px !important;}
.student-info-table th:nth-child(4),.student-info-table td:nth-child(4){min-width:260px !important;}
.student-info-table th:nth-child(5),.student-info-table td:nth-child(5){min-width:360px !important;}
.student-info-table th:nth-child(6),.student-info-table td:nth-child(6){min-width:180px !important;}
.student-info-table th:nth-child(7),.student-info-table td:nth-child(7){
  min-width:310px !important;
  font-family:inherit !important;
}
.student-info-table th:nth-child(8),.student-info-table td:nth-child(8){min-width:150px !important;}
.student-info-table th:nth-child(9),.student-info-table td:nth-child(9){min-width:150px !important;}
.student-info-table th:nth-child(10),.student-info-table td:nth-child(10){min-width:120px !important;}
.student-info-table th:nth-child(11),.student-info-table td:nth-child(11){min-width:120px !important;}
.student-info-table th:nth-child(12),.student-info-table td:nth-child(12){min-width:240px !important;}
.student-info-table .remark-cell{
  max-width:260px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

/* 移动端：主标题 logo 放在标题上方 */
@media(max-width:720px){
  .hero-title-row{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }
  .hero-main-logo{
    width:46px;
    height:46px;
    min-width:46px;
    border-radius:14px;
  }
  .sms-compact-row{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }
  .sms-send-btn{
    width:100% !important;
  }
  .profile-form .input,
  .profile-form select.input,
  .sms-compact-row .input,
  .sms-send-btn{
    height:54px !important;
    min-height:54px !important;
    border-radius:16px !important;
    font-size:15px !important;
  }
  .profile-form .input::placeholder,
  .sms-compact-row .input::placeholder{
    font-size:15px !important;
  }
}
/* XIAOLANSHU_V295_FINAL_END */



/* XIAOLANSHU_V297_REFUND_FIX_START */
.badge.danger{
  color:#d92d20 !important;
  background:#ffe9e7 !important;
}
.badge.warn{
  color:#b25e00 !important;
  background:#fff3df !important;
}
/* XIAOLANSHU_V297_REFUND_FIX_END */


/* XIAOLANSHU_V2101_BOOK_IMAGES_START */
.book-image-admin{
  margin-top:20px;
  padding:16px;
  border-radius:22px;
  background:rgba(244,248,255,.86);
  border:1px solid rgba(42,123,255,.10);
}
.panel-title.small-title{
  align-items:flex-start;
  margin-bottom:12px;
}
.panel-title.small-title h2{
  font-size:20px;
}
.book-image-settings{
  display:grid;
  gap:18px;
}
.book-image-phase{
  display:grid;
  gap:12px;
}
.book-image-phase h3{
  margin:0;
  font-size:16px;
  color:#0c397a;
}
.book-image-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:12px;
}
.book-image-card{
  display:grid;
  grid-template-columns:92px 1fr;
  gap:12px;
  align-items:center;
  min-width:0;
  padding:12px;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(16,32,51,.08);
  box-shadow:0 10px 28px rgba(16,57,120,.06);
}
.book-cover-preview{
  width:92px;
  height:120px;
  border-radius:16px;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#eef5ff,#ffffff);
  border:1px solid rgba(42,123,255,.12);
  color:#8ba0bc;
  font-size:13px;
  font-weight:900;
}
.book-cover-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
.book-image-info{
  min-width:0;
}
.book-image-info b{
  display:block;
  color:#142840;
  font-size:15px;
  margin-bottom:4px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.book-image-info p{
  margin:0 0 10px;
  color:#6c7b90;
  font-size:12px;
  line-height:1.5;
}
.book-image-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.upload-label{
  position:relative;
  overflow:hidden;
  cursor:pointer;
}
.upload-label input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.book-row-with-image{
  grid-template-columns:76px minmax(0,1fr) auto auto;
  min-height:98px;
}
.student-book-cover{
  width:76px;
  height:96px;
  border-radius:16px;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#eef5ff,#fff);
  border:1px solid rgba(42,123,255,.12);
  flex:0 0 auto;
}
.student-book-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
.student-book-cover.empty span{
  font-size:12px;
  font-weight:900;
  color:#7b91ad;
}
.book-info{
  min-width:0;
}
.book-info b{
  display:block;
  font-size:16px;
  color:#142840;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.book-info p{
  margin:4px 0 0;
  color:#728097;
  font-size:12px;
  font-weight:700;
}
@media(max-width:720px){
  .book-image-card{
    grid-template-columns:82px 1fr;
  }
  .book-cover-preview{
    width:82px;
    height:108px;
  }
  .book-row-with-image{
    grid-template-columns:66px minmax(0,1fr);
    gap:10px;
  }
  .book-row-with-image label{
    grid-column:auto;
  }
  .student-book-cover{
    width:66px;
    height:86px;
  }
}
@media(max-width:520px){
  .book-image-grid{
    grid-template-columns:1fr;
  }
  .book-image-card{
    grid-template-columns:76px 1fr;
    padding:10px;
  }
  .book-cover-preview{
    width:76px;
    height:100px;
  }
  .book-row-with-image{
    grid-template-columns:58px 1fr;
  }
  .book-row-with-image label{
    justify-self:start;
    margin-left:68px;
  }
  .student-book-cover{
    width:58px;
    height:76px;
  }
}
/* XIAOLANSHU_V2101_BOOK_IMAGES_END */


/* BOOK_IMAGE_BUTTON_ALIGN_FIX_START */
.book-image-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.book-image-actions .small-btn,
.book-image-actions .upload-label{
  height:38px;
  min-width:116px;
  padding:0 16px;
  border-radius:13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  line-height:1;
  font-size:15px;
  font-weight:900;
  white-space:nowrap;
  vertical-align:middle;
  text-align:center;
}

.book-image-actions .upload-label{
  margin:0;
}

.book-image-actions .upload-label input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}

.book-image-actions .clear-book-image-btn{
  min-width:96px;
}

@media(max-width:520px){
  .book-image-actions{
    gap:8px;
  }

  .book-image-actions .small-btn,
  .book-image-actions .upload-label{
    height:36px;
    min-width:104px;
    padding:0 13px;
    font-size:14px;
    border-radius:12px;
  }

  .book-image-actions .clear-book-image-btn{
    min-width:86px;
  }
}
/* BOOK_IMAGE_BUTTON_ALIGN_FIX_END */



/* LOGIN_LOGO_SIZE_FIX_START */
.hero-title-row{
  display:flex;
  align-items:center;
  gap:18px;
}

.hero-main-logo{
  width:48px !important;
  height:48px !important;
  min-width:48px;
  border-radius:14px;
  object-fit:cover;
  display:block;
  box-shadow:0 10px 24px rgba(37,99,235,.18);
}

@media(max-width:720px){
  .hero-title-row{
    gap:12px;
  }

  .hero-main-logo{
    width:42px !important;
    height:42px !important;
    min-width:42px;
    border-radius:12px;
  }
}

@media(max-width:520px){
  .hero-title-row{
    align-items:flex-start;
  }

  .hero-main-logo{
    width:38px !important;
    height:38px !important;
    min-width:38px;
    margin-top:6px;
  }
}
/* LOGIN_LOGO_SIZE_FIX_END */


/* MODIFY_CONFIRM_LAYOUT_FIX_START */
#modifiedConfirmTable {
  min-width: 1280px;
  table-layout: auto;
}

#modifiedConfirmTable th,
#modifiedConfirmTable td {
  white-space: nowrap;
  vertical-align: middle;
}

#modifiedConfirmTable .address-cell {
  white-space: normal;
  min-width: 240px;
  max-width: 360px;
  line-height: 1.6;
}

#modifiedConfirmTable .modify-reason-cell {
  white-space: nowrap;
  min-width: 160px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#modifiedConfirmTable .modify-status-cell {
  min-width: 92px;
  text-align: center;
  white-space: nowrap;
}

#modifiedConfirmTable .modify-status-cell .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 72px;
  height: 32px;
  padding: 0 14px;
  line-height: 1;
}

#modifiedConfirmView .table-wrap {
  overflow-x: auto;
}
/* MODIFY_CONFIRM_LAYOUT_FIX_END */


/* INTERNAL_BOOK_LOCK_FIX_START */
.internal-book-row {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.internal-book-row .book-info p {
  color: #64748b;
  font-weight: 700;
}

.internal-book-row .disabled-option {
  opacity: 0.55;
  cursor: not-allowed;
}

.internal-book-row input[disabled] {
  cursor: not-allowed;
}
/* INTERNAL_BOOK_LOCK_FIX_END */


/* XIAOE_SEARCH_ORDER_NO_FIX_START */
.xiaoe-search-no {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  white-space: nowrap;
}
.orders-table .xiaoe-search-no,
#ordersTable .xiaoe-search-no,
#studentsTable .xiaoe-search-no,
#unfilledTable .xiaoe-search-no {
  color: #64748b;
}
/* XIAOE_SEARCH_ORDER_NO_FIX_END */


/* XIAOE_ORDER_PHONE_FIX_START */
.xiaoe-buyer-phone {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: #0f766e;
  font-weight: 800;
  white-space: nowrap;
}

.xiaoe-search-no {
  word-break: break-all;
}
/* XIAOE_ORDER_PHONE_FIX_END */


/* MOBILE_ALL_BUTTONS_CLICK_FIX_START */
@media (max-width: 900px) {
  html, body {
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  main, section, form, .app, .page, .container, .panel, .glass, .card,
  .student-shell, .student-page, .admin-shell, .admin-main, .view-section,
  .table-wrap, .form-grid, .profile-form, .inline-form {
    pointer-events: auto !important;
  }

  button, a, label, input, select, textarea, [role="button"],
  .primary-btn, .secondary-btn, .small-btn, .nav-btn, .tab-btn, .pill-btn,
  .full-btn, .region-card, .entry-card, .upload-label, .book-row,
  .book-row label {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.16);
    position: relative;
    z-index: 30;
  }

  button, .primary-btn, .secondary-btn, .small-btn, .nav-btn, .tab-btn,
  .pill-btn, .full-btn {
    cursor: pointer;
    min-height: 40px;
  }

  body::before, body::after, .app::before, .app::after, .page::before,
  .page::after, .student-shell::before, .student-shell::after,
  .admin-shell::before, .admin-shell::after, .hero::before, .hero::after,
  .panel::before, .panel::after, .glass::before, .glass::after,
  .card::before, .card::after, .bg, .bg-blur, .bg-orb, .orb, .blob,
  .glow, .decor, .decoration, .floating, .floating-card, .watermark,
  .halo, .shine, .light, .mask,
  .overlay:not(.modal):not(.dialog):not(.drawer),
  .backdrop:not(.modal-backdrop) {
    pointer-events: none !important;
  }

  .admin-sidebar, .sidebar {
    pointer-events: auto !important;
  }

  .admin-main, .student-main, .content, .main-content {
    position: relative;
    z-index: 1;
  }
}
/* MOBILE_ALL_BUTTONS_CLICK_FIX_END */

/* STUDENT_MOBILE_SUBMIT_FIX_START */
#checkOrderBtn, #submitProfileBtn, .primary-btn, .secondary-btn {
  pointer-events: auto !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  cursor: pointer;
  position: relative;
  z-index: 2;
}

#profileBox, #checkBox, .profile-form, .inline-form {
  pointer-events: auto !important;
}

@media (max-width: 720px) {
  #checkOrderBtn, #submitProfileBtn {
    min-height: 48px;
    -webkit-user-select: none;
    user-select: none;
  }
}

/* V2.11.17 student unified flow and service center */
.student-layout {
  width: min(100% - 28px, 920px);
  gap: 16px;
  font-size: 14px;
}
.student-layout .student-banner,
.student-layout .student-step-card,
.student-layout .form-card,
.student-layout .success-card {
  border-radius: 24px;
}
.student-layout .student-banner { padding: 28px 32px; }
.student-layout .student-banner h1,
.student-layout .login-panel h1 {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.14;
}
.student-layout .student-banner p,
.student-layout .student-step-card > p,
.student-layout .hint,
.student-layout .student-contract-meta,
.student-layout .qq-group-card-copy > p {
  font-size: 14px;
  line-height: 1.7;
}
.student-layout .student-step-title {
  font-size: 21px;
  line-height: 1.35;
}
.student-layout .field-label { font-size: 14px; }
.student-layout .input { font-size: 15px; }

.student-panel-summary {
  display: none;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: #18314f;
  text-align: left;
  cursor: pointer;
}
.student-step-panel.is-complete > .student-panel-summary { display: flex; }
.student-panel-summary-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 11px;
  background: #e4f7ef;
  color: #109c6b;
}
.student-panel-summary-icon svg,
.student-panel-summary-chevron svg { width: 18px; height: 18px; fill: currentColor; }
.student-panel-summary-copy { min-width: 0; flex: 1; }
.student-panel-summary-copy b,
.student-panel-summary-copy small { display: block; font-style: normal; }
.student-panel-summary-copy b { font-size: 15px; }
.student-panel-summary-copy small { margin-top: 2px; color: #72839a; font-size: 12px; }
.student-panel-summary-status {
  padding: 6px 10px;
  border-radius: 999px;
  background: #e4f7ef;
  color: #0b865c;
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
  white-space: nowrap;
}
.student-panel-summary-chevron {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #55708f;
  transition: transform .2s ease;
}
.student-step-panel.is-complete.is-collapsed > :not(.student-panel-summary) { display: none !important; }
.student-step-panel.is-complete.is-collapsed { padding: 8px 12px; }
.student-step-panel.is-complete:not(.is-collapsed) .student-panel-summary-chevron { transform: rotate(180deg); }

.student-stage-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  margin-bottom: 18px;
}
.student-stage-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #2d70f4, #174bd4);
  box-shadow: 0 9px 20px rgba(35, 98, 231, .20);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}
.student-stage-copy { min-width: 0; }
.student-stage-copy .student-step-title { margin: 1px 0 5px; }
.student-stage-copy .student-contract-name { margin: 0 0 4px; }
.student-stage-copy .hint,
.student-stage-copy #studentCompletionLead { margin: 0; color: #6b7d94; }
.student-stage-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #2867eb;
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
}
.student-stage-status,
.student-contract-badge,
.student-contract-item-head .student-contract-badge,
.plaso-account-status {
  align-self: start;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  font-style: normal !important;
  line-height: 1.3;
  white-space: nowrap;
}
.student-stage-status { background: #e4f7ef; color: #0a865a; }
.student-contract-progress {
  gap: 8px;
  margin: 16px 0;
}
.student-contract-progress span {
  min-height: 40px;
  border-radius: 12px;
  font-size: 13px;
}

.student-completion-center {
  padding: 26px;
  border-color: rgba(64, 130, 236, .20);
  background: linear-gradient(150deg, rgba(255,255,255,.98), rgba(244,249,255,.97));
}
.student-completion-grid { gap: 10px; }
.student-completion-item {
  min-height: 112px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
}
.student-completion-item > span,
.student-completion-item > b,
.student-completion-item > small { font-style: normal; }
.student-completion-actions { margin-top: 14px; }

.student-service-hub {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #dce7f5;
}
.student-service-hub-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.student-service-hub-head h3 { margin: 0; color: #12263f; font-size: 18px; }
.student-service-hub-head p { margin: 0; color: #71839a; font-size: 12px; }
.student-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}
.student-service-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #d9e5f3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(26, 66, 126, .08);
}
.student-service-card.hidden { display: none !important; }
.student-service-card.qq-group-card {
  border-color: #c9defe;
  background: linear-gradient(145deg, #fff, #eef7ff);
}
.student-service-card.qq-group-card::after { display: none; }
.student-service-card .qq-group-card-content { flex: 1; }
.student-service-card .qq-group-card-heading {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.student-service-card .qq-group-card-icon {
  width: 58px;
  height: 58px;
  margin: 0;
  border-radius: 17px;
}
.student-service-card .qq-group-card-title-block .student-step-title {
  margin: 3px 0 0;
  font-size: 17px;
  line-height: 1.4;
}
.student-service-card .qq-group-card-copy { margin: 14px 0 16px 72px; }
.student-service-card .qq-group-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.student-service-card .qq-group-card-meta > * {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
}
.student-service-card.plaso-account-card { background: linear-gradient(145deg, #fff, #f7f9ff); }
.student-service-card .plaso-account-head { align-items: start; gap: 10px; }
.student-service-card .plaso-account-head .student-step-title { margin-top: 3px; font-size: 17px; }
.student-service-card .plaso-account-hint { flex: 1; margin: 14px 0; }
.student-service-card .plaso-credential-list { gap: 10px; }
.student-service-card .plaso-credential-row { padding: 12px; border-radius: 14px; }
.student-service-card .plaso-credential-value { gap: 8px; }

.student-layout .student-service-action {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}
.student-layout .student-service-action svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
}
.student-layout .qq-group-open-btn { justify-content: center; }
.student-layout .qq-group-open-btn b { display: none; }
.student-layout .plaso-copy-inline,
.student-layout .plaso-copy-full {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
}
.student-service-card.account-only .plaso-credential-row { gap: 12px; }
.student-service-card.account-only .plaso-credential-value { align-items: stretch; }
.student-service-card.account-only .plaso-copy-full { width: 100%; }

.student-quick-nav {
  position: fixed;
  right: 22px;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: linear-gradient(135deg, #2b70f3, #174bd1);
  box-shadow: 0 14px 32px rgba(25, 74, 176, .28);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.student-quick-nav.hidden,
.qq-group-modal-open .student-quick-nav { display: none !important; }
.student-quick-nav svg { width: 20px; height: 20px; fill: currentColor; }
.qq-group-close-btn svg { width: 20px; height: 20px; fill: currentColor; }
.student-quick-nav .quick-nav-up { display: none; }
.student-quick-nav[data-mode="top"] .quick-nav-down { display: none; }
.student-quick-nav[data-mode="top"] .quick-nav-up { display: block; }

@media (max-width: 720px) {
  .student-layout { width: min(100% - 14px, 920px); gap: 12px; font-size: 13px; }
  .student-layout .student-banner { padding: 22px 20px; }
  .student-layout .student-banner h1 { font-size: clamp(28px, 9vw, 36px); }
  .student-layout .student-banner p,
  .student-layout .student-step-card > p,
  .student-layout .hint,
  .student-layout .student-contract-meta,
  .student-layout .qq-group-card-copy > p { font-size: 13px; }
  .student-layout .student-step-title { font-size: 19px; }
  .student-stage-heading { grid-template-columns: 38px minmax(0, 1fr); gap: 11px; }
  .student-stage-number { width: 38px; height: 38px; border-radius: 12px; }
  .student-stage-heading > .student-stage-status,
  .student-stage-heading > .student-contract-badge {
    grid-column: 2;
    justify-self: start;
  }
  .student-contract-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-completion-center { padding: 18px 14px; }
  .student-service-hub-head { align-items: start; flex-direction: column; gap: 4px; }
  .student-service-grid { grid-template-columns: 1fr; gap: 12px; }
  .student-service-card { padding: 16px; border-radius: 18px; }
  .student-service-card .qq-group-card-heading { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .student-service-card .qq-group-card-icon { width: 52px; height: 52px; border-radius: 15px; }
  .student-service-card .qq-group-card-copy { margin: 12px 0 14px 64px; }
  .student-service-card .qq-group-card-title-block .student-step-title,
  .student-service-card .plaso-account-head .student-step-title { font-size: 16px; }
  .student-panel-summary-status { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
  .student-quick-nav {
    right: 14px;
    bottom: max(18px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
  }
  .student-quick-nav span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
}

@media (max-width: 430px) {
  .student-service-card .qq-group-card-copy { margin-left: 0; }
  .student-service-card .qq-group-card-meta { display: grid; grid-template-columns: 1fr; }
  .student-service-card .qq-group-card-meta > * { justify-content: center; text-align: center; }
  .student-service-card .plaso-credential-value { align-items: stretch; flex-direction: column; }
  .student-service-card .plaso-copy-inline { width: 100%; }
}

/* V2.11.19 BLUE_MINIMAL_STUDENT_FLOW_START */
body:has(.student-layout) {
  background:
    radial-gradient(circle at 8% 8%, rgba(147, 197, 253, .34), transparent 28%),
    radial-gradient(circle at 92% 3%, rgba(165, 180, 252, .28), transparent 30%),
    #f4f8ff;
  color: #102a4c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.student-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 72px;
  gap: 16px;
}

.student-layout .glass,
.student-layout .form-card,
.student-layout .success-card {
  border: 1px solid #dbe7f8;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 38px rgba(41, 72, 123, .08);
  backdrop-filter: none;
}

.student-banner {
  min-height: auto;
  padding: 27px 30px 24px;
  border-radius: 22px;
}
.student-banner .brand-pill,
.student-banner .hero-main-logo { display: none !important; }
.student-banner .hero-title-row { display: block; margin: 0; }
.student-banner h1 {
  margin: 0;
  color: #102a4c;
  font-size: 31px;
  line-height: 1.25;
  letter-spacing: -.03em;
}
.student-banner > p {
  margin: 8px 0 0;
  color: #68809f;
  font-size: 15px;
  line-height: 1.65;
}

.student-step-card {
  position: relative;
  padding: 22px 28px 20px;
  border-radius: 22px;
  overflow: visible;
}
.student-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 0;
  margin: 0;
  padding: 0;
}
.student-steps::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 17px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: #c9d5e6;
}
.student-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 36px auto;
  justify-items: center;
  align-items: start;
  gap: 8px;
  min-width: 0;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #6f829d;
  text-align: center;
}
.student-step b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  border: 2px solid #aebed3;
  border-radius: 50%;
  background: #fff;
  color: #778ba7;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(39, 77, 132, .08);
}
.student-step span {
  display: block;
  min-width: 0;
  color: #4f6480;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
}
.student-step small {
  display: block;
  margin-top: 3px;
  color: #8a9ab0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.student-step.done b,
.student-step.active b {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .22);
}
.student-step.done b { font-size: 0; }
.student-step.done b::before { content: "✓"; font-size: 16px; }
.student-step.done span,
.student-step.active span { color: #174ea6; }
.student-step.done small,
.student-step.active small { color: #6684b4; }
#studentStepHint { display: none !important; }

.student-step-panel {
  border-radius: 20px;
  color: #102a4c;
}
.student-step-panel:not(.is-complete) { padding: 28px 30px; }
.student-step-panel.is-complete {
  padding: 0 0 28px;
  overflow: hidden;
}
.student-step-panel.is-complete.is-collapsed { padding: 0; }
.student-step-panel.is-complete > .student-panel-summary {
  display: grid;
}
.student-panel-summary {
  box-sizing: border-box;
  grid-template-columns: 42px minmax(0, 1fr) 220px 28px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 82px;
  margin: 0;
  padding: 18px 24px;
  border: 0;
  border-radius: 19px;
  outline: none;
  background: transparent;
  color: #102a4c;
  text-align: left;
  cursor: pointer;
}
.student-panel-summary:hover { background: #f8fbff; }
.student-panel-summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .24);
  outline-offset: -4px;
}
.student-panel-summary-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 16px;
  font-weight: 850;
}
.student-panel-summary-copy {
  display: block;
  min-width: 0;
}
.student-panel-summary-copy b {
  display: block;
  overflow: hidden;
  color: #102a4c;
  font-size: 17px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.student-panel-summary-copy small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #7588a2;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.student-panel-summary-status {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  min-height: 36px;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 13px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}
.student-panel-summary-chevron {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #66809f;
  transition: transform .2s ease;
}
.student-panel-summary-chevron svg { width: 18px; height: 18px; fill: currentColor; }
.student-step-panel.is-complete:not(.is-collapsed) > .student-panel-summary {
  border-bottom: 1px solid #e3ebf7;
  border-radius: 19px 19px 0 0;
}
.student-step-panel.is-complete:not(.is-collapsed) .student-panel-summary-chevron { transform: rotate(180deg); }
.student-step-panel.is-complete.is-collapsed > :not(.student-panel-summary) { display: none !important; }
.student-step-panel.is-complete:not(.is-collapsed) > :not(.student-panel-summary) {
  margin-right: 30px;
  margin-left: 30px;
}

.student-stage-heading-legacy { display: none !important; }
.student-contract-section-title {
  margin-top: 26px !important;
  margin-bottom: 22px !important;
  color: #102a4c;
  font-size: 18px;
  line-height: 1.4;
}
#studentContractBox .student-contract-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  padding: 0 0 24px;
  border: 0;
  background: transparent;
}
#studentContractBox .student-contract-progress::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: #cbd7e8;
}
#studentContractBox .student-contract-progress span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #72849d;
  font-size: 12px;
  text-align: center;
}
#studentContractBox .student-contract-progress span::before {
  content: "";
  z-index: 1;
  width: 20px;
  height: 20px;
  border: 2px solid #aebdd2;
  border-radius: 50%;
  background: #fff;
}
#studentContractBox .student-contract-progress span.done::before,
#studentContractBox .student-contract-progress span.active::before {
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: inset 0 0 0 4px #fff;
}
#studentContractBox .student-contract-shipping-notice,
#studentContractBox .student-contract-meta { display: none !important; }
#studentContractBox .student-contract-list { display: grid; gap: 10px; margin-top: 0; }
#studentContractBox .student-contract-item {
  padding: 16px 18px;
  border: 1px solid #dbe6f5;
  border-radius: 15px;
  background: #fbfdff;
  box-shadow: none;
}
#studentContractBox .student-contract-item-head { align-items: center; }
#studentContractBox .student-contract-item-head div > span { display: none; }
#studentContractBox .student-contract-party-status,
#studentContractBox .student-contract-item > p { display: none; }
#studentContractBox #studentContractRefreshBtn {
  width: auto;
  min-width: 132px;
  min-height: 42px;
  margin: 14px 30px 0 auto;
  border-color: #b9d1fb;
  color: #1d5bd1;
}

#studentCompletionCenter .student-completion-list { margin-top: 24px; }
.student-completion-item {
  min-height: 68px;
  border-color: #dce7f5;
  border-radius: 14px;
  background: #fbfdff;
}
.student-completion-icon { background: #eaf2ff; color: #2563eb; }
.student-completion-item > b { color: #2563eb; }
.student-completion-link { border-color: #b9d1fb; color: #1d5bd1; }

.student-layout .primary-btn,
.student-layout .secondary-btn,
.student-layout .student-service-action {
  min-height: 46px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 760;
}
.student-layout .primary-btn {
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}
.student-layout .primary-btn:hover { background: #1d4ed8; }
.student-layout .secondary-btn { border-color: #d5e1f1; background: #fff; color: #174a92; }
.student-service-list { gap: 14px; }
.student-service-card {
  border-color: #dbe7f8;
  border-radius: 18px;
  background: #fbfdff;
  box-shadow: none;
}
.student-service-card .student-service-action {
  height: 48px;
  min-height: 48px;
}
.student-service-card .student-stage-eyebrow,
.student-service-card .qq-group-card-eyebrow { color: #2563eb; }
.student-service-card .plaso-account-status { background: #eaf2ff; color: #2563eb; }

.student-quick-nav {
  border-color: rgba(255, 255, 255, .7);
  background: #2563eb;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .26);
}

@media (max-width: 760px) {
  .student-layout {
    width: min(100% - 24px, 620px);
    padding: 16px 0 52px;
    gap: 12px;
  }
  .student-banner { padding: 21px 20px 19px; border-radius: 18px; }
  .student-banner h1 { font-size: 25px; }
  .student-banner > p { margin-top: 6px; font-size: 13px; }
  .student-step-card { padding: 18px 8px 15px; border-radius: 18px; }
  .student-steps::before { top: 14px; left: 12.5%; right: 12.5%; }
  .student-step { grid-template-rows: 30px auto; gap: 6px; padding: 0 2px; }
  .student-step b { width: 30px; height: 30px; font-size: 12px; }
  .student-step.done b::before { font-size: 14px; }
  .student-step span { font-size: 12px; }
  .student-step small { display: none; }
  .student-step-panel:not(.is-complete) { padding: 22px 18px; }
  .student-step-panel.is-complete { padding-bottom: 20px; }
  .student-panel-summary {
    grid-template-columns: 38px minmax(0, 1fr) 26px;
    grid-template-rows: auto auto;
    column-gap: 11px;
    row-gap: 2px;
    min-height: 76px;
    padding: 15px 16px;
  }
  .student-panel-summary-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 14px;
  }
  .student-panel-summary-copy { grid-column: 2; grid-row: 1; }
  .student-panel-summary-copy b { font-size: 15px; }
  .student-panel-summary-copy small { margin-top: 1px; font-size: 12px; white-space: normal; }
  .student-panel-summary-status {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
    width: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
    font-size: 12px;
    text-align: left;
    white-space: normal;
  }
  .student-panel-summary-chevron { grid-column: 3; grid-row: 1 / 3; }
  .student-step-panel.is-complete:not(.is-collapsed) > :not(.student-panel-summary) {
    margin-right: 18px;
    margin-left: 18px;
  }
  .student-contract-section-title { margin-top: 20px !important; margin-bottom: 18px !important; font-size: 16px; }
  #studentContractBox .student-contract-progress span { font-size: 11px; }
  #studentContractBox #studentContractRefreshBtn { width: calc(100% - 36px); margin: 12px 18px 0; }
}

@media (max-width: 420px) {
  .student-layout { width: calc(100% - 16px); }
  .student-banner h1 { font-size: 23px; }
  .student-step span { font-size: 11px; }
  .student-panel-summary { padding-right: 12px; padding-left: 12px; }
}
/* V2.11.19 BLUE_MINIMAL_STUDENT_FLOW_END */
/* STUDENT_MOBILE_SUBMIT_FIX_END */


/* MODIFY_CONFIRM_DELETE_FIX_START */
#modifiedConfirmTable .delete-modified-confirm-btn {
  min-width: 64px;
  height: 32px;
  padding: 0 12px;
  border-radius: 12px;
  white-space: nowrap;
}

#modifiedConfirmTable th:last-child,
#modifiedConfirmTable td:last-child {
  text-align: center;
  white-space: nowrap;
}
/* MODIFY_CONFIRM_DELETE_FIX_END */


/* SHIPMENT_TWO_TRACKING_UI_START */
.shipment-fields {
  display: grid;
  gap: 8px;
  min-width: 220px;
  max-width: 300px;
}

.shipment-fields .tracking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shipment-fields .ship-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .shipment-fields {
    max-width: none;
  }

  .shipment-fields .tracking-grid {
    grid-template-columns: 1fr;
  }
}
/* SHIPMENT_TWO_TRACKING_UI_END */


/* STUDENT_SHIPMENT_DETAIL_FIX_START */
.student-status-box .status-row {
  align-items: flex-start;
}

#studentTrackingInfo {
  width: min(100%, 520px);
}

.student-tracking-detail {
  display: grid;
  gap: 8px;
  width: 100%;
}

.student-tracking-detail > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.10);
  text-align: left;
}

.student-tracking-detail span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.student-tracking-detail b {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-all;
  text-align: left;
}

.student-tracking-detail > div:last-child b {
  text-align: left;
}

@media (max-width: 720px) {
  .student-tracking-detail > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .student-tracking-detail b {
    text-align: left;
  }
}
/* STUDENT_SHIPMENT_DETAIL_FIX_END */


/* FADADA_CONFIG_UI_START */
#fadadaView .recent-list .list-item b {
  text-align: right;
  word-break: break-all;
}

.ok-text {
  color: #059669 !important;
}

.warn-text {
  color: #d97706 !important;
}

#fadadaWebhookTable .log-detail-cell {
  max-width: 520px;
  white-space: normal;
  word-break: break-all;
  color: #475569;
  font-size: 13px;
}
/* FADADA_CONFIG_UI_END */


/* V2.10.34 standard backend and student three-step flow */
.student-step-card {
  padding: 16px;
  margin-bottom: 14px;
}

.student-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.student-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
}

.student-step b {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: #475569;
  font-size: 14px;
}

.student-step.active {
  border-color: rgba(37, 99, 235, 0.38);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-weight: 800;
}

.student-step.active b {
  background: #2563eb;
  color: #fff;
}

.student-step.done {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
}

.student-step.done b {
  background: #10b981;
  color: #fff;
}

#studentStepHint {
  margin: 10px 2px 0;
  color: #64748b;
  font-size: 14px;
}

.contract-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
}

.contract-summary-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.76);
}

.contract-summary-card span {
  color: #64748b;
  font-size: 13px;
}

.contract-summary-card b {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  color: #0f172a;
}

.muted-text {
  color: #94a3b8;
  font-size: 13px;
}

@media (max-width: 720px) {
  .student-steps {
    grid-template-columns: 1fr;
  }

  .contract-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* V2.10.34 contract card moved outside profileBox */
.contract-step-card {
  margin-top: 14px;
  padding: 16px;
}

.success-box + .contract-step-card {
  margin-top: 14px;
}


/* V2.10.34 学生资料中心左右滑动按钮修复 */
.admin-main,
.view-section,
.panel,
.glass,
.table-wrap,
.student-table-wrap {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#studentsView .panel {
  overflow: hidden !important;
}

#studentsView .student-toolbar {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 190px) minmax(120px, 150px) auto auto auto !important;
  gap: 10px !important;
  align-items: center !important;
}

#studentsView .table-scroll-actions {
  display: inline-grid !important;
  grid-template-columns: auto auto !important;
  gap: 8px !important;
  align-items: center !important;
  position: relative !important;
  z-index: 6 !important;
  pointer-events: auto !important;
}

#studentsView .table-scroll-actions button {
  pointer-events: auto !important;
  cursor: pointer !important;
  user-select: none !important;
  touch-action: manipulation !important;
}

#studentTableWrap.student-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth;
}

#studentsTable.student-info-table {
  width: max-content !important;
  min-width: 1900px !important;
}

#studentsView .compact-btn.is-disabled {
  opacity: .45;
}

@media (max-width: 1100px) {
  #studentsView .student-toolbar {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 720px) {
  #studentsView .student-toolbar {
    grid-template-columns: 1fr !important;
  }
  #studentsView .table-scroll-actions {
    grid-template-columns: 1fr 1fr !important;
  }
}


/* V2.10.34 学生资料中心：操作列移到后台备注右侧 */
#studentsTable .student-action-cell {
  white-space: nowrap;
  min-width: 150px;
}

#studentsTable .remark-cell {
  min-width: 180px;
}

#studentsTable .row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}


/* V2.10.34 合同中心恢复法大大检测入口 */
.contract-detect-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(240px, .7fr);
  gap: 16px;
  align-items: start;
}

.sub-panel-title {
  margin: 4px 0 10px;
  font-size: 15px;
  color: #0f172a;
}

#testFadadaTokenBtn {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .contract-detect-layout {
    grid-template-columns: 1fr;
  }
}


/* V2.10.34 法大大检测按钮强制响应 */
.fadada-test-result {
  margin: 10px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
  line-height: 1.6;
}

.fadada-test-result.ok {
  background: rgba(16, 185, 129, .10);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, .24);
}

.fadada-test-result.warn {
  background: rgba(245, 158, 11, .10);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, .24);
}

.fadada-test-result.danger {
  background: rgba(239, 68, 68, .10);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, .24);
}

#testFadadaTokenBtn:disabled {
  opacity: .72;
  cursor: wait;
}


/* V2.10.34 法大大合同模板配置 */
.fadada-template-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.fadada-template-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 800;
  color: #334155;
}

@media (max-width: 760px) {
  .fadada-template-grid {
    grid-template-columns: 1fr;
  }
}


/* V2.10.34 法大大单个学生发起合同测试 */
.primary-mini {
  background: #1d4ed8 !important;
  color: #fff !important;
  border-color: #1d4ed8 !important;
}
.student-contract-ready {
  border-color: rgba(37, 99, 235, .25) !important;
}
@media (max-width: 760px) {
  #idCard { letter-spacing: .5px; }
}


/* V2.10.41 合同中心统一后台视觉 */
.contract-subpage { display: none; }
.contract-subpage.active { display: grid; gap: 16px; }

.contract-subnav-panel { margin-bottom: 16px; }
.contract-subnav {
  margin: 0;
  gap: 10px;
}
.contract-subnav-btn {
  cursor: pointer;
}
.contract-subnav-btn.active {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(29, 99, 255, .18);
}
.contract-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
}
.contract-stat-card {
  appearance: none;
  border: 1px solid rgba(255,255,255,.76);
  text-align: left;
  cursor: pointer;
}
.contract-stat-card em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}
.contract-stat-card:hover {
  transform: translateY(-1px);
}
.contract-stat-card.ok b { color: var(--ok); }
.contract-stat-card.warn b { color: var(--warn); }
.contract-stat-card.danger b { color: var(--danger); }

.contract-status-list {
  margin-top: 10px;
}
.compact-status-list .list-item,
.contract-status-list .list-item {
  align-items: flex-start;
}
.webhook-detail-cell {
  max-width: 360px;
  white-space: normal;
  word-break: break-word;
  color: #435166;
  font-size: 12px;
  line-height: 1.55;
}
#contractTable .row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fadada-test-result {
  margin-top: 10px;
}
@media (max-width: 1100px) {
  .contract-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .contract-stat-grid { grid-template-columns: 1fr; }
  .contract-subnav { align-items: stretch; }
  .contract-subnav-btn { flex: 1 1 calc(50% - 10px); }
}


/* V2.10.44 学生端签署入口统一为原生步骤卡片风格 */
.student-contract-card {
  width: 100%;
  margin: 0;
  padding: clamp(20px, 4vw, 34px);
  border-radius: 28px;
  display: grid;
  gap: 16px;
}
.student-contract-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.student-contract-kicker {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 1.5em;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}
.student-contract-head h2 {
  margin: -10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: #27384b;
}
.student-contract-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(104,119,139,.12);
  color: #526274;
  font-size: 13px;
  font-weight: 900;
}
.student-contract-badge.working { background: rgba(232,132,0,.12); color: #b86200; }
.student-contract-badge.signed { background: rgba(19,149,95,.12); color: #0b7a4b; }
.student-contract-badge.danger { background: rgba(217,48,37,.10); color: #c1372d; }
.student-contract-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.student-contract-progress span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(17,48,87,.12);
  color: #526274;
  font-size: 14px;
  font-weight: 800;
}
.student-contract-progress span.active {
  background: rgba(29,99,255,.10);
  border-color: rgba(29,99,255,.24);
  color: #174fe6;
}
.student-contract-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.student-contract-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.student-contract-actions .primary-btn,
.student-contract-actions .secondary-btn { width: 100%; }
.plaso-account-copy-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.plaso-account-copy-actions .primary-btn,
.plaso-account-copy-actions .secondary-btn { width: 100%; }
.plaso-account-card {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  gap: 16px;
}
.plaso-account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.plaso-account-head .student-step-title { margin: 0; }
.plaso-account-status {
  flex: 0 0 auto;
  color: #526274;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 800;
}
.plaso-account-hint { margin: 0; }
.plaso-credential-list {
  display: grid;
  gap: 14px;
}
.plaso-credential-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 52px;
}
.plaso-credential-label {
  color: #27384b;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 800;
}
.plaso-credential-value {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.plaso-credential-value b {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.plaso-copy-inline {
  width: auto !important;
  min-height: 42px;
  margin: 0;
  padding: 9px 18px;
  border-radius: 14px;
  white-space: nowrap;
}
.plaso-account-card.account-only .plaso-credential-row {
  grid-template-columns: 1fr;
}
.plaso-account-card.account-only .plaso-credential-value {
  display: grid;
  grid-template-columns: 1fr;
}
.plaso-account-card.account-only .plaso-copy-full {
  width: 100% !important;
  min-height: 52px;
  border-radius: 16px;
}
.qq-group-open-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  min-height: 52px;
  padding-inline: 20px;
}
.qq-group-open-btn b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  font-size: 24px;
  font-family: Arial, sans-serif;
  font-weight: 900;
  line-height: 1;
}
.qq-group-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(84, 160, 255, .3);
  background:
    radial-gradient(circle at 92% 8%, rgba(101, 179, 255, .2), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(238,247,255,.94));
  box-shadow: 0 20px 46px rgba(39, 104, 170, .14);
}
.qq-group-card::after {
  content: "";
  position: absolute;
  top: -56px;
  right: -52px;
  width: 160px;
  height: 160px;
  border: 22px solid rgba(78, 164, 255, .08);
  border-radius: 50%;
  pointer-events: none;
}
.qq-group-card-content {
  position: relative;
  z-index: 1;
}
.qq-group-card-heading {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}
.qq-group-card-icon,
.qq-group-modal-icon {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #56cce8, #5386f4);
  box-shadow: 0 12px 28px rgba(65, 137, 227, .28);
  font-weight: 900;
  letter-spacing: -.04em;
}
.qq-group-card-icon img,
.qq-group-modal-icon img {
  display: block;
  width: auto;
  height: 78%;
  object-fit: contain;
}
.qq-group-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  font-size: 23px;
}
.qq-group-card-copy {
  min-width: 0;
  margin: 8px 0 0 90px;
}
.qq-group-card-title-block {
  min-width: 0;
}
.qq-group-card-eyebrow,
.qq-group-modal-eyebrow {
  display: inline-block;
  color: #3476c7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
.qq-group-card-title-block .student-step-title {
  margin: 6px 0 8px;
}
.qq-group-card-copy > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.qq-group-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.qq-group-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(72, 143, 224, .2);
  border-radius: 999px;
  color: #45617e;
  background: rgba(255,255,255,.72);
  font-size: 13px;
}
.qq-group-direct-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(72, 143, 224, .28);
  border-radius: 999px;
  color: #2366b2;
  background: rgba(255,255,255,.84);
  box-shadow: 0 6px 16px rgba(45, 112, 189, .08);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.qq-group-direct-link:hover {
  border-color: rgba(45, 112, 189, .52);
  box-shadow: 0 8px 20px rgba(45, 112, 189, .14);
  transform: translateY(-1px);
}
.qq-group-direct-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .24);
  outline-offset: 2px;
}
.qq-group-card-meta b {
  margin-left: 5px;
  color: #2366b2;
  font-size: 15px;
}
body.qq-group-modal-open {
  overflow: hidden;
}
.qq-group-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
  overflow: auto;
  background: rgba(12, 30, 58, .62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.qq-group-modal.hidden {
  display: none;
}
.qq-group-modal-card {
  width: min(520px, 100%);
  max-height: calc(100dvh - 24px);
  box-sizing: border-box;
  overflow: auto;
  border-radius: 26px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.76);
  background: rgba(248,252,255,.98);
  box-shadow: 0 28px 80px rgba(5, 33, 68, .36);
}
.qq-group-modal-hero {
  padding: clamp(18px, 3vw, 24px);
  color: #fff;
  background:
    radial-gradient(circle at 92% 0%, rgba(165, 222, 255, .42), transparent 38%),
    linear-gradient(135deg, #327bc8, #5f8ff2 58%, #68b7e5);
}
.qq-group-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.qq-group-modal-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.qq-group-modal-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 52px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 17px;
}
.qq-group-modal-icon img {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 9px rgba(10, 50, 101, .22));
}
.qq-group-modal-eyebrow {
  color: rgba(255,255,255,.76);
}
.qq-group-modal-head h2 {
  margin: 3px 0 0;
  color: #fff;
  font-size: clamp(19px, 3vw, 24px);
  line-height: 1.35;
}
.qq-group-close-btn {
  flex: 0 0 auto;
  color: #fff;
  border-color: rgba(255,255,255,.34);
  background: rgba(255,255,255,.14);
}
.qq-group-close-btn:hover {
  background: rgba(255,255,255,.24);
}
.qq-group-number {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 17px 0 0;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  background: rgba(15,69,130,.18);
  font-size: 13px;
}
.qq-group-number b {
  color: #fff;
  font-size: 17px;
  letter-spacing: .04em;
}
.qq-group-qr-shell {
  margin: clamp(14px, 3vw, 20px);
  padding: 7px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(82,194,229,.9), rgba(96,126,241,.72));
  box-shadow: 0 16px 34px rgba(54, 119, 194, .18);
}
.qq-group-qr-frame {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
}
.qq-group-qr-crop {
  position: relative;
  width: min(100%, 270px);
  aspect-ratio: 55 / 68;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}
.qq-group-qr-crop img {
  position: absolute;
  top: -25.74%;
  left: -9.09%;
  display: block;
  width: 116.73%;
  height: auto;
  max-width: none;
  object-fit: initial;
}
.qq-group-modal[data-qq-region="hunan"] .qq-group-qr-crop {
  width: min(100%, 270px);
  aspect-ratio: 513 / 713;
}
.qq-group-modal[data-qq-region="hunan"] .qq-group-qr-crop img {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.qq-group-help {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 0 clamp(14px, 3vw, 20px) 14px;
  color: var(--muted);
  font-size: 13px;
}
.qq-group-copy-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(73, 136, 203, .15);
  border-radius: 13px;
  color: #47627e;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.qq-group-copy-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(65, 139, 218, .34);
  background: #f8fbff;
}
.qq-group-copy-btn:active {
  transform: translateY(0);
}
.qq-group-copy-btn.copied {
  border-color: rgba(35, 166, 111, .34);
  background: #f2fff9;
}
.qq-group-copy-btn > span:last-child {
  display: grid;
  gap: 2px;
}
.qq-group-copy-btn small {
  color: #75879a;
  font-size: 11px;
}
.qq-group-copy-btn b {
  color: #286fbe;
  font-size: 13px;
}
.qq-group-copy-btn.copied b {
  color: #168558;
}
.qq-copy-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #4d8fda;
}
.qq-copy-mark::before,
.qq-copy-mark::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 10px;
  border: 1.5px solid #fff;
  border-radius: 2px;
}
.qq-copy-mark::before {
  transform: translate(-2px, -2px);
  opacity: .7;
}
.qq-copy-mark::after {
  transform: translate(2px, 2px);
  background: #4d8fda;
}
.qq-group-done-btn {
  display: grid;
  place-items: center;
  width: calc(100% - clamp(28px, 6vw, 40px));
  min-height: 54px;
  margin: 0 auto clamp(14px, 3vw, 20px);
  padding-inline: 24px;
  text-align: center;
}
.signed-btn {
  background: linear-gradient(135deg, #18a66f, #0c8154) !important;
  box-shadow: 0 12px 26px rgba(19,149,95,.22) !important;
}
@media (max-width: 720px) {
  .student-contract-head { display: grid; }
  .student-contract-badge { justify-self: start; }
  .student-contract-progress { grid-template-columns: 1fr; }
  .student-contract-actions { grid-template-columns: 1fr; }
  .plaso-account-copy-actions { grid-template-columns: 1fr 1fr; }
  .plaso-account-head { display: grid; gap: 8px; }
  .plaso-account-status { justify-self: start; }
  .plaso-credential-row { grid-template-columns: 58px minmax(0, 1fr); gap: 8px; }
  .plaso-credential-value { gap: 8px; }
  .plaso-copy-inline { min-height: 40px; padding: 8px 14px; }
  .qq-group-card-heading {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 17px;
  }
  .qq-group-card-icon {
    align-self: center;
    width: 52px;
    height: 52px;
    margin-top: 0;
    border-radius: 16px;
    font-size: 17px;
  }
  .qq-group-card-icon img { height: 74%; }
  .qq-group-card-copy {
    display: block;
    margin: 8px 0 0 69px;
  }
  .qq-group-card-title-block .student-step-title {
    margin-top: 5px;
    font-size: 18px;
    line-height: 1.38;
  }
  .qq-group-card-copy > p {
    margin-top: 8px;
  }
  .qq-group-card-meta { display: grid; grid-template-columns: 1fr; }
  .qq-group-card-meta span,
  .qq-group-direct-link { justify-content: center; }
  .qq-group-modal { place-items: start center; padding: 8px; }
  .qq-group-modal-card {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 22px;
  }
  .qq-group-modal-head { gap: 12px; }
  .qq-group-modal-heading {
    align-items: center;
    gap: 18px;
  }
  .qq-group-modal-icon {
    align-self: center;
    width: 35px;
    height: 42px;
    border-radius: 0;
    font-size: 14px;
  }
  .qq-group-modal-head h2 { font-size: 18px; }
  .qq-group-qr-shell { margin: 12px; }
  .qq-group-qr-crop { width: min(100%, 270px); }
  .qq-group-help { grid-template-columns: 1fr; margin: 0 12px 12px; }
  .qq-group-help span { min-height: 38px; }
  .qq-group-done-btn { width: calc(100% - 24px); margin-bottom: 12px; }
}


/* V2.10.97 hotfix v4: true-center mobile QQ icon background and penguin */
@media (max-width: 720px) {
  .qq-group-card-heading {
    position: static;
    display: flex;
    align-items: center;
    min-height: 0;
    padding-left: 0;
    gap: 20px;
  }
  .qq-group-card-icon {
    position: static;
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    top: auto;
    left: auto;
    margin: 0;
    transform: none;
  }
  .qq-group-card-icon img {
    align-self: center;
    justify-self: center;
    margin: auto;
    transform: none;
  }
  .qq-group-card-title-block {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }
  .qq-group-card-copy {
    margin-left: 72px;
  }
  .qq-group-modal-heading {
    position: static;
    display: flex;
    align-items: center;
    min-height: 0;
    padding-left: 0;
    gap: 20px;
  }
  .qq-group-modal-icon {
    position: static;
    display: grid;
    place-items: center;
    flex: 0 0 35px;
    top: auto;
    left: auto;
    margin: 0;
    transform: none;
  }
  .qq-group-modal-icon img {
    align-self: center;
    justify-self: center;
    margin: auto;
    transform: none;
  }
  .qq-group-modal-heading > div {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }
}

/* V2.10.45 学生端三步卡片统一：第一步/第二步/第三步使用同一视觉组件 */
.student-step-panel {
  width: 100%;
  box-sizing: border-box;
  border-radius: 28px;
  padding: clamp(20px, 4vw, 34px);
}
.student-step-title,
.form-card .student-step-title,
.success-card .student-step-title {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}
#studentContractBox.student-contract-card {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 16px;
}
#studentContractBox .student-contract-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
#studentContractBox .student-contract-name {
  margin: -8px 0 8px;
  color: #27384b;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 800;
}
#studentContractBox .student-contract-kicker { display: none !important; }
#studentContractBox .student-contract-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
#studentContractBox .student-contract-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#studentContractBox .student-contract-actions .primary-btn,
#studentContractBox .student-contract-actions .secondary-btn { width: 100%; }
@media (max-width: 720px) {
  .student-step-panel { border-radius: 24px; }
  #studentContractBox .student-contract-head { display: grid; gap: 12px; }
  #studentContractBox .student-contract-actions { grid-template-columns: 1fr; }
  #studentContractBox .student-contract-progress { grid-template-columns: 1fr; }
}

/* V2.11.16 学生四步流程、多合同与完成中心 */
.student-contract-list {
  display: grid;
  gap: 12px;
}
.student-contract-item {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 18px;
  background: rgba(248, 250, 252, .84);
}
.student-contract-item-head,
.student-contract-party-status,
.student-completion-heading,
.student-completion-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.student-contract-item-head > div {
  display: grid;
  gap: 4px;
}
.student-contract-item-head span,
.student-contract-party-status span,
.student-completion-item span {
  color: #64748b;
  font-size: 13px;
}
.student-contract-party-status {
  justify-content: flex-start;
  margin: 12px 0 8px;
  flex-wrap: wrap;
}
.student-contract-party-status span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2f7;
}
.student-contract-party-status span.done {
  color: #047857;
  background: #dcfce7;
}
.student-contract-party-status span.waiting {
  color: #b45309;
  background: #fef3c7;
}
.student-contract-item p {
  margin: 8px 0 12px;
  color: #64748b;
  line-height: 1.7;
}
.student-completion-center {
  display: grid;
  gap: 18px;
}
.student-completion-center.hidden {
  display: none;
}
.student-completion-eyebrow {
  color: #2563eb;
  font-weight: 800;
  font-size: 13px;
}
.student-completion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.student-completion-item {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 18px;
  background: rgba(248, 250, 252, .9);
}
.student-completion-item b {
  display: block;
  margin: 8px 0 4px;
  color: #0f2748;
  font-size: 17px;
}
.student-completion-item p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .student-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .student-step {
    min-width: 0;
  }
  .student-step span {
    overflow-wrap: anywhere;
  }
  .student-completion-grid {
    grid-template-columns: 1fr;
  }
  .student-completion-heading,
  .student-completion-actions,
  .student-contract-item-head {
    align-items: stretch;
    flex-direction: column;
  }
  .student-completion-actions .primary-btn,
  .student-completion-actions .secondary-btn {
    width: 100%;
  }
}

/* ===== V2.10.50 后台弹窗单滚动条修复 =====
   原因：之前同时给 .modal 与 .modal-card 设置 overflow-y:auto，导致外层遮罩和内层卡片各出现一个纵向滚动条。
   现在统一为：只让外层 .modal 负责纵向滚动，内层 .modal-card 不再自己滚动。
*/
body.admin-has-open-modal {
  overflow: hidden !important;
}
body.admin-has-open-modal .admin-app,
body.admin-has-open-modal .admin-main,
body.admin-has-open-modal .view-section {
  overflow: hidden !important;
}

.modal {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  place-items: start center !important;
  align-items: start !important;
  justify-items: center !important;
  padding: 24px 12px !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.modal.hidden {
  display: none !important;
}
.modal > .modal-card {
  flex: 0 0 auto;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 auto !important;
}
.modal > .modal-card.wide-modal,
.modal > .modal-card.glass.wide-modal {
  width: min(980px, calc(100vw - 24px));
}

/* 表格类弹窗可以保留表格区域横向/局部滚动，但不允许整个弹窗卡片再出现第二根纵向滚动条 */
.modal > .modal-card .table-wrap {
  overflow-x: auto;
}
#studentEditModal .modal-card .table-wrap,
#studentEditModal .modal-card .profile-form,
#studentEditModal .modal-card form,
#bulkModal .modal-card,
#unfilledModal .modal-card,
#accountPermModal .modal-card {
  max-height: none !important;
}

@media (max-width: 768px) {
  .modal {
    padding: 10px !important;
  }
  .modal > .modal-card,
  .modal > .modal-card.wide-modal,
  .modal > .modal-card.glass.wide-modal {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: none !important;
    overflow: visible !important;
    border-radius: 22px;
  }
}

/* ===== V2.10.51 多合同模板管理 ===== */
.contract-template-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.contract-template-summary-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .68);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.contract-template-summary-card b {
  font-size: 17px;
  line-height: 1.45;
}
.contract-template-summary-card p {
  margin: 0;
  color: var(--muted, #64748b);
  line-height: 1.65;
}
.contract-template-panel {
  position: relative;
  overflow: hidden;
}
.contract-template-panel::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(37, 99, 235, .86), rgba(14, 165, 233, .48));
}
.contract-template-lock-note {
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 12px;
  color: #1d4ed8;
  background: rgba(239, 246, 255, .86);
  font-size: 13px;
  line-height: 1.6;
}
.contract-rule-test-grid {
  grid-template-columns: minmax(320px, 2fr) minmax(180px, .8fr);
}
.contract-rule-table td,
.contract-rule-table th {
  vertical-align: middle;
}
.contract-rule-table td:nth-child(1) {
  width: 90px;
  text-align: center;
}
.contract-rule-table td:nth-child(2) {
  width: 150px;
}
#fadadaTemplateRuleTestResult b {
  display: inline-block;
  margin-bottom: 6px;
}
@media (max-width: 980px) {
  .contract-template-summary-grid {
    grid-template-columns: 1fr;
  }
  .contract-rule-test-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== V2.11.05 合同中心 A/B/C/D/E 五类模板卡片 ===== */
.contract-template-lock-note.danger {
  border-color: rgba(220, 38, 38, .2);
  color: #b42318;
  background: #fff5f5;
}

.fadada-contract-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fadada-contract-template-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dbe5f3;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(66, 133, 244, .08), transparent 34%),
    #fff;
  box-shadow: 0 10px 28px rgba(34, 73, 128, .06);
}

.fadada-contract-template-card.is-missing {
  border-style: dashed;
  background: #fff9f9;
}

.fadada-contract-template-card-head,
.fadada-contract-template-identity,
.fadada-contract-template-badges,
.fadada-contract-section-title,
.fadada-contract-detail-row,
.fadada-contract-template-actions {
  display: flex;
  align-items: center;
}

.fadada-contract-template-card-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.fadada-contract-template-identity {
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
}

.fadada-contract-code {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #3478f6, #1952c7);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .2);
  font-size: 19px;
  font-weight: 850;
}

.fadada-contract-template-identity h3,
.fadada-contract-template-card > h3 {
  margin: 1px 0 4px;
  color: #14243a;
  font-size: 17px;
  line-height: 1.45;
}

.fadada-contract-template-identity p {
  margin: 0;
  color: #6a7890;
  font-size: 13px;
}

.fadada-contract-template-badges {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.fadada-contract-template-meta {
  display: grid;
  grid-template-columns: minmax(170px, .8fr) minmax(220px, 1.2fr);
  gap: 10px;
  margin-top: 16px;
}

.fadada-contract-template-meta > div {
  min-width: 0;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f5f8fd;
}

.fadada-contract-template-meta span,
.fadada-contract-detail-row span,
.fadada-contract-field span {
  display: block;
  color: #718096;
  font-size: 12px;
  line-height: 1.4;
}

.fadada-contract-template-meta code,
.fadada-contract-template-meta strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #172b4d;
  font-size: 13px;
  line-height: 1.5;
}

.fadada-contract-template-section {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #e4ebf5;
  border-radius: 14px;
}

.fadada-contract-section-title {
  justify-content: space-between;
  margin-bottom: 7px;
}

.fadada-contract-section-title b {
  color: #203553;
  font-size: 14px;
}

.fadada-contract-section-title span {
  color: #738198;
  font-size: 12px;
}

.fadada-contract-detail-row {
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px dashed #e2e8f0;
}

.fadada-contract-detail-row code {
  max-width: 56%;
  overflow-wrap: anywhere;
  color: #174ea6;
  text-align: right;
  font-size: 12px;
}

.fadada-contract-template-fields {
  margin-top: 12px;
  border: 1px solid #e4ebf5;
  border-radius: 14px;
  background: #fbfcff;
}

.fadada-contract-template-fields summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: #29456d;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.fadada-contract-template-fields summary span {
  color: #718096;
  font-size: 12px;
  font-weight: 600;
}

.fadada-contract-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.fadada-contract-field {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: #fff;
}

.fadada-contract-field code {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #174ea6;
  font-size: 12px;
}

.fadada-contract-empty-detail {
  padding: 8px 0;
  color: #9a5b13;
  font-size: 12px;
}

.fadada-contract-behavior-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.fadada-contract-behavior-list span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #7a8798;
  background: #f0f3f7;
  font-size: 12px;
}

.fadada-contract-behavior-list span.is-on {
  color: #087443;
  background: #eaf8f1;
}

.fadada-contract-template-actions {
  justify-content: flex-end;
  margin-top: 15px;
}

.fadada-contract-template-actions .secondary-btn {
  min-width: 150px;
}

@media (max-width: 1120px) {
  .fadada-contract-template-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fadada-contract-template-card {
    padding: 14px;
  }

  .fadada-contract-template-card-head {
    flex-direction: column;
  }

  .fadada-contract-template-badges {
    justify-content: flex-start;
  }

  .fadada-contract-template-meta,
  .fadada-contract-field-grid {
    grid-template-columns: 1fr;
  }

  .fadada-contract-detail-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .fadada-contract-detail-row code {
    max-width: 100%;
    text-align: left;
  }

  .fadada-contract-template-actions .secondary-btn {
    width: 100%;
  }
}


/* ===== V2.10.52 订单导出 + 订单表格单行展示 ===== */
#ordersView .order-toolbar-clean {
  grid-template-columns: minmax(300px, 1fr) 150px auto auto auto;
  align-items: center;
}
#ordersView .order-toolbar-clean > button {
  white-space: nowrap;
}
#ordersView .order-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}
#ordersTable {
  min-width: 1320px;
}
#ordersTable th,
#ordersTable td {
  white-space: nowrap;
  vertical-align: middle;
}
#ordersTable th:nth-child(2),
#ordersTable td:nth-child(2) {
  min-width: 235px;
}
#ordersTable th:nth-child(3),
#ordersTable td:nth-child(3),
#ordersTable th:nth-child(5),
#ordersTable td:nth-child(5),
#ordersTable th:nth-child(6),
#ordersTable td:nth-child(6),
#ordersTable th:nth-child(7),
#ordersTable td:nth-child(7) {
  white-space: nowrap !important;
}
.order-buyer-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.order-buyer-phone {
  color: var(--muted, #64748b);
}
@media (max-width: 1180px) {
  #ordersView .order-toolbar-clean {
    grid-template-columns: minmax(260px, 1fr) 150px repeat(3, auto);
  }
}
@media (max-width: 980px) {
  #ordersView .order-toolbar-clean {
    grid-template-columns: 1fr;
  }
  #ordersView .order-toolbar-clean > button {
    width: 100%;
  }
}


/* ===== V2.10.54 发货中心合约签署情况与学生发货提示 ===== */
#shipmentsTable .shipment-contract-cell {
  min-width: 150px;
  max-width: 230px;
  display: grid;
  justify-items: start;
  gap: 7px;
}
#shipmentsTable .shipment-contract-note,
#shipmentsTable .shipment-contract-raw {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
}
#shipmentsTable .shipment-contract-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#shipmentsTable .shipment-contract-actions:empty { display: none; }

.student-contract-shipping-notice {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(29, 99, 255, .18);
  background: rgba(29, 99, 255, .08);
  color: #174fbf;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 800;
}

/* ===== V2.10.55 学生资料中心完整地址搜索修复 ===== */
.phone-order-result-list{display:grid;gap:10px;margin-top:12px}.phone-order-result{width:100%;display:grid;grid-template-columns:1fr auto;gap:4px 12px;text-align:left;align-items:center}.phone-order-result b{font-size:15px}.phone-order-result span{grid-column:1;color:#68778b;font-size:12px}.phone-order-result em{grid-column:2;grid-row:1/3;font-style:normal;font-size:12px;color:#2563eb}.phone-order-result:disabled em{color:#b42318}.phone-order-result:disabled{opacity:.72;cursor:not-allowed}

/* ===== V2.10.66 商品只读账号：来源 + 商品多选下拉 ===== */
.product-scope-fields {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(520px, 2.2fr);
  width: 100%;
  gap: 18px;
  align-items: start;
}
.product-scope-fields > .full-row { grid-column: 1 / -1; }
.product-scope-fields.hidden { display: none !important; }
.product-scope-dropdown {
  position: relative;
  margin-top: 7px;
  border: 1px solid rgba(113, 132, 164, .24);
  border-radius: 14px;
  background: #fff;
}
.product-scope-dropdown > summary {
  min-height: 46px;
  padding: 12px 42px 12px 14px;
  list-style: none;
  cursor: pointer;
  color: #263955;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
}
.product-scope-dropdown > summary::-webkit-details-marker { display: none; }
.product-scope-dropdown > summary::after {
  content: '⌄';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-55%);
  color: #2563eb;
  font-size: 20px;
}
.product-scope-dropdown[open] > summary::after { transform: translateY(-42%) rotate(180deg); }
.product-scope-options {
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  border-top: 1px solid rgba(113, 132, 164, .18);
  display: grid;
  gap: 4px;
}
.product-scope-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  line-height: 1.5;
}
.product-scope-option:hover { background: rgba(37, 99, 235, .07); }
.product-scope-option input { margin-top: 4px; accent-color: #2563eb; }
.product-scope-empty { padding: 12px; color: #7a8799; font-size: 13px; }
@media (max-width: 900px) {
  .product-scope-fields { grid-template-columns: 1fr; }
}

/* ===== V2.10.67 多省账号权限与顶部省份切换 ===== */
.top-region-switcher {
  display: inline-flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid #dce7f7;
  border-radius: 14px;
  background: #f5f8fd;
}
.top-region-switcher.hidden { display: none !important; }
.top-region-btn {
  border: 0;
  border-radius: 10px;
  padding: 9px 15px;
  background: transparent;
  color: #62738b;
  font-weight: 800;
  cursor: pointer;
}
.top-region-btn.active {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 7px 18px rgba(37,99,235,.22);
}
.top-region-btn:disabled { opacity: .65; cursor: wait; }
.account-region-picker {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(300px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}
.field-label-title {
  color: #17385f;
  font-weight: 800;
}
.region-access-dropdown {
  position: relative;
  border: 1px solid #d7e3f3;
  border-radius: 14px;
  background: #fff;
}
.region-access-dropdown > summary {
  position: relative;
  min-height: 48px;
  padding: 13px 44px 13px 15px;
  list-style: none;
  cursor: pointer;
  color: #28415f;
  font-weight: 800;
}
.region-access-dropdown > summary::-webkit-details-marker { display: none; }
.region-access-dropdown > summary::after {
  content: '⌄';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-55%);
  color: #2563eb;
  font-size: 20px;
}
.region-access-dropdown[open] > summary::after { transform: translateY(-42%) rotate(180deg); }
.region-access-dropdown .region-access-options {
  position: absolute;
  z-index: 30;
  left: -1px;
  right: -1px;
  top: calc(100% + 7px);
  padding: 10px;
  border: 1px solid #d7e3f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(42,70,110,.18);
}
.region-access-options {
  display: grid;
  gap: 5px;
}
.region-access-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #17385f;
  font-weight: 800;
  cursor: pointer;
}
.region-access-option:hover { background: #f0f5ff; }
.region-access-option input { accent-color: #2563eb; }
.region-config-list { display: grid; gap: 14px; }
.region-config-card {
  border: 1px solid #d7e4f5;
  border-radius: 18px;
  padding: 15px;
  background: linear-gradient(180deg,#fbfdff,#f7faff);
}
.region-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.region-config-head h3 { margin: 0; color: #15345c; }
.permission-quick-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.region-config-card .product-scope-fields { margin-top: 4px; }
.region-config-card .permission-checklist { margin-top: 4px; }
.account-role-help {
  padding: 10px 13px;
  border-radius: 12px;
  background: #f6f9fe;
  color: #60718a;
}
.account-form-grid { grid-template-columns: 1.2fr 1.2fr 1fr 1fr; }
@media (max-width: 980px) {
  .topbar-actions { justify-content: flex-start; }
  .top-region-switcher { order: -1; width: 100%; overflow-x: auto; }
  .top-region-btn { flex: 1 0 auto; }
  .account-form-grid { grid-template-columns: 1fr; }
  .account-region-picker { grid-template-columns: 1fr; }
  .region-access-dropdown .region-access-options { position: static; border-width: 1px 0 0; border-radius: 0 0 14px 14px; box-shadow: none; }
  .region-config-head { align-items: flex-start; flex-direction: column; }
}

/* V2.11.03 标准 PC 教务后台：统一导航、卡片、按钮和表格交互 */
.admin-body {
  --admin-primary: #2563eb;
  --admin-primary-hover: #1d4ed8;
  --admin-primary-soft: #eff6ff;
  --admin-success: #15803d;
  --admin-success-soft: #f0fdf4;
  --admin-warning: #b45309;
  --admin-warning-soft: #fffbeb;
  --admin-danger: #dc2626;
  --admin-danger-hover: #b91c1c;
  --admin-danger-soft: #fef2f2;
  --admin-border: #dce5f1;
  --admin-muted: #64748b;
  --admin-ink: #172033;
  --admin-panel: #fff;
  --admin-bg: #f4f7fb;
  background: var(--admin-bg);
}
.admin-app { grid-template-columns: 238px minmax(0, 1fr); }
.admin-body .sidebar {
  padding: 22px 16px;
  background: #12223a;
}
.admin-body .sidebar-brand { padding: 0 10px 18px; }
.admin-body .sidebar-brand b { font-size: 19px; }
.side-nav {
  display: grid;
  gap: 16px;
}
.nav-group { display: grid; gap: 4px; }
.nav-group-title {
  padding: 0 12px 5px;
  color: #8fa5c2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.side-nav .nav-btn {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 9px;
  color: #d6e0ef;
  font-weight: 650;
}
.side-nav .nav-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-nav .nav-btn.active {
  background: #2563eb;
  color: #fff;
  box-shadow: none;
}

/* ===== V2.11.13 可折叠一级导航与分级账号权限 ===== */
.side-nav {
  gap: 7px;
}
.nav-group {
  gap: 3px;
}
.nav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8fa5c2;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .06em;
  text-align: left;
  cursor: pointer;
}
.nav-group-toggle:hover,
.nav-group-toggle:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.07);
  outline: none;
}
.nav-group-chevron {
  font-size: 17px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .18s ease;
}
.nav-group-items {
  display: grid;
  gap: 4px;
  max-height: 280px;
  opacity: 1;
  overflow: hidden;
  transition: max-height .22s ease, opacity .16s ease;
}
.nav-group.collapsed .nav-group-items {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}
.nav-group.collapsed .nav-group-chevron {
  transform: rotate(-90deg);
}
.nav-group.has-active .nav-group-toggle {
  color: #bfd3f0;
}
.permission-level-list {
  display: grid;
  gap: 10px;
  width: 100%;
}
.permission-level-card {
  overflow: hidden;
  border: 1px solid #d8e4f4;
  border-radius: 14px;
  background: #fff;
}
.permission-level-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f6f9fe;
}
.permission-level-master {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #17375f;
  font-weight: 800;
}
.permission-level-master input,
.permission-level-children input {
  width: 17px;
  height: 17px;
  accent-color: #2563eb;
}
.permission-level-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.permission-level-toggle:hover {
  background: #eaf1fd;
  color: #1d4ed8;
}
.permission-level-card.collapsed .permission-level-toggle span {
  transform: rotate(-90deg);
}
.permission-level-toggle span {
  display: inline-block;
  transition: transform .18s ease;
}
.permission-level-children {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  padding: 10px;
}
.permission-level-card.collapsed .permission-level-children {
  display: none;
}
.permission-level-children .perm-item {
  min-height: 44px;
  margin: 0;
}
.permission-hierarchy-help {
  margin: 0 0 9px;
  color: #718197;
  font-size: 12px;
}
@media (max-width: 760px) {
  .permission-level-children {
    grid-template-columns: 1fr;
  }
}
.admin-main { min-width: 0; padding: 20px 24px 34px; }
.admin-topbar {
  min-height: 68px;
  padding: 13px 18px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 5px 18px rgba(31,55,86,.05);
}
.admin-topbar h1 { margin: 0 0 2px; font-size: 22px; }
.admin-topbar p { margin: 0; color: var(--admin-muted); }
.admin-body .panel {
  width: 100%;
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: var(--admin-panel);
  box-shadow: 0 5px 18px rgba(31,55,86,.045);
}
.admin-body .panel .panel-title { align-items: center; margin-bottom: 15px; }
.admin-body .panel .panel-title h2 { margin: 0; font-size: 19px; color: var(--admin-ink); }

/* 所有普通按钮保持白底；主操作只用蓝色；危险操作只用红色。 */
.admin-body button,
.admin-body .button-link {
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}
.admin-body .admin-primary,
.admin-body .primary-btn,
.admin-body button[type="submit"],
.admin-body .btn-primary {
  border-color: var(--admin-primary);
  background: var(--admin-primary);
  color: #fff;
  box-shadow: none;
}
.admin-body .admin-primary:hover,
.admin-body .primary-btn:hover,
.admin-body button[type="submit"]:hover,
.admin-body .btn-primary:hover {
  border-color: var(--admin-primary-hover);
  background: var(--admin-primary-hover);
}
.admin-body .admin-secondary,
.admin-body .ghost-btn,
.admin-body .outline-btn {
  border: 1px solid var(--admin-border);
  background: #fff;
  color: #23436c;
  box-shadow: none;
}
.admin-body .admin-secondary:hover,
.admin-body .ghost-btn:hover,
.admin-body .outline-btn:hover {
  border-color: #9eb8dc;
  background: #f8fbff;
  color: #174ea6;
}
.admin-body .danger-btn,
.admin-body .btn-danger {
  border-color: #fecaca;
  background: #fff;
  color: var(--admin-danger);
  box-shadow: none;
}
.admin-body .danger-btn:hover,
.admin-body .btn-danger:hover {
  border-color: var(--admin-danger);
  background: var(--admin-danger);
  color: #fff;
}
.admin-body button:disabled,
.admin-body .disabled {
  border-color: #dbe3ee !important;
  background: #edf1f6 !important;
  color: #91a0b4 !important;
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none !important;
}
.admin-body .small-btn,
.admin-body .mini-btn {
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
}
.admin-body .primary-mini {
  border: 1px solid var(--admin-primary);
  background: var(--admin-primary);
  color: #fff;
}
.admin-body .primary-mini:hover { background: var(--admin-primary-hover); }

.admin-body .toolbar,
.admin-body .filter-row,
.admin-body .panel-actions {
  align-items: center;
  gap: 10px;
}
.admin-body .table-wrap {
  width: 100%;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  overflow: auto;
}
.admin-body table { width: 100%; border-collapse: separate; border-spacing: 0; }
.admin-body th {
  height: 42px;
  padding: 10px 12px;
  background: #f6f8fc;
  color: #52647d;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.admin-body td {
  padding: 12px;
  border-top: 1px solid #edf1f6;
  color: #26364d;
  line-height: 1.45;
  vertical-align: middle;
}
.admin-body tbody tr:hover td { background: #fafcff; }
.admin-body .sticky-action-col {
  position: sticky;
  right: 0;
  z-index: 2;
  text-align: right;
  background: #fff;
  box-shadow: -7px 0 12px -12px rgba(23,32,51,.45);
}
.admin-body th.sticky-action-col { background: #f6f8fc; z-index: 3; }
.admin-body tbody tr:hover .sticky-action-col { background: #fafcff; }
.admin-body .cell-subline {
  display: block;
  margin-top: 3px;
  color: var(--admin-muted);
  font-size: 12px;
}
.admin-body .two-line-cell {
  max-width: 250px;
  overflow: hidden;
}
.admin-body .two-line-clamp {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}
.admin-body .mono-ellipsis {
  display: block;
  max-width: 185px;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-body .nowrap-cell { white-space: nowrap; }
.admin-body .order-identity-cell { min-width: 170px; }
#ordersTable { min-width: 1100px; table-layout: fixed; }
#studentsTable.student-info-table {
  width: 100% !important;
  min-width: 1160px !important;
  table-layout: fixed !important;
}
#studentsTable.student-info-table th,
#studentsTable.student-info-table td {
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
#shipmentsTable { min-width: 980px; table-layout: fixed; }
#ordersTable th:nth-child(1) { width: 185px; }
#ordersTable th:nth-child(2) { width: 220px; }
#ordersTable th:nth-child(3) { width: 120px; }
#ordersTable th:nth-child(4) { width: 100px; }
#ordersTable th:nth-child(5) { width: 115px; }
#ordersTable th:nth-child(6) { width: 105px; }
#ordersTable th:nth-child(7) { width: 125px; }
#ordersTable th:nth-child(8) { width: 125px; }
#ordersTable th:last-child { width: 108px; }
#studentsTable th:nth-child(1) { width: 46px; }
#studentsTable th:nth-child(2) { width: 75px; }
#studentsTable th:nth-child(3) { width: 175px; }
#studentsTable th:nth-child(4) { width: 130px; }
#studentsTable th:nth-child(5) { width: 190px; }
#studentsTable th:nth-child(6) { width: 215px; }
#studentsTable th:nth-child(7) { width: 100px; }
#studentsTable th:nth-child(8) { width: 125px; }
#studentsTable th:last-child { width: 105px; }
#studentsTable .nowrap-cell,
#studentsTable .student-action-cell,
#studentsTable td:nth-child(1),
#studentsTable td:nth-child(2) { white-space: nowrap !important; }

#dashboardView .stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
.stat-card,
.dashboard-card { height: 100%; min-width: 0; }
.provider-status-grid,
.integration-status-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}
.provider-status-grid > *,
.integration-status-grid > * { width: auto; min-width: 0; }
.form-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.form-footer-spacer { flex: 1; }

/* 发货详情采用右侧抽屉，列表只保留一个处理入口。 */
.admin-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr minmax(480px, 620px);
  height: 100dvh;
  overflow: hidden;
}
.admin-drawer.hidden { display: none; }
.admin-drawer-backdrop {
  grid-column: 1 / -1;
  grid-row: 1;
  border: 0;
  border-radius: 0;
  background: rgba(15,23,42,.42);
  backdrop-filter: blur(2px);
}
.admin-drawer-panel {
  grid-column: 2;
  grid-row: 1;
  z-index: 1;
  display: flex;
  min-width: 0;
  min-height: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  box-shadow: -20px 0 50px rgba(15,23,42,.16);
  animation: adminDrawerIn .18s ease-out;
}
@keyframes adminDrawerIn {
  from { transform: translateX(28px); opacity: .6; }
  to { transform: translateX(0); opacity: 1; }
}
.admin-drawer-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--admin-border);
}
.admin-drawer-head > div { flex: 1; min-width: 0; }
.admin-drawer-head h2 { margin: 0 0 4px; font-size: 20px; color: var(--admin-ink); }
.admin-drawer-head p { margin: 0; color: var(--admin-muted); }
.admin-drawer-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #fff;
  color: #53657d;
  font-size: 22px;
}
.admin-drawer-body { flex: 1; min-height: 0; overflow: auto; padding: 20px 22px; }
.drawer-section {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: #fff;
}
.drawer-section h3 { margin: 0 0 13px; font-size: 16px; color: var(--admin-ink); }
.drawer-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.drawer-summary-item {
  min-width: 0;
  padding: 11px 12px;
  border-radius: 9px;
  background: #f7f9fc;
}
.drawer-summary-item > span { display: block; margin-bottom: 4px; color: var(--admin-muted); font-size: 12px; }
.drawer-summary-item > strong { display: block; overflow-wrap: anywhere; color: var(--admin-ink); }
.drawer-form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.drawer-form-grid .full-row { grid-column: 1 / -1; }
.drawer-form-grid label { display: grid; gap: 6px; color: #42536a; font-size: 13px; font-weight: 700; }
.drawer-form-grid input,
.drawer-form-grid select,
.drawer-form-grid textarea { width: 100%; }
.admin-drawer-foot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 22px;
  border-top: 1px solid var(--admin-border);
  background: #fff;
}
.drawer-foot-spacer { flex: 1; }

/* V2.11.10：书籍包与课程匹配。 */
.book-config-rule-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #38506f;
}
.book-config-rule-note b { color: #174ea6; }
.book-item-chip {
  display: inline-flex;
  margin: 2px 6px 2px 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #235ca8;
  font-size: 12px;
  font-weight: 700;
}
#bookPackagesTable td small {
  display: block;
  margin-top: 4px;
  color: var(--admin-muted);
}
.admin-drawer-panel-wide { justify-self: end; }
.is-archived-row { opacity: .62; }
.book-items-title,
.book-mapping-package-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.book-items-title h3,
.book-mapping-package-head h3 { margin: 0; }
.book-items-title p,
.book-mapping-package-head span {
  margin: 3px 0 0;
  color: var(--admin-muted);
  font-size: 12px;
}
.book-item-editor-list { display: grid; gap: 10px; margin-top: 12px; }
.book-item-editor-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 92px auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: #f8fafc;
}
.book-item-row-actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px;
  align-items: center;
}
.book-item-row-actions small { grid-column: 1 / -1; color: var(--admin-muted); }
.book-item-image-upload { position: relative; overflow: hidden; }
.book-item-image-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.book-package-choice-grid { display: grid; gap: 8px; margin-top: 12px; }
.book-package-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.book-package-choice input { margin-top: 3px; }
.book-package-choice span { display: grid; gap: 3px; min-width: 0; }
.book-package-choice small { color: var(--admin-muted); overflow-wrap: anywhere; }
.book-package-choice-grid.is-disabled { opacity: .5; }
.drawer-form-grid label.check-line {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.drawer-form-grid label.check-line input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
}
.student-config-missing {
  padding: 13px 14px;
  border: 1px solid #f5c77d;
  border-radius: 10px;
  background: #fff8e8;
  color: #9a5b00;
  line-height: 1.65;
}

@media (max-width: 1480px) {
  .admin-main { padding-right: 18px; padding-left: 18px; }
}
@media (max-width: 1200px) {
  #dashboardView .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .admin-app { grid-template-columns: 1fr; }
  .admin-body .sidebar { position: static; min-height: auto; }
  .side-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-drawer { grid-template-columns: 1fr; }
  .admin-drawer-panel { grid-column: 1; width: min(100%,620px); justify-self: end; }
}
@media (max-width: 720px) {
  .admin-main { padding: 12px; }
  .admin-body .panel { padding: 14px; }
  .side-nav { grid-template-columns: 1fr; }
  #dashboardView .stat-grid { grid-template-columns: 1fr; }
  .drawer-summary-grid, .drawer-form-grid { grid-template-columns: 1fr; }
  .drawer-form-grid .full-row { grid-column: auto; }
  .admin-drawer-foot { flex-wrap: wrap; }
  .book-config-rule-note { grid-template-columns: 1fr; }
  .book-item-editor-row { grid-template-columns: 1fr; }
  .book-item-row-actions { grid-template-columns: 1fr 1fr; }
}

/* V2.11.04：后台第二阶段——列表详情抽屉、同步/日志/权限整理。 */
.admin-body .sidebar .sidebar-brand .sidebar-brand-title {
  display: block;
  color: #ffffff !important;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .22);
}

/* V2.11.05：课程、合同、QQ群与分班业务配置中心。 */
.business-config-intro {
  border-color: rgba(39, 108, 235, .2);
  background:
    radial-gradient(circle at 100% 0, rgba(72, 150, 255, .12), transparent 34%),
    rgba(255, 255, 255, .92);
}

.business-alert-list {
  display: grid;
  gap: 10px;
}

.business-alert-summary,
.business-alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #d9e3f2;
  border-radius: 14px;
  background: #f8fbff;
}

.business-alert-summary {
  border-color: #f2ca8c;
  background: #fff9ef;
}

.business-alert-summary span,
.business-alert-row span,
.business-alert-row small {
  display: block;
  margin-top: 4px;
  color: #65758b;
}

.business-config-form-fields > .profile-form {
  width: 100%;
}

.business-workflow-box,
.business-question-builder {
  padding: 18px;
  border: 1px solid #d8e3f3;
  border-radius: 18px;
  background: #f8fbff;
}

.business-workflow-box h3,
.business-question-builder h3 {
  margin: 0 0 6px;
}

.business-question-builder-title,
.business-question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#businessCourseQuestionList {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.business-question-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .55fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid #dce7f5;
  border-radius: 16px;
  background: #fff;
}

.business-question-head {
  grid-column: 1 / -1;
}

.student-custom-questions {
  display: grid;
  gap: 16px;
}

.student-custom-question em,
.student-custom-question small {
  margin-left: 6px;
  font-style: normal;
  font-size: 12px;
}

.student-custom-question em {
  color: #e34d59;
}

.custom-choice-group {
  margin: 0;
  padding: 15px;
  border: 1px solid #d8e3f3;
  border-radius: 16px;
}

.custom-choice-group legend {
  padding: 0 6px;
  font-weight: 800;
}

.custom-choice-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.custom-choice-group label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

@media (max-width: 720px) {
  .business-question-row {
    grid-template-columns: 1fr;
  }

  .business-question-head,
  .business-question-row .full-row {
    grid-column: 1;
  }
}

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

.code-textarea {
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

#businessConfigView table code {
  white-space: nowrap;
  color: #174ea6;
  font-weight: 750;
}

#businessConfigView .panel-title > div {
  min-width: 0;
}

@media (max-width: 760px) {
  .business-alert-summary,
  .business-alert-row {
    align-items: stretch;
    flex-direction: column;
  }

  .config-check-grid {
    grid-template-columns: 1fr;
  }
}
.admin-body .sidebar .sidebar-brand #regionName {
  color: #bfdbfe !important;
  line-height: 1.4;
}

.clickable-data-row { cursor: pointer; }
.clickable-data-row td { transition: background-color .15s ease; }
.clickable-data-row:hover td { background: #f5f8ff !important; }
.clickable-data-row:focus-within td { background: #f5f8ff; }

.admin-drawer-panel-wide { width: min(720px, 100vw); }
#businessConfigDrawer,
#studentEditModal,
#accountPermModal {
  grid-template-columns: 1fr minmax(480px, 720px);
}
.drawer-summary-card {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #e8edf5;
  border-radius: 10px;
  background: #f8faff;
}
.drawer-summary-card.full { grid-column: 1 / -1; }
.drawer-summary-card > span:first-child {
  display: block;
  margin-bottom: 5px;
  color: var(--admin-muted);
  font-size: 12px;
}
.drawer-summary-card > b {
  display: block;
  overflow-wrap: anywhere;
  color: var(--admin-ink);
  font-size: 14px;
  line-height: 1.5;
}
.drawer-edit-form { gap: 14px; }
.drawer-edit-form .form-footer-actions {
  position: sticky;
  bottom: -20px;
  z-index: 3;
  margin: 8px -22px -20px;
  padding: 14px 22px;
  border-top: 1px solid var(--admin-border);
  background: rgba(255,255,255,.97);
  box-shadow: 0 -10px 24px rgba(15,23,42,.05);
}
.drawer-json {
  max-height: 430px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-radius: 10px;
  background: #111827;
  color: #dbeafe;
  font: 12px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.page-summary-strip,
.account-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 14px;
}
.page-summary-strip > span,
.account-summary > span {
  min-width: 150px;
  padding: 10px 13px;
  border: 1px solid #dce5f2;
  border-radius: 10px;
  background: #f8faff;
  color: #607089;
}
.page-summary-strip b,
.account-summary b { color: var(--admin-ink); font-size: 16px; }

.account-create-block {
  margin: 12px 0 14px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: #fbfcff;
}
.account-create-block > summary {
  padding: 13px 15px;
  color: var(--admin-ink);
  font-weight: 800;
  cursor: pointer;
}
.account-create-block[open] > summary { border-bottom: 1px solid var(--admin-border); }
.account-create-form { padding: 15px; }

.integration-overview-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}
.integration-overview-panel > .recent-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.integration-overview-panel > .recent-list > * {
  min-width: 0;
  height: 100%;
}
.integration-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f2;
  border-radius: 12px;
  background: #f8faff;
}
.integration-actions .primary-btn { order: -1; }
.integration-actions button { min-width: 144px; }

@media (max-width: 720px) {
  #businessConfigDrawer,
  #studentEditModal,
  #accountPermModal {
    grid-template-columns: 1fr;
  }
  .admin-drawer-panel-wide { width: 100%; }
  .drawer-summary-card.full { grid-column: auto; }
  .drawer-edit-form .form-footer-actions { bottom: -20px; flex-wrap: wrap; }
  .page-summary-strip > span,
  .account-summary > span { min-width: 0; flex: 1 1 120px; }
  .integration-actions { align-items: stretch; }
  .integration-actions button { width: 100%; min-width: 0; }
}

/* V2.11.06：四渠道订单批量导入 */
.order-import-shell {
  width: min(1480px, calc(100% - 36px));
}
.order-import-panel {
  margin-top: 18px;
}
.order-template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.order-template-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dbe5f3;
  border-radius: 14px;
  background: #f8faff;
}
.order-template-card h3 {
  margin: 1px 0 5px;
  color: #10233d;
  font-size: 16px;
}
.order-template-card p {
  min-height: 42px;
  margin: 0;
  color: #6b7c94;
  font-size: 13px;
  line-height: 1.6;
}
.order-template-card button {
  grid-column: 1 / -1;
  width: 100%;
}
.order-template-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2f6df6, #64b8f1);
  color: #fff;
  font-weight: 900;
}
.order-import-notice {
  margin-top: 14px;
}
.order-import-upload-grid {
  display: grid;
  grid-template-columns: minmax(220px, .45fr) minmax(320px, 1fr);
  gap: 16px;
}
.order-import-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.order-import-summary > span {
  min-width: 145px;
  padding: 11px 14px;
  border: 1px solid #dce5f2;
  border-radius: 11px;
  background: #f8faff;
  color: #62738b;
}
.order-import-summary > span.ready {
  border-color: #bdebd8;
  background: #effbf6;
}
.order-import-summary > span.duplicate {
  border-color: #f7deb0;
  background: #fff9ed;
}
.order-import-summary > span.error {
  border-color: #ffd0cb;
  background: #fff4f2;
}
.order-import-summary b {
  margin-left: 4px;
  color: #10233d;
  font-size: 17px;
}
.order-import-table-wrap {
  max-height: 560px;
  overflow: auto;
}
.order-import-table-wrap table {
  min-width: 1120px;
}
.order-import-table-wrap thead {
  position: sticky;
  top: 0;
  z-index: 2;
}
.order-import-table-wrap tr.import-row-error td {
  background: #fff8f7;
}
.order-import-table-wrap tr.import-row-duplicate td {
  background: #fffdf7;
}
.import-error-message {
  display: block;
  max-width: 290px;
  margin-top: 6px;
  color: #c24135;
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
}
.order-import-confirm-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 14px -20px -20px;
  padding: 14px 20px 20px;
  border-top: 1px solid #e4eaf3;
  background: rgba(255,255,255,.97);
}
#orderImportResult {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 1100px) {
  .order-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .order-import-shell { width: min(100% - 20px, 1480px); }
  .order-template-grid,
  .order-import-upload-grid { grid-template-columns: 1fr; }
  .order-import-summary > span { min-width: 0; flex: 1 1 130px; }
  .order-import-confirm-actions { flex-direction: column; }
  .order-import-confirm-actions button { width: 100%; }
}
/* V2.11.11 unified course wizard and integration platform editor */
.course-wizard-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 18px}
.course-wizard-steps span{display:flex;align-items:center;gap:7px;min-height:42px;padding:8px 10px;border:1px solid #dbe7f7;border-radius:12px;background:#f6f9ff;color:#355176;font-size:13px}
.course-wizard-steps b{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#2463eb;color:#fff;font-size:12px}
.wizard-resource-box{padding:16px;border:1px solid #dce7f5;border-radius:16px;background:#f8fbff;margin-top:12px}
.wizard-resource-box h3{margin:0 0 6px}.wizard-resource-box p{margin:0 0 12px;color:#6d7f98;font-size:13px}
.integration-modal-card{width:min(1120px,94vw);max-height:92vh;overflow:auto}
.integration-form{grid-template-columns:repeat(2,minmax(0,1fr))}
.integration-preview{margin-top:16px}.integration-preview:empty{display:none}
.business-integration-preview{margin-top:14px}
.modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:18px}
.book-item-editor-row[data-image]{position:relative}
.book-item-editor-row[data-image]:not([data-image=""])::before{content:"已上传封面";position:absolute;right:12px;top:8px;padding:3px 7px;border-radius:999px;background:#e7f5ee;color:#128455;font-size:11px;font-weight:700}
@media(max-width:760px){.course-wizard-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.integration-form{grid-template-columns:1fr}}

/* V2.11.12 independent course center and publishing wizard */
.admin-body .sidebar {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
}
.admin-body .side-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.admin-body .logout-btn {
  flex: 0 0 auto;
}
.course-center-intro {
  background:
    radial-gradient(circle at 92% 12%, rgba(77, 150, 255, .16), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(240,247,255,.98));
}
.course-center-intro .panel-title,
.course-wizard-header {
  align-items: center;
}
.course-center-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.course-center-stat-grid > div {
  display: grid;
  gap: 5px;
  min-height: 116px;
  padding: 18px;
  border: 1px solid #dce8f8;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 28px rgba(45, 91, 158, .07);
}
.course-center-stat-grid span,
.course-center-stat-grid small {
  color: #70819a;
}
.course-center-stat-grid b {
  color: #173865;
  font-size: 30px;
  line-height: 1.05;
}
.course-center-filters {
  display: flex;
  gap: 10px;
}
.course-center-filters .input:first-child {
  width: min(320px, 34vw);
}
.course-center-filters .input:last-child {
  width: 148px;
}
.course-draft-row td {
  background: #fffcf5;
}
.course-flow-cell {
  min-width: 260px;
  white-space: normal;
}
.mini-progress {
  width: min(240px, 100%);
  height: 7px;
  margin-bottom: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf8;
}
.mini-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f6df6, #5eaaf4);
}
.course-wizard-page {
  min-width: 0;
}
.course-wizard-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  margin-bottom: 16px;
}
.course-wizard-heading {
  min-width: 0;
}
.course-wizard-heading h2 {
  margin: 6px 0 4px;
}
.course-wizard-heading p {
  margin: 0;
  color: #6d7f98;
}
.save-state.ok { color: #128455; }
.save-state.error { color: #c63f34; }
.course-wizard-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.course-wizard-nav {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 7px;
  padding: 12px;
}
.course-wizard-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #405673;
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}
.course-wizard-step:hover:not(:disabled) {
  border-color: #cfe0fa;
  background: #f4f8ff;
}
.course-wizard-step b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 11px;
  background: #e8eff9;
  color: #647b99;
}
.course-wizard-step span {
  display: grid;
  gap: 3px;
  font-weight: 800;
  line-height: 1.3;
}
.course-wizard-step small {
  color: #8291a6;
  font-size: 11px;
  font-weight: 500;
}
.course-wizard-step.active {
  border-color: #bcd4ff;
  background: linear-gradient(135deg, #edf4ff, #f7fbff);
  color: #174da8;
  box-shadow: 0 8px 22px rgba(35, 98, 225, .11);
}
.course-wizard-step.active b {
  background: linear-gradient(135deg, #2f6df6, #1c55da);
  color: #fff;
}
.course-wizard-step.completed b {
  background: #dff6ec;
  color: #128455;
}
.course-wizard-step.active.completed b {
  background: linear-gradient(135deg, #2f6df6, #1c55da);
  color: #fff;
}
.course-wizard-step:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.course-wizard-workspace {
  min-width: 0;
  padding-bottom: 0;
  overflow: hidden;
}
#courseWizardStepContent {
  min-height: 520px;
}
.wizard-step-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid #e5ebf4;
}
.wizard-step-heading > span {
  color: #2c67dc;
  font-size: 13px;
  font-weight: 800;
}
.wizard-step-heading h2 {
  margin: 7px 0 6px;
  font-size: 25px;
}
.wizard-step-heading p {
  max-width: 860px;
  margin: 0;
  color: #6c7d95;
  line-height: 1.65;
}
.wizard-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.wizard-form-grid .full-row {
  grid-column: 1 / -1;
}
.wizard-callout {
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid #cfe0fa;
  border-radius: 13px;
  background: #f4f8ff;
  color: #536b8d;
  line-height: 1.6;
}
.wizard-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.wizard-resource-card,
.wizard-section-block {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #dde6f2;
  border-radius: 17px;
  background: #fbfcff;
}
.wizard-resource-card-title,
.wizard-section-title,
.wizard-resource-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.wizard-resource-card-title > div,
.wizard-section-title > div,
.wizard-resource-toolbar > div {
  min-width: 0;
}
.wizard-resource-card-title b,
.wizard-resource-card-title span {
  display: block;
}
.wizard-resource-card-title span,
.wizard-section-title p,
.wizard-resource-toolbar p {
  margin: 3px 0 0;
  color: #71829b;
  font-size: 13px;
}
.wizard-resource-card .textarea {
  min-height: 112px;
  margin-top: 12px;
}
.wizard-section-title h3,
.wizard-resource-toolbar h3 {
  margin: 0;
}
.wizard-base-fields {
  margin-top: 14px;
}
.wizard-field-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid #dce5f2;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
}
.wizard-field-choice input {
  margin-top: 3px;
  accent-color: #2867eb;
}
.wizard-field-choice span {
  display: grid;
  gap: 4px;
}
.wizard-field-choice small {
  color: #7c8ca1;
  font-weight: 500;
}
.wizard-question-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #dce5f2;
  border-radius: 14px;
  background: #fff;
}
.wizard-question-order {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.wizard-question-order > b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: #eaf2ff;
  color: #2463e7;
}
.wizard-question-order .row-actions {
  flex-wrap: wrap;
}
.wizard-question-order button {
  min-width: 30px;
  padding: 7px 8px;
}
.wizard-resource-toolbar {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #dce7f5;
  border-radius: 14px;
  background: #f7faff;
}
.wizard-inline-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}
.wizard-inline-settings .field-label {
  min-width: 230px;
}
.book-package-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}
.book-package-choice-grid .check-row,
.wizard-contract-choice + span {
  min-width: 0;
}
.wizard-override-details {
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid #dce5f2;
  border-radius: 14px;
  background: #fff;
}
.wizard-override-details summary {
  color: #284c7d;
  font-weight: 800;
  cursor: pointer;
}
.wizard-disabled-section {
  opacity: .55;
  pointer-events: none;
}
.wizard-manual-group {
  display: grid;
  gap: 8px;
}
.wizard-manual-group > b {
  color: #385577;
}
.wizard-empty-success {
  margin-top: 18px;
  padding: 26px;
  border: 1px dashed #a7d7c3;
  border-radius: 17px;
  background: #f2fbf7;
  text-align: center;
}
.wizard-empty-success b {
  color: #128455;
  font-size: 18px;
}
.wizard-empty-success p {
  margin: 7px 0 0;
  color: #668073;
}
.wizard-validation-summary {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #bdebd8;
  border-radius: 16px;
  background: #f1fbf7;
}
.wizard-validation-summary.has-errors {
  border-color: #ffd1cb;
  background: #fff6f5;
}
.wizard-validation-summary > b {
  color: #128455;
  font-size: 18px;
}
.wizard-validation-summary.has-errors > b {
  color: #c24135;
}
.wizard-error-list,
.wizard-warning-list {
  display: grid;
  gap: 7px;
}
.wizard-error-list span,
.wizard-warning-list span {
  padding-left: 14px;
  color: #6c4350;
}
.wizard-error-list span::before,
.wizard-warning-list span::before {
  content: "•";
  margin-left: -13px;
  margin-right: 7px;
}
.wizard-publish-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr);
  gap: 16px;
  margin-top: 16px;
}
.wizard-publish-summary > div {
  padding: 16px;
  border: 1px solid #dce5f2;
  border-radius: 15px;
  background: #fff;
}
.preview-resource-line {
  margin-top: 8px;
  color: #5f738e;
}
.course-student-preview {
  margin-top: 18px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, #eef4ff, #f8fbff);
}
.course-student-preview .student-preview-card {
  max-width: 720px;
  margin: auto;
  padding: 22px;
  border: 1px solid #d3e2f7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(45, 91, 158, .1);
}
.course-wizard-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 22px -20px 0;
  padding: 15px 20px 20px;
  border-top: 1px solid #e4eaf3;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
}
.course-wizard-action-spacer {
  flex: 1 1 auto;
}
.resource-quick-modal {
  width: min(760px, 94vw);
  max-height: 90vh;
  overflow: auto;
}
.resource-quick-modal .wizard-form-grid {
  margin-top: 12px;
}
.resource-quick-modal .modal-actions {
  position: sticky;
  bottom: 0;
  padding-top: 13px;
  background: #fff;
}
.api-integration-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.api-integration-guide > span {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid #dce7f5;
  border-radius: 14px;
  background: #f7faff;
  color: #4f6686;
  font-weight: 750;
}
.api-integration-guide b {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border-radius: 10px;
  background: #2867eb;
  color: #fff;
}

@media (max-width: 1180px) {
  .course-center-stat-grid,
  .api-integration-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-wizard-layout { grid-template-columns: 215px minmax(0, 1fr); }
  .course-wizard-step { grid-template-columns: 30px minmax(0, 1fr); padding: 9px; }
}

@media (max-width: 900px) {
  .course-wizard-header { grid-template-columns: 1fr auto; }
  .course-wizard-header > :first-child { grid-column: 1 / -1; justify-self: start; }
  .course-wizard-layout { grid-template-columns: 1fr; }
  .course-wizard-nav {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .course-wizard-step {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .course-wizard-step small { display: none; }
  .wizard-resource-grid,
  .wizard-publish-summary { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .admin-body .sidebar { max-height: none; }
  .admin-body .side-nav { overflow: visible; }
  .course-center-stat-grid,
  .api-integration-guide,
  .wizard-form-grid,
  .book-package-choice-grid { grid-template-columns: 1fr; }
  .course-center-intro .panel-title,
  .course-center-filters,
  .wizard-section-title,
  .wizard-resource-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .course-center-filters .input:first-child,
  .course-center-filters .input:last-child { width: 100%; }
  .course-wizard-header { grid-template-columns: 1fr; }
  .course-wizard-header > * { justify-self: stretch; }
  .course-wizard-header .danger-btn { width: 100%; }
  .course-wizard-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 9px;
  }
  .course-wizard-step {
    min-height: 58px;
    grid-template-columns: 28px minmax(0, 1fr);
    justify-items: stretch;
    text-align: left;
  }
  .course-wizard-step b { width: 28px; height: 28px; }
  .wizard-step-heading h2 { font-size: 22px; }
  .wizard-question-card { grid-template-columns: 1fr; }
  .wizard-question-order { flex-direction: row; align-items: center; }
  .wizard-inline-settings,
  .course-wizard-actions { flex-direction: column; align-items: stretch; }
  .wizard-inline-settings .field-label { min-width: 0; }
  .course-wizard-action-spacer { display: none; }
  .course-wizard-actions button { width: 100%; }
}

/* ===== V2.11.14 后台分页与课程向导统一规范 ===== */
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px 2px 0;
  border-top: 1px solid var(--admin-border, #e2e8f0);
  color: var(--admin-muted, #6b7c93);
  font-size: 13px;
}
.table-pagination-summary {
  font-weight: 700;
  white-space: nowrap;
}
.table-pagination-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.table-pagination-actions label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--admin-muted, #6b7c93);
  white-space: nowrap;
}
.table-pagination .pagination-size {
  width: 92px;
  min-height: 40px;
  padding: 7px 10px;
  border-radius: 10px;
}
.table-pagination .compact-btn {
  min-width: 76px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
}

.admin-body .course-wizard-page {
  color: var(--admin-ink, #17263a);
  font-size: 14px;
}
.admin-body .course-wizard-header {
  gap: 16px;
  min-height: 96px;
  margin-bottom: 16px;
  padding: 20px;
}
.admin-body .course-wizard-heading h2 {
  margin: 6px 0 3px;
  color: var(--admin-ink, #17263a);
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: 0;
}
.admin-body .course-wizard-heading p {
  color: var(--admin-muted, #6b7c93);
  font-size: 13px;
  line-height: 1.55;
}
.admin-body .course-wizard-header .compact-btn,
.admin-body .course-wizard-actions button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}
.admin-body .course-wizard-layout {
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 16px;
}
.admin-body .course-wizard-nav {
  gap: 6px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
}
.admin-body .course-wizard-step {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  min-height: 58px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #405673;
  font-size: 14px;
}
.admin-body .course-wizard-step b {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 14px;
}
.admin-body .course-wizard-step span {
  gap: 2px;
  font-weight: 700;
}
.admin-body .course-wizard-step small {
  color: #7c8ca1;
  font-size: 11px;
  line-height: 1.4;
}
.admin-body .course-wizard-step.active {
  border-color: #bcd4ff;
  background: #f2f7ff;
  box-shadow: none;
}
.admin-body .course-wizard-step:disabled {
  border-color: transparent !important;
  background: #f5f7fa !important;
  color: #8b99ab !important;
  opacity: 1;
}
.admin-body .course-wizard-workspace {
  margin-top: 16px;
  padding: 20px 20px 0;
  border-radius: 14px;
}
.admin-body #courseWizardStepContent {
  min-height: 430px;
}
.admin-body .wizard-step-heading {
  padding-bottom: 15px;
}
.admin-body .wizard-step-heading > span {
  color: var(--admin-primary, #2867eb);
  font-size: 12px;
  font-weight: 700;
}
.admin-body .wizard-step-heading h2 {
  margin: 6px 0 5px;
  color: var(--admin-ink, #17263a);
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: 0;
}
.admin-body .wizard-step-heading p,
.admin-body .wizard-callout,
.admin-body .wizard-resource-card-title span,
.admin-body .wizard-section-title p,
.admin-body .wizard-resource-toolbar p {
  font-size: 13px;
  line-height: 1.6;
}
.admin-body .wizard-form-grid {
  gap: 14px;
  margin-top: 16px;
}
.admin-body .wizard-form-grid .field-label {
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}
.admin-body .wizard-form-grid .input,
.admin-body .wizard-resource-card .input,
.admin-body .wizard-section-block .input {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}
.admin-body .wizard-form-grid .textarea,
.admin-body .wizard-resource-card .textarea {
  min-height: 96px;
}
.admin-body .wizard-callout,
.admin-body .wizard-resource-card,
.admin-body .wizard-section-block,
.admin-body .wizard-resource-toolbar {
  border-radius: 12px;
}
.admin-body .course-wizard-actions {
  margin: 18px -20px 0;
  padding: 14px 20px 18px;
}

@media (max-width: 900px) {
  .admin-body .course-wizard-layout { grid-template-columns: 1fr; }
  .admin-body .course-wizard-nav,
  .admin-body .course-wizard-workspace { margin-top: 0; }
}

@media (max-width: 720px) {
  .table-pagination,
  .table-pagination-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .table-pagination-actions label { justify-content: space-between; }
  .table-pagination .pagination-size { width: 120px; }
  .admin-body .course-wizard-header,
  .admin-body .course-wizard-workspace { padding: 14px; }
  .admin-body .course-wizard-actions {
    margin: 16px -14px 0;
    padding: 12px 14px 14px;
  }
}

/* ===== V2.11.18 学生端官网级服务清单与统一交互 ===== */
.student-layout {
  width: min(100% - 32px, 980px);
  gap: 18px;
  color: #15283f;
  font-size: 15px;
}
.student-layout .student-banner,
.student-layout .student-step-card,
.student-layout .form-card,
.student-layout .success-card {
  border-radius: 22px;
  border-color: rgba(109, 143, 190, .22);
  box-shadow: 0 18px 48px rgba(40, 79, 135, .10);
}
.student-layout .student-banner h1,
.student-layout .login-panel h1 {
  font-size: clamp(32px, 4.2vw, 40px);
  letter-spacing: -.02em;
}
.student-layout .student-banner p,
.student-layout .student-step-card > p,
.student-layout .hint,
.student-layout .student-contract-meta,
.student-layout .qq-group-card-copy > p {
  font-size: 14px;
  line-height: 1.72;
}
.student-layout .student-step-title { font-size: 21px; }

/* 展开与折叠使用完全相同的标题坐标，正文单独缩进。 */
.student-step-panel.is-complete {
  padding: 8px 12px;
}
.student-step-panel.is-complete > .student-panel-summary {
  min-height: 62px;
  padding: 10px 12px;
}
.student-step-panel.is-complete:not(.is-collapsed) > :not(.student-panel-summary) {
  margin-right: 28px;
  margin-left: 28px;
}
.student-step-panel.is-complete:not(.is-collapsed) > .student-panel-summary + * {
  margin-top: 18px;
}
.student-panel-summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 30px;
  gap: 12px;
}
.student-panel-summary-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 12px;
}
.student-panel-summary-copy b { font-size: 15px; line-height: 1.35; }
.student-panel-summary-copy small { font-size: 12px; line-height: 1.45; }
.student-panel-summary-status {
  max-width: none;
  padding: 7px 12px;
  font-size: 12px;
}

/* 第三、第四步共用同一标题和状态规范。 */
.student-stage-heading {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px;
}
.student-stage-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.student-stage-copy .student-step-title { margin: 1px 0 5px; }
.student-stage-status,
.student-contract-badge {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  font-size: 12px;
}

/* 方案 B：完成中心采用纵向服务清单。 */
.student-completion-center {
  gap: 16px;
  padding: 26px;
  background: linear-gradient(152deg, rgba(255,255,255,.99), rgba(245,249,255,.98));
}
.student-completion-list {
  display: grid;
  gap: 10px;
}
.student-completion-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(112px, auto) auto;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 13px 15px;
  border: 1px solid #dbe7f5;
  border-radius: 15px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 22px rgba(39, 77, 130, .06);
}
.student-completion-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: #edf4ff;
  color: #2765dd;
}
.student-completion-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}
.student-completion-copy { min-width: 0; }
.student-completion-copy > span {
  display: block;
  color: #162b46;
  font-size: 15px;
  font-weight: 800;
}
.student-completion-copy > small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #6c809a;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.student-completion-item > b {
  margin: 0;
  color: #0b8a61;
  font-size: 13px;
  text-align: right;
}
.student-completion-link {
  min-width: 96px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #d1def0;
  border-radius: 10px;
  background: #fff;
  color: #245493;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.student-completion-link:hover {
  border-color: #9fbcf2;
  background: #f2f7ff;
}
.student-completion-actions {
  display: flex;
  gap: 10px;
  margin-top: 0;
}
.student-completion-actions > * {
  min-height: 44px;
  flex: 1 1 0;
  justify-content: center;
  border-radius: 12px;
}

/* 课程服务详情使用纵向列表卡片，不再使用大装饰图标。 */
.student-service-hub {
  margin-top: 8px;
  padding-top: 22px;
}
.student-service-hub-head {
  align-items: center;
  margin-bottom: 14px;
}
.student-service-hub-head h3 { font-size: 19px; }
.student-service-list {
  display: grid;
  gap: 12px;
}
.student-service-card {
  min-height: 0;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(35, 70, 120, .07);
}
.student-service-card.qq-group-card,
.student-service-card.plaso-account-card {
  background: linear-gradient(145deg, #fff, #f5f9ff);
}
.student-service-card .qq-group-card-heading {
  display: block;
}
.student-service-card .qq-group-card-title-block .student-step-title,
.student-service-card .plaso-account-head .student-step-title {
  margin: 4px 0 0;
  font-size: 18px;
}
.student-service-card .qq-group-card-copy {
  margin: 14px 0 16px;
}
.student-service-card .qq-group-card-meta > * {
  min-height: 36px;
  border-radius: 10px;
}
.student-layout .student-service-action,
.student-layout .plaso-copy-inline,
.student-layout .plaso-copy-full {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 13px;
  font-size: 14px;
  line-height: 1.2;
}
.student-layout .student-service-action span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.student-service-card .plaso-credential-row {
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  padding-right: 0;
  padding-left: 0;
}
.student-service-card .plaso-credential-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  align-items: center;
}
.student-layout .student-service-card .student-service-action,
.student-layout .student-service-card .plaso-copy-inline,
.student-layout .student-service-card .plaso-copy-full {
  width: 100%;
  height: 50px;
  min-height: 50px;
}

.student-quick-nav {
  min-height: 48px;
  border-radius: 15px;
  box-shadow: 0 14px 34px rgba(28, 75, 177, .30);
}

@media (max-width: 720px) {
  .student-layout {
    width: min(100% - 14px, 980px);
    gap: 12px;
    font-size: 14px;
  }
  .student-layout .student-banner { padding: 22px 20px; }
  .student-layout .student-banner h1 { font-size: clamp(28px, 9vw, 32px); }
  .student-layout .student-step-title { font-size: 19px; }
  .student-step-panel.is-complete:not(.is-collapsed) > :not(.student-panel-summary) {
    margin-right: 8px;
    margin-left: 8px;
  }
  .student-panel-summary {
    grid-template-columns: 36px minmax(0, 1fr) 28px;
    gap: 10px;
  }
  .student-panel-summary-icon { width: 36px; height: 36px; }
  .student-panel-summary-status {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-top: 2px;
    max-width: 100%;
  }
  .student-panel-summary-chevron {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .student-stage-heading {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
  }
  .student-stage-heading > .student-stage-status,
  .student-stage-heading > .student-contract-badge {
    grid-column: 2;
    justify-self: start;
  }
  .student-completion-center { padding: 18px 14px; }
  .student-completion-item {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 76px;
    padding: 12px;
  }
  .student-completion-icon { width: 38px; height: 38px; }
  .student-completion-item > b {
    max-width: 100px;
    font-size: 12px;
  }
  .student-completion-link {
    grid-column: 2 / -1;
    width: 100%;
    min-height: 40px;
  }
  .student-completion-actions { flex-direction: column; }
  .student-service-hub-head { align-items: flex-start; }
  .student-service-card { padding: 16px; }
  .student-service-card .plaso-credential-row,
  .student-service-card .plaso-credential-value { grid-template-columns: 1fr; }
  .student-service-card .plaso-credential-value { gap: 9px; }
  .student-quick-nav {
    width: 46px;
    height: 46px;
    min-height: 46px;
    border-radius: 50%;
  }
}

@media (max-width: 430px) {
  .student-completion-copy > small { white-space: normal; }
  .student-completion-item > b { max-width: 88px; }
  .student-service-card .qq-group-card-meta { grid-template-columns: 1fr; }
  .student-service-card .qq-group-card-meta > * { justify-content: center; }
}

/* V2.11.20 STUDENT_ALIGNMENT_TYPOGRAPHY_START */
/* The four top steps are independent cards. A connector here looked like a stray line. */
.student-layout .student-steps::before {
  content: none !important;
  display: none !important;
}

/* One fixed summary grid is used for both collapsed and expanded panels. */
.student-layout .student-step-panel.is-complete,
.student-layout .student-step-panel.is-complete.is-collapsed {
  box-sizing: border-box;
  padding: 0 !important;
  overflow: hidden;
}
.student-layout .student-step-panel.is-complete > .student-panel-summary {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 300px 30px !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
  min-height: 84px !important;
  margin: 0 !important;
  padding: 16px 20px !important;
  border: 0 !important;
  border-radius: 19px !important;
  background: transparent;
}
.student-layout .student-step-panel.is-complete:not(.is-collapsed) > .student-panel-summary {
  min-height: 84px !important;
  margin: 0 !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid #dce7f6 !important;
  border-radius: 19px 19px 0 0 !important;
}
.student-layout .student-panel-summary-icon {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  font-size: 16px !important;
}
.student-layout .student-panel-summary-copy {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  min-width: 0;
}
.student-layout .student-panel-summary-copy b {
  font-size: 17px !important;
  line-height: 1.35 !important;
}
.student-layout .student-panel-summary-copy small {
  margin-top: 3px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}
.student-layout .student-panel-summary-status {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  width: 300px !important;
  max-width: 300px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
}
.student-layout .student-panel-summary-chevron {
  grid-column: 4 !important;
  grid-row: 1 !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
}

/* Expanded content is indented independently; the header never moves. */
.student-layout .student-step-panel.is-complete:not(.is-collapsed) > :not(.student-panel-summary) {
  box-sizing: border-box;
  margin-right: 40px !important;
  margin-left: 40px !important;
}
.student-layout .student-step-panel.is-complete:not(.is-collapsed) > .student-panel-summary + * {
  margin-top: 22px !important;
}

/* Compact, consistent typography inside expanded workflow panels. */
.student-layout .student-step-panel .student-step-title,
.student-layout .student-step-panel > h2,
.student-layout .student-stage-copy .student-step-title {
  font-size: 21px !important;
  line-height: 1.35 !important;
  letter-spacing: -.015em;
}
.student-layout .student-step-panel .field-label,
.student-layout .student-step-panel label,
.student-layout .student-step-panel h3,
.student-layout .student-step-panel strong {
  line-height: 1.5;
}
.student-layout .student-step-panel .field-label { font-size: 14px; }
.student-layout .student-step-panel .hint,
.student-layout .student-step-panel p {
  font-size: 14px;
  line-height: 1.65;
}
.student-layout .student-step-panel .input,
.student-layout .student-step-panel button,
.student-layout .student-step-panel a { font-size: 14px; }

/* Contract progress: one unobtrusive line behind the dots, centre to centre. */
.student-layout #studentContractBox .student-contract-section-title {
  margin-top: 24px !important;
  margin-bottom: 18px !important;
  font-size: 18px !important;
  line-height: 1.4 !important;
}
.student-layout #studentContractBox .student-contract-progress {
  position: relative !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 0 !important;
  padding: 0 0 22px !important;
  border: 0 !important;
  background: transparent !important;
}
.student-layout #studentContractBox .student-contract-progress::before {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  top: 10px !important;
  left: 12.5% !important;
  right: 12.5% !important;
  height: 2px !important;
  background: #cbd7e8 !important;
  pointer-events: none;
}
.student-layout #studentContractBox .student-contract-progress span {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
  min-width: 0;
  padding: 0 5px !important;
  border: 0 !important;
  background: transparent !important;
  color: #667b99 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  text-align: center !important;
}
.student-layout #studentContractBox .student-contract-progress span::before {
  position: relative !important;
  z-index: 2 !important;
  box-sizing: border-box;
  width: 20px !important;
  height: 20px !important;
  background-color: #fff !important;
}
.student-layout #studentContractBox .student-contract-progress span.done::before,
.student-layout #studentContractBox .student-contract-progress span.active::before {
  border-color: #2563eb !important;
  background-color: #2563eb !important;
  box-shadow: inset 0 0 0 4px #fff !important;
}

@media (max-width: 720px) {
  .student-layout .student-step-panel.is-complete > .student-panel-summary,
  .student-layout .student-step-panel.is-complete:not(.is-collapsed) > .student-panel-summary {
    grid-template-columns: 40px minmax(0, 1fr) 28px !important;
    grid-template-rows: auto auto !important;
    column-gap: 11px !important;
    row-gap: 3px !important;
    min-height: 76px !important;
    padding: 14px 15px !important;
  }
  .student-layout .student-panel-summary-icon {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
  }
  .student-layout .student-panel-summary-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }
  .student-layout .student-panel-summary-copy b { font-size: 15px !important; }
  .student-layout .student-panel-summary-copy small {
    font-size: 12px !important;
    white-space: normal !important;
  }
  .student-layout .student-panel-summary-status {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    font-size: 12px !important;
    text-align: left !important;
    white-space: normal !important;
  }
  .student-layout .student-panel-summary-chevron {
    grid-column: 3 !important;
    grid-row: 1 / 3 !important;
    width: 28px !important;
    height: 28px !important;
  }
  .student-layout .student-step-panel.is-complete:not(.is-collapsed) > :not(.student-panel-summary) {
    margin-right: 16px !important;
    margin-left: 16px !important;
  }
  .student-layout .student-step-panel.is-complete:not(.is-collapsed) > .student-panel-summary + * {
    margin-top: 18px !important;
  }
  .student-layout .student-step-panel .student-step-title,
  .student-layout .student-step-panel > h2,
  .student-layout .student-stage-copy .student-step-title {
    font-size: 19px !important;
  }
  .student-layout #studentContractBox .student-contract-progress span {
    padding: 0 2px !important;
    font-size: 11px !important;
  }
}
/* V2.11.20 STUDENT_ALIGNMENT_TYPOGRAPHY_END */

/* V2.11.21 STUDENT_BLUE_REFINEMENT_START */
html { scrollbar-gutter: stable; }
body { overflow-x: hidden; }

.student-layout {
  box-sizing: border-box;
  width: min(calc(100% - 32px), 980px) !important;
  max-width: 980px !important;
  min-width: 0 !important;
  overflow: visible;
}
.student-layout *,
.student-layout *::before,
.student-layout *::after { box-sizing: border-box; }
.student-layout .student-step-card,
.student-layout .student-step-panel,
.student-layout .student-step-panel > *,
.student-layout .inline-form,
.student-layout .profile-form,
.student-layout .address-grid,
.student-layout .student-contract-progress,
.student-layout .student-service-hub,
.student-layout .student-service-list,
.student-layout .student-service-card {
  min-width: 0;
  max-width: 100%;
}
.student-layout .input,
.student-layout input,
.student-layout select,
.student-layout textarea { max-width: 100%; }

.student-layout .student-steps {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 10px !important;
}
.student-layout .student-step,
.student-layout .student-step.done,
.student-layout .student-step.active {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  height: 76px !important;
  min-height: 76px !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid #c8d9f8 !important;
  border-radius: 16px !important;
  background: #f4f8ff !important;
  color: #2458b8 !important;
}
.student-layout .student-step.active {
  border-color: #8db2ff !important;
  background: #eaf1ff !important;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .05) !important;
}
.student-layout .student-step b,
.student-layout .student-step.done b,
.student-layout .student-step.active b {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border: 1px solid #b8cff7 !important;
  border-radius: 12px !important;
  background: #e5efff !important;
  color: #2563eb !important;
  box-shadow: none !important;
}
.student-layout .student-step.done b::before {
  color: #2563eb !important;
  font-size: 16px !important;
}
.student-layout .student-step.active b {
  border-color: #2563eb !important;
  background: #2563eb !important;
  color: #fff !important;
}
.student-layout .student-step span {
  display: grid !important;
  align-content: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  color: #15345f !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}
.student-layout .student-step small {
  margin: 0 !important;
  color: #6b7f9d !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.student-layout .student-panel-summary-icon,
.student-layout .student-panel-summary-status,
.student-layout .student-stage-status,
.student-layout .student-contract-badge,
.student-layout .student-completion-item > b {
  border-color: #c7dafe !important;
  background: #eaf2ff !important;
  color: #1f5ed8 !important;
}
.student-layout .student-panel-summary-copy b { color: #173457 !important; }
.student-layout .student-panel-summary-copy small { color: #6c809e !important; }

.student-layout .student-redundant-title { display: none !important; }
.student-layout .student-order-query-label {
  display: block;
  margin: 0 0 10px !important;
  color: #132b4a;
  font-size: 16px !important;
  font-weight: 800;
  line-height: 1.5 !important;
}

.student-layout .student-step-panel.is-complete:not(.is-collapsed) {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 0 26px !important;
  overflow: hidden !important;
}
.student-layout .student-step-panel:not(.is-complete) { padding-bottom: 28px !important; }
.student-layout .student-step-panel.is-complete.is-collapsed { padding: 0 !important; }
.student-layout .student-step-panel.is-complete:not(.is-collapsed) > :not(.student-panel-summary) {
  width: auto !important;
  max-width: calc(100% - 80px) !important;
}
.student-layout .inline-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 12px !important;
  width: 100% !important;
}
.student-layout .inline-form .primary-btn {
  width: auto !important;
  min-width: 148px !important;
  white-space: nowrap;
}
.student-layout .address-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }

.student-layout .student-service-hub { padding-bottom: 2px; }
.student-layout .student-service-hub-head {
  display: flex;
  align-items: flex-start !important;
  gap: 18px;
  margin-bottom: 16px !important;
}
.student-layout .student-service-hub-head > div { min-width: 0; }
.student-layout .student-service-hub-head .eyebrow {
  margin: 0 0 5px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}
.student-layout .student-service-hub-head h3 {
  margin: 0 !important;
  font-size: 20px !important;
  line-height: 1.35 !important;
}
.student-layout .student-service-hub-head > p {
  margin: 2px 0 0 auto !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}
.student-layout .student-service-card { padding: 22px !important; }
.student-layout .student-service-card .eyebrow {
  margin: 0 0 5px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}
.student-layout .student-service-card .student-step-title {
  margin: 0 !important;
  font-size: 19px !important;
  line-height: 1.4 !important;
}
.student-layout .student-service-card .qq-group-card-copy,
.student-layout .student-service-card .plaso-account-copy {
  margin: 18px 0 !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}
.student-layout .student-service-action,
.student-layout .plaso-copy-inline,
.student-layout .plaso-copy-full {
  height: 50px !important;
  min-height: 50px !important;
  line-height: 1.2 !important;
}

@media (max-width: 720px) {
  html { scrollbar-gutter: auto; }
  .student-layout { width: min(calc(100% - 14px), 980px) !important; }
  .student-layout .student-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .student-layout .student-step,
  .student-layout .student-step.done,
  .student-layout .student-step.active {
    grid-template-columns: 32px minmax(0, 1fr) !important;
    height: 68px !important;
    min-height: 68px !important;
    padding: 10px !important;
  }
  .student-layout .student-step b,
  .student-layout .student-step.done b,
  .student-layout .student-step.active b {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 10px !important;
  }
  .student-layout .student-step span { font-size: 13px !important; }
  .student-layout .student-step small { font-size: 10px !important; }
  .student-layout .student-step-panel.is-complete:not(.is-collapsed) { padding-bottom: 20px !important; }
  .student-layout .student-step-panel.is-complete:not(.is-collapsed) > :not(.student-panel-summary) {
    max-width: calc(100% - 32px) !important;
  }
  .student-layout .inline-form { grid-template-columns: 1fr !important; }
  .student-layout .inline-form .primary-btn { width: 100% !important; }
  .student-layout .address-grid { grid-template-columns: 1fr !important; }
  .student-layout .student-service-hub-head { display: block; }
  .student-layout .student-service-hub-head > p { margin-top: 8px !important; }
  .student-layout .student-service-card { padding: 18px !important; }
}
/* V2.11.21 STUDENT_BLUE_REFINEMENT_END */

/* V2.11.22 COMPLETION_SERVICE_MODALS_START */
.student-layout .student-step,
.student-layout .student-step.done,
.student-layout .student-step.active {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  place-items: center !important;
  padding-right: 58px !important;
  padding-left: 58px !important;
  text-align: center !important;
}
.student-layout .student-step > b,
.student-layout .student-step.done > b,
.student-layout .student-step.active > b {
  position: absolute !important;
  top: 50% !important;
  left: 14px !important;
  display: inline-grid !important;
  place-items: center !important;
  margin: 0 !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
}
.student-layout .student-step.done > b {
  border: 0 !important;
  border-radius: 50% !important;
  background: #2563eb !important;
  color: #fff !important;
  box-shadow: 0 5px 13px rgba(37, 99, 235, .24) !important;
}
.student-layout .student-step.done > b::before {
  display: block !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
  font-size: 23px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}
.student-layout .student-step > span {
  width: 100% !important;
  justify-items: center !important;
  text-align: center !important;
}

.student-layout .student-completion-item > b,
.student-layout .student-completion-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  margin: 0 !important;
  line-height: 1.25 !important;
  text-align: center !important;
}
.student-layout .student-completion-item > b {
  width: 156px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  white-space: normal !important;
}
.student-layout .student-completion-link {
  width: 118px !important;
  padding: 8px 12px !important;
}
.student-layout .student-completion-copy::before {
  display: none;
  margin-bottom: 2px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}
.student-layout #completionPlasoNote + * { min-width: 0; }
.student-layout #completionPlasoNote { color: #607795 !important; }
.student-layout #completionQqNote { color: #607795 !important; }
.student-layout #completionPlasoNote::before,
.student-layout #completionQqNote::before { content: none; }
.student-layout .student-completion-item:has(#completionPlasoNote) .student-completion-copy::before {
  display: block;
  content: "在线学习";
}
.student-layout .student-completion-item:has(#completionQqNote) .student-completion-copy::before {
  display: none;
  content: none;
}

/* 摘要已在完成中心直接展示，旧的大卡片只作为数据容器，不再重复占用页面。 */
.student-layout #studentServiceHub { display: none !important; }

body.student-detail-modal-open { overflow: hidden; }
.student-detail-modal {
  position: fixed;
  z-index: 3100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 35, 62, .58);
  backdrop-filter: blur(10px);
}
.student-detail-modal.hidden { display: none !important; }
.student-detail-modal-card {
  box-sizing: border-box;
  width: min(100%, 520px);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(173, 202, 250, .72);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(10, 35, 77, .26);
}
.student-detail-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.student-detail-modal-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}
.student-detail-modal-head h2 {
  margin: 0;
  color: #142b4b;
  font-size: 23px;
  line-height: 1.35;
}
.student-detail-modal-close {
  display: inline-grid;
  width: 40px;
  height: 40px;
  min-width: 40px;
  place-items: center;
  border-radius: 50%;
  background: #edf4ff;
  color: #245cc5;
}
.student-detail-modal-close svg { width: 20px; height: 20px; fill: currentColor; }
.student-detail-modal-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 20px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1f5ed8;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}
.student-detail-modal-hint {
  margin: 16px 0 20px;
  color: #637996;
  font-size: 14px;
  line-height: 1.7;
}
.student-detail-credential {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #d8e5f8;
  border-radius: 16px;
  background: #f7faff;
}
.student-detail-credential > span { color: #647892; font-size: 13px; font-weight: 700; }
.student-detail-credential > strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #142b4b;
  font-size: 16px;
}
.student-detail-credential .primary-btn,
.student-detail-credential .secondary-btn {
  min-width: 104px;
  min-height: 42px;
  padding: 8px 14px;
}
.student-detail-modal-done { min-height: 48px; margin-top: 20px; }
.shipment-detail-rows { margin-top: 2px; }
.shipment-detail-rows .student-detail-credential:not(:first-child) { margin-top: 10px; }
.student-detail-modal-open .student-quick-nav { display: none !important; }

@media (max-width: 720px) {
  .student-layout .student-step,
  .student-layout .student-step.done,
  .student-layout .student-step.active {
    padding-right: 44px !important;
    padding-left: 44px !important;
  }
  .student-layout .student-step > b,
  .student-layout .student-step.done > b,
  .student-layout .student-step.active > b { left: 9px !important; }
  .student-layout .student-step.done > b::before { font-size: 20px !important; }
  .student-layout .student-completion-item {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  .student-layout .student-completion-item > b,
  .student-layout .student-completion-link {
    grid-column: 2 !important;
    width: 100% !important;
  }
  .student-layout .student-completion-item > b { justify-self: stretch !important; }
  .student-detail-modal { place-items: end center; padding: 10px; }
  .student-detail-modal-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 20px 16px 16px;
    border-radius: 22px;
  }
  .student-detail-credential { grid-template-columns: 1fr; gap: 8px; }
  .student-detail-credential .primary-btn,
  .student-detail-credential .secondary-btn { width: 100%; }
}
/* V2.11.22 COMPLETION_SERVICE_MODALS_END */

/* V2.11.23 STEP_ICON_A_COMPLETION_JUMP_START */
.student-layout .student-step,
.student-layout .student-step.done,
.student-layout .student-step.active {
  height: 82px !important;
  min-height: 82px !important;
}
.student-layout .student-step > span {
  display: grid !important;
  grid-template-rows: 1.35em 1.35em !important;
  align-content: center !important;
  gap: 2px !important;
  min-height: calc(2.7em + 2px) !important;
  line-height: 1.35 !important;
}
.student-layout .student-step > span > small {
  display: block !important;
  min-height: 1.35em !important;
  line-height: 1.35 !important;
}
.student-layout .student-step.done > b {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #2563eb !important;
  box-shadow: 0 7px 16px rgba(37, 99, 235, .25) !important;
}
.student-layout .student-step.done > b::before {
  content: "" !important;
  display: block !important;
  width: 11px !important;
  height: 19px !important;
  border: solid #fff !important;
  border-width: 0 4px 4px 0 !important;
  border-radius: 1px !important;
  transform: translateY(-2px) rotate(45deg) !important;
}
.student-completion-item-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
}
.student-layout .student-completion-item-actions .student-completion-link {
  width: auto !important;
  min-width: 118px !important;
  white-space: nowrap;
}
.student-layout .student-completion-link-primary {
  border-color: #2563eb !important;
  background: #2563eb !important;
  color: #fff !important;
  box-shadow: 0 7px 16px rgba(37, 99, 235, .18);
  text-decoration: none !important;
}
@media (max-width: 720px) {
  .student-layout .student-step,
  .student-layout .student-step.done,
  .student-layout .student-step.active {
    height: 72px !important;
    min-height: 72px !important;
  }
  .student-layout .student-step.done > b {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }
  .student-layout .student-step.done > b::before {
    width: 9px !important;
    height: 16px !important;
    border-width: 0 3px 3px 0 !important;
  }
  .student-completion-item-actions {
    grid-column: 2 / -1 !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .student-layout .student-completion-item-actions .student-completion-link {
    grid-column: auto !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}
/* V2.11.23 STEP_ICON_A_COMPLETION_JUMP_END */

/* V2.11.24 COMPLETION_INLINE_QQ_LINK_START */
.student-layout #completionQqNote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0;
  row-gap: 2px;
}
.student-layout .student-completion-inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 7px;
  color: #2563eb;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.student-layout .student-completion-inline-link::before {
  content: "·";
  margin-right: 7px;
  color: #8ca0bd;
  font-weight: 500;
}
.student-layout .student-completion-inline-link:hover {
  color: #174bbd;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.student-layout .student-completion-inline-link:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(37, 99, 235, .2);
  outline-offset: 2px;
}
.student-layout .student-completion-item-actions {
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 720px) {
  .student-layout #completionQqNote {
    align-items: flex-start;
  }
  .student-layout .student-completion-inline-link {
    min-height: 22px;
    margin-left: 0;
    flex-basis: 100%;
    width: fit-content;
  }
  .student-layout .student-completion-inline-link::before {
    content: "";
    margin-right: 0;
  }
  .student-layout .student-completion-item-actions {
    display: block;
  }
  .student-layout .student-completion-item-actions .student-completion-link {
    width: 100% !important;
  }
}
/* V2.11.24 COMPLETION_INLINE_QQ_LINK_END */

/* V2.11.25 CURRENT_STEP_HEADING_START */
.student-layout .student-step-panel:not(.hidden) > .student-panel-summary {
  display: grid !important;
}
.student-layout .student-step-panel.is-current {
  padding: 0 0 28px !important;
  overflow: hidden;
}
.student-layout .student-step-panel.is-current > .student-panel-summary {
  width: 100%;
  min-height: 88px;
  margin: 0;
  padding: 18px 28px;
  border: 0;
  border-bottom: 1px solid #dbe7f6;
  border-radius: 0;
  background: rgba(255, 255, 255, .68);
  grid-template-columns: 52px minmax(0, 1fr) minmax(150px, 320px) 24px;
  align-items: center;
  column-gap: 18px;
  cursor: default;
}
.student-layout .student-step-panel.is-current > .student-panel-summary .student-panel-summary-chevron {
  visibility: hidden;
}
.student-layout .student-step-panel.is-current > :not(.student-panel-summary) {
  width: auto !important;
  max-width: none !important;
  margin-right: 40px !important;
  margin-left: 40px !important;
}
.student-layout .student-step-panel.is-current > .student-panel-summary + * {
  margin-top: 24px !important;
}
@media (max-width: 720px) {
  .student-layout .student-step-panel.is-current {
    padding-bottom: 20px !important;
  }
  .student-layout .student-step-panel.is-current > .student-panel-summary {
    min-height: 76px;
    padding: 14px 16px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    column-gap: 12px;
  }
  .student-layout .student-step-panel.is-current > .student-panel-summary .student-panel-summary-status {
    grid-column: 3;
  }
  .student-layout .student-step-panel.is-current > .student-panel-summary .student-panel-summary-chevron {
    display: none !important;
  }
  .student-layout .student-step-panel.is-current > :not(.student-panel-summary) {
    margin-right: 20px !important;
    margin-left: 20px !important;
  }
  .student-layout .student-step-panel.is-current > .student-panel-summary + * {
    margin-top: 18px !important;
  }
}
/* V2.11.25 CURRENT_STEP_HEADING_END */

/* V2.11.26 STEP_ALIGNMENT_MOBILE_CARD_TOGGLE_START */
/* Keep the summary header on one geometry in collapsed, expanded and current states. */
.student-layout .student-step-panel.is-current > .student-panel-summary,
.student-layout .student-step-panel.is-complete > .student-panel-summary,
.student-layout .student-step-panel.is-complete.is-collapsed > .student-panel-summary,
.student-layout .student-step-panel.is-complete:not(.is-collapsed) > .student-panel-summary {
  grid-template-columns: 48px minmax(0, 1fr) 300px 30px !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  column-gap: 16px !important;
  width: 100% !important;
  min-height: 84px !important;
  margin: 0 !important;
  padding: 16px 20px !important;
}
.student-layout .student-step-panel.is-current > .student-panel-summary {
  border-bottom: 1px solid #dbe7f6 !important;
}
.student-layout .student-step-panel.is-complete > .student-panel-summary {
  cursor: pointer !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(37, 99, 235, .08);
}
.student-layout .student-step-panel.is-complete > .student-panel-summary > * {
  pointer-events: none;
}

@media (max-width: 720px) {
  .student-layout .student-step-panel.is-current > .student-panel-summary,
  .student-layout .student-step-panel.is-complete > .student-panel-summary,
  .student-layout .student-step-panel.is-complete.is-collapsed > .student-panel-summary,
  .student-layout .student-step-panel.is-complete:not(.is-collapsed) > .student-panel-summary {
    grid-template-columns: 40px minmax(0, 1fr) 28px !important;
    grid-template-rows: auto auto !important;
    column-gap: 11px !important;
    row-gap: 3px !important;
    min-height: 76px !important;
    padding: 14px 15px !important;
  }
  .student-layout .student-step-panel.is-current > .student-panel-summary .student-panel-summary-icon,
  .student-layout .student-step-panel.is-complete > .student-panel-summary .student-panel-summary-icon {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
  }
  .student-layout .student-step-panel.is-current > .student-panel-summary .student-panel-summary-copy,
  .student-layout .student-step-panel.is-complete > .student-panel-summary .student-panel-summary-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }
  .student-layout .student-step-panel.is-current > .student-panel-summary .student-panel-summary-status,
  .student-layout .student-step-panel.is-complete > .student-panel-summary .student-panel-summary-status {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }
  .student-layout .student-step-panel.is-current > .student-panel-summary .student-panel-summary-chevron,
  .student-layout .student-step-panel.is-complete > .student-panel-summary .student-panel-summary-chevron {
    grid-column: 3 !important;
    grid-row: 1 / 3 !important;
  }
}
/* V2.11.26 STEP_ALIGNMENT_MOBILE_CARD_TOGGLE_END */

/* V2.11.27 MOBILE_COMPLETION_STATUS_RIGHT_START */
/* Mobile-only "Option A": summary at left, state pill at right, action below. */
@media (max-width: 720px) {
  .student-layout #studentCompletionCenter .student-completion-item {
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
      "icon copy status"
      ". action action";
    align-items: center !important;
    column-gap: 10px !important;
    row-gap: 12px !important;
    min-height: 0 !important;
    padding: 14px !important;
  }
  .student-layout #studentCompletionCenter .student-completion-icon {
    grid-area: icon;
    align-self: center;
  }
  .student-layout #studentCompletionCenter .student-completion-copy {
    grid-area: copy;
    align-self: center;
    min-width: 0;
  }
  .student-layout #studentCompletionCenter .student-completion-copy > small {
    margin-top: 3px;
    overflow: hidden;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .student-layout #studentCompletionCenter .student-completion-item > b {
    grid-area: status !important;
    grid-column: auto !important;
    justify-self: end !important;
    align-self: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 112px;
    margin: 0 !important;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #1f5ed8;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
  }
  .student-layout #studentCompletionCenter .student-completion-item > .student-completion-link,
  .student-layout #studentCompletionCenter .student-completion-item > .student-completion-item-actions {
    grid-area: action !important;
    grid-column: auto !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .student-layout #studentCompletionCenter .student-completion-item-actions {
    display: block !important;
  }
  .student-layout #studentCompletionCenter .student-completion-item-actions .student-completion-link {
    min-width: 0 !important;
    width: 100% !important;
  }
  .student-layout #studentCompletionCenter .student-completion-item > .student-completion-link,
  .student-layout #studentCompletionCenter .student-completion-item-actions .student-completion-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    border: 1px solid #c6d8f7 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #174b9b !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
  }
}
@media (max-width: 380px) {
  .student-layout #studentCompletionCenter .student-completion-item {
    grid-template-columns: 34px minmax(0, 1fr) auto !important;
    column-gap: 8px !important;
    padding: 12px !important;
  }
  .student-layout #studentCompletionCenter .student-completion-item > b {
    max-width: 104px;
    padding: 6px 8px;
    font-size: 11px;
  }
}
/* V2.11.27 MOBILE_COMPLETION_STATUS_RIGHT_END */

/* V2.11.28 MOBILE_STEP_MODAL_ALIGNMENT_START */
@media (max-width: 720px) {
  /* The first two completed summaries already carry their state as the helper line. */
  .student-layout #checkBox.is-complete > .student-panel-summary .student-panel-summary-status,
  .student-layout #profileBox.is-complete > .student-panel-summary .student-panel-summary-status {
    display: none !important;
  }
  .student-layout #checkBox.is-complete > .student-panel-summary,
  .student-layout #profileBox.is-complete > .student-panel-summary {
    grid-template-rows: auto !important;
  }
  .student-layout #checkBox.is-complete > .student-panel-summary .student-panel-summary-icon,
  .student-layout #profileBox.is-complete > .student-panel-summary .student-panel-summary-icon,
  .student-layout #checkBox.is-complete > .student-panel-summary .student-panel-summary-copy,
  .student-layout #profileBox.is-complete > .student-panel-summary .student-panel-summary-copy,
  .student-layout #checkBox.is-complete > .student-panel-summary .student-panel-summary-chevron,
  .student-layout #profileBox.is-complete > .student-panel-summary .student-panel-summary-chevron {
    grid-row: 1 !important;
  }

  /* Centre the contract name and its compact status inside the detail card. */
  .student-layout #studentContractBox .student-contract-item-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center !important;
    gap: 12px !important;
    text-align: center !important;
  }
  .student-layout #studentContractBox .student-contract-item-head > div,
  .student-layout #studentContractBox .student-contract-item-head > div > * {
    text-align: center !important;
  }
  .student-layout #studentContractBox .student-contract-badge {
    justify-self: center !important;
    margin-inline: auto !important;
    text-align: center !important;
  }

  /* Every completion action occupies the same second-row track. */
  .student-layout #studentCompletionCenter .student-completion-item > .student-completion-link,
  .student-layout #studentCompletionCenter .student-completion-item > .student-completion-item-actions {
    grid-area: action !important;
    grid-column: 2 / 4 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
  }
  .student-layout #studentCompletionCenter .student-completion-item > .student-completion-link,
  .student-layout #studentCompletionCenter .student-completion-item-actions > .student-completion-link {
    box-sizing: border-box !important;
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 44px !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  /* Modal primary actions share one inset and therefore one visual width. */
  .student-detail-modal-card .student-detail-modal-done {
    box-sizing: border-box !important;
    width: calc(100% - 28px) !important;
    margin: 20px 14px 0 !important;
  }
  .student-detail-modal-card .student-detail-credential > button {
    box-sizing: border-box !important;
    width: calc(100% + 2px) !important;
    min-height: 48px !important;
    margin: 0 -1px !important;
  }
}
/* V2.11.28 MOBILE_STEP_MODAL_ALIGNMENT_END */

/* V2.11.29 PLASO_CLIENT_DOWNLOAD_START */
.student-plaso-actions {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 5px;
}
.student-client-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #2763d7;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 750;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}
.student-client-download-link:hover,
.student-client-download-link:focus-visible {
  background: #eff5ff;
  color: #174fbf;
}
.student-client-download-link svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: currentColor;
}
.plaso-download-card {
  width: min(92vw, 560px);
  padding: 26px;
}
.plaso-download-drag {
  display: none;
}
.plaso-download-subtitle {
  margin: 6px 0 0;
  color: #7284a4;
  font-size: 14px;
  line-height: 1.5;
}
.plaso-download-options {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.plaso-download-option {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 12px 16px;
  border: 1px solid #d7e5fb;
  border-radius: 18px;
  background: #fff;
  color: #10264b;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.plaso-download-option:hover,
.plaso-download-option:focus-visible {
  border-color: #86b2ff;
  background: #f6f9ff;
  box-shadow: 0 10px 28px rgba(43, 99, 210, .10);
  transform: translateY(-1px);
}
.plaso-download-option-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #edf4ff;
  color: #2763d7;
}
.plaso-download-option-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}
.plaso-download-option-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.plaso-download-option-copy b {
  font-size: 16px;
  line-height: 1.35;
  color: #10264b;
}
.plaso-download-option-copy small {
  color: #7385a3;
  font-size: 13px;
  line-height: 1.4;
}
.plaso-download-chevron {
  width: 20px;
  height: 20px;
  fill: #7890b4;
}
.plaso-download-cancel {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
}

@media (max-width: 720px) {
  .student-layout #studentCompletionCenter .student-plaso-actions {
    display: grid !important;
    justify-items: stretch !important;
    gap: 2px !important;
  }
  .student-layout #studentCompletionCenter .student-plaso-actions > .student-client-download-link {
    width: 100%;
    min-height: 36px;
    font-size: 13px;
  }
  .plaso-download-modal {
    place-items: end center;
    padding: 0;
  }
  .plaso-download-card {
    width: 100%;
    max-width: none;
    max-height: min(88dvh, 720px);
    overflow: auto;
    padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
  }
  .plaso-download-drag {
    display: block;
    width: 42px;
    height: 5px;
    margin: 0 auto 14px;
    border-radius: 99px;
    background: #ced9ea;
  }
  .plaso-download-card .student-detail-modal-head {
    align-items: flex-start;
  }
  .plaso-download-options {
    margin-top: 18px;
  }
  .plaso-download-option {
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    gap: 12px;
    min-height: 70px;
    padding: 10px 12px;
    border-radius: 16px;
  }
  .plaso-download-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .plaso-download-option-icon svg {
    width: 21px;
    height: 21px;
  }
  .plaso-download-option-copy b {
    font-size: 15px;
  }
  .plaso-download-option-copy small {
    font-size: 12px;
  }
}
/* V2.11.29 PLASO_CLIENT_DOWNLOAD_END */

/* V2.11.30 RESPONSIVE_COMPLETION_ACTIONS_START */
/* Desktop: the account and client actions are equal, outlined buttons in one row. */
.student-layout #studentCompletionCenter .student-plaso-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.student-layout #studentCompletionCenter .student-plaso-actions > .student-completion-link,
.student-layout #studentCompletionCenter .student-plaso-actions > .student-client-download-link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #9fc0f5;
  border-radius: 10px;
  background: #fff;
  color: #174b9b;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.student-layout #studentCompletionCenter .student-plaso-actions > .student-client-download-link:hover,
.student-layout #studentCompletionCenter .student-plaso-actions > .student-client-download-link:focus-visible {
  border-color: #6d9fea;
  background: #f2f7ff;
  color: #174b9b;
}
.student-layout .student-completion-mobile-link {
  display: none;
}

@media (max-width: 720px) {
  /* Mobile: one full-width primary action with a quiet text action underneath. */
  .student-layout #studentCompletionCenter .student-completion-item-actions,
  .student-layout #studentCompletionCenter .student-plaso-actions {
    display: grid !important;
    justify-items: stretch !important;
    gap: 10px !important;
  }
  .student-layout #studentCompletionCenter .student-plaso-actions > .student-completion-link {
    width: 100% !important;
    min-height: 44px !important;
  }
  .student-layout #studentCompletionCenter .student-plaso-actions > .student-client-download-link,
  .student-layout #studentCompletionCenter .student-completion-mobile-link {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 4px 10px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: #5f718c !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }
  .student-layout #studentCompletionCenter .student-plaso-actions > .student-client-download-link {
    color: #5f718c !important;
  }
  .student-layout #studentCompletionCenter .student-plaso-actions > .student-client-download-link:hover,
  .student-layout #studentCompletionCenter .student-plaso-actions > .student-client-download-link:focus-visible,
  .student-layout #studentCompletionCenter .student-completion-mobile-link:hover,
  .student-layout #studentCompletionCenter .student-completion-mobile-link:focus-visible {
    background: #f2f7ff !important;
    color: #1f5ed8 !important;
  }
  .student-layout #studentCompletionCenter .student-client-download-link svg,
  .student-layout #studentCompletionCenter .student-completion-mobile-link svg {
    width: 18px;
    height: 18px;
    flex: none;
    fill: currentColor;
  }
.student-layout #studentCompletionCenter .student-completion-inline-link {
    display: none !important;
  }
  .student-layout #studentCompletionCenter .student-completion-mobile-link.hidden {
    display: none !important;
  }
}

/* V2.11.30 redemption-code completion card */
.redemption-code-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.redemption-code-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d8e4f6;
  border-radius: 18px;
  background: #f7faff;
}
.redemption-code-item > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.redemption-code-actions {
  display: flex !important;
  grid-auto-flow: column;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
}
.redemption-code-item span,
.redemption-code-item small { color: #607795; }
.redemption-code-item strong {
  overflow-wrap: anywhere;
  color: #12345d;
  font: 800 20px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .04em;
}
@media (max-width: 720px) {
  .redemption-code-item { grid-template-columns: 1fr; }
  .redemption-code-actions {
    display: grid !important;
    grid-auto-flow: row;
    grid-template-columns: 1fr !important;
  }
  .redemption-code-item .primary-btn,
  .redemption-code-item .secondary-btn { width: 100%; }
  .redemption-code-item strong { font-size: 18px; }
}
/* V2.11.30 RESPONSIVE_COMPLETION_ACTIONS_END */

/* V2.11.15 CONTRACT_CURRENT_ACCORDION_FIX_START */
/* Step 3 remains the active workflow step until the student has signed, but it
   is still a reviewable card and must be manually collapsible on PC and mobile. */
.student-layout #studentContractBox.is-current > .student-panel-summary {
  cursor: pointer !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(37, 99, 235, .08);
}
.student-layout #studentContractBox.is-current > .student-panel-summary > * {
  pointer-events: none;
}
.student-layout #studentContractBox.is-current > .student-panel-summary .student-panel-summary-chevron {
  display: grid !important;
  visibility: visible !important;
}
.student-layout #studentContractBox.is-current.is-collapsed {
  box-sizing: border-box;
  padding: 0 !important;
  overflow: hidden;
}
.student-layout #studentContractBox.is-current.is-collapsed > .student-panel-summary {
  border-bottom: 0 !important;
}
.student-layout #studentContractBox.is-current.is-collapsed > :not(.student-panel-summary) {
  display: none !important;
}
.student-layout #studentContractBox.is-current:not(.is-collapsed) .student-panel-summary-chevron {
  transform: rotate(180deg);
}
@media (max-width: 720px) {
  .student-layout #studentContractBox.is-current > .student-panel-summary .student-panel-summary-chevron {
    display: grid !important;
  }
}
/* V2.11.15 CONTRACT_CURRENT_ACCORDION_FIX_END */

/* V2.11.15 REFUND_WORKFLOW_V1_START */
.student-refund-flow {
  border: 1px solid #ffd2d2;
  overflow: hidden;
}
.student-layout .student-refund-flow.is-complete > .student-panel-summary {
  border-bottom-color: #ffe0e0 !important;
  background: linear-gradient(135deg, #fff 0%, #fff8f8 100%) !important;
}
.student-layout .student-refund-flow .student-panel-summary-icon {
  background: #fff0f0 !important;
  color: #df2d37 !important;
}
.student-layout .student-refund-flow .student-panel-summary-status {
  background: #fff0f0 !important;
  color: #d92732 !important;
}
.student-layout .student-refund-flow .student-panel-summary[data-status="approved"] .student-panel-summary-status {
  background: #e9f8f0 !important;
  color: #148559 !important;
}
.student-layout .student-refund-flow .student-panel-summary[data-status="canceled_pending_restore"] .student-panel-summary-status,
.student-layout .student-refund-flow .student-panel-summary[data-status="canceled_restored"] .student-panel-summary-status {
  background: #f1f4f9 !important;
  color: #5c6d85 !important;
}
.student-refund-body { padding: 0; }
.student-refund-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 2px 0 28px;
}
.student-refund-progress::before {
  position: absolute;
  top: 17px;
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  background: #e5eaf2;
  content: "";
}
.student-refund-progress span {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #7688a2;
  font-size: 13px;
  text-align: center;
}
.student-refund-progress i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #d7e0ec;
  border-radius: 50%;
  background: #fff;
  color: #8191a8;
  font-style: normal;
  font-weight: 900;
}
.student-refund-progress .active i,
.student-refund-progress .done i { border-color: #ed3943; background: #ed3943; color: #fff; }
.student-refund-progress .done i::before { content: "✓"; }
.student-refund-progress .done i { font-size: 0; }
.student-refund-progress .done i::before { font-size: 16px; }
.student-refund-progress .active,
.student-refund-progress .done { color: #bd2831; }
.student-refund-progress .exception i { border-color: #f1981e; background: #f1981e; }
.student-refund-notice {
  margin-bottom: 18px;
  padding: 15px 18px;
  border: 1px solid #ffd8d8;
  border-radius: 15px;
  background: #fff6f6;
  color: #9e2e35;
  font-weight: 700;
  line-height: 1.65;
}
.student-refund-notice[data-status="approved"] { border-color: #cdebdc; background: #f0faf5; color: #17714e; }
.student-refund-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.student-refund-summary span {
  padding: 10px 14px;
  border-radius: 12px;
  background: #f5f8fc;
  color: #61738e;
}
.student-refund-summary b { color: #173b69; }
.student-refund-packages { display: grid; gap: 12px; }
.student-refund-empty {
  padding: 24px;
  border: 1px dashed #d9e1ed;
  border-radius: 15px;
  color: #8191a8;
  text-align: center;
}
.student-refund-package {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid #dce5f1;
  border-radius: 16px;
  background: #fff;
}
.student-refund-package-index {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #eef4fd;
  color: #2d67c8;
  font-weight: 900;
}
.student-refund-package-copy { min-width: 0; display: grid; gap: 3px; }
.student-refund-package-copy b { color: #193858; }
.student-refund-package-copy strong { color: #506984; overflow-wrap: anywhere; }
.student-refund-package-state {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4fd;
  color: #356dc5;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.student-refund-package[data-status="received"] .student-refund-package-state { background: #e8f7ef; color: #158254; }
.student-refund-package[data-status="exception"] .student-refund-package-state { background: #fff1e3; color: #b45b0a; }
.student-refund-package-exception { margin: 5px 0 0; color: #a34b13; }
.student-refund-package-actions { display: flex; gap: 8px; }
.student-refund-package-actions button {
  padding: 8px 12px;
  border: 1px solid #d5e0ee;
  border-radius: 10px;
  background: #fff;
  color: #285b9f;
  cursor: pointer;
  font-weight: 700;
}
.student-refund-package-actions button:last-child { color: #d22e38; }
.student-refund-package-form {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #ffd9d9;
  border-radius: 18px;
  background: #fffafa;
}
.student-refund-count-field {
  display: grid;
  max-width: 240px;
  gap: 8px;
  margin-bottom: 16px;
}
.student-refund-package-fields {
  display: grid;
  gap: 14px;
}
.student-refund-package-entry {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid #ffd9d9;
  border-radius: 16px;
  background: #fff;
}
.student-refund-package-entry legend {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: #173b69;
  font-weight: 850;
}
.student-refund-package-entry legend span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 9px;
  background: #fff0f0;
  color: #d92732;
  font-size: 13px;
}
.student-refund-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 14px;
}
.student-refund-form-actions { display: flex; gap: 12px; margin-top: 14px; }
.student-refund-primary {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  background: #e62f3a;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(215, 36, 48, .18);
}
.student-refund-primary:disabled { cursor: wait; opacity: .65; }
.student-quick-nav.is-refund {
  background: linear-gradient(135deg, #ef3a44, #c91f2c) !important;
  box-shadow: 0 12px 28px rgba(200, 31, 44, .3) !important;
}
.student-quick-nav.is-refund .quick-nav-up { display: none !important; }
.student-quick-nav.is-refund .quick-nav-down { display: block !important; }

@media (max-width: 720px) {
  .student-refund-body { padding: 0; }
  .student-refund-progress { gap: 3px; margin-bottom: 20px; }
  .student-refund-progress span { gap: 6px; font-size: 11px; line-height: 1.35; }
  .student-refund-progress i { width: 30px; height: 30px; }
  .student-refund-progress::before { top: 15px; }
  .student-refund-summary { display: grid; grid-template-columns: 1fr; }
  .student-refund-package { grid-template-columns: 38px minmax(0, 1fr) auto; align-items: start; }
  .student-refund-package-actions { grid-column: 2 / -1; }
  .student-refund-package-actions button { flex: 1; }
  .student-refund-count-field { max-width: none; }
  .student-refund-entry-grid { grid-template-columns: 1fr; }
  .student-refund-package-entry { padding: 14px; }
  .student-refund-form-actions { display: grid; grid-template-columns: 1fr; }
  .student-refund-form-actions > * { width: 100%; }
}
/* V2.11.15 REFUND_WORKFLOW_V1_END */

/* V2.11.15 REFUND_WORKFLOW_V2_BRANCH_START */
.student-layout .student-refund-flow {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  align-self: stretch;
}
.student-refund-receipt-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid #ffd2d2;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff9f9, #fff);
}
.student-refund-receipt-question.hidden { display: none; }
.student-refund-receipt-question span { color: #d92732; font-size: 12px; font-weight: 900; }
.student-refund-receipt-question h3 { margin: 4px 0 6px; color: #173b69; font-size: 19px; }
.student-refund-receipt-question p { margin: 0; color: #667a96; overflow-wrap: anywhere; }
.student-refund-receipt-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.student-refund-receipt-actions button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #d92732;
  border-radius: 13px;
  background: linear-gradient(135deg, #f1434d, #d92732);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(217,39,50,.18);
}
.student-refund-receipt-actions .student-refund-primary,
.student-refund-receipt-actions .student-refund-keep {
  border-color: #d92732;
  background: linear-gradient(135deg, #f1434d, #d92732);
  color: #fff;
  box-shadow: 0 10px 22px rgba(217,39,50,.18);
}
.student-refund-receipt-actions button:disabled { cursor: wait; opacity: .6; }
@media (max-width: 720px) {
  .student-refund-receipt-question { grid-template-columns: 1fr; padding: 16px; }
  .student-refund-receipt-actions { display: grid; grid-template-columns: 1fr; }
  .student-refund-receipt-actions button { width: 100%; }
}
/* V2.11.15 REFUND_WORKFLOW_V2_BRANCH_END */
