    /* 排课表布局 */
    .schedule-toolbar {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
      padding: 16px 20px;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 8px;
      margin-bottom: 16px;
    }

    /* 筛选器 */
    .schedule-filters {
      display: flex;
      align-items: center;
      gap: 24px;
    }

    .schedule-filter-item {
      display: flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      font-size: 14px;
      color: var(--text);
      transition: color 0.2s;
    }

    .schedule-filter-item.is-active .schedule-filter-label {
      color: var(--primary);
    }

    .schedule-filter-item svg {
      color: var(--primary);
    }

    .schedule-filter-item:not(.is-active) svg {
      color: var(--text-secondary);
    }

    .schedule-view-switch {
      display: flex;
      align-items: center;
    }

    .schedule-view-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      font-size: 14px;
      color: #fff;
      background: var(--primary);
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-family: inherit;
    }

    .schedule-view-btn:hover {
      opacity: 0.9;
    }

    .schedule-date-nav {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-left: auto;
    }

    .schedule-view-tabs {
      display: flex;
      border: 1px solid var(--border);
      border-radius: 4px;
      overflow: hidden;
    }

    .schedule-view-tab {
      padding: 6px 16px;
      font-size: 14px;
      color: var(--text-secondary);
      background: #fff;
      border: none;
      cursor: pointer;
      font-family: inherit;
      transition: all 0.2s;
    }

    .schedule-view-tab:not(:last-child) {
      border-right: 1px solid var(--border);
    }

    .schedule-view-tab:hover {
      color: var(--primary);
      background: #f6f6f6;
    }

    .schedule-view-tab.is-active {
      color: #fff;
      background: var(--primary);
    }

    .schedule-nav-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      padding: 0;
      color: var(--text-secondary);
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .schedule-nav-btn:hover {
      color: var(--primary);
      border-color: var(--primary);
    }

    .schedule-date-range {
      font-size: 16px;
      font-weight: 600;
      color: var(--text);
      min-width: 180px;
      text-align: center;
    }

    .btn-today {
      padding: 6px 16px;
      font-size: 14px;
    }

    .schedule-filter-inline {
      display: flex;
      align-items: center;
      gap: 20px;
      margin-left: auto;
    }

    .schedule-legend-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      color: var(--text-secondary);
    }

    .legend-dot {
      width: 12px;
      height: 12px;
      border-radius: 2px;
    }

    .legend-dot--scheduled {
      background: #1890ff;
    }

    .legend-dot--conflict {
      background: #faad14;
    }

    .legend-dot--my {
      background: #52c41a;
    }

    .legend-dot--other {
      background: #90d4a3;
    }

    .legend-dot--trial {
      background: #d9d9d9;
    }

    /* 周视图 */
    .schedule-week-view {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
    }

    .schedule-week-header {
      display: flex;
      border-bottom: 1px solid var(--border);
      background: #fafafa;
    }

    .schedule-time-column-header {
      width: 80px;
      flex-shrink: 0;
      border-right: 1px solid var(--border);
    }

    .schedule-days-header {
      display: flex;
      flex: 1;
    }

    .schedule-day-header {
      flex: 1;
      padding: 12px 8px;
      text-align: center;
      border-right: 1px solid var(--border);
    }

    .schedule-day-header:last-child {
      border-right: none;
    }

    .schedule-day-header--weekend {
      background: #f6f6f6;
    }

    .schedule-day-header .day-name {
      display: block;
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 4px;
    }

    .schedule-day-header .day-date {
      display: block;
      font-size: 13px;
      color: var(--text-secondary);
    }

    .schedule-week-body {
      display: flex;
      height: 700px;
      overflow-y: auto;
    }

    .schedule-time-column {
      width: 80px;
      flex-shrink: 0;
      border-right: 1px solid var(--border);
      background: #fafafa;
    }

    .schedule-time-slot {
      height: 50px;
      padding: 8px;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      border-bottom: 1px solid var(--border);
    }

    .schedule-time-slot span {
      font-size: 13px;
      color: var(--text-secondary);
    }

    .schedule-grid {
      flex: 1;
      position: relative;
      display: flex;
    }

    .schedule-grid-lines {
      flex: 1;
      display: flex;
    }

    .schedule-grid-line {
      flex: 1;
      height: 700px;
      border-right: 1px solid #f0f0f0;
      border-bottom: 1px solid #f0f0f0;
      background: repeating-linear-gradient(
        to bottom,
        #f0f0f0 0px,
        #f0f0f0 1px,
        transparent 1px,
        transparent 50px
      );
    }

    .schedule-grid-line:last-child {
      border-right: none;
    }

    /* 课程卡片 */
    .schedule-course-card {
      position: absolute;
      padding: 8px;
      border-radius: 4px;
      font-size: 12px;
      cursor: pointer;
      transition: box-shadow 0.2s, transform 0.1s;
      overflow: hidden;
    }

    .schedule-course-card:hover {
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
      transform: translateY(-1px);
      z-index: 10;
    }

    .schedule-course-card--scheduled {
      background: #3a7bd5;
      color: #fff;
    }

    .schedule-course-card--my {
      background: #5cb85c;
      color: #fff;
    }

    .schedule-course-card--other {
      background: #90d4a3;
      color: #fff;
    }

    .schedule-course-card--conflict {
      background: #faad14;
      color: #fff;
    }

    .course-card-header {
      display: flex;
      align-items: center;
      gap: 4px;
      margin-bottom: 6px;
    }

    .course-tag {
      font-size: 10px;
      padding: 1px 4px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 2px;
      flex-shrink: 0;
    }

    .course-name {
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .course-card-info,
    .course-card-location {
      display: flex;
      align-items: center;
      gap: 4px;
      margin-bottom: 4px;
      opacity: 0.9;
    }

    .course-card-info:last-child,
    .course-card-location:last-child {
      margin-bottom: 0;
    }

    /* 新建排课 */
    .schedule-new-page-head {
      margin-bottom: 20px;
    }

    .schedule-new-page-title {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 20px;
      font-weight: 600;
      color: var(--text);
      margin: 0 0 16px;
    }

    .schedule-new-page-title__bar {
      width: 4px;
      height: 20px;
      border-radius: 2px;
      background: var(--primary);
      flex-shrink: 0;
    }

    .schedule-new-tabs {
      display: flex;
      gap: 24px;
      border-bottom: 1px solid var(--border);
    }

    .schedule-new-tab {
      padding: 12px 4px 10px;
      margin-bottom: -1px;
      font-size: 14px;
      color: var(--text-secondary);
      background: none;
      border: none;
      border-bottom: 2px solid transparent;
      cursor: pointer;
      font-family: inherit;
      transition: color 0.2s, border-color 0.2s;
    }

    .schedule-new-tab:hover {
      color: var(--primary);
    }

    .schedule-new-tab.is-active {
      color: var(--primary);
      font-weight: 600;
      border-bottom-color: var(--primary);
    }

    .class-mgmt-subtabs {
      margin-bottom: 16px;
    }

    .class-mgmt-tab-panel {
      display: none;
    }

    .class-mgmt-tab-panel.is-active {
      display: block;
    }

    .schedule-new-card {
      padding: 24px;
    }

    .schedule-new-form {
      max-width: 720px;
    }

    .schedule-new-row {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      margin-bottom: 20px;
    }

    .schedule-new-row__label {
      flex: 0 0 120px;
      text-align: right;
      font-size: 14px;
      color: var(--text);
      line-height: 36px;
      padding-top: 0;
    }

    .schedule-new-row__label .form-label__req {
      margin-right: 2px;
    }

    .schedule-new-row__field {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 12px;
    }

    .schedule-new-row__field .select-wrap {
      flex: 1;
      min-width: 200px;
      max-width: 360px;
    }

    .schedule-new-row__field .select-wrap select {
      width: 100%;
    }

    .schedule-new-row__field .input {
      max-width: 360px;
      width: 100%;
    }

    .schedule-new-link {
      color: var(--primary);
      text-decoration: none;
      font-size: 14px;
      cursor: pointer;
      background: none;
      border: none;
      padding: 0;
      font-family: inherit;
    }

    .schedule-new-link:hover {
      opacity: 0.85;
    }

    .schedule-new-form-actions {
      margin: 8px 0 24px;
      padding-top: 4px;
    }

    .schedule-new-table-scroll {
      margin: 0;
    }

    .data-table--sn-preview {
      min-width: 960px;
    }

    .data-table td.data-table__empty {
      text-align: center;
      color: var(--text-secondary);
      padding: 48px 12px;
    }

    .schedule-new-placeholder {
      padding: 48px 24px;
      text-align: center;
      color: var(--text-secondary);
      font-size: 14px;
    }

    .schedule-new-page-footer {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 12px;
      margin-top: 24px;
      padding-top: 20px;
      border-top: 1px solid var(--border);
    }

    #sn-panel-rule.schedule-new-mode-panel:not(.view-hidden) {
      margin-top: 4px;
      padding-top: 8px;
      border-top: 1px solid #f0f0f0;
    }

    .schedule-new-form--rule {
      max-width: 800px;
    }

    .sn-text-link {
      color: #fa8c16;
      text-decoration: none;
      font-size: 14px;
      cursor: pointer;
      background: none;
      border: none;
      padding: 0;
      font-family: inherit;
    }

    .sn-text-link:hover {
      color: #ff9c29;
    }

    .sn-rule-slots-box {
      border: 1px solid var(--border);
      border-radius: 6px;
      overflow: hidden;
      background: #fff;
      flex: 1;
      min-width: 0;
      max-width: 640px;
    }

    .sn-rule-slots-head {
      display: grid;
      grid-template-columns: 120px 1fr minmax(200px, auto);
      gap: 8px;
      align-items: center;
      padding: 10px 12px;
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      background: #fafafa;
      border-bottom: 1px solid var(--border);
    }

    .sn-rule-slot-row {
      display: grid;
      grid-template-columns: 120px 1fr minmax(200px, auto);
      gap: 8px;
      align-items: center;
      padding: 12px;
      border-bottom: 1px solid var(--border);
    }

    .sn-rule-slot-row:last-child {
      border-bottom: none;
    }

    .sn-rule-time-range {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
    }

    .sn-rule-time-range input[type="time"] {
      width: 108px;
      padding: 6px 8px;
      border: 1px solid #d9d9d9;
      border-radius: 6px;
      font-size: 14px;
      font-family: inherit;
      color: var(--text);
    }

    .sn-rule-slot-actions {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 12px;
      justify-content: flex-end;
    }

    .sn-rule-slot-add {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      padding: 10px 12px;
      margin: 0;
      border: none;
      border-top: 1px solid var(--border);
      background: #fff;
      color: #fa8c16;
      font-size: 14px;
      cursor: pointer;
      font-family: inherit;
      transition: background 0.2s;
    }

    .sn-rule-slot-add:hover {
      background: #fff7e6;
    }

    .schedule-new-row__field--room {
      max-width: 480px;
    }

    .schedule-new-row--align-top {
      align-items: flex-start;
    }

    .schedule-new-row--align-top .schedule-new-row__label {
      line-height: 1.4;
      padding-top: 8px;
    }

    .class-detail-summary {
      background: #fff;
      border-radius: 8px;
      padding: 20px 24px;
      margin-bottom: 0;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    }
