.effort-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 14px;
    height: calc(100vh - 170px);
    padding: 12px;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .effort-main-card,
  .effort-side-card {
    background: linear-gradient(180deg, #020817, #020617);
    border: 1px solid #1e3a5f;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    color: #cbd5e1;
    overflow: hidden;
  }
  
  .effort-main-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 14px;
  }
  
  .effort-side-card {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  
  .effort-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
  }
  
  .effort-header h3,
  .effort-side-card h3 {
    margin: 0;
    font-size: 15px;
    color: #dbeafe;
  }
  
  .effort-header p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #94a3b8;
  }
  
  #effortGroupBy {
    height: 34px;
    min-width: 180px;
    background: #020617;
    color: #cbd5e1;
    border: 1px solid #334155;
    border-radius: 9px;
    padding: 0 10px;
    outline: none;
  }
  
  .effort-table-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
  }
  
  .effort-table,
  .resource-summary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }
  
  .effort-table {
    min-width: 760px;
  }
  
  .effort-table th,
  .resource-summary-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #071225;
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 700;
    padding: 9px 10px;
    border-bottom: 1px solid #1e3a5f;
    text-align: left;
  }
  
  .effort-table td,
  .resource-summary-table td {
    color: #cbd5e1;
    font-size: 12px;
    padding: 8px 10px;
    border-bottom: 1px solid #16233a;
  }
  
  .effort-table tr:hover td,
  .resource-summary-table tr:hover td {
    background: rgba(15, 23, 42, 0.7);
  }
  
  .effort-table tfoot td {
    position: sticky;
    bottom: 0;
    background: #0f172a;
    color: #f8fafc;
    font-weight: 800;
    border-top: 1px solid #38bdf8;
  }
  
  .tree-label {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .tree-indent-0 {
    padding-left: 0;
    font-weight: 800;
    color: #e0f2fe;
  }
  
  .tree-indent-1 {
    padding-left: 26px;
    color: #cbd5e1;
  }
  
  .tree-toggle {
    width: 18px;
    height: 18px;
    border: 1px solid #334155;
    border-radius: 5px;
    background: #020617;
    color: #bfdbfe;
    cursor: pointer;
    font-size: 11px;
    line-height: 16px;
  }
  
  .resource-summary-table {
    min-width: 390px;
  }
  
  #calculateEffortBtn {
    margin-top: auto;
  }
  
  .effort-table-scroll,
  .effort-side-card {
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
  }
  
  .effort-table-scroll::-webkit-scrollbar,
  .effort-side-card::-webkit-scrollbar {
    width: 7px;
    height: 7px;
  }
  
  .effort-table-scroll::-webkit-scrollbar-track,
  .effort-side-card::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .effort-table-scroll::-webkit-scrollbar-thumb,
  .effort-side-card::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 999px;
  }
  .effort-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 14px;
    height: calc(100vh - 145px);
    padding: 12px;
    overflow: hidden;
  }
  
  .effort-left {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 0;
    overflow: hidden;
  }
  
  .effort-main-card {
    min-height: 0;
    overflow: hidden;
  }
  
  .effort-table-scroll {
    flex: 1;
    min-height: 0;
    max-height: calc(100vh - 310px);
    overflow: auto;
    padding-right: 4px;
  }
  
  .effort-chat {
    background: linear-gradient(180deg, #020817, #020617);
    border: 1px solid #1e3a5f;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(100vh - 170px);
    overflow: hidden;
  }
  
  #effortChatMessages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
    padding: 10px 0;
  }
  
  .effort-chat .additional-chat-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 8px;
    margin-top: 10px;
  }
  
  .effort-chat textarea {
    min-height: 70px;
    resize: none;
  }
  
  .effort-save {
    margin-top: 8px;
  }
  
  .effort-table-scroll::-webkit-scrollbar,
  #effortChatMessages::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  .effort-table-scroll::-webkit-scrollbar-thumb,
  #effortChatMessages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #38bdf8, #0f766e);
    border-radius: 999px;
  }
  
  .effort-table-scroll::-webkit-scrollbar-track,
  #effortChatMessages::-webkit-scrollbar-track {
    background: #020617;
  }

  .effort-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .effort-toolbar-left,
  .effort-toolbar-right {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  
  .secondary-btn {
    background: #0f172a;
    border: 1px solid #334155;
    color: #cbd5e1;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: 0.2s ease;
  }
  
  .secondary-btn:hover {
    background: #1e293b;
  }
  
  .effort-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
  }
  
  .effort-chart-card {
    background: #020817;
    border: 1px solid #1e3a5f;
    border-radius: 14px;
    padding: 14px;
    min-height: 360px;
  }
  
  .hidden {
    display: none;
  }
  .effort-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
    min-height: 320px;
  }
  
  .effort-charts.hidden {
    display: none;
  }
  
  .effort-chart-card {
    position: relative;
    min-height: 320px;
    height: 320px;
    overflow: hidden;
  }
  
  .effort-chart-card canvas {
    width: 100% !important;
    height: 250px !important;
    max-height: 250px !important;
  }