.additional-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 14px;
    height: calc(100vh - 170px);
    padding: 12px;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .additional-main {
    display: grid;
    grid-template-rows: minmax(0, 1.25fr) minmax(0, 0.85fr);
    gap: 12px;
    min-height: 0;
    overflow: hidden;
  }
  
  .additional-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 300px;
    gap: 12px;
    min-height: 0;
    overflow: hidden;
  }
  
  .additional-card,
  .additional-chat {
    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;
  }
  
  .additional-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 14px;
  }
  
  .additional-card h3,
  .chat-title {
    flex: 0 0 auto;
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #dbeafe;
  }
  
  /* Tables */
  
  .table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }
  
  .scope-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 820px;
  }
  
  .scope-table th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #071225;
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 700;
    padding: 9px 10px;
    border-bottom: 1px solid #1e3a5f;
    text-align: left;
    white-space: nowrap;
  }
  
  .scope-table td {
    color: #94a3b8;
    font-size: 12px;
    padding: 8px 10px;
    border-bottom: 1px solid #16233a;
    vertical-align: middle;
  }
  
  .scope-table tr:hover td {
    background: rgba(15, 23, 42, 0.7);
    color: #cbd5e1;
  }
  
  /* Inputs */
  
  .scope-table input[type="number"],
  .hub-row input {
    width: 64px;
    height: 28px;
    background: #020617;
    color: #cbd5e1;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 0 8px;
    outline: none;
  }
  
  .scope-table input[type="number"]:focus,
  .hub-row input:focus,
  .hub-question select:focus,
  .additional-chat-input textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
  }
  
  .scope-table input[type="checkbox"] {
    appearance: none;
    width: 17px;
    height: 17px;
    border: 1px solid #475569;
    border-radius: 5px;
    background: #020617;
    cursor: pointer;
    position: relative;
  }
  
  .scope-table input[type="checkbox"]:checked {
    background: #0ea5e9;
    border-color: #38bdf8;
  }
  
  .scope-table input[type="checkbox"]:checked::after {
    content: "✓";
    color: #f8fafc;
    font-size: 13px;
    font-weight: 800;
    position: absolute;
    left: 3px;
    top: -1px;
  }
  
  /* Hub card */
  
  .hub-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  
.hub-card h3 {
    flex: 0 0 auto;
  }
  
  
  .hub-card p {
    flex: 0 0 auto;
    margin: -4px 0 12px;
    color: #94a3b8;
    font-size: 12px;
  }
  
  .hub-counts {
    height: 175px;
    max-height: 175px;
    overflow-y: scroll;
    overflow-x: hidden;
  
    display: flex;
    flex-direction: column;
    gap: 10px;
  
    padding-right: 8px;
  }
  
  .hub-question {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 90px;
    gap: 10px;
    align-items: center;
    margin-bottom: 4px;
  }
  
  .hub-question label {
    color: #cbd5e1;
    font-size: 13px;
  }
  
  .hub-question select {
    height: 32px;
    background: #020617;
    color: #cbd5e1;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 0 8px;
    outline: none;
  }
  
  .hub-row {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 8px;
    align-items: center;
  }
  
  .hub-row label {
    font-size: 13px;
    color: #cbd5e1;
  }
  .hub-row,
.hub-question {
  flex-shrink: 0;
}
  /* Chat */
  
  .additional-chat {
    display: flex;
    flex-direction: column;
    padding: 14px;
    min-height: 0;
  }
  
  .chat-title {
    text-align: center;
  }
  
  .additional-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .chat-message {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.42;
    white-space: pre-wrap;
  }
  
  .chat-message.user {
    align-self: flex-end;
    background: #0e7490;
    color: #ecfeff;
    border-bottom-right-radius: 3px;
  }
  
  .chat-message.ai {
    align-self: flex-start;
    background: #0f172a;
    color: #cbd5e1;
    border: 1px solid #1e293b;
    border-bottom-left-radius: 3px;
  }
  
  .additional-chat-input {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 74px;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #1e293b;
  }
  
  .additional-chat-input textarea {
    height: 72px;
    resize: none;
    background: #020617;
    color: #cbd5e1;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 10px;
    outline: none;
    font-size: 13px;
  }
  
  .additional-chat-input textarea::placeholder {
    color: #64748b;
  }
  
  .additional-chat-input button {
    height: 72px;
    padding: 0 15px;
    border: none;
    border-radius: 10px;
    background: #0891b2;
    color: #f8fafc;
    font-weight: 700;
    cursor: pointer;
  }
  
  .additional-chat-input button:hover {
    background: #0e7490;
  }
  
  .additional-chat-input button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
  }
  
  /* Modern scrollbars */
  
  .table-scroll,
  .hub-counts,
  .additional-chat-messages,
  .additional-chat-input textarea {
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
  }
  
  .table-scroll::-webkit-scrollbar,
  .hub-counts::-webkit-scrollbar,
  .additional-chat-messages::-webkit-scrollbar,
  .additional-chat-input textarea::-webkit-scrollbar {
    width: 7px;
    height: 7px;
  }
  
  .table-scroll::-webkit-scrollbar-track,
  .hub-counts::-webkit-scrollbar-track,
  .additional-chat-messages::-webkit-scrollbar-track,
  .additional-chat-input textarea::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .table-scroll::-webkit-scrollbar-thumb,
  .hub-counts::-webkit-scrollbar-thumb,
  .additional-chat-messages::-webkit-scrollbar-thumb,
  .additional-chat-input textarea::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 999px;
  }
  
  .table-scroll::-webkit-scrollbar-thumb:hover,
  .hub-counts::-webkit-scrollbar-thumb:hover,
  .additional-chat-messages::-webkit-scrollbar-thumb:hover,
  .additional-chat-input textarea::-webkit-scrollbar-thumb:hover {
    background: #475569;
  }
  .additional-save{
    margin-top:10px;
  }
  
  .additional-save .btn{
    width:100%;
    padding:10px 12px;
    font-size:13px;
  }