    :root {
      /* 新配色：清爽青蓝主色，珊瑚红辅助，薄荷绿成功色 */
      --primary: #0ea5e9;
      --primary-light: #7dd3fc;
      --primary-dark: #0284c7;
      --success: #10b981;
      --warning: #f59e0b;
      --danger: #f43f5e;
      --info: #8b5cf6;
      --dark: #1e293b;
      --gray: #64748b;
      --light-gray: #94a3b8;
      --bg: #f0f6ff;
      --card-bg: #ffffff;
      --border: #e2e8f0;
      --text: #1e293b;
      --text-light: #64748b;
      --shadow: 0 1px 12px rgba(14,165,233,0.08), 0 1px 3px rgba(0,0,0,0.04);
      --shadow-hover: 0 8px 28px rgba(14,165,233,0.18);
      --radius: 14px;
      --radius-sm: 9px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      min-height: 100dvh;
    }

    /* ===== SIDEBAR ===== */
    .sidebar {
      position: fixed; left: 0; top: 0; bottom: 0; width: 240px;
      background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 100%);
      display: flex; flex-direction: column;
      z-index: 100;
      box-shadow: 4px 0 24px rgba(0,0,0,0.18);
    }
    .sidebar-brand {
      padding: 24px 20px 18px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .sidebar-brand h1 {
      color: #fff; font-size: 17px; font-weight: 700;
      display: flex; align-items: center; gap: 8px;
    }
    .sidebar-brand p { color: var(--primary-light); font-size: 12px; margin-top: 4px; }
    .sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
    .nav-section-title {
      color: rgba(255,255,255,0.3); font-size: 10px; font-weight: 700;
      letter-spacing: 0.1em; text-transform: uppercase;
      padding: 14px 20px 5px;
    }
    .nav-item {
      display: flex; align-items: center; gap: 11px;
      padding: 10px 20px; color: rgba(255,255,255,0.65);
      cursor: pointer; transition: all 0.18s; font-size: 14px;
      border-left: 3px solid transparent;
      text-decoration: none; border-radius: 0;
    }
    .nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
    .nav-item.active {
      background: rgba(14,165,233,0.2); color: #fff;
      border-left-color: var(--primary-light);
    }
    .nav-item .icon { font-size: 17px; width: 22px; text-align: center; }
    .sidebar-footer {
      padding: 14px 20px;
      border-top: 1px solid rgba(255,255,255,0.07);
      font-size: 12px; color: rgba(255,255,255,0.25);
    }

    /* ===== MAIN CONTENT ===== */
    .main {
      margin-left: 240px; min-height: 100vh; min-height: 100dvh; width: calc(100% - 240px);
      display: flex; flex-direction: column;
    }
    .topbar {
      background: rgba(255,255,255,0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      padding: 14px 40px; display: flex; align-items: center;
      justify-content: space-between; position: sticky; top: 0; z-index: 50;
    }
    .topbar h2 { font-size: 17px; font-weight: 700; color: var(--dark); }
    .topbar-actions { display: flex; gap: 12px; align-items: center; }
    .content { padding: 28px 40px; flex: 1; min-height: 0; display: flex; flex-direction: column; }

    /* ===== 表格视图 Flex 链（桌面端，v3.27.30 全局生效）===== */
    #view-schedule.view.active { display:flex; flex-direction:column; flex:1; min-height:0; }
    #view-schedule.view.active .card { flex:1; display:flex; flex-direction:column; min-height:0; overflow:hidden; }
    #schedule-zoom-wrap { flex:1; min-height:0; display:flex; flex-direction:column; overflow:auto; }
    #schedule-table-wrap { flex:1; min-height:0; overflow:auto; }
    /* 表格视图专用：页面高度锁定视口，内容由表格容器内部滚动 */
    /* v3.27.27: 使用 body.schedule-view（JS 动态添加）替代 :has()，更可靠 */
    body.schedule-view .main { max-height: 100dvh; overflow: hidden; }
    body.schedule-view .content { overflow: hidden; padding-bottom: 0 !important; }
    /* v3.27.49: 项目管理同样需要约束高度，否则 flex 链不限制子元素高度，sticky 表头无法生效 */
    body.projects-view .main { max-height: 100dvh; overflow: hidden; }
    body.projects-view .content { overflow: hidden; }
    /* v3.27.51: 录音列表同理 */
    body.list-view .main { max-height: 100dvh; overflow: hidden; }
    body.list-view .content { overflow: hidden; }
    /* v3.30.8: 录音反馈视图同样需要约束高度 */
    body.feedback-view .main { max-height: 100dvh; overflow: hidden; }
    body.feedback-view .content { overflow: hidden; }
    body.booker-feedback-view .main { max-height: 100dvh; overflow: hidden; }
    body.booker-feedback-view .content { overflow: hidden; }

    /* ===== VIEWS ===== */
    .view { display: none; opacity: 0; transition: opacity 0.2s ease; }
    .view.active { display: flex; flex-direction: column; opacity: 1; flex: 1; min-height: 0; }
    /* 列表型视图：card 撑满剩余高度 */
    #view-list, #view-feedback, #view-booker-feedback, #view-dispatch, #view-extra-tasks, #view-projects { display: none; }
    #view-list.active, #view-feedback.active, #view-booker-feedback.active, #view-dispatch.active, #view-extra-tasks.active, #view-projects.active { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
    #view-list.active .card, #view-feedback.active .card, #view-booker-feedback.active .card, #view-dispatch.active .card {
      flex: 1; display: flex; flex-direction: column; min-height: 0;
    }
    #view-list.active .table-wrap, #view-feedback.active .table-wrap, #view-booker-feedback.active .table-wrap, #view-dispatch.active .table-wrap {
      flex: 1; overflow-y: auto; min-height: 0;
    }
    /* 额外任务（无 card 包裹） */
    #view-extra-tasks.active #et-task-list {
      flex: 1; overflow-y: auto; min-height: 0;
    }

    /* ===== STAT CARDS ===== */
    .stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
    .stat-card {
      border-radius: var(--radius);
      padding: 14px 18px; position: relative; overflow: hidden;
      border: none;
    }
    .stat-card::before {
      content: ''; position: absolute; inset: 0; border-radius: var(--radius);
      opacity: 0.12; background: currentColor;
    }
    .stat-card .label { font-size: 13px; color: currentColor; margin-bottom: 8px; opacity: 0.75; position: relative; }
    .stat-card .value { font-size: 26px; font-weight: 800; position: relative; letter-spacing: -1px; }
    .stat-card .change { font-size: 12px; color: currentColor; margin-top: 4px; opacity: 0.6; position: relative; }
    .stat-card.purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }
    .stat-card.green  { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
    .stat-card.orange { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
    .stat-card.blue   { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #0284c7; }
    .stat-card.cyan   { background: linear-gradient(135deg, #cffafe, #a5f3fc); color: #0891b2; }

    /* ===== CARDS ===== */
    .card {
      background: var(--card-bg); border-radius: var(--radius);
      box-shadow: var(--shadow); border: 1px solid var(--border);
      overflow: hidden;
    }
    .card-header {
      padding: 16px 22px; border-bottom: 1px solid var(--border);
      display: flex; align-items: center; justify-content: space-between;
    }
    .card-title { font-size: 14px; font-weight: 700; color: var(--dark); }
    .card-body { padding: 20px 24px; }

    /* 卡片展开/折叠箭头 */
    .card-arrow { display:inline-block; transition:transform 0.2s ease; font-size:14px; color:var(--text-light); }
    .card-arrow.expanded { transform:rotate(90deg); }

    /* ===== BUTTONS ===== */
    .btn {
      display: inline-flex; align-items: center; gap: 5px;
      padding: 8px 16px; border-radius: var(--radius-sm);
      font-size: 13px; font-weight: 600; cursor: pointer;
      border: none; transition: all 0.18s; text-decoration: none;
    }
    .btn-primary { background: var(--primary); color: #fff; }
    .btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(14,165,233,0.4); transform: translateY(-1px); }
    .btn-success { background: var(--success); color: #fff; }
    .btn-success:hover { background: #059669; box-shadow: 0 4px 14px rgba(16,185,129,0.35); transform: translateY(-1px); }
    .btn-warning { background: var(--warning); color: #fff; }
    .btn-warning:hover { background: #d97706; }
    .btn-danger { background: var(--danger); color: #fff; }
    .btn-danger:hover { background: #e11d48; box-shadow: 0 4px 14px rgba(244,63,94,0.35); }
    .btn-outline {
      background: transparent; border: 1.5px solid var(--border);
      color: var(--text);
    }
    .btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(14,165,233,0.04); }
    .btn-sm { padding: 5px 11px; font-size: 12px; }
    .btn-icon { padding: 8px; border-radius: 8px; }
    .btn:focus-visible, .btn-outline:focus-visible {
      outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--radius-sm);
    }
    .btn-primary:focus-visible { outline-color: var(--primary-dark); }
    .btn-danger:focus-visible { outline-color: var(--danger); }
    .btn-success:focus-visible { outline-color: var(--success); }
    .btn-warning:focus-visible { outline-color: var(--warning); }

    /* ===== FORMS ===== */
    .form-group { margin-bottom: 18px; }
    .form-label {
      display: block; font-size: 13px; font-weight: 600;
      color: var(--dark); margin-bottom: 7px;
    }
    .form-label span.required { color: var(--danger); margin-left: 2px; }
    .form-control {
      width: 100%; padding: 9px 13px;
      border: 1.5px solid var(--border); border-radius: var(--radius-sm);
      font-size: 14px; color: var(--text); background: #fff;
      transition: all 0.18s; outline: none;
    }
    .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,233,0.12); }
    .form-control:disabled { background: #f8fafc; color: var(--text-light); }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
    .form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }

    /* Radio group */
    .radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
    .radio-option {
      display: flex; align-items: center; gap: 7px; cursor: pointer;
      padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 8px;
      transition: all 0.18s; font-size: 14px;
    }
    .radio-option input { accent-color: var(--primary); }
    .radio-option:has(input:checked) { border-color: var(--primary); background: rgba(14,165,233,0.07); }

    /* ===== TABLE ===== */
    .table-wrap { overflow-x: auto; }
    table { width: 100%; border-collapse: separate; border-spacing: 0; }
    th {
      background: #f8fafc; padding: 11px 14px;
      text-align: left; font-size: 11px; font-weight: 700;
      color: var(--text-light); text-transform: uppercase;
      letter-spacing: 0.06em; border-bottom: 1.5px solid #000;
      white-space: nowrap;
    }
    .booker-feedback-table th { text-align: center !important; }
    td {
      padding: 13px 14px; border-bottom: 1px solid #000;
      font-size: 14px; vertical-align: middle;
    }
    tr:last-child td { border-bottom: none; }
    tr:hover td { background: #e0f2fe; }

    /* ===== BADGES ===== */
    .badge {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700;
    }
    .badge-pending  { background: #ede9fe; color: #7c3aed; }
    .badge-assigned { background: #dbeafe; color: #1d4ed8; }
    .badge-recording{ background: #fef3c7; color: #b45309; }
    .badge-feedback { background: #ffe4e6; color: #be123c; }
    .badge-soundcheck { background: #fce7f3; color: #be185d; }
    .badge-done      { background: #d1fae5; color: #065f46; }
    .badge-sc-done   { background: #d1fae5; color: #065f46; font-weight:600; }
    .badge-recording-done { background: #fff7ed; color: #c2410c; font-weight:600; }
    .badge-cancelled { background: #f1f5f9; color: #64748b; text-decoration: line-through; }
    .notif-tab {
      padding: 10px 16px; cursor: pointer; font-size: 13px; font-weight: 600;
      color: var(--text-light); border-bottom: 2px solid transparent;
      transition: all .15s; position: relative;
    }
    .notif-tab:hover { color: var(--dark); }
    .notif-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
    .badge-online   { background: #d1fae5; color: #059669; }
    .badge-offline  { background: #f1f5f9; color: var(--gray); }
    .badge-virtual  { background: #e0f2fe; color: #0284c7; }

    /* 任务选项卡 */
    .task-tab {
      padding:10px 18px;font-size:13px;border:none;background:transparent;
      cursor:pointer;color:var(--text-light);font-weight:500;position:relative;
      border-bottom:2px solid transparent;margin-bottom:-1px;transition:all .15s;
    }
    .task-tab:hover { color:var(--primary); background:rgba(14,165,233,0.04); }
    .task-tab.active { color:var(--primary); border-bottom-color:var(--primary); font-weight:600; }
    .task-tab + .task-tab { margin-left:4px; }

    /* ===== STATUS STEPS ===== */
    .status-steps { display: flex; align-items: center; gap: 0; margin: 18px 0; }
    .status-step {
      flex: 1; text-align: center; position: relative;
      font-size: 12px; padding: 8px 4px;
    }
    .status-step::before {
      content: ''; position: absolute; top: 12px;
      left: 50%; right: -50%; height: 2px; background: var(--border); z-index: 0;
    }
    .status-step:last-child::before { display: none; }
    .step-dot {
      width: 24px; height: 24px; border-radius: 50%; background: var(--border);
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 6px; position: relative; z-index: 1;
      font-size: 12px; color: #fff;
      transition: background 0.25s ease, box-shadow 0.25s ease;
    }
    .status-step.done .step-dot { background: var(--success); }
    .status-step.active .step-dot { background: var(--primary); box-shadow: 0 0 0 4px rgba(14,165,233,0.22); }
    .status-step.done::before { background: var(--success); }

    /* ===== CALENDAR ===== */
    .calendar-header {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 18px;
    }
    .calendar-nav { display: flex; align-items: center; gap: 10px; }
    .calendar-nav button {
      background: #fff; border: 1.5px solid var(--border); border-radius: 9px;
      padding: 6px 13px; cursor: pointer; font-size: 15px; color: var(--text);
      transition: all 0.18s; box-shadow: var(--shadow);
    }
    .calendar-nav button:hover { border-color: var(--primary); color: var(--primary); }
    .cal-date-label { font-size: 18px; font-weight: 800; color: var(--dark); }

    .studio-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
    .studio-tab {
      padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
      cursor: pointer; border: 1.5px solid var(--border); background: #fff;
      transition: all 0.18s;
    }
    .studio-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

    .timeline-wrap {
      background: var(--card-bg); border-radius: var(--radius);
      border: 1px solid var(--border); overflow: auto;
      max-height: 80vh; box-shadow: var(--shadow);
    }
    .timeline-header {
      display: grid; background: #f8fafc;
      border-bottom: 1.5px solid var(--border);
    }
    .time-col { padding: 8px 12px; font-size: 11px; color: var(--text-light); font-weight: 600; }

    .timeline-body { position: relative; min-height: 600px; }
    .timeline-hour-line { position: absolute; left: 60px; right: 0; height: 1px; background: var(--border); }
    .timeline-hour-label {
      position: absolute; left: 0; width: 58px;
      font-size: 11px; color: var(--text-light);
      text-align: right; padding-right: 10px; transform: translateY(-50%);
    }
    .timeline-event {
      position: absolute; left: 68px; right: 8px;
      border-radius: 8px; padding: 6px 10px; overflow: hidden;
      cursor: pointer; transition: all 0.15s; border-left: 3px solid;
    }
    .timeline-event:hover { filter: brightness(0.95); transform: translateX(2px); box-shadow: var(--shadow-hover); }
    .timeline-event .ev-title { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .timeline-event .ev-sub   { font-size: 11px; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* 日历日格 hover（schedule / calendar 中可交互的时间段） */
    .schedule-cell, #cal-content [style*="cursor:pointer"]:hover {
      filter: brightness(0.97) !important; transition: filter 0.15s;
    }

    /* ===== EMPTY STATE ===== */
    .empty-state { text-align: center; padding: 56px 20px; color: var(--text-light); }
    .empty-state .icon { font-size: 48px; margin-bottom: 12px; }
    .empty-state p { font-size: 14px; }

    /* ===== MODAL ===== */
    .modal-overlay {
      position: fixed; inset: 0; background: rgba(15,23,42,0.5);
      display: flex; align-items: center; justify-content: center;
      z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.2s;
    }
    .modal-overlay.active { opacity: 1; pointer-events: all; }
    .modal {
      background: var(--card-bg); border-radius: 18px;
      max-width: 660px; width: 95%; max-height: 90vh; overflow-y: auto;
      box-shadow: 0 24px 64px rgba(0,0,0,0.22);
      transform: translateY(24px) scale(0.98); transition: transform 0.22s, opacity 0.22s;
    }
    .modal-overlay.active .modal { transform: translateY(0) scale(1); }
    .modal-header {
      padding: 18px 22px; border-bottom: 1px solid var(--border);
      display: flex; align-items: center; justify-content: space-between;
    }
    .modal-title { font-size: 16px; font-weight: 700; }
    .modal-close {
      width: 30px; height: 30px; border-radius: 8px; border: none;
      background: #f1f5f9; cursor: pointer; font-size: 16px;
      display: flex; align-items: center; justify-content: center; transition: background 0.18s;
    }
    .modal-close:hover { background: #ffe4e6; color: var(--danger); }
    .modal-body { padding: 22px; }
    .modal-footer {
      padding: 14px 22px; border-top: 1px solid var(--border);
      display: flex; justify-content: flex-end; gap: 10px;
    }

    /* ===== ALERT ===== */
    .alert {
      padding: 11px 15px; border-radius: var(--radius-sm);
      font-size: 14px; margin-bottom: 14px; display: flex; align-items: flex-start; gap: 8px;
    }
    .alert-danger  { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
    .alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
    .alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
    .alert-info    { background: #f0f9ff; color: #075985; border: 1px solid #bae6fd; }

    /* ===== BATCH COPY SLOT CARD ===== */
    .batch-slot-row {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px 14px;
      margin-bottom: 10px;
      transition: box-shadow 0.15s, border-color 0.15s;
    }
    .batch-slot-row:hover {
      border-color: var(--primary-light);
      box-shadow: 0 2px 10px rgba(14,165,233,0.08);
    }
    .batch-slot-row .batch-start,
    .batch-slot-row .batch-end {
      padding: 5px 9px; font-size: 13px;
    }
    .batch-slot-row .batch-notes {
      margin-bottom: 6px; font-size: 12px;
    }

    /* ===== BATCH TOGGLE SWITCH ===== */
    .batch-toggle {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      cursor: pointer;
      user-select: none;
      font-size: 12px;
      padding: 4px 10px;
      border-radius: 16px;
      transition: all 0.18s ease;
      border: 1px solid transparent;
      white-space: nowrap;
    }
    .batch-toggle.toggle-on {
      background: #ecfdf5;
      color: #059669;
      border-color: #6ee7b7;
    }
    .batch-toggle.toggle-on:hover {
      background: #d1fae5;
      border-color: #34d399;
    }
    .batch-toggle.toggle-off {
      background: #f8fafc;
      color: #94a3b8;
      border-color: #e2e8f0;
    }
    .batch-toggle.toggle-off:hover {
      background: #f1f5f9;
      color: #64748b;
      border-color: #cbd5e1;
    }
    .batch-toggle .toggle-icon {
      font-weight: 600;
      font-size: 10px;
      width: 14px;
      text-align: center;
    }

    /* ===== TOAST ===== */
    .toast-container { position: fixed; top: 22px; right: 22px; z-index: 9999; display: flex; flex-direction: column; gap: 9px; }
    .toast {
      background: var(--dark); color: #fff; border-radius: 11px;
      padding: 11px 16px; font-size: 13px; max-width: 440px;
      display: flex; align-items: center; gap: 9px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.22);
      animation: slideInRight 0.28s ease;
    }
    .toast.success { background: var(--success); }
    .toast.error   { background: var(--danger); }
    .toast.warning { background: var(--warning); }
    @keyframes slideInRight {
      from { transform: translateX(100px); opacity: 0; }
      to   { transform: translateX(0); opacity: 1; }
    }
    @keyframes fadeOut {
      to { opacity: 0; transform: translateX(20px); }
    }

    /* ===== SEARCH / FILTER BAR ===== */
    .filter-bar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
    .filter-bar .form-control { width: auto; min-width: 120px; max-width: 220px; }
    .filter-bar select.form-control { max-width: 160px; }
    .search-input { position: relative; flex: 1 1 200px; min-width: 160px; max-width: 320px; }
    .search-input input { padding-left: 34px; }
    .search-input::before {
      content: '🔍'; position: absolute; left: 10px; top: 50%;
      transform: translateY(-50%); font-size: 13px; pointer-events: none;
    }

    /* ===== DETAIL PANEL ===== */
    .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .detail-item .label { font-size: 11px; color: var(--text-light); margin-bottom: 3px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
    .detail-item .value { font-size: 14px; font-weight: 500; }

    /* ===== SETTINGS ===== */
    .settings-section { margin-bottom: 28px; }
    .settings-section h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

    /* ===== FILE UPLOAD ===== */
    .file-upload-area {
      border: 2px dashed var(--border); border-radius: var(--radius-sm);
      padding: 22px; text-align: center; cursor: pointer; transition: all 0.18s;
      background: #f8fafc;
    }
    .file-upload-area:hover { border-color: var(--primary); background: rgba(14,165,233,0.03); }
    .file-upload-area.drag-over { border-color: var(--primary); background: rgba(14,165,233,0.06); }
    .file-list { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
    .file-item {
      display: flex; align-items: center; justify-content: space-between;
      padding: 7px 11px; background: #f8fafc; border-radius: 8px; font-size: 13px;
    }
    .file-item .file-name { display: flex; align-items: center; gap: 7px; }
    .file-item .remove-file { cursor: pointer; color: var(--danger); font-size: 15px; }

    /* ===== PROGRESS ===== */
    .progress-bar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
    .progress-fill { height: 100%; border-radius: 3px; transition: width 0.5s; }

    /* ===== SCROLLBAR ===== */
    ::-webkit-scrollbar { width: 5px; height: 5px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

    /* ===== RESPONSIVE ===== */

    /* 大型桌面 (≥1400px)：去掉居中 max-width，让内容自然撑满可用空间 */
    @media (min-width: 1400px) {
      .content { max-width: none; padding: 28px 48px; }
    }
    /* 超宽屏 (≥1920px)：加大内边距保持呼吸感 */
    @media (min-width: 1920px) {
      .content { padding: 32px 64px; }
    }

    /* 笔记本 (≤1280px)：缩减内边距和表格间距 */
    @media (max-width: 1280px) {
      .content { padding: 20px 28px; }
      .topbar { padding: 12px 28px; }
      .topbar h2 { font-size: 16px; }
      .card-body { padding: 16px 20px; }
      .card-header { padding: 14px 18px; }
      .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
      .stat-card { padding: 12px 16px; }
      .stat-card .value { font-size: 22px; }
      th, td { padding: 10px 10px; font-size: 13px; }
      .detail-grid { gap: 10px; }
      .filter-bar .form-control { max-width: 180px; font-size: 12px; padding: 6px 10px; }
      .form-row, .form-row-3 { gap: 14px; }
      .modal { max-width: 600px !important; }
    }

    /* 小平板/小笔记本 (≤1024px)：进一步缩减 */
    @media (max-width: 1024px) {
      .sidebar { width: 200px; }
      .main { margin-left: 200px; width: calc(100% - 200px); }
      .sidebar-brand h1 { font-size: 15px; }
      .nav-item { padding: 8px 16px; font-size: 13px; }
      .nav-section-title { padding: 12px 16px 4px; font-size: 9px; }
      .content { padding: 16px 20px; }
      .topbar { padding: 10px 20px; }
      .card-body { padding: 14px 16px; }
      .card-header { padding: 12px 14px; }
      .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
      .stat-card .value { font-size: 20px; }
      .stat-card .label { font-size: 12px; }
      th { font-size: 10px; padding: 8px 8px; }
      td { font-size: 12px; padding: 8px 8px; }
      .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 10px; }
      .detail-grid { grid-template-columns: 1fr; gap: 8px; }
      .filter-bar { gap: 8px; }
      .filter-bar .form-control { max-width: 160px; font-size: 12px; padding: 5px 8px; }
      .search-input { min-width: 150px; }
      .modal { max-width: 540px !important; }
      .btn { padding: 7px 13px; font-size: 12px; }
      .calendar-header { flex-wrap: wrap; gap: 8px; }
      .cal-date-label { font-size: 16px; }
      .login-box { width: 340px; }
      /* 表格：允许文字换行，优先内容完整 */
      .table-wrap td { white-space: normal; word-break: break-word; }
    }

    /* 窄屏 (≤900px)：侧边栏收窄 + 表格更紧凑 */
    @media (max-width: 900px) {
      .sidebar { width: 180px; }
      .main { margin-left: 180px; width: calc(100% - 180px); }
      .sidebar-brand { padding: 18px 14px 12px; }
      .sidebar-brand h1 { font-size: 14px; }
      .sidebar-brand p { font-size: 10px; }
      .nav-item { padding: 7px 14px; font-size: 12px; gap: 7px; }
      .nav-item .icon { font-size: 15px; width: 18px; }
      .sidebar-footer { font-size: 10px; padding: 10px 14px; }
      .content { padding: 14px 16px; }
      .topbar { padding: 8px 16px; }
      .topbar h2 { font-size: 15px; }
      .card-body { padding: 12px 14px; }
      .card-header { padding: 10px 14px; }
      th { font-size: 10px; padding: 6px 6px; }
      td { font-size: 11px; padding: 7px 7px; }
      .filter-bar .form-control { max-width: 140px; font-size: 11px; }
      .stat-card .value { font-size: 18px; }
      .modal { max-width: 480px !important; }
      .login-box { width: 310px; padding: 28px 20px; }
    }

    /* ===== MOBILE TAB BAR (底部导航) ===== */
    .mobile-tab-bar {
      display: none;
      position: fixed; bottom: 0; left: 0; right: 0;
      height: 60px; z-index: 200;
      background: #fff;
      border-top: 1px solid var(--border);
      box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
      padding: 0 env(safe-area-inset-bottom, 0);
    }
    .mobile-tab-bar-inner {
      display: flex; align-items: center; justify-content: space-around;
      height: 100%; width: 100%; max-width: 500px; margin: 0 auto;
    }
    .mobile-tab-item {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 2px; flex: 1; cursor: pointer;
      color: var(--gray); font-size: 10px; font-weight: 600;
      transition: color 0.18s; -webkit-tap-highlight-color: transparent;
      user-select: none;
    }
    .mobile-tab-item .tab-icon { font-size: 20px; line-height: 1; }
    .mobile-tab-item.active { color: var(--primary); }
    .mobile-tab-item:active { opacity: 0.7; }
    .mobile-tab-more { position: relative; }
    .mobile-tab-more-panel {
      display: none; position: fixed; bottom: 62px; left: 8px; right: 8px;
      background: #fff; border-radius: 16px;
      box-shadow: 0 8px 40px rgba(0,0,0,0.15);
      padding: 8px 0; z-index: 210;
      max-height: 60vh; overflow-y: auto;
    }
    .mobile-tab-more-panel.show { display: block; }
    .mobile-tab-more-overlay {
      display: none; position: fixed; inset: 0; z-index: 205;
      background: rgba(0,0,0,0.2);
    }
    .mobile-tab-more-overlay.show { display: block; }
    .mobile-tab-more-item {
      display: flex; align-items: center; gap: 12px;
      padding: 14px 20px; cursor: pointer;
      font-size: 14px; font-weight: 600; color: var(--dark);
      transition: background 0.15s;
    }
    .mobile-tab-more-item:active { background: #f0f6ff; }
    .mobile-tab-more-item .tab-icon { font-size: 18px; width: 24px; text-align: center; }
    .mobile-tab-more-item.active { color: var(--primary); background: rgba(14,165,233,0.06); }

    /* ===== MOBILE RESPONSIVE (≤768px) ===== */
    @media (max-width: 768px) {
      /* 隐藏侧边栏 */
      .sidebar { display: none !important; }

      /* 主内容全宽 */
      .main {
        margin-left: 0 !important;
        width: 100% !important;
      }

      /* 顶栏简化 */
      .topbar {
        padding: 10px 16px;
        position: sticky; top: 0; z-index: 50;
      }
      .topbar h2 { font-size: 15px; }
      .topbar-actions { gap: 8px; }
      .topbar-user { display: none; }
      #current-date { display: none; }

      /* Toast 适配小屏 */
      .toast { max-width: calc(100vw - 44px); font-size: 12px; padding: 10px 14px; }

      /* 内容区 */
      .content { padding: 16px 12px 80px 12px; }

      /* 统计卡片单列 */
      .stat-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; margin-bottom: 16px !important; }
      .stat-card { padding: 14px 16px; }
      .stat-card .value { font-size: 20px; }
      .stat-card .change { font-size: 11px; }

      /* Dashboard 双列→单列 */
      #view-dashboard > div:last-child { grid-template-columns: 1fr !important; }
      .card-header { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }

      /* 表单：所有 form-row / form-row-3 变单列 */
      .form-row,
      .form-row-3 {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
      }

      /* 钉钉/飞书风格表单 */
      .card-body .form-group {
        display: flex;
        flex-direction: column;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        margin-bottom: 0;
      }
      .card-body .form-group:last-child {
        border-bottom: none;
      }
      .card-body .form-label {
        font-size: 13px;
        color: var(--text-light);
        font-weight: 600;
        margin-bottom: 6px;
      }
      .card-body .form-control {
        font-size: 15px;
        padding: 8px 0;
        border: none;
        border-bottom: 1.5px solid transparent;
        border-radius: 0;
        background: transparent;
        box-shadow: none !important;
        transition: border-color 0.2s;
      }
      .card-body .form-control:focus {
        border-bottom-color: var(--primary);
        box-shadow: none !important;
      }
      .card-body select.form-control {
        padding: 8px 0;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0 center;
      }
      .card-body textarea.form-control {
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 10px;
        resize: vertical;
        min-height: 80px;
        background: var(--bg);
      }

      /* 筛选栏 */
      .filter-bar { flex-direction: column; gap: 8px; }
      .filter-bar .form-control { max-width: 100% !important; }
      .search-input { min-width: auto; }
      .search-input::before { display: none; }

      /* 弹窗全屏 */
      .modal {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 18px 18px 0 0 !important;
        max-height: 90vh;
        margin: auto;
        bottom: 0;
      }
      .modal-overlay { align-items: flex-end; }

      /* 表格容器 */
      .table-wrap { margin: 0 -12px; overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
      table { font-size: 12px; }
      th, td { padding: 10px 8px !important; font-size: 12px; }

      /* 移动端隐藏表头（卡片模式不需要表头） */
      .table-wrap thead { display: none !important; }
      .table-wrap table { display: block; }
      .table-wrap tbody { display: block; }
      .table-wrap tr { display: block; }
      .table-wrap td { display: block; padding: 0 !important; border: none !important; }

      /* 详情面板单列 */
      .detail-grid { grid-template-columns: 1fr !important; }

      /* 状态步骤缩小 */
      .status-steps { gap: 0; margin: 12px 0; }
      .status-step { font-size: 10px; padding: 6px 2px; }
      .step-dot { width: 20px; height: 20px; font-size: 10px; }

      /* 日历头部 */
      .calendar-header { flex-direction: column; gap: 10px; align-items: stretch; }
      .calendar-nav { flex-wrap: wrap; justify-content: center; }
      .cal-date-label { font-size: 15px; }
      .studio-tabs { justify-content: center; }

      /* 设置页 */
      #view-settings > div > div { grid-template-columns: 1fr !important; }

      /* 预约卡片 */
      .card { max-width: 100% !important; }
      #view-booking .card { max-width: 100% !important; }

      /* 按钮全宽 */
      .card-body .btn {
        width: 100%;
        padding: 12px;
        font-size: 15px;
        border-radius: 10px;
      }
      .card-body .btn-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
      }
      .card-body .btn-group .btn {
        width: 100%;
      }

      /* 列表项优化 */
      .booking-item { padding: 14px 16px !important; border-radius: 12px !important; }
      .booking-item .meta { font-size: 12px; }

      /* Badge 优化 */
      .badge { font-size: 11px; padding: 2px 8px; }

      /* 弹窗内的表单也用飞书风格 */
      .modal .form-group {
        display: flex;
        flex-direction: column;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        margin-bottom: 0;
      }
      .modal .form-group:last-child { border-bottom: none; }
      .modal .form-control {
        font-size: 14px;
        padding: 8px 0;
        border: none;
        border-bottom: 1.5px solid transparent;
        border-radius: 0;
        background: transparent;
        box-shadow: none !important;
      }
      .modal .form-control:focus {
        border-bottom-color: var(--primary);
        box-shadow: none !important;
      }
      .modal select.form-control {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0 center;
      }
      .modal textarea.form-control {
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 10px;
        min-height: 70px;
        background: var(--bg);
      }
      .modal .modal-actions {
        display: flex;
        gap: 10px;
        padding-top: 12px;
      }
      .modal .modal-actions .btn {
        flex: 1;
        padding: 12px;
        font-size: 14px;
        border-radius: 10px;
      }

      /* 分隔标题 */
      .section-divider {
        font-size: 13px;
        font-weight: 700;
        color: var(--text-light);
        padding: 16px 0 8px 0;
        border-bottom: 1px solid var(--border);
        margin-bottom: 4px;
      }

      /* 表格水平滚动优化 */
      .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -12px;
        padding: 0 12px;
      }

      /* Dashboard 任务卡片 */
      .task-card {
        padding: 12px 14px !important;
        border-radius: 12px !important;
      }

      /* 数据统计页图表区域 */
      #view-stats .card-body { padding: 16px; }
      #view-stats h3 { font-size: 15px; }

      /* 调度页面优化 */
      #view-dispatch .card-body { padding: 14px; }

      /* ===== 表格视图（Excel式排班表）===== */
      /* 桌面端：完整 flex 链，让表格区域撑满剩余视口高度 */
      #view-schedule.view.active { display:flex; flex-direction:column; flex:1; min-height:0; }
      #view-schedule.view.active .card { flex:1; display:flex; flex-direction:column; min-height:0; overflow:hidden; }
      /* #schedule-zoom-wrap 现在是 card 的直接子元素，直接给 flex:1 */
      #schedule-zoom-wrap { flex:1; min-height:0; }
      #view-schedule .card-body { padding: 12px; }
      #schedule-toolbar {
        display:flex; align-items:center; justify-content:flex-end;
        flex-wrap:wrap; gap:8px; padding:0 4px 10px;
      }
      .schedule-zoom-control { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--text-light); }
      .schedule-zoom-control button {
        width:26px;height:26px;border-radius:6px;display:flex;align-items:center;
        justify-content:center;font-size:14px;background:var(--bg);border:1px solid var(--border);
        cursor:pointer;padding:0;line-height:1;
      }
      .schedule-zoom-control button:hover { background:#f1f5f9; border-color:var(--primary); color:var(--primary); }
      .schedule-zoom-control input[type="range"] { width:100px; height:4px; accent-color:var(--primary); cursor:pointer; }

      /* 缩放层：合并 flex 和 zoom 属性 */
      #schedule-zoom-wrap {
        flex:1; min-height:0; display:flex; flex-direction:column;
        zoom: var(--schedule-zoom, 1); transform-origin: top left;
        padding: 0 0 8px;
      }
      /* 滚动数据区：height:100% 撑满缩放层，不用 max-height 限制 */
      #schedule-table-wrap {
        flex:1; min-height:0;
        overflow-y: auto; overflow-x: auto;
        border-radius:8px; border:1px solid #000;
      }
      #schedule-table-wrap table {
        width:100%; border-collapse:collapse; table-layout:fixed; font-size:14px;
        font-family:'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
      }
      #schedule-table-wrap td, #schedule-table-wrap th {
        vertical-align:middle;
        border:2px solid #000;
      }
      /* 行悬停标黄（整条预约记录高亮） */
      #schedule-table-wrap tbody tr:hover td {
        background-color: #fff8dc !important;
      }
      /* 未分配录音师行 - 浅红 + 左侧指示条 */
      #schedule-table-wrap tbody tr.row-unassigned td {
        background-color: #fef2f2 !important;
      }
      #schedule-table-wrap tbody tr.row-unassigned > td:first-child {
        border-left: 3px solid #f43f5e !important;
      }
      #schedule-table-wrap tbody tr.row-unassigned:hover td {
        background-color: #fff8dc !important;
      }
      #schedule-table-wrap thead th {
        background:#f1f5f9;
        padding:6px 6px;text-align:left;font-weight:600;font-size:14px;
        white-space:nowrap;border-bottom:2px solid #000;
        color:var(--text);
      }
      #schedule-table-wrap thead th.engineer-col {
        color:#d97706; text-decoration:underline; text-decoration-style:dashed; text-underline-offset:3px;
      }
      #schedule-table-wrap tbody tr { height:28px; transition:background 0.12s; }
      #schedule-table-wrap tbody tr:nth-child(even) { background:#eef2f6; }
      #schedule-table-wrap tbody tr:hover { background:rgba(14,165,233,0.07) !important; }
      #schedule-table-wrap tbody td {
        padding:4px 6px; white-space:nowrap; vertical-align:middle;
        border-bottom:2px solid #000; font-size:14px;
      }
      /* 日期合并单元格 */
      #schedule-table-wrap td.date-cell {
        width:48px; white-space:normal; word-break:break-all;
        background:linear-gradient(135deg, rgba(14,165,233,0.05), rgba(99,102,241,0.05));
        font-weight:700;font-size:13px;color:var(--text);vertical-align:middle;
        border-left:3px solid transparent;
      }
      #schedule-table-wrap td.date-cell.is-today {
        border-left-color:var(--primary); color:var(--primary);
        background:linear-gradient(135deg, rgba(14,165,233,0.08), rgba(99,102,241,0.08));
      }
      /* 未分配行内的日期单元格 - 覆盖渐变为浅红 */
      #schedule-table-wrap tbody tr.row-unassigned td.date-cell {
        background:#fef2f2 !important;
      }
      /* AM/PM 时段列 — 明显底色区分 */
      #schedule-table-wrap td.period-am {
        color:#92400e; font-weight:800; text-align:center; font-size:13px;
        background: linear-gradient(180deg, #dbeafe 0%, #e0f2fe 100%);
        border-bottom: 2px solid #93c5fd;
      }
      #schedule-table-wrap td.period-pm {
        color:#3730a3; font-weight:800; text-align:center; font-size:13px;
        background: linear-gradient(180deg, #ede9fe 0%, #f5f3ff 100%);
        border-top: 2px dashed #a5b4fc;
        border-bottom: 2px solid #c7d2fe;
      }
      /* PM 首行（紧接 AM 之后）加强分隔线 */
      #schedule-table-wrap tr.first-pm-row > td.period-pm {
        border-top: 3px solid #6366f1 !important;
      }
      /* 录音师输入框 */
      #schedule-table-wrap input.engineer-input {
        width:100%;height:18px;
        border:none !important;border-bottom:1px solid #e8ecf0 !important;
        outline:none !important;box-shadow:none !important;
        border-radius:0;padding:0 6px;font-size:13px;
        background:transparent !important;color:var(--text);
        cursor:text;-webkit-appearance:none;-moz-appearance:none;appearance:none;
        transition:border-color 0.15s ease, box-shadow 0.15s ease;
      }
      #schedule-table-wrap input.engineer-input:focus {
        border-bottom-color:#0ea5e9 !important;background:#fff !important;
        box-shadow:0 1px 0 #0ea5e9 !important;
        border-radius:3px 3px 0 0;
      }
      #schedule-table-wrap input.engineer-input.has-value {
        background:transparent !important;font-weight:500;
      }
      #schedule-table-wrap input.engineer-input.has-value:focus {
        background:#fff !important;
      }
      /* 棚号下拉框 */
      #schedule-table-wrap select.studio-select {
        width:100%;height:18px;
        border:none !important;border-bottom:1px solid #e2e8f0 !important;
        outline:none !important;box-shadow:none !important;
        border-radius:0;padding:0 20px 0 4px;font-size:13px;
        background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E") no-repeat right 6px center !important;
        color:var(--text);cursor:pointer;
        -webkit-appearance:none;-moz-appearance:none;appearance:none;
        transition:border-color 0.15s ease, box-shadow 0.15s ease;
      }
      #schedule-table-wrap select.studio-select:focus {
        border-bottom-color:#0ea5e9 !important;
        box-shadow:0 1px 0 #0ea5e9 !important;
        background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%230ea5e9'/%3E%3C/svg%3E") no-repeat right 6px center !important;
        border-radius:3px 3px 0 0;
      }
      /* 时间编辑输入框 */
      #schedule-table-wrap td.time-edit-cell {
        white-space:nowrap;
      }
      #schedule-table-wrap input.time-input {
        width:70px;height:22px;
        border:none !important;border-bottom:1px solid #e2e8f0 !important;
        outline:none !important;box-shadow:none !important;
        border-radius:0;padding:0 3px;font-size:14px;
        font-family:monospace;background:transparent !important;color:var(--text);
        text-align:center;cursor:pointer;
        -webkit-appearance:none;-moz-appearance:none;appearance:none;
        transition:border-color 0.15s ease, box-shadow 0.15s ease;
      }
      #schedule-table-wrap input.time-input:focus {
        border-bottom-color:#0ea5e9 !important;
        box-shadow:0 1px 0 #0ea5e9 !important;
        background:#fff !important;border-radius:3px 3px 0 0;
      }
      #schedule-table-wrap input.engineer-input.conflict {
        border-bottom-color:#ef4444 !important;background:rgba(239,68,68,0.04) !important;
        color:#ef4444;box-shadow:0 1px 0 #ef4444 !important;
      }
      /* 统计栏 */
      #schedule-stats-bar {
        display:flex;gap:16px;padding:10px 16px;margin-top:8px;
        background:#f8fafc;border-radius:8px;font-size:13px;color:var(--text-light);
        flex-wrap:wrap;
      }
      #schedule-stats-bar strong { color:var(--text); }
      /* 录音师搜索下拉框（单例）—— 现代化样式 */
      /* 录音棚资源搜索下拉（全局） */
      .search-dropdown-list {
        position:absolute;z-index:99999;width:100%;max-height:240px;
        overflow-y:auto;background:#fff;border:1px solid #e2e8f0;
        border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,0.12),0 2px 8px rgba(0,0,0,0.06);
        display:none;padding:6px 0;left:0;top:100%;margin-top:4px;
        list-style:none;margin:0;
      }
      .search-dropdown-list li {
        padding:8px 12px;cursor:pointer;font-size:13px;transition:all 0.12s ease;
        color:#334155;line-height:1.3;
        border-left:3px solid transparent;margin:1px 4px;border-radius:6px;
      }
      .search-dropdown-list li:hover,
      .search-dropdown-list li.selected {
        background:#e0f2fe;color:#0369a1;
        border-left-color:#0ea5e9;
      }
      .search-dropdown-list .sr-match {
        font-weight:600;color:#0ea5e9;
      }
      /* 出勤表行列 hover 高亮 */
      .avail-col-hover .avail-col-header {
        background: rgba(14,165,233,0.22) !important;
        box-shadow: inset 0 -2px 0 #0ea5e9;
      }
      .avail-row-hover {
        outline: 1.5px solid rgba(14,165,233,0.5) !important;
        outline-offset: -1px;
      }
      /* 空状态 */
      #schedule-empty { text-align:center;padding:40px;color:var(--light-gray);font-size:13px; }
      #schedule-empty .icon { font-size:36px;margin-bottom:8px; }

      /* 移动端表格适配 */
      @media (max-width: 768px) {
        /* content 作为 flex 容器，子项才能用 flex:1 撑满 */
        .content { display:flex; flex-direction:column; }
        /* 表格视图片撑满剩余空间 */
        #view-schedule.view.active { display:flex; flex-direction:column; flex:1; min-height:0; }
        #view-schedule.view.active .card { flex:1; display:flex; flex-direction:column; min-height:0; }
        #view-schedule.view.active .card > div:not(.card-header):not(#schedule-toolbar):not(#schedule-stats-bar) { flex:1; display:flex; flex-direction:column; min-height:0; }
        #schedule-zoom-wrap { flex:1; display:flex; flex-direction:column; min-height:0; }
        #schedule-table-wrap { flex:1; min-height:0; max-height:none !important; }
        #schedule-table-wrap { -webkit-overflow-scrolling: touch; }
        #schedule-table-wrap tbody tr { height:20px !important; line-height:1.1; }
        #schedule-table-wrap input.engineer-input { height:18px !important; font-size:11px !important; padding:0 3px !important; }
        #schedule-table-wrap select.studio-select { height:18px !important; font-size:10px !important; padding:0 16px 0 2px !important; background-position:right 4px center !important; background-size:8px 5px !important; }
        #schedule-table-wrap input.time-input { height:20px !important; font-size:11px !important; width:54px !important; }
        #schedule-table-wrap thead th { padding:3px 4px; font-size:10px; white-space:nowrap; }
        #schedule-table-wrap tbody td { padding:2px 3px; font-size:10px; white-space:nowrap; }
        /* 移动端去掉监听和陪聊列，发音人列自然撑宽 */
        #schedule-table-wrap thead th:nth-last-child(-n+2),
        #schedule-table-wrap tbody td:nth-last-child(-n+2) { display:none; }
        /* 发音人列（第3列）不加宽度限制 */
        #schedule-table-wrap thead th:nth-child(3) { width:140px !important; min-width:140px !important; }
        #schedule-table-wrap thead th:nth-child(4) { width:50px !important; min-width:50px !important; }
        #schedule-table-wrap thead th:nth-child(5) { width:70px !important; min-width:70px !important; }
        #schedule-table-wrap thead th:nth-child(6) { width:60px !important; min-width:60px !important; }
        #schedule-stats-bar { font-size:10px; gap:6px; padding:4px 12px; }
      }

      /* 底部 Tab Bar 显示 */
      .mobile-tab-bar { display: block !important; }

      /* 登录框 */
      .login-box { width: 92%; padding: 32px 24px; border-radius: 16px; }
    }

    /* ===== 小屏手机 (≤480px) ===== */
    @media (max-width: 480px) {
      .stat-grid { grid-template-columns: 1fr !important; }
      .stat-card { padding: 12px 14px; }
      .stat-card .value { font-size: 18px; }
      .content { padding: 12px 8px 80px 8px; }
      .topbar { padding: 8px 10px; }
      .topbar h2 { font-size: 14px; }
      .card-header { padding: 10px 12px; flex-wrap: wrap; gap: 6px; }
      .card-body { padding: 10px 12px; }
      .card-title { font-size: 13px; }
      th, td { font-size: 11px; padding: 6px 6px; }
      .filter-bar .form-control { max-width: 100% !important; min-width: 0; flex: 1 1 auto; }
      .filter-bar select.form-control { max-width: 100% !important; }
      .search-input { flex: 1 1 100% !important; max-width: 100% !important; }
      .modal { max-width: 100% !important; width: 100% !important; margin: 0 !important; }
      .modal-header { padding: 14px 16px; }
      .modal-body { padding: 14px 16px; }
      .modal-footer { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
      .modal-footer .btn { flex: 1; justify-content: center; }
      .detail-grid { grid-template-columns: 1fr !important; }
      .login-box { padding: 28px 20px; }
      .calendar-nav button { padding: 5px 10px; font-size: 13px; }
      .cal-date-label { font-size: 14px; }
      .btn { padding: 6px 12px; font-size: 12px; }
    }

    /* Conflict highlight */
    .conflict-slot {
      display: flex; align-items: center; gap: 8px; padding: 9px 13px;
      background: #fff1f2; border: 1px solid #fecdd3; border-radius: 8px;
      font-size: 13px; color: #be123c; margin-bottom: 8px;
    }

    /* ===== LOGIN SCREEN ===== */
    #login-screen {
      position: fixed; inset: 0; z-index: 9000;
      background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0ea5e9 100%);
      display: flex; align-items: center; justify-content: center;
    }
    .login-box {
      background: #fff; border-radius: 20px; padding: 44px 42px;
      width: 92%; max-width: 380px; box-shadow: 0 32px 80px rgba(0,0,0,0.35);
    }
    .login-logo { text-align: center; margin-bottom: 28px; }
    .login-logo h1 { font-size: 22px; font-weight: 800; color: var(--dark); }
    .login-logo p  { font-size: 13px; color: var(--text-light); margin-top: 4px; }
    .login-error {
      background: #fff1f2; color: #be123c; border: 1px solid #fecdd3;
      border-radius: 8px; padding: 9px 13px; font-size: 13px; margin-bottom: 14px; display: none;
    }
    .login-hint {
      background: #f0f9ff; color: #075985; border: 1px solid #bae6fd;
      border-radius: 8px; padding: 10px 13px; font-size: 12px; margin-top: 14px; line-height: 1.7;
    }
    .login-role-btn {
      padding: 8px 16px; border: 2px solid var(--border); border-radius: 8px;
      background: #fff; cursor: pointer; font-size: 14px; font-weight: 600;
      transition: all .15s; text-align: center;
    }
    .login-role-btn:hover { border-color: var(--primary); background: #f0f9ff; }
    .login-role-btn.active { border-color: var(--primary); background: #eef2ff; color: var(--primary); }

    /* ===== TOPBAR USER ===== */
    .topbar-user {
      display: flex; align-items: center; gap: 10px;
      padding: 5px 12px 5px 5px; border-radius: 10px;
      background: #f8fafc; border: 1px solid var(--border); cursor: default;
    }
    .topbar-avatar {
      width: 30px; height: 30px; border-radius: 50%;
      background: linear-gradient(135deg, var(--primary), var(--info));
      display: flex; align-items: center; justify-content: center;
      font-size: 14px; color: #fff; font-weight: 700;
    }
    .topbar-user-info { display: flex; flex-direction: column; }
    .topbar-user-name { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.2; }
    .topbar-user-role { font-size: 11px; font-weight: 600; line-height: 1.2; transition: all .15s; border-radius:3px; padding:1px 4px; user-select:none; }
    .topbar-user-role:hover { background:#f1f5f9; }
    .topbar-user-info { position: relative; }
    .multi-select-item:hover { background: var(--primary-light); }
    .multi-select-item input { accent-color: var(--primary); }
    @keyframes notifSlideIn {
      from { opacity:0; transform:translateX(30px); }
      to { opacity:1; transform:translateX(0); }
    }

    /* ===== 响应式表格列隐藏 ===== */
    /* 笔记本 (≤1280px)：隐藏次要列 */
    @media (max-width: 1280px) {
      #stats-detail-table th:nth-child(14),
      #stats-detail-table td:nth-child(14) { display: none; }
      /* 录音列表：隐藏声音检查列 */
      #view-list .table-wrap table th:nth-child(10),
      #view-list .table-wrap table td:nth-child(10) { display: none; }
    }
    /* 小平板 (≤1024px)：进一步精简 */
    @media (max-width: 1024px) {
      #stats-detail-table th:nth-child(12),
      #stats-detail-table td:nth-child(12),
      #stats-detail-table th:nth-child(13),
      #stats-detail-table td:nth-child(13) { display: none; }
      /* 反馈列表：隐藏反馈内容列 */
      #feedback-tbody td:nth-child(7) { display: none; }
      #feedback-thead th:nth-child(7) { display: none; }
      /* 录音列表：隐藏预约编号列 */
      #view-list .table-wrap table th:nth-child(2),
      #view-list .table-wrap table td:nth-child(2) { display: none; }
    }
    /* 窄屏 (≤900px)：精简到核心列 */
    @media (max-width: 900px) {
      #stats-detail-table th:nth-child(8),
      #stats-detail-table td:nth-child(8),
      #stats-detail-table th:nth-child(9),
      #stats-detail-table td:nth-child(9) { display: none; }
      #stats-detail-table th:first-child { width: 28px !important; }
      /* 录音列表：隐藏录音棚列 */
      #view-list .table-wrap table th:nth-child(7),
      #view-list .table-wrap table td:nth-child(7) { display: none; }
    }
