/* ==================== 设计令牌 ==================== */
    :root {
      --primary: #0969da;
      --primary-hover: #0860ca;
      --success: #1a7f37;
      --danger: #cf222e;
      --warning: #bf8700;
      --bg-primary: #ffffff;
      --bg-secondary: #f6f8fa;
      --bg-tertiary: #eaeef2;
      --text-primary: #1f2328;
      --text-secondary: #656d76;
      --text-tertiary: #8c959f;
      --border: #d0d7de;
      --border-muted: #eaeef2;
      --shadow-sm: 0 1px 3px rgba(27, 31, 36, .12);
      --shadow-md: 0 3px 6px rgba(27, 31, 36, .15);
      --shadow-lg: 0 8px 24px rgba(27, 31, 36, .2);
      --radius-sm: 6px;
      --radius-md: 12px;
      --sidebar-w: 300px;
      --transition: 150ms cubic-bezier(.4, 0, .2, 1);
      --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
      --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: var(--font);
      font-size: 14px;
      line-height: 1.5;
      color: var(--text-primary);
      background: var(--bg-secondary);
      height: 100vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    /* ==================== 导航栏 ==================== */
    .navbar {
      flex-shrink: 0;
      height: 56px;
      background: var(--bg-primary);
      border-bottom: 1px solid var(--border);
      box-shadow: var(--shadow-sm);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 20px;
      z-index: 100;
    }

    .navbar-brand {
      display: flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      color: var(--text-primary);
    }

    .brand-icon {
      width: 28px;
      height: 28px;
      color: var(--primary);
    }

    .brand-name {
      font-size: 17px;
      font-weight: 700;
      color: var(--text-primary);
    }

    .navbar-nav {
      display: flex;
      gap: 2px;
    }

    .nav-btn {
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 5px 12px;
      border: none;
      background: none;
      border-radius: var(--radius-sm);
      font-size: 13px;
      font-weight: 500;
      color: var(--text-secondary);
      cursor: pointer;
      transition: all var(--transition);
      position: relative;
    }

    .nav-btn:hover {
      background: var(--bg-secondary);
      color: var(--text-primary);
    }

    .nav-btn.active {
      color: var(--primary);
      background: var(--bg-secondary);
    }

    .nav-btn.active::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 12px;
      right: 12px;
      height: 2px;
      background: var(--primary);
      border-radius: 2px 2px 0 0;
    }

    .nav-btn svg {
      width: 14px;
      height: 14px;
    }

    .navbar-status {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: var(--text-secondary);
    }

    /* ==================== 认证页面 ==================== */
    .auth-overlay {
      position: fixed;
      inset: 0;
      z-index: 9999;
      background: rgba(0, 0, 0, 0.35);
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: max(12px, env(safe-area-inset-top, 0px)) 16px max(20px, env(safe-area-inset-bottom, 0px));
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      backdrop-filter: blur(2px);
    }

    .auth-card {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-lg);
      padding: 0;
      width: 400px;
      max-width: min(95vw, 400px);
      position: relative;
      margin: 12px auto;
      display: flex;
      flex-direction: column;
      max-height: min(92vh, 720px);
      overflow: hidden;
    }

    .auth-card-toolbar {
      flex: 0 0 auto;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      min-height: 44px;
      padding: 10px 10px 0 16px;
      background: var(--bg-primary);
      border-radius: var(--radius-md) var(--radius-md) 0 0;
      position: relative;
      z-index: 4;
    }

    .auth-card-body {
      flex: 1 1 auto;
      min-height: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      padding: 0;
    }

    .auth-card-top {
      flex-shrink: 0;
      padding: 4px 28px 0;
    }

    .auth-card-sheet {
      flex: 1 1 auto;
      min-height: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      padding: 6px 28px 18px;
    }

    .auth-panel {
      display: flex;
      flex: 1 1 auto;
      min-height: 0;
      flex-direction: column;
      overflow: hidden;
    }

    #auth-login {
      display: flex;
    }

    #auth-register {
      display: none;
    }

    .auth-form--register {
      flex: 1 1 auto;
      display: flex;
      flex-direction: column;
      min-height: 0;
      overflow: hidden;
    }

    .auth-form-scroll {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      padding-right: 4px;
      margin-bottom: 2px;
    }

    .auth-form-scroll .form-group:last-of-type {
      margin-bottom: 4px;
    }

    .auth-form-footer {
      flex-shrink: 0;
      padding-top: 10px;
      margin-top: 2px;
    }

    .auth-form-footer--register {
      border-top: 1px solid var(--border-muted);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, var(--bg-primary) 35%);
      box-shadow: 0 -8px 16px rgba(255, 255, 255, 0.98);
      padding-top: 14px;
      margin-top: 0;
    }

    #auth-login .auth-form {
      display: flex;
      flex-direction: column;
      min-height: 0;
    }

    #auth-login .auth-form-footer {
      padding-top: 12px;
      margin-top: 4px;
    }

    .reg-invite-banner {
      font-size: 12px;
      padding: 8px 10px;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      border-radius: 8px;
      margin-bottom: 10px;
      color: #1e40af;
      line-height: 1.45;
    }

    .auth-logo {
      text-align: center;
      margin-bottom: 16px;
    }

    .auth-logo svg {
      width: 40px;
      height: 40px;
      color: var(--primary);
    }

    .auth-logo h1 {
      font-size: 22px;
      font-weight: 700;
      margin-top: 10px;
    }

    .auth-logo p {
      font-size: 13px;
      color: var(--text-secondary);
      margin-top: 4px;
    }

    .auth-tabs {
      display: flex;
      border-bottom: 1px solid var(--border);
      margin-bottom: 12px;
    }

    .auth-tab {
      flex: 1;
      padding: 8px;
      text-align: center;
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
      color: var(--text-secondary);
      border: none;
      background: none;
      border-bottom: 2px solid transparent;
      transition: all 150ms;
    }

    .auth-tab.active {
      color: var(--primary);
      border-bottom-color: var(--primary);
    }

    .auth-form .form-group {
      margin-bottom: 16px;
    }

    .auth-form-scroll .form-group {
      margin-bottom: 12px;
    }

    .auth-form label {
      display: block;
      font-size: 13px;
      font-weight: 500;
      margin-bottom: 6px;
    }

    .auth-form input {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 14px;
      transition: border-color 150ms;
      outline: none;
    }

    .auth-form input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px #0969da22;
    }

    .auth-submit {
      width: 100%;
      padding: 10px;
      border: none;
      border-radius: var(--radius-sm);
      background: var(--primary);
      color: #fff;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: background 150ms;
      margin-top: 8px;
    }

    .auth-form-footer .auth-submit {
      margin-top: 0;
    }

    .auth-submit:hover {
      background: var(--primary-hover);
    }

    .auth-submit:disabled {
      opacity: .6;
      cursor: not-allowed;
    }

    .reg-verify-toggle {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 4px;
    }

    .reg-verify-opt {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 999px;
      border: 1px solid var(--border-muted);
      background: var(--bg-secondary);
      font-size: 13px;
      cursor: pointer;
      user-select: none;
    }

    .reg-verify-opt:has(input:checked) {
      border-color: rgba(99, 102, 241, 0.45);
      background: rgba(99, 102, 241, 0.08);
      color: var(--text-primary);
    }

    .reg-verify-opt input {
      width: auto;
      margin: 0;
    }

    .auth-close-btn {
      position: relative;
      flex-shrink: 0;
      width: 32px;
      height: 32px;
      border: none;
      background: rgba(255, 255, 255, 0.65);
      cursor: pointer;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-secondary);
      font-size: 18px;
      line-height: 1;
      transition: background 120ms, color 120ms;
      box-shadow: inset 0 0 0 1px var(--border-muted);
    }

    .auth-close-btn:hover {
      background: var(--bg-tertiary);
      color: var(--text-primary);
    }

    .auth-error {
      background: #fff0f0;
      border: 1px solid #ffc5c5;
      color: #cf222e;
      border-radius: var(--radius-sm);
      padding: 8px 12px;
      font-size: 13px;
      margin-top: 12px;
      display: none;
    }

    /* ==================== 用户信息（导航栏右侧） ==================== */
    .user-menu {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      cursor: pointer;
      position: relative;
    }

    .user-avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--primary);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 13px;
      flex-shrink: 0;
    }

    .user-dropdown {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 10px;
      box-shadow: var(--shadow-md);
      min-width: 288px;
      max-width: min(320px, calc(100vw - 20px));
      z-index: 500;
      display: none;
      box-sizing: border-box;
    }

    .user-dropdown.open {
      display: block;
    }

    .user-dropdown-header {
      padding: 12px 14px;
      border-bottom: 1px solid var(--border-muted);
    }

    .user-dropdown-header strong {
      display: block;
      font-size: 13px;
    }

    .user-dropdown-header span {
      font-size: 12px;
      color: var(--text-secondary);
    }

    .user-dropdown-item {
      display: block;
      width: 100%;
      padding: 8px 14px;
      font-size: 13px;
      color: var(--text-primary);
      border: none;
      background: none;
      text-align: left;
      cursor: pointer;
      transition: background 100ms;
    }

    .user-dropdown-item:hover {
      background: var(--bg-secondary);
    }

    .user-dropdown-item.danger {
      color: var(--danger);
    }

    .user-dropdown-section {
      padding: 10px 14px;
      border-bottom: 1px solid var(--border-muted);
    }
    .user-dropdown-section--quota {
      background: var(--bg-primary);
    }
    .user-dropdown-section-title {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--text-tertiary);
      margin-bottom: 6px;
    }
    .user-dropdown-muted {
      margin: 0 0 10px;
      font-size: 12px;
      line-height: 1.45;
      color: var(--text-secondary);
    }
    .user-dropdown-meta {
      font-size: 11px;
      color: var(--text-tertiary);
      margin-top: 8px;
      line-height: 1.45;
    }
    .user-dropdown-meta strong {
      color: var(--text-primary);
      font-weight: 600;
    }
    .user-dropdown .btn-invite-share--dropdown {
      white-space: nowrap;
      flex-wrap: nowrap;
      padding: 9px 12px;
      font-size: 12px;
      gap: 8px;
    }
    .user-dropdown .btn-invite-share--dropdown .btn-invite-share__text {
      white-space: nowrap;
    }

    .user-dropdown-actions {
      padding: 6px 0 8px;
      background: linear-gradient(180deg, rgba(246, 248, 250, 0.75) 0%, var(--bg-primary) 100%);
    }
    .user-dropdown-item--primary {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 600;
      color: var(--primary);
      padding: 10px 14px;
    }
    .user-dropdown-item--primary:hover {
      background: rgba(9, 105, 218, 0.08);
    }
    .user-dropdown-item__icon {
      display: flex;
      flex-shrink: 0;
      opacity: 0.92;
    }
    .user-dropdown-item__label {
      flex: 1;
      min-width: 0;
      text-align: left;
    }
    .user-dropdown-item__badge {
      font-size: 10px;
      font-weight: 700;
      background: #ef4444;
      color: #fff;
      border-radius: 10px;
      padding: 0 6px;
      line-height: 1.5;
      flex-shrink: 0;
      align-items: center;
      justify-content: center;
      min-height: 18px;
    }
    .user-dropdown-item__chev {
      flex-shrink: 0;
      opacity: 0.4;
    }
    .user-dropdown-actions .user-dropdown-item.danger {
      padding: 9px 14px;
      font-size: 12px;
      font-weight: 500;
      border-top: 1px dashed var(--border-muted);
      margin-top: 2px;
    }

    /* ==================== 配额条 ==================== */
    .quota-bar-wrap {
      margin-top: 4px;
    }

    .quota-bar-label {
      font-size: 11px;
      color: var(--text-secondary);
      display: flex;
      justify-content: space-between;
    }

    .quota-bar {
      height: 4px;
      background: var(--bg-tertiary);
      border-radius: 2px;
      margin-top: 2px;
    }

    .quota-bar-fill {
      height: 100%;
      border-radius: 2px;
      background: var(--primary);
      transition: width .3s;
    }

    .quota-bar-fill.warn {
      background: var(--warning);
    }

    .quota-bar-fill.danger {
      background: var(--danger);
    }

    /* ==================== 管理员后台 ==================== */
    .admin-layout {
      display: flex;
      height: 100%;
      overflow: hidden;
    }

    .admin-sidebar {
      width: 200px;
      flex-shrink: 0;
      border-right: 1px solid var(--border);
      background: var(--bg-primary);
      padding: 16px 0;
      overflow-y: auto;
    }

    .admin-sidebar-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 9px 18px;
      font-size: 13px;
      color: var(--text-secondary);
      cursor: pointer;
      border: none;
      background: none;
      width: 100%;
      transition: all 100ms;
    }

    .admin-sidebar-item.active,
    .admin-sidebar-item:hover {
      background: var(--bg-secondary);
      color: var(--primary);
    }

    .admin-sidebar-item svg {
      width: 15px;
      height: 15px;
      flex-shrink: 0;
    }

    .admin-content {
      flex: 1;
      overflow-y: auto;
      padding: 24px;
    }

    .admin-section {
      display: none;
    }

    .admin-section.active {
      display: block;
    }

    .stat-cards {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 14px;
      margin-bottom: 24px;
    }

    .stat-card {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 16px;
    }

    .stat-card-label {
      font-size: 12px;
      color: var(--text-secondary);
      margin-bottom: 6px;
    }

    .stat-card-value {
      font-size: 28px;
      font-weight: 700;
      color: var(--text-primary);
    }

    .admin-table-wrap {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      overflow: hidden;
    }

    .admin-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }

    .admin-table th {
      padding: 10px 14px;
      text-align: left;
      font-size: 12px;
      color: var(--text-secondary);
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border);
    }

    .admin-table td {
      padding: 10px 14px;
      border-bottom: 1px solid var(--border-muted);
      vertical-align: middle;
    }

    .admin-table tr:last-child td {
      border-bottom: none;
    }

    .admin-table tr:hover td {
      background: var(--bg-secondary);
    }

    .badge {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 600;
    }

    .badge-green {
      background: #dafbe1;
      color: #1a7f37;
    }

    .badge-red {
      background: #ffdce0;
      color: #cf222e;
    }

    .badge-blue {
      background: #ddf4ff;
      color: #0969da;
    }

    .badge-gray {
      background: #eaeef2;
      color: #656d76;
    }

    .admin-toolbar {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 14px;
    }

    .admin-search {
      flex: 1;
      max-width: 300px;
      padding: 6px 10px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 13px;
      outline: none;
    }

    .admin-search:focus {
      border-color: var(--primary);
    }

    .admin-pagination {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 12px;
      font-size: 13px;
      color: var(--text-secondary);
    }

    .admin-pagination button {
      padding: 4px 10px;
      border: 1px solid var(--border);
      background: var(--bg-primary);
      border-radius: var(--radius-sm);
      cursor: pointer;
    }

    .admin-pagination button:disabled {
      opacity: .4;
      cursor: not-allowed;
    }

    .admin-tab-btn {
      padding: 8px 16px;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-secondary);
      border: none;
      background: none;
      cursor: pointer;
      border-bottom: 2px solid transparent;
      transition: all 150ms;
      margin-bottom: -1px;
    }
    .admin-tab-btn:hover { color: var(--text-primary); }
    .admin-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

    .udm-stat-item {
      background: var(--bg-secondary);
      border: 1px solid var(--border-muted);
      border-radius: var(--radius-sm);
      padding: 12px 16px;
    }
    .udm-stat-label { font-size: 11px; color: var(--text-tertiary); margin-bottom: 4px; }
    .udm-stat-value { font-size: 20px; font-weight: 700; }

    .admin-modal-wrap {
      position: fixed;
      inset: 0;
      z-index: 2000;
      background: rgba(0, 0, 0, .4);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .admin-modal {
      background: var(--bg-primary);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-lg);
      padding: 28px 32px;
      width: 440px;
      max-width: 95vw;
    }

    .admin-modal h3 {
      margin-bottom: 18px;
    }

    .admin-modal-footer {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      margin-top: 20px;
    }

    .status-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--success);
    }

    .status-dot.offline {
      background: var(--danger);
    }

    .running-badge {
      background: var(--primary);
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      padding: 1px 6px;
      border-radius: 10px;
      display: none;
      margin-left: 2px;
    }

    /* ==================== 主布局 ==================== */
    .app-body {
      flex: 1;
      display: flex;
      overflow: hidden;
    }

    /* ==================== 左侧抽屉（可折叠）==================== */
    .sidebar {
      /* 用 width 做过渡动画，overflow:hidden 裁剪内容 */
      width: var(--sidebar-w);
      flex-shrink: 0;
      background: var(--bg-primary);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      position: relative;
      transition: width 220ms cubic-bezier(.4, 0, .2, 1);
    }

    /* 折叠状态：宽度收为 36px */
    .sidebar.collapsed {
      width: 36px;
    }

    /* ── sidebar-header：固定高度，position:relative 供按钮绝对定位 ── */
    .sidebar-header {
      height: 40px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      padding: 0 36px 0 14px;
      /* 右侧 36px 预留按钮位置 */
      border-bottom: 1px solid var(--border-muted);
      gap: 4px;
      overflow: hidden;
      position: relative;
      /* 折叠按钮 absolute 定位的参考点 */
    }

    /* 标题：尽量占满，折叠时自然被裁掉 */
    .sidebar-title {
      flex: 1;
      min-width: 0;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: .5px;
      white-space: nowrap;
      overflow: hidden;
    }

    /* 刷新等操作按钮区域：折叠时随 title 一起淡出 */
    .sidebar-actions {
      display: flex;
      gap: 4px;
      flex-shrink: 0;
      transition: opacity 150ms;
    }

    .sidebar.collapsed .sidebar-actions {
      opacity: 0;
      pointer-events: none;
    }

    /* ── 折叠/展开按钮：绝对定位在 header 右侧 8px
       不占 flex 空间，无论 sidebar 多窄都固定在右端，始终可见可点 ── */
    .sidebar-collapse-btn {
      position: absolute !important;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      flex-shrink: 0;
      width: 20px;
      height: 20px;
      border-radius: 4px;
      border: 1px solid var(--border);
      background: var(--bg-secondary);
      cursor: pointer;
      display: flex !important;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      line-height: 1;
      color: var(--text-secondary);
      padding: 0;
      z-index: 2;
      opacity: 1 !important;
      pointer-events: auto !important;
      transition: background var(--transition), color var(--transition);
    }

    .sidebar-collapse-btn:hover {
      background: var(--bg-tertiary);
      color: var(--text-primary);
    }

    /* 内容列表：折叠时隐藏，展开时显示 */
    .sidebar-scroll {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 8px 0;
      transition: opacity 150ms;
    }

    .sidebar.collapsed .sidebar-scroll {
      opacity: 0;
      pointer-events: none;
    }

    /* 任务条目（左侧抽屉） */
    .task-entry {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 10px 14px;
      cursor: pointer;
      border-left: 3px solid transparent;
      transition: all var(--transition);
      border-bottom: 1px solid var(--border-muted);
      position: relative;
    }

    .task-entry:hover {
      background: var(--bg-secondary);
    }
    /* 悬停时显示快捷操作 */
    .task-entry-quick-actions {
      display: none;
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      gap: 4px;
    }
    .task-entry:hover .task-entry-quick-actions { display: flex; }
    .task-entry:hover .task-entry-badge { display: none; }
    .task-entry-qa-btn {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 2px 6px;
      font-size: 11px;
      cursor: pointer;
      color: var(--text-secondary);
      line-height: 1.5;
    }
    .task-entry-qa-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }

    .task-entry.active {
      background: #dbeafe;
      border-left-color: var(--primary);
    }

    .task-entry-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
      margin-top: 5px;
    }

    .dot-running {
      background: var(--primary);
      box-shadow: 0 0 0 3px rgba(9, 105, 218, .2);
      animation: pulse 1.5s ease-in-out infinite;
    }

    .dot-completed {
      background: var(--success);
    }

    .dot-failed {
      background: var(--danger);
    }

    .dot-pending {
      background: var(--text-tertiary);
    }

    @keyframes pulse {

      0%,
      100% {
        box-shadow: 0 0 0 3px rgba(9, 105, 218, .2)
      }

      50% {
        box-shadow: 0 0 0 5px rgba(9, 105, 218, .1)
      }
    }

    .task-entry-info {
      flex: 1;
      min-width: 0;
    }

    .task-entry-title {
      font-size: 12.5px;
      font-weight: 600;
      color: var(--text-primary);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .task-entry-sub {
      font-size: 11px;
      color: var(--text-tertiary);
      margin-top: 3px;
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .task-entry-badge {
      flex-shrink: 0;
      font-size: 10px;
      font-weight: 600;
      padding: 1px 6px;
      border-radius: 10px;
      margin-top: 2px;
    }

    /* 分组标题（今天 / 昨天 / 更早） */
    .task-group-header {
      padding: 6px 14px 4px;
      font-size: 10.5px;
      font-weight: 700;
      color: var(--text-tertiary);
      letter-spacing: .06em;
      text-transform: uppercase;
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border-muted);
      position: sticky;
      top: 0;
      z-index: 1;
    }

    .teb-running {
      background: #dbeafe;
      color: #1d4ed8;
    }

    .teb-completed {
      background: #dcfce7;
      color: var(--success);
    }

    .teb-failed {
      background: #fee2e2;
      color: var(--danger);
    }

    .teb-pending {
      background: #fef9c3;
      color: #854d0e;
    }

    .sidebar-empty {
      text-align: center;
      padding: 32px 16px;
      color: var(--text-tertiary);
      font-size: 12px;
    }

    /* ==================== 右侧主内容区 ==================== */
    .main-content {
      flex: 1;
      min-height: 0;
      overflow: hidden;
      padding: 20px 24px;
      display: flex;
      flex-direction: column;
    }

    /* 中间内容 + footer 一起滚动；内容不足时用 flex spacer 把 footer 推到底部 */
    .main-scroll {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
    }

    .main-scroll-spacer {
      flex: 1 1 auto;
      min-height: 0;
    }

    /* panel 容器 */
    .panel {
      display: none;
    }

    .panel.active {
      flex: 0 0 auto;
      display: block;
    }

    /* 全局页脚：内容少时贴底，内容多时自然下推并随滚动出现 */
    .site-footer {
      flex: 0 0 auto;
      /* 贴主内容区内边缘（避免负 margin + overflow 裁切问题） */
      width: 100%;
      margin: 0;
      border-radius: 0;
      overflow: hidden;
      background: linear-gradient(180deg, #0d2247 0%, #0a1628 100%);
      padding: 52px 24px 0;
    }

    .site-footer-inner {
      width: 100%;
      max-width: min(1200px, 100%);
      margin: 0 auto;
    }

    /* ==================== 任务详情（右侧） ==================== */
    .detail-empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 60vh;
      color: var(--text-tertiary);
      gap: 12px;
    }

    .detail-empty svg {
      width: 40px;
      height: 40px;
    }

    .detail-empty p {
      font-size: 13px;
    }

    /* 任务详情空态：引导去左侧列表选择任务 */
    .task-empty-inner {
      max-width: 520px;
      margin: 0 auto;
      padding: 28px 20px 32px;
      width: 100%;
    }

    .task-empty-hero {
      text-align: center;
      margin-bottom: 22px;
    }

    .task-empty-art {
      position: relative;
      width: 104px;
      height: 88px;
      margin: 0 auto 6px;
      display: grid;
      place-items: center;
    }

    .task-empty-art::before {
      content: '';
      position: absolute;
      left: 50%;
      top: 52%;
      transform: translate(-58%, -50%);
      width: 140px;
      height: 100px;
      border-radius: 50%;
      background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.06) 45%, transparent 72%);
      pointer-events: none;
      z-index: 0;
    }

    .task-empty-svg {
      position: relative;
      z-index: 1;
      width: 104px;
      height: auto;
      display: block;
      filter: drop-shadow(0 6px 14px rgba(99, 102, 241, 0.12));
    }

    .task-empty-svg-nudge {
      transform-origin: 54px 44px;
      animation: task-empty-svg-nudge 1.35s ease-in-out infinite;
    }

    @keyframes task-empty-svg-nudge {

      0%,
      100% {
        transform: translateX(0);
      }

      50% {
        transform: translateX(-5px);
      }
    }

    .task-empty-title {
      font-size: 16px;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--text-primary);
      margin-top: 4px;
    }

    .task-empty-desc {
      font-size: 13px;
      color: var(--text-secondary);
      margin: 6px auto 0;
      line-height: 1.6;
      max-width: 22rem;
    }

    .task-empty-point {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-top: 14px;
      padding: 8px 14px 8px 12px;
      border-radius: 999px;
      background: var(--bg-secondary);
      border: 1px solid var(--border-muted);
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 4px 20px rgba(15, 23, 42, 0.04);
      font-size: 12.5px;
      color: var(--text-secondary);
    }

    .task-empty-point__ico {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      color: #6366f1;
      animation: task-empty-point-nudge 1.25s ease-in-out infinite;
    }

    .task-empty-point__text {
      font-weight: 600;
      color: var(--text-primary);
      letter-spacing: 0.01em;
    }

    @keyframes task-empty-point-nudge {

      0%,
      100% {
        transform: translateX(0);
      }

      50% {
        transform: translateX(-4px);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .task-empty-point__ico,
      .task-empty-svg-nudge {
        animation: none;
      }
    }

    .detail-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
      gap: 12px;
      flex-wrap: wrap;
    }

    .detail-title-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
      flex: 1;
      min-width: 0;
    }

    .detail-title {
      font-size: 15px;
      font-weight: 600;
      color: var(--text-primary);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .detail-actions {
      display: flex;
      gap: 6px;
      flex-shrink: 0;
    }

    .detail-meta {
      font-size: 12px;
      color: var(--text-secondary);
      margin-bottom: 14px;
    }

    /* ==================== Badge ==================== */
    .badge {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 600;
    }

    .badge-running {
      background: #dbeafe;
      color: #1d4ed8;
    }

    .badge-completed {
      background: #dcfce7;
      color: var(--success);
    }

    .badge-failed {
      background: #fee2e2;
      color: var(--danger);
    }

    .badge-pending {
      background: #fef9c3;
      color: #854d0e;
    }

    /* ==================== 卡片 ==================== */
    .card {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 18px 20px;
    }

    .card+.card {
      margin-top: 14px;
    }

    .card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
    }

    .card-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .card-title svg {
      width: 15px;
      height: 15px;
      color: var(--primary);
    }

    /* ==================== Pipeline ==================== */
    .pipeline-wrap {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 14px 16px;
      margin-bottom: 14px;
    }

    .pipeline-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
    }

    .pipeline-title {
      font-size: 11px;
      font-weight: 600;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: .5px;
    }

    .pipeline-summary {
      font-size: 11px;
      color: var(--text-tertiary);
    }

    .pipeline-track {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .pipeline-step {
      display: grid;
      grid-template-columns: 16px 1fr auto auto;
      align-items: center;
      gap: 8px;
      padding: 6px 10px;
      border-radius: var(--radius-sm);
      background: var(--bg-primary);
      border: 1px solid var(--border-muted);
      font-size: 12px;
      transition: border-color var(--transition);
    }

    .pipeline-step.ps-running {
      border-color: var(--primary);
      background: rgba(9, 105, 218, .04);
    }

    .pipeline-step.ps-completed {
      border-color: #d4edda;
      background: rgba(26, 127, 55, .04);
    }

    .pipeline-step.ps-failed {
      border-color: #f8d7da;
      background: rgba(207, 34, 46, .04);
    }

    .pipeline-step.ps-skipped {
      opacity: .6;
    }

    .pipeline-step.ps-pending {
      opacity: .4;
    }

    .ps-icon {
      width: 14px;
      height: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      flex-shrink: 0;
    }

    .ps-spin {
      width: 12px;
      height: 12px;
      border: 2px solid var(--primary);
      border-top-color: transparent;
      border-radius: 50%;
      animation: spin .8s linear infinite;
    }

    .ps-name {
      color: var(--text-primary);
      font-weight: 500;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .ps-dur {
      color: var(--text-secondary);
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
      min-width: 48px;
      text-align: right;
      font-size: 11px;
    }

    .ps-badge {
      font-size: 10px;
      font-weight: 600;
      padding: 1px 6px;
      border-radius: 10px;
      white-space: nowrap;
    }

    .ps-badge.running {
      background: rgba(9, 105, 218, .12);
      color: var(--primary);
    }

    .ps-badge.completed {
      background: rgba(26, 127, 55, .12);
      color: var(--success);
    }

    .ps-badge.failed {
      background: rgba(207, 34, 46, .12);
      color: var(--danger);
    }

    .ps-badge.skipped {
      background: var(--bg-tertiary);
      color: var(--text-secondary);
    }

    .ps-badge.pending {
      background: var(--bg-tertiary);
      color: var(--text-tertiary);
    }

    .pipeline-empty {
      font-size: 12px;
      color: var(--text-tertiary);
      text-align: center;
      padding: 8px 0;
    }

    /* ==================== 终端 ==================== */
    /* ==================== 终端：Phase 分割布局 ==================== */
    .terminal-wrap {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      overflow: hidden;
      margin-bottom: 14px;
    }

    .terminal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 14px;
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border-muted);
    }

    .terminal-label {
      font-size: 11px;
      font-weight: 600;
      color: var(--text-tertiary);
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    /* 终端体：左边 Phase 标签栏 + 右边日志内容 */
    .terminal-body {
      display: flex;
      height: 380px;
      overflow: hidden;
    }

    /* 折叠状态：body 高度为 0 */
    .terminal-body-collapsed {
      height: 0 !important;
    }

    /* 标题栏折叠图标 */
    .term-collapse-icon {
      font-size: 12px;
      color: var(--text-tertiary);
      margin-left: 2px;
      transition: transform .2s;
      display: inline-block;
    }

    .terminal-body:not(.terminal-body-collapsed)~.terminal-header .term-collapse-icon,
    .terminal-wrap:not(.collapsed) .term-collapse-icon {
      transform: rotate(180deg);
    }

    /* 左边 Phase 标签栏 */
    .term-phase-tabs {
      width: 130px;
      min-width: 130px;
      flex-shrink: 0;
      background: #161b22;
      border-right: 1px solid #30363d;
      overflow-y: auto;
      padding: 6px 0;
    }

    .term-phase-tab {
      display: block;
      width: 100%;
      padding: 5px 8px;
      font-family: var(--font-mono);
      font-size: 11px;
      color: #8b949e;
      cursor: pointer;
      border: none;
      background: none;
      text-align: left;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      border-left: 2px solid transparent;
      transition: all .15s;
    }

    .term-phase-tab:hover {
      color: #c9d1d9;
      background: rgba(255, 255, 255, .05);
    }

    .term-phase-tab.active {
      color: #e6edf3;
      background: rgba(255, 255, 255, .08);
      border-left-color: var(--primary);
    }

    .term-phase-tab.tab-running {
      color: #58a6ff;
    }

    .term-phase-tab.tab-done {
      color: #3fb950;
    }

    .term-phase-tab.tab-error {
      color: #f85149;
    }

    /* 右边日志内容 */
    .terminal {
      background: #0d1117;
      padding: 12px 14px;
      font-family: var(--font-mono);
      font-size: 12px;
      line-height: 1.65;
      flex: 1;
      overflow-y: auto;
      color: #c9d1d9;
      white-space: pre-wrap;
      word-break: break-all;
    }

    /* 全屏终端 */
    .terminal-wrap.fullscreen {
      position: fixed;
      inset: 0;
      z-index: 9000;
      margin: 0;
      border-radius: 0;
      border: none;
      display: flex;
      flex-direction: column;
    }

    .terminal-wrap.fullscreen .terminal-body {
      flex: 1;
      height: auto !important;
    }

    .terminal-wrap.fullscreen .terminal {
      border-radius: 0;
      font-size: 13px;
    }

    .terminal-wrap.fullscreen .terminal-header {
      border-radius: 0;
    }

    .terminal-wrap.fullscreen .btn-term-fs svg {
      transform: rotate(45deg);
    }

    /* 全屏时隐藏其他内容 */
    body.term-fullscreen>*:not(.terminal-wrap.fullscreen) {
      visibility: hidden;
    }

    .btn-term-fs {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 3px 8px;
      font-size: 11px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text-secondary);
      cursor: pointer;
      transition: background .15s;
    }

    .btn-term-fs:hover {
      background: var(--bg-hover);
    }

    .terminal .l-info {
      color: #8b949e;
    }

    .terminal .l-success {
      color: #3fb950;
    }

    .terminal .l-error {
      color: #f85149;
    }

    .terminal .l-warn {
      color: #d29922;
    }

    .terminal .l-phase {
      color: #79c0ff;
      font-weight: bold;
    }

    .terminal .l-highlight {
      color: #e3b341;
    }

    /* ==================== 表单 ==================== */
    .form-group {
      margin-bottom: 14px;
    }

    .form-group:last-of-type {
      margin-bottom: 0;
    }

    .form-label {
      display: block;
      font-size: 12px;
      font-weight: 500;
      color: var(--text-secondary);
      margin-bottom: 5px;
    }

    .form-control {
      width: 100%;
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      color: var(--text-primary);
      padding: 7px 11px;
      font-size: 13px;
      font-family: var(--font);
      outline: none;
      transition: border-color var(--transition), box-shadow var(--transition);
    }

    .form-control:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(9, 105, 218, .1);
    }

    .form-control::placeholder {
      color: var(--text-tertiary);
    }

    select.form-control {
      cursor: pointer;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .form-check {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 13px;
      color: var(--text-secondary);
      cursor: pointer;
      padding: 4px 0;
    }

    .form-check input[type=checkbox] {
      accent-color: var(--primary);
      width: 14px;
      height: 14px;
      cursor: pointer;
    }

    /* ==================== 按钮 ==================== */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 14px;
      border-radius: var(--radius-sm);
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      border: 1px solid transparent;
      transition: all var(--transition);
      text-decoration: none;
    }

    .btn svg {
      width: 13px;
      height: 13px;
    }

    .btn-primary {
      background: var(--primary);
      color: #fff;
      border-color: var(--primary);
    }

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

    .btn-primary:disabled {
      opacity: .55;
      cursor: not-allowed;
    }

    .btn-default {
      background: var(--bg-primary);
      color: var(--text-primary);
      border-color: var(--border);
    }

    .btn-default:hover {
      background: var(--bg-secondary);
      border-color: #adb5c0;
    }

    .btn-danger-outline {
      background: transparent;
      color: var(--danger);
      border-color: #f7d3d3;
    }

    .btn-danger-outline:hover {
      background: #fff0f0;
    }

    .btn-sm {
      padding: 4px 10px;
      font-size: 12px;
    }

    .btn-block {
      width: 100%;
      justify-content: center;
    }

    .btn-icon {
      padding: 5px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      background: var(--bg-primary);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-secondary);
      transition: all var(--transition);
    }

    .btn-icon:hover {
      background: var(--bg-secondary);
      color: var(--text-primary);
    }

    .btn-icon svg {
      width: 14px;
      height: 14px;
    }

    /* ==================== 配置选择器 ==================== */
    .config-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 10px;
      margin-bottom: 14px;
    }

    .config-card {
      position: relative;
      padding: 11px 13px;
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: all var(--transition);
    }

    .config-card:hover {
      border-color: var(--primary);
      background: var(--bg-secondary);
    }

    .config-card.selected {
      border-color: var(--primary);
      background: #dbeafe;
    }

    .config-card-name {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 3px;
      line-height: 1.4;
    }

    .config-card-type {
      font-size: 11px;
      color: var(--primary);
    }

    .config-card-words {
      font-size: 11px;
      color: var(--text-tertiary);
      margin-top: 3px;
    }

    .config-card-check {
      position: absolute;
      top: 7px;
      right: 7px;
      width: 15px;
      height: 15px;
      background: var(--primary);
      color: #fff;
      border-radius: 50%;
      font-size: 9px;
      display: none;
      align-items: center;
      justify-content: center;
    }

    .config-card.selected .config-card-check {
      display: flex;
    }

    /* ==================== 运行模式 ==================== */
    .run-mode-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .run-mode-item {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      padding: 9px 11px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: all var(--transition);
      background: var(--bg-primary);
      user-select: none;
    }

    .run-mode-item:hover {
      border-color: var(--primary);
      background: var(--bg-secondary);
    }

    .run-mode-item.active {
      border-color: var(--primary);
      background: #dbeafe;
    }

    .run-mode-item input[type=radio] {
      margin-top: 2px;
      accent-color: var(--primary);
      flex-shrink: 0;
      cursor: pointer;
    }

    .run-mode-label {
      font-size: 13px;
      font-weight: 500;
      color: var(--text-primary);
    }

    .run-mode-desc {
      font-size: 11px;
      color: var(--text-secondary);
      margin-top: 1px;
    }

    .run-mode-extra {
      margin-top: 7px;
      padding: 9px 11px;
      background: var(--bg-secondary);
      border: 1px solid var(--border-muted);
      border-radius: var(--radius-sm);
      display: none;
    }

    .run-mode-extra.visible {
      display: block;
    }

    .run-mode-extra .form-label {
      margin-bottom: 4px;
    }

    .run-mode-extra input {
      max-width: 120px;
    }

    /* ==================== 输出文件 ==================== */
    .output-section {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      margin-bottom: 10px;
      overflow: hidden;
    }

    .output-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 14px;
      background: var(--bg-secondary);
      cursor: pointer;
      border-bottom: 1px solid var(--border-muted);
    }

    .output-section-title {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .output-section-meta {
      font-size: 11px;
      color: var(--text-tertiary);
    }

    .output-files {
      display: none;
    }

    .output-files.open {
      display: block;
    }

    .output-file-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 14px;
      border-bottom: 1px solid var(--border-muted);
      transition: background var(--transition);
    }

    .output-file-row:last-child {
      border-bottom: none;
    }

    .output-file-row:hover {
      background: var(--bg-secondary);
    }

    .output-file-name {
      font-size: 12px;
      font-family: var(--font-mono);
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .output-file-name svg {
      width: 13px;
      height: 13px;
      color: var(--primary);
    }

    .output-file-size {
      font-size: 11px;
      color: var(--text-tertiary);
    }

    .output-file-actions {
      display: flex;
      gap: 6px;
    }

    /* ==================== 模态框 ==================== */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 200;
      background: rgba(31, 35, 40, .5);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .modal-backdrop.open {
      display: flex;
    }

    .modal {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-lg);
      width: 100%;
      max-width: 860px;
      max-height: 85vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 13px 18px;
      border-bottom: 1px solid var(--border);
    }

    .modal-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .modal-close {
      width: 26px;
      height: 26px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--bg-primary);
      cursor: pointer;
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      transition: all var(--transition);
    }

    .modal-close:hover {
      background: var(--bg-secondary);
      color: var(--text-primary);
    }

    .modal-body {
      flex: 1;
      overflow-y: auto;
      padding: 18px;
    }

    .modal-body pre {
      font-family: var(--font-mono);
      font-size: 12px;
      line-height: 1.7;
      white-space: pre-wrap;
      word-break: break-word;
      color: var(--text-primary);
    }

    .modal-footer {
      padding: 11px 18px;
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: flex-end;
      gap: 8px;
    }

    /* ==================== Phase 日志 Drawer ==================== */
    .phase-drawer-overlay {
      position: fixed;
      inset: 0;
      z-index: 400;
      background: rgba(0, 0, 0, .35);
      display: none;
    }

    .phase-drawer-overlay.open {
      display: block;
    }

    .phase-drawer {
      position: fixed;
      top: 0;
      right: -560px;
      width: 560px;
      max-width: 90vw;
      height: 100vh;
      z-index: 401;
      background: var(--bg-primary);
      border-left: 1px solid var(--border);
      box-shadow: var(--shadow-lg);
      display: flex;
      flex-direction: column;
      transition: right .25s cubic-bezier(.4, 0, .2, 1);
    }

    .phase-drawer.open {
      right: 0;
    }

    .phase-drawer-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      border-bottom: 1px solid var(--border);
      background: var(--bg-secondary);
      flex-shrink: 0;
    }

    .phase-drawer-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .phase-drawer-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .btn-warning {
      background: #d97706;
      color: #fff;
      border: none;
    }

    .btn-warning:hover {
      background: #b45309;
    }

    .phase-drawer-close {
      width: 26px;
      height: 26px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      background: none;
      color: var(--text-tertiary);
      cursor: pointer;
      border-radius: 4px;
      font-size: 14px;
      transition: background .15s;
    }

    .phase-drawer-close:hover {
      background: var(--bg-secondary);
      color: var(--text-primary);
    }

    .phase-drawer-body {
      flex: 1;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .phase-drawer-body .terminal {
      flex: 1;
      height: auto;
      border-radius: 0;
      font-size: 12.5px;
    }

    .phase-drawer-empty {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;
      color: var(--text-tertiary);
      font-size: 13px;
      background: #0d1117;
    }

    /* 非 pending 节点可点击 */
    .dag-node.clickable {
      cursor: pointer;
    }

    .dag-node.clickable:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }

    /* ==================== 空状态 ====================
    .empty {
      text-align: center;
      padding: 48px 24px;
      color: var(--text-secondary);
    }

    .empty svg {
      width: 40px;
      height: 40px;
      color: var(--text-tertiary);
      margin: 0 auto 14px;
      display: block;
    }

    .empty p {
      font-size: 13px;
    }

    /* ==================== Toast ==================== */
    .toast-stack {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 2100;
      display: flex;
      flex-direction: column;
      gap: 7px;
    }

    .toast {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      box-shadow: var(--shadow-md);
      padding: 9px 13px;
      font-size: 13px;
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 200px;
      animation: toast-in .2s ease;
    }

    @keyframes toast-in {
      from {
        transform: translateX(36px);
        opacity: 0;
      }
    }

    .toast.success {
      border-left: 3px solid var(--success);
    }

    .toast.error {
      border-left: 3px solid var(--danger);
    }

    .toast.info {
      border-left: 3px solid var(--primary);
    }

    .toast-icon {
      font-size: 14px;
      flex-shrink: 0;
    }

    /* ==================== Spinner ==================== */
    .spinner {
      width: 13px;
      height: 13px;
      border: 2px solid rgba(9, 105, 218, .2);
      border-top-color: var(--primary);
      border-radius: 50%;
      animation: spin .7s linear infinite;
      display: inline-block;
    }

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

    /* ==================== Alert / misc ==================== */
    .alert {
      padding: 11px 14px;
      border-radius: var(--radius-sm);
      font-size: 13px;
      line-height: 1.5;
      border: 1px solid;
    }

    .alert-info {
      background: #dbeafe;
      border-color: #bfdbfe;
      color: #1e40af;
    }

    .alert-warn {
      background: #fef9c3;
      border-color: #fde68a;
      color: #92400e;
    }

    .alert b {
      font-weight: 600;
    }

    code.inline {
      background: var(--bg-secondary);
      border: 1px solid var(--border-muted);
      border-radius: 4px;
      padding: 1px 4px;
      font-family: var(--font-mono);
      font-size: 12px;
    }

    .grid-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .divider {
      height: 1px;
      background: var(--border-muted);
      margin: 14px 0;
    }

    .mt-2 {
      margin-top: 8px;
    }

    .mt-3 {
      margin-top: 12px;
    }

    .mt-4 {
      margin-top: 14px;
    }

    .flex {
      display: flex;
    }

    .flex-wrap {
      flex-wrap: wrap;
    }

    .gap-2 {
      gap: 8px;
    }

    .items-center {
      align-items: center;
    }

    .toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }

    .toolbar-title {
      font-size: 15px;
      font-weight: 600;
      color: var(--text-primary);
    }

    /* ==================== DAG 拓扑图 ==================== */
    .dag-wrap {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      margin-bottom: 14px;
      overflow: hidden;
    }

    .dag-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 9px 14px;
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border-muted);
    }

    .dag-header-left {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .dag-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .dag-summary {
      font-size: 11px;
      color: var(--text-secondary);
    }

    .dag-body {
      padding: 14px 16px;
      overflow-x: auto;
    }

    /* ── DAG 整体水平居中 ── */
    .dag-batches {
      display: flex;
      flex-direction: column;
      gap: 0;
      position: relative;
      align-items: center;
      /* 整体水平居中 */
      width: 100%;
    }

    /* 每个批次行宽度自适应内容，居中对齐 */
    .dag-batch-row {
      display: flex;
      align-items: center;
      gap: 0;
      position: relative;
      justify-content: center;
    }

    .dag-batch-label {
      font-size: 10px;
      font-weight: 600;
      color: var(--text-tertiary);
      text-transform: uppercase;
      letter-spacing: .5px;
      width: 52px;
      flex-shrink: 0;
      text-align: right;
      padding-right: 10px;
    }

    /* 节点列表：水平居中，换行时也居中 */
    .dag-nodes {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      padding: 6px 0;
      justify-content: center;
    }

    /* 批次间连线：对齐到节点区域中心 */
    .dag-connector {
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
    }

    .dag-connector-line {
      width: 2px;
      height: 20px;
      background: var(--border);
    }

    .dag-node {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      padding: 7px 11px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--bg-primary);
      min-width: 130px;
      max-width: 200px;
      position: relative;
      transition: all var(--transition);
      cursor: default;
    }

    .dag-node:hover {
      box-shadow: var(--shadow-sm);
      transform: translateY(-1px);
    }

    .dag-node.status-running {
      border-color: var(--primary);
      background: #dbeafe;
    }

    .dag-node.status-completed {
      border-color: #22c55e;
      background: #f0fdf4;
    }

    .dag-node.status-failed {
      border-color: var(--danger);
      background: #fff0f0;
    }

    .dag-node.status-skipped {
      border-color: var(--border);
      background: var(--bg-secondary);
      opacity: .75;
    }

    .dag-node.status-pending {
      border-color: var(--border-muted);
      background: var(--bg-primary);
      opacity: .7;
    }

    .dag-node-top {
      display: flex;
      align-items: center;
      gap: 5px;
      width: 100%;
      margin-bottom: 3px;
    }

    .dag-node-id {
      font-size: 10px;
      font-weight: 700;
      color: var(--text-tertiary);
      background: var(--bg-secondary);
      border-radius: 3px;
      padding: 1px 4px;
      flex-shrink: 0;
    }

    .dag-node.status-running .dag-node-id {
      background: rgba(9, 105, 218, .15);
      color: var(--primary);
    }

    .dag-node.status-completed .dag-node-id {
      background: rgba(34, 197, 94, .15);
      color: #15803d;
    }

    .dag-node.status-failed .dag-node-id {
      background: rgba(207, 34, 46, .15);
      color: var(--danger);
    }

    .dag-node-status-icon {
      font-size: 11px;
      flex-shrink: 0;
    }

    .dag-node-name {
      font-size: 12px;
      font-weight: 500;
      color: var(--text-primary);
      line-height: 1.3;
      word-break: break-all;
    }

    .dag-node-meta {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 4px;
      font-size: 10px;
      color: var(--text-tertiary);
      flex-wrap: wrap;
    }

    .dag-node-spin {
      width: 10px;
      height: 10px;
      border: 1.5px solid rgba(9, 105, 218, .3);
      border-top-color: var(--primary);
      border-radius: 50%;
      animation: spin .7s linear infinite;
      display: inline-block;
      flex-shrink: 0;
    }

    .dag-parallel-tag {
      font-size: 10px;
      padding: 1px 5px;
      background: #dbeafe;
      color: var(--primary);
      border-radius: 10px;
      font-weight: 600;
    }

    .dag-empty {
      color: var(--text-tertiary);
      font-size: 12px;
      padding: 12px 0;
      text-align: center;
    }

    /* ==================== Perf 报告 ==================== */
    .perf-panel {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      margin-bottom: 14px;
      overflow: hidden;
    }

    .perf-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 9px 14px;
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border-muted);
      cursor: pointer;
      user-select: none;
    }

    .perf-header-left {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .perf-header-right {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .perf-total {
      font-size: 11px;
      color: var(--text-secondary);
    }

    .perf-toggle {
      font-size: 11px;
      color: var(--primary);
    }

    .perf-body {
      padding: 14px 16px;
      display: none;
    }

    .perf-body.open {
      display: block;
    }

    .perf-section-title {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: .5px;
      margin-bottom: 10px;
      margin-top: 16px;
    }

    .perf-section-title:first-child {
      margin-top: 0;
    }

    /* 甘特图 */
    .gantt-wrap {
      overflow-x: auto;
      border: 1px solid var(--border-muted);
      border-radius: var(--radius-sm);
      background: var(--bg-secondary);
      padding: 10px 12px;
    }

    .gantt-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 6px;
      height: 24px;
    }

    .gantt-row.clickable {
      cursor: pointer;
      border-radius: 3px;
      transition: background 0.12s;
    }

    .gantt-row.clickable:hover {
      background: rgba(99, 102, 241, 0.07);
    }

    .gantt-row:last-child {
      margin-bottom: 0;
    }

    .gantt-label {
      font-size: 11px;
      color: var(--text-secondary);
      width: 100px;
      flex-shrink: 0;
      text-align: right;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .gantt-track {
      flex: 1;
      height: 100%;
      position: relative;
      background: var(--bg-tertiary);
      border-radius: 3px;
      overflow: hidden;
      min-width: 200px;
    }

    .gantt-bar {
      position: absolute;
      top: 0;
      bottom: 0;
      border-radius: 3px;
      display: flex;
      align-items: center;
      padding: 0 6px;
      font-size: 10px;
      color: #fff;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      min-width: 4px;
    }

    .gantt-bar.status-completed {
      background: #22c55e;
    }

    .gantt-bar.status-running {
      background: var(--primary);
      animation: gantt-pulse 1.5s ease-in-out infinite;
    }

    .gantt-bar.status-failed {
      background: var(--danger);
    }

    .gantt-bar.status-skipped {
      background: var(--text-tertiary);
    }

    .gantt-bar.status-pending {
      background: var(--border);
    }

    @keyframes gantt-pulse {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: .7;
      }
    }

    /* 轮次 token 柱状图 */
    .rounds-chart {
      border: 1px solid var(--border-muted);
      border-radius: var(--radius-sm);
      background: var(--bg-secondary);
      padding: 10px 12px;
      overflow-x: auto;
    }

    .rounds-phase-block {
      margin-bottom: 14px;
    }

    .rounds-phase-block:last-child {
      margin-bottom: 0;
    }

    .rounds-phase-name {
      font-size: 11px;
      font-weight: 600;
      color: var(--text-secondary);
      margin-bottom: 6px;
    }

    .rounds-bars {
      display: flex;
      align-items: flex-end;
      gap: 10px;
      /* 柱子最高 56px + 标签行约 12px + 耗时行约 12px + token行约 12px + 底线 */
      height: 100px;
      border-bottom: 1px solid var(--border-muted);
      padding-bottom: 2px;
    }

    .round-bar-col {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
      /* 柱子底对齐，标签在下方 */
      gap: 1px;
      min-width: 46px;
      height: 100%;
    }

    .round-bar-inner {
      width: 28px;
      border-radius: 3px 3px 0 0;
      background: var(--primary);
      opacity: .8;
      transition: opacity var(--transition);
      cursor: pointer;
      position: relative;
    }

    .round-bar-inner:hover {
      opacity: 1;
    }

    .round-bar-inner.writer {
      background: #3b82f6;
    }

    .round-bar-inner.reviewer {
      background: #f59e0b;
    }

    .round-bar-inner.researcher {
      background: #8b5cf6;
    }

    .round-bar-inner.analyst {
      background: #10b981;
    }

    .round-bar-inner.other {
      background: #6b7280;
    }

    .round-bar-label {
      font-size: 9px;
      color: var(--text-tertiary);
    }

    .round-bar-time {
      font-size: 9px;
      color: var(--text-tertiary);
      margin-top: 2px;
    }

    /* 汇总表格 */
    .perf-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12px;
    }

    .perf-table th {
      text-align: left;
      padding: 7px 10px;
      font-size: 11px;
      font-weight: 600;
      color: var(--text-secondary);
      border-bottom: 1px solid var(--border);
      background: var(--bg-secondary);
    }

    .perf-table td {
      padding: 7px 10px;
      border-bottom: 1px solid var(--border-muted);
      color: var(--text-primary);
    }

    .perf-table tr:last-child td {
      border-bottom: none;
    }

    .perf-table tbody tr.clickable {
      cursor: pointer;
    }

    .perf-table tr:hover td {
      background: var(--bg-secondary);
    }

    .perf-table td.num {
      font-family: var(--font-mono);
      text-align: right;
    }

    .perf-table tfoot td {
      font-weight: 600;
      border-top: 1px solid var(--border);
      background: var(--bg-secondary);
    }

    .perf-note {
      font-size: 11px;
      color: var(--text-tertiary);
      margin-top: 8px;
    }

    /* ── Markdown 渲染区（论文预览） ── */
    .md-body { color: var(--text-primary); }
    .md-body h1,.md-body h2,.md-body h3,.md-body h4 { font-weight:700; line-height:1.4; margin:1.2em 0 .5em; }
    .md-body h1 { font-size:1.6em; border-bottom:2px solid var(--border); padding-bottom:.3em; }
    .md-body h2 { font-size:1.3em; border-bottom:1px solid var(--border-muted); padding-bottom:.2em; }
    .md-body h3 { font-size:1.1em; }
    .md-body p  { margin:.6em 0; }
    .md-body ul,.md-body ol { padding-left:1.6em; margin:.5em 0; }
    .md-body li { margin:.25em 0; }
    .md-body code { font-family:var(--font-mono);font-size:.88em;background:var(--bg-secondary);padding:1px 5px;border-radius:4px; }
    .md-body pre  { background:#0d1117;color:#e6edf3;padding:14px 16px;border-radius:8px;overflow-x:auto;font-size:12px;line-height:1.6; }
    .md-body pre code { background:none;padding:0;font-size:inherit; }
    .md-body blockquote { border-left:3px solid var(--border);margin:0;padding:4px 12px;color:var(--text-secondary); }
    .md-body table { border-collapse:collapse;width:100%;margin:.8em 0;font-size:13px; }
    .md-body th,.md-body td { border:1px solid var(--border);padding:7px 12px;text-align:left; }
    .md-body th { background:var(--bg-secondary);font-weight:600; }
    .md-body tr:nth-child(even) { background:var(--bg-secondary); }
    /* ── 论文成果卡片 ── */
    .paper-card { background:var(--bg-primary);border:1px solid var(--border);border-radius:10px;padding:18px 18px 14px;transition:box-shadow .15s; }
    .paper-card:hover { box-shadow:0 4px 16px rgba(0,0,0,.1); }
    .paper-card-title { font-size:14px;font-weight:700;margin-bottom:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
    .paper-card-meta  { font-size:12px;color:var(--text-secondary);margin-bottom:10px; }
    .paper-badge { display:inline-block;padding:2px 8px;border-radius:10px;font-size:11px;font-weight:600;margin-right:4px; }
    .paper-badge-complete { background:#dafbe1;color:#1a7f37; }
    .paper-badge-partial  { background:#fff3e0;color:#bf8700; }
    .paper-badge-config   { background:#f3e8ff;color:#6f42c1; }
    .paper-actions { display:flex;gap:6px;flex-wrap:wrap;margin-top:12px; }
    .paper-chapters-toggle { font-size:12px;color:var(--primary);cursor:pointer;background:none;border:none;padding:0;text-decoration:underline; }
    /* 文件 tabs */
    .modal-file-tab { padding:6px 12px;font-size:12.5px;border:none;background:none;cursor:pointer;border-bottom:2px solid transparent;color:var(--text-secondary); }
    .modal-file-tab.active { color:var(--primary);border-bottom-color:var(--primary);font-weight:600; }

    /* ── Welcome Hero（写作流程可视化） ── */
    .welcome-hero{
      width:100%;
      max-width:980px;
      margin:0 auto;
      display:grid;
      grid-template-columns:1.6fr 1fr;
      gap:16px;
      text-align:left;
      padding:18px;
      border:1px solid var(--border);
      border-radius:12px;
      background:linear-gradient(180deg, rgba(59,130,246,.06), rgba(99,102,241,.04));
      box-shadow:0 8px 26px rgba(15,23,42,.06);
    }
    .welcome-hero-title{ font-size:15px;font-weight:800;color:var(--text-primary);letter-spacing:-.2px; }
    .welcome-hero-sub{ font-size:12px;color:var(--text-secondary);margin-top:4px; }
    .welcome-hero-pill{
      font-size:11px;
      padding:4px 10px;
      border-radius:999px;
      border:1px solid rgba(59,130,246,.22);
      background:rgba(59,130,246,.10);
      color:#1d4ed8;
      font-weight:700;
      white-space:nowrap;
    }

    .flow-rail{ position:relative; padding:18px 12px 14px; border-radius:12px; background:rgba(255,255,255,.8); border:1px solid var(--border-muted); overflow:hidden; }
    .flow-track{ position:absolute; left:16px; right:16px; top:46px; height:10px; border-radius:999px; background:linear-gradient(90deg,#e5e7eb,#eef2ff); }
    .flow-fill{
      position:absolute; left:16px; top:46px; height:10px; width:0%;
      border-radius:999px;
      background:linear-gradient(90deg,#22c55e,#3b82f6,#6366f1);
      box-shadow:0 0 0 1px rgba(99,102,241,.12), 0 8px 18px rgba(59,130,246,.18);
      transition:width 600ms ease;
    }
    .flow-particles{ position:absolute; left:16px; right:16px; top:46px; height:10px; pointer-events:none; }
    .flow-dot{
      position:absolute; top:50%; transform:translateY(-50%);
      width:7px; height:7px; border-radius:50%;
      background:#93c5fd;
      opacity:.85;
      filter:blur(.1px);
      animation:flowDot 1800ms linear infinite;
    }
    .flow-dot.d1{ animation-delay:0ms; }
    .flow-dot.d2{ animation-delay:600ms; }
    .flow-dot.d3{ animation-delay:1200ms; }
    @keyframes flowDot{
      0%{ left:0%; opacity:0; }
      10%{ opacity:.9; }
      90%{ opacity:.6; }
      100%{ left:100%; opacity:0; }
    }

    .flow-nodes{ position:relative; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
    .flow-node{ width:25%; min-width:0; text-align:center; }
    .flow-node-top{ display:flex; align-items:center; justify-content:center; gap:8px; }
    .flow-bubble{
      width:34px;height:34px;border-radius:50%;
      display:flex;align-items:center;justify-content:center;
      font-weight:800;font-size:12px;
      background:#fff;border:1px solid rgba(148,163,184,.5);
      color:#475569;
      box-shadow:0 6px 18px rgba(2,6,23,.06);
      transition:transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    }
    .flow-node.active .flow-bubble{
      border-color:rgba(59,130,246,.55);
      box-shadow:0 10px 26px rgba(59,130,246,.22);
      transform:translateY(-1px) scale(1.03);
      color:#1d4ed8;
    }
    .flow-label{ font-size:12px; font-weight:700; color:var(--text-primary); margin-top:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .flow-desc{ font-size:11px; color:var(--text-secondary); margin-top:3px; }

    .welcome-hero-right{
      border-radius:12px;
      background:rgba(255,255,255,.92);
      border:1px solid var(--border-muted);
      padding:14px 14px 12px;
    }
    .welcome-snap-title{ font-size:12px; font-weight:800; color:var(--text-primary); margin-bottom:10px; }
    .welcome-snap-line{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; padding:7px 0; border-bottom:1px dashed var(--border-muted); }
    .welcome-snap-line:last-of-type{ border-bottom:none; }
    .welcome-snap-line .k{ font-size:11px; color:var(--text-secondary); }
    .welcome-snap-line .v{ font-size:11.5px; color:var(--text-primary); font-weight:700; text-align:right; }
    .welcome-snap-actions{ display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
    @media (max-width: 860px){
      .welcome-hero{ grid-template-columns:1fr; }
    }

    /* ── Landing Flow Hero：和背景拉开层次（玻璃卡片 + 光晕 + 悬浮/视差） ── */
    .landing-flow-hero{
      position:relative;
      background: linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.74));
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255,255,255,.35);
      box-shadow:
        0 20px 60px rgba(2,6,23,.22),
        0 10px 26px rgba(59,130,246,.16);
      transform: translate3d(calc(var(--px,0) * 8px), calc(var(--py,0) * 6px), 0);
      transition: transform 140ms ease, box-shadow 200ms ease;
      will-change: transform;
      overflow:hidden;
    }
    .landing-flow-hero::before{
      content:'';
      position:absolute;
      inset:-2px;
      background:
        radial-gradient(420px 220px at 18% 30%, rgba(99,102,241,.35), rgba(99,102,241,0) 60%),
        radial-gradient(380px 220px at 82% 35%, rgba(59,130,246,.28), rgba(59,130,246,0) 62%),
        radial-gradient(380px 260px at 55% 110%, rgba(16,185,129,.22), rgba(16,185,129,0) 62%);
      opacity:.7;
      pointer-events:none;
      mix-blend-mode: multiply;
    }
    .landing-flow-hero::after{
      content:'';
      position:absolute;
      inset:0;
      background: linear-gradient(120deg, rgba(255,255,255,.20), rgba(255,255,255,0) 36%, rgba(255,255,255,.08));
      opacity:.55;
      pointer-events:none;
    }
    .landing-flow-hero > *{ position:relative; z-index:1; }

    .landing-flow-hero .flow-rail{
      background: rgba(255,255,255,.72);
      border: 1px solid rgba(148,163,184,.28);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
    }
    .landing-flow-hero .flow-track{
      background: linear-gradient(90deg, rgba(226,232,240,.9), rgba(224,231,255,.9));
    }
    .landing-flow-hero .flow-fill{
      box-shadow: 0 0 0 1px rgba(99,102,241,.14), 0 14px 30px rgba(59,130,246,.20);
    }
    .landing-flow-hero .welcome-hero-pill{
      border-color: rgba(59,130,246,.25);
      background: rgba(59,130,246,.12);
    }

    @media (prefers-reduced-motion: reduce){
      .landing-flow-hero{ transition:none; transform:none; }
    }

    /* ── Landing Hero：更“灵动”的背景与视差 ── */
    .landing-hero{
      position:relative;
      overflow:hidden;
      /* 让 Hero 顶到导航栏下方：抵消 main-content 的 padding（20px 24px） */
      margin: -20px -24px 0;
      border-radius: 0 0 22px 22px;
      background:
        radial-gradient(1200px 520px at 15% 25%, rgba(99,102,241,.30), rgba(99,102,241,0) 55%),
        radial-gradient(900px 420px at 85% 35%, rgba(59,130,246,.26), rgba(59,130,246,0) 58%),
        radial-gradient(780px 520px at 55% 95%, rgba(16,185,129,.18), rgba(16,185,129,0) 55%),
        linear-gradient(160deg,#0a1628 0%,#0d2247 45%,#1a3a6e 100%);
      background-size: 140% 140%;
      animation: landingBgMove 14s ease-in-out infinite;
    }
    @keyframes landingBgMove{
      0%{ background-position: 0% 0%, 100% 0%, 60% 100%, 0% 0%; }
      50%{ background-position: 18% 12%, 82% 10%, 54% 92%, 0% 0%; }
      100%{ background-position: 0% 0%, 100% 0%, 60% 100%, 0% 0%; }
    }

    .landing-orbs{ position:absolute; inset:0; pointer-events:none; opacity:.9; }
    .landing-orb{
      position:absolute;
      width:340px; height:340px;
      border-radius:50%;
      filter: blur(18px);
      mix-blend-mode: screen;
      opacity:.42;
      transform: translate3d(0,0,0);
      animation: orbFloat 9s ease-in-out infinite;
      will-change: transform;
    }
    .landing-orb.o1{ left:-120px; top:-90px; background: radial-gradient(circle at 30% 30%, rgba(99,102,241,.95), rgba(99,102,241,0) 60%); animation-duration: 10.5s; }
    .landing-orb.o2{ right:-140px; top:40px; background: radial-gradient(circle at 30% 30%, rgba(59,130,246,.90), rgba(59,130,246,0) 60%); animation-duration: 12.5s; }
    .landing-orb.o3{ left:52%; bottom:-190px; transform: translateX(-50%); background: radial-gradient(circle at 30% 30%, rgba(16,185,129,.70), rgba(16,185,129,0) 62%); animation-duration: 11.5s; }
    @keyframes orbFloat{
      0%{ transform: translate3d(0,0,0) scale(1); }
      50%{ transform: translate3d(14px,-16px,0) scale(1.03); }
      100%{ transform: translate3d(0,0,0) scale(1); }
    }

    .landing-noise{
      position:absolute; inset:0; pointer-events:none;
      background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.08), transparent 35%),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,.06), transparent 40%),
        radial-gradient(circle at 30% 85%, rgba(255,255,255,.05), transparent 45%);
      opacity:.18;
      mask-image: radial-gradient(circle at 50% 40%, #000 55%, transparent 85%);
    }

    .landing-parallax{
      transform: translate3d(calc(var(--px,0) * 10px), calc(var(--py,0) * 8px), 0);
      transition: transform 120ms ease;
      will-change: transform;
    }
    .landing-parallax.slow{
      transform: translate3d(calc(var(--px,0) * 6px), calc(var(--py,0) * 5px), 0);
    }

    .landing-stat{
      display:inline-block;
      transform: translateY(6px);
      opacity:0;
    }
    .landing-stat.ready{
      animation: statIn 520ms ease forwards;
    }
    @keyframes statIn{
      to{ transform: translateY(0); opacity:1; }
    }

    @media (prefers-reduced-motion: reduce){
      .landing-hero{ animation:none; }
      .landing-orb{ animation:none; }
      .landing-parallax, .landing-parallax.slow{ transition:none; transform:none; }
      .landing-stat.ready{ animation:none; opacity:1; transform:none; }
    }

    /* ── Hero 写作动效：钢笔书写（沿右上参考文献区域） ── */
    .landing-writing{
      position:absolute;
      right: max(18px, 5vw);
      top: 38px;
      width: min(420px, 33vw);
      height: 170px;
      pointer-events:none;
      opacity:.92;
      mask-image: radial-gradient(circle at 60% 45%, #000 62%, transparent 92%);
      z-index: 2;
    }
    .landing-writing svg{ width:100%; height:100%; display:block; }
    .lw-ink{
      fill:none;
      stroke: rgba(191,219,254,.85);
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-dasharray: 240;
      stroke-dashoffset: 240;
      filter: drop-shadow(0 10px 18px rgba(59,130,246,.22));
      animation: inkDraw 5.6s ease-in-out infinite;
    }
    .lw-ink.fade2{
      stroke: rgba(147,197,253,.55);
      stroke-width: 1.6;
      stroke-dasharray: 220;
      stroke-dashoffset: 220;
      animation-duration: 5.6s;
      animation-delay: .08s;
    }
    @keyframes inkDraw{
      0%{ stroke-dashoffset: 240; opacity:0; }
      10%{ opacity:1; }
      62%{ stroke-dashoffset: 0; opacity:1; }
      85%{ opacity:.15; }
      100%{ stroke-dashoffset: -240; opacity:0; }
    }
    .lw-pen{
      transform-origin: 70% 70%;
      animation: penMove 5.6s ease-in-out infinite;
      filter: drop-shadow(0 14px 26px rgba(2,6,23,.35));
    }
    @keyframes penMove{
      0%{ transform: translate(78px, 34px) rotate(-12deg); opacity:0; }
      8%{ opacity:1; }
      26%{ transform: translate(290px, 34px) rotate(-6deg); opacity:1; }
      33%{ transform: translate(78px, 78px) rotate(-10deg); opacity:1; }
      56%{ transform: translate(290px, 78px) rotate(-4deg); opacity:1; }
      62%{ transform: translate(78px, 122px) rotate(-10deg); opacity:1; }
      74%{ transform: translate(290px, 122px) rotate(-4deg); opacity:1; }
      78%{ opacity:.35; }
      100%{ transform: translate(380px, 138px) rotate(10deg); opacity:0; }
    }

    @media (max-width: 900px){
      .landing-writing{ display:none; }
    }
    .lw-spark{
      animation: spark 1.2s ease-in-out infinite;
      opacity:.75;
    }
    @keyframes spark{
      0%,100%{ opacity:.25; transform: scale(.96); }
      50%{ opacity:.9; transform: scale(1.02); }
    }
    @media (prefers-reduced-motion: reduce){
      .lw-ink, .lw-pen{ animation:none; }
      .landing-writing{ opacity:.55; }
    }

    /* ── 邀请分享：主按钮 + 论文完成后右侧悬浮 ── */
    .btn-invite-share {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      padding: 11px 14px;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
      color: #fff;
      background: linear-gradient(135deg, #4f46e5, #7c3aed);
      box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
      transition: transform var(--transition), box-shadow var(--transition);
    }
    .btn-invite-share:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(79, 70, 229, 0.42);
    }
    .btn-invite-share:active {
      transform: translateY(0);
    }
    .btn-invite-share__icon {
      display: flex;
      flex-shrink: 0;
      opacity: 0.95;
    }
    .btn-invite-share__text {
      text-align: center;
      line-height: 1.35;
    }
    .btn-invite-share--sm {
      padding: 9px 12px;
      font-size: 12px;
      gap: 8px;
    }
    .btn-invite-share--compact {
      padding: 10px 12px;
      font-size: 12.5px;
    }

    /* ═══ 邀请 / 复制 / 通知 — 玻璃拟态弹窗 ═══ */
    .ui-modal-overlay {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      padding: max(16px, env(safe-area-inset-bottom));
      background: rgba(15, 23, 42, 0.58);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      animation: uiModalFade 0.22s ease;
    }
    @keyframes uiModalFade {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    .ui-modal-overlay--invite { z-index: 2150; }
    .ui-modal-overlay--notif { z-index: 2160; }
    .ui-modal-overlay--share { z-index: 2200; }

    .ui-glass-sheet {
      position: relative;
      width: 100%;
      max-width: 400px;
      padding: 26px 22px 22px;
      border-radius: 22px;
      background: linear-gradient(165deg, #ffffff 0%, #f8fafc 52%, #eef2ff 100%);
      border: 1px solid rgba(148, 163, 184, 0.38);
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.85) inset,
        0 28px 56px -14px rgba(15, 23, 42, 0.32),
        0 0 100px -30px rgba(99, 102, 241, 0.45);
      overflow: hidden;
    }
    .ui-glass-sheet--wide { max-width: 440px; }
    .ui-glass-sheet__glow {
      position: absolute;
      top: -48%;
      left: 50%;
      transform: translateX(-50%);
      width: 130%;
      height: 70%;
      background: radial-gradient(ellipse at center top, rgba(99, 102, 241, 0.22) 0%, transparent 68%);
      pointer-events: none;
    }
    .ui-glass-sheet__glow--violet {
      background: radial-gradient(ellipse at center top, rgba(139, 92, 246, 0.28) 0%, transparent 68%);
    }
    .ui-glass-sheet__icon {
      position: relative;
      width: 56px;
      height: 56px;
      margin: 0 auto 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      line-height: 1;
      border-radius: 18px;
      background: linear-gradient(145deg, #e0e7ff, #f5f3ff);
      box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
    .ui-glass-sheet__icon--success {
      color: #059669;
      background: linear-gradient(145deg, #d1fae5, #ecfdf5);
      box-shadow: 0 8px 24px rgba(16, 185, 129, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    }
    .ui-glass-sheet__icon--gift {
      background: linear-gradient(145deg, #fef3c7, #fff7ed);
      box-shadow: 0 8px 24px rgba(245, 158, 11, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    }
    .ui-glass-sheet__head {
      position: relative;
      text-align: center;
      margin-bottom: 6px;
    }
    .ui-glass-sheet__badge {
      display: inline-block;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.12em;
      color: #7c3aed;
      background: linear-gradient(135deg, #ede9fe, #f5f3ff);
      border: 1px solid #ddd6fe;
      padding: 3px 10px;
      border-radius: 999px;
      margin-bottom: 8px;
    }
    .ui-glass-sheet__title {
      position: relative;
      margin: 0 0 12px;
      font-size: 18px;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: #0f172a;
      text-align: center;
    }
    .ui-glass-sheet__title--flush { margin-bottom: 14px; }
    .ui-glass-sheet__desc,
    .ui-glass-sheet__lead {
      position: relative;
      margin: 0 0 10px;
      font-size: 14px;
      line-height: 1.65;
      color: #475569;
      text-align: center;
    }
    .ui-glass-sheet__body { position: relative; text-align: center; }
    .ui-glass-sheet__hint {
      position: relative;
      margin: 0 0 8px;
      font-size: 13px;
      line-height: 1.55;
      color: #64748b;
      text-align: center;
    }
    .ui-glass-sheet__meta {
      position: relative;
      margin: 0;
      font-size: 12px;
      line-height: 1.5;
      color: #94a3b8;
      text-align: center;
    }
    .ui-glass-sheet__actions {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 22px;
    }
    .ui-glass-sheet__actions--center { justify-content: center; }
    .ui-glass-btn {
      min-width: 112px;
      padding: 11px 20px;
      font-size: 14px;
      font-weight: 700;
      border-radius: 14px;
      border: none;
      cursor: pointer;
      transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    }
    .ui-glass-btn:active { transform: scale(0.98); }
    .ui-glass-btn--primary {
      color: #fff;
      background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
      box-shadow: 0 6px 22px rgba(99, 102, 241, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
    .ui-glass-btn--primary:hover {
      filter: brightness(1.05);
      box-shadow: 0 8px 28px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
    .ui-glass-btn--ghost {
      color: #475569;
      background: #f1f5f9;
      border: 1px solid #e2e8f0;
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    }
    .ui-glass-btn--ghost:hover { background: #e2e8f0; }
    .ui-glass-btn--block { width: 100%; min-width: 0; max-width: 280px; }

    .ui-notif-list {
      position: relative;
      max-height: min(46vh, 260px);
      overflow: auto;
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin: 4px 0 4px;
      padding-right: 4px;
    }
    .ui-notif-item {
      text-align: left;
      padding: 12px 14px;
      border-radius: 14px;
      background: linear-gradient(135deg, #f8fafc, #ffffff);
      border: 1px solid rgba(226, 232, 240, 0.95);
      border-left: 4px solid #6366f1;
      box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    }
    .ui-notif-item__title {
      font-size: 14px;
      font-weight: 700;
      color: #0f172a;
      margin-bottom: 6px;
    }
    .ui-notif-item__body {
      font-size: 13px;
      line-height: 1.55;
      color: #64748b;
    }

    /* ═══ Toast 强化 ═══ */
    .toast.toast--fancy {
      min-width: 220px;
      max-width: min(420px, calc(100vw - 32px));
      padding: 13px 16px 13px 14px;
      border-radius: 16px;
      border: 1px solid rgba(226, 232, 240, 0.95);
      background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 12px 40px rgba(15, 23, 42, 0.12),
        0 4px 14px rgba(99, 102, 241, 0.08);
      animation: toastPop 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    }
    @keyframes toastPop {
      from {
        opacity: 0;
        transform: translateX(40px) scale(0.94);
      }
      to {
        opacity: 1;
        transform: translateX(0) scale(1);
      }
    }
    .toast.toast--fancy .toast-icon-wrap {
      flex-shrink: 0;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 12px;
      margin-right: 12px;
    }
    .toast.toast--fancy.success .toast-icon-wrap {
      color: #059669;
      background: linear-gradient(145deg, #d1fae5, #ecfdf5);
      box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    }
    .toast.toast--fancy.error .toast-icon-wrap {
      color: #dc2626;
      background: linear-gradient(145deg, #fee2e2, #fef2f2);
      box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
    }
    .toast.toast--fancy.info .toast-icon-wrap {
      color: #4f46e5;
      background: linear-gradient(145deg, #e0e7ff, #eef2ff);
      box-shadow: 0 4px 12px rgba(79, 70, 229, 0.18);
    }
    .toast.toast--fancy.warning .toast-icon-wrap {
      color: #d97706;
      background: linear-gradient(145deg, #fef3c7, #fffbeb);
      box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    }
    .toast.toast--fancy .toast-msg {
      flex: 1;
      font-size: 13.5px;
      line-height: 1.45;
      font-weight: 500;
      color: #1e293b;
    }
    .toast.toast--fancy.success { border-color: rgba(110, 231, 183, 0.5); }
    .toast.toast--fancy.error { border-color: rgba(252, 165, 165, 0.6); }
    .toast.toast--fancy.info { border-color: rgba(165, 180, 252, 0.55); }
    .toast.toast--fancy.warning { border-color: rgba(253, 224, 71, 0.65); }
    .toast__action {
      margin-left: 10px;
      padding: 6px 14px;
      font-size: 12px;
      font-weight: 700;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      flex-shrink: 0;
      color: #fff;
      background: linear-gradient(135deg, #6366f1, #8b5cf6);
      box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    }
    .toast__action:hover { filter: brightness(1.06); }
    @media (prefers-reduced-motion: reduce) {
      .toast.toast--fancy { animation: none; }
      .ui-modal-overlay { animation: none; }
    }

    /* ═══ 支付解锁弹窗：限高 + 内容区滚动，关闭按钮始终在顶部可见 ═══ */
    .pay-modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 2000;
      display: none;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      min-height: 100vh;
      min-height: 100dvh;
      padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      background: rgba(0, 0, 0, 0.55);
    }
    .pay-modal-sheet {
      position: relative;
      width: 420px;
      max-width: min(95vw, 560px);
      max-height: min(92vh, 880px);
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
      overflow: hidden;
    }
    .pay-modal-head {
      flex-shrink: 0;
      position: relative;
      z-index: 4;
      padding: 20px 44px 12px 24px;
      text-align: center;
      background: linear-gradient(180deg, #ffffff 0%, #ffffff 70%, rgba(255, 255, 255, 0.92) 100%);
      border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    }
    .pay-modal-close {
      position: absolute;
      top: 12px;
      right: 12px;
      z-index: 5;
      width: 36px;
      height: 36px;
      padding: 0;
      border: 1px solid #e5e7eb;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.96);
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
      color: #6b7280;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }
    .pay-modal-close:hover {
      color: #374151;
      background: #f9fafb;
    }
    .pay-modal-headline {
      font-size: 22px;
      margin-bottom: 6px;
      font-weight: 700;
    }
    .pay-modal-subtitle {
      font-size: 13px;
      color: #6b7280;
      margin: 0;
      word-break: break-all;
      line-height: 1.45;
    }
    .pay-modal-body {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      padding: 14px 18px 20px;
      text-align: center;
    }

    /* 主区：宽屏左右分栏，窄屏上下堆叠 */
    .pay-modal-main-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
      align-items: start;
      text-align: left;
    }
    .pay-modal-status-row {
      margin-top: 4px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 8px 10px;
      text-align: center;
    }
    @media (min-width: 520px) {
      .pay-modal-status-row {
        margin-top: 8px;
      }
      .pay-modal-sheet {
        width: 100%;
      }
      .pay-modal-main-grid {
        grid-template-columns: minmax(0, 1fr) min-content;
        gap: 16px 18px;
      }
      .pay-modal-col--qr {
        padding-top: 2px;
      }
    }
    .pay-modal-col--info {
      min-width: 0;
    }
    .pay-modal-col--qr {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      text-align: center;
    }
    .pay-modal-qr-wrap {
      width: 100%;
      max-width: 200px;
      margin: 0 auto;
      text-align: center;
    }
    @media (min-width: 520px) {
      .pay-modal-qr-wrap {
        margin: 0;
        align-self: center;
      }
    }
    /* 覆盖主网格 text-align:left，提示语与画布在列内水平居中 */
    .pay-modal-qr-img {
      flex-direction: column;
      align-items: center;
      width: 100%;
      box-sizing: border-box;
    }
    .pay-modal-qr-hint {
      width: 100%;
      text-align: center;
      line-height: 1.4;
    }

    .pay-modal-benefits {
      display: flex;
      flex-direction: column;
      gap: 8px;
      align-items: stretch;
    }
    .pay-modal-benefit-item {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      font-size: 12px;
      line-height: 1.45;
      color: #374151;
      min-width: 0;
    }
    .pay-modal-benefit-item svg {
      flex-shrink: 0;
      margin-top: 2px;
    }
    .pay-modal-benefit-item span {
      flex: 1;
      min-width: 0;
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    .pay-modal-invite-btn {
      flex-wrap: wrap;
      justify-content: center;
      gap: 6px 8px;
    }
    .pay-modal-invite-btn .btn-invite-share__text {
      flex: 1 1 12em;
      min-width: 0;
      text-align: center;
      line-height: 1.35;
      font-size: 12px;
    }

    .unlock-ladder-tag {
      word-break: break-word;
    }
