    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background: #0f1015; color: #e2e8f0; min-height: 100vh;
      background-size: cover; background-position: center; background-attachment: fixed;
    }
    #app { position: relative; width: 100vw; min-height: 100vh; padding: 20px; }
    
    .header-bar {
      position: fixed; top: 16px; right: 20px; z-index: 1000;
      display: flex; gap: 12px; align-items: center;
      background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(16px);
      padding: 8px 16px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .header-btn {
      background: rgba(255, 255, 255, 0.08); color: #f1f5f9;
      border: 1px solid rgba(255, 255, 255, 0.15); padding: 6px 14px;
      border-radius: 8px; font-size: 13px; cursor: pointer; transition: all 0.2s;
    }
    .header-btn:hover { background: rgba(255, 255, 255, 0.2); }
    
    .layout-container { transition: all 0.3s ease; }
    .layout-row { display: flex; flex-direction: row; }
    .layout-column { display: flex; flex-direction: column; }

    .widget-card {
      position: relative;
      background: rgba(23, 25, 35, 0.75); backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
      border-radius: 14px; padding: 20px;
      /* 增加宽度渐变动画，视觉更平滑 */
      transition: min-width 0.3s ease; 
    }

    /* 当触发两列时，强制撑宽整个卡片容器，确保背景能完全覆盖第二列 */
    .two-col-widget {
      min-width: 580px; 
    }

    .widget-title {
      font-size: 16px; font-weight: 600; margin-bottom: 14px; color: #38bdf8;
      display: flex; align-items: center; justify-content: space-between;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding-bottom: 8px;
    }
    .rule-item { font-size: 14px; line-height: 1.6; margin-bottom: 8px; color: #cbd5e1; }
    .event-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.08); font-size: 14px; }
    .event-time { color: #fbbf24; font-weight: 500; }
    
    .task-project-group { width: 100%; min-width: 0; max-width: 100%; margin-bottom: 8px; }
    
    .task-projects { width: 100%; column-count: 1; transition: all 0.3s ease; }
    .task-projects.two-col { columns: 2 14.5em; column-gap: 24px; }
    
    .task-project { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 16px; font-weight: 600; color: #e2e8f0; break-after: avoid; }
    .task-project-icon { flex: 0 0 auto; font-size: 15px; }
    .task-project-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .task-items { width: 100%; min-width: 0; }
    .task-item { display: block; width: 100%; min-width: 0; max-width: 100%; margin: 0; break-inside: avoid; white-space: normal; overflow-wrap: break-word; }
    .task-item > span { display: block; width: 100%; min-width: 0; white-space: normal; overflow-wrap: break-word; }

    /* 用于测量高度的隐藏容器。将宽度锁死在标准单列宽度(280px)，彻底避免页面因尺寸变化进入死循环 */
    .task-projects-measure {
      position: absolute !important;
      visibility: hidden !important;
      pointer-events: none !important;
      left: -99999px !important;
      top: 0 !important;
      width: 280px !important;
      columns: auto !important;
      column-count: 1 !important;
      padding: 0 !important;
      margin: 0 !important;
    }

    @media (max-width: 900px) {
      #app { width: 100%; min-height: 100vh; padding: 12px; }
      .dashboard-tree .layout-container {
        position: static !important;
        inset: auto !important;
        width: 100% !important; max-width: 100% !important; min-width: 0 !important;
        flex-direction: column !important;
      }
      .dashboard-tree .layout-container.layout-row {
        gap: 16px !important;
      }
      .dashboard-tree .widget-card {
        width: 100% !important; max-width: 100% !important; min-width: 0 !important;
      }
      /* 移动端强制取消两列效果 */
      .two-col-widget { min-width: 0 !important; }
      .task-projects.two-col { columns: 1 !important; }
      .event-item > span:first-child { min-width: 0; overflow-wrap: anywhere; }
      .unauth-card { width: min(440px, 100%); padding: 24px; }
    }

    /* 鉴权失败遮罩 */
    .unauth-overlay {
      position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
      background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(16px);
      display: flex; justify-content: center; align-items: center; z-index: 9999;
    }
    .unauth-card {
      background: #1e293b; border: 1px solid #334155; border-radius: 16px;
      padding: 36px; width: 440px; text-align: center; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    }
    .unauth-icon { font-size: 48px; margin-bottom: 16px; }
    .unauth-title { font-size: 20px; font-weight: 600; color: #f43f5e; margin-bottom: 12px; }
    .unauth-desc { font-size: 14px; color: #94a3b8; line-height: 1.6; margin-bottom: 24px; }
