  *{box-sizing:border-box;margin:0;padding:0}
  :root{
    --red:#c0392b;--red-light:#fdf2f2;--red-mid:#e74c3c;
    --green:#27ae60;--green-light:#f0faf4;
    --blue:#2980b9;--blue-light:#f0f7fd;
    --gray:#6c757d;--gray-light:#f8f9fa;--gray-border:#dee2e6;
    --text:#212529;--text-muted:#6c757d;
    --white:#fff;--radius:8px;--shadow:0 1px 3px rgba(0,0,0,.08);
  }
  body, html {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
body { font-family:'Segoe UI',system-ui,sans-serif;font-size:14px;color:var(--text);background:#f5f6fa;height:100vh }
  
  header{background:#141724;color:#fff;padding:0 20px;display:flex;align-items:center;justify-content:space-between;height:56px;position:fixed;top:0;left:0;right:0;z-index:100;box-shadow:0 2px 8px rgba(0,0,0,.15);border-bottom: 1px solid rgba(255, 255, 255, 0.05)}
  header h1{font-size:16px;font-weight:600;letter-spacing:.3px}
  header .meta{font-size:12px;opacity:.8}

  .nb-btn{width:100%;padding:11px 16px;text-align:left;background:none;border:none;border-bottom:1px solid rgba(192,57,43,.12);cursor:pointer;font-size:12px;color:#c0392b;display:flex;align-items:center;gap:8px;font-weight:600;box-sizing:border-box}
  .nb-btn:hover{background:rgba(192,57,43,.12)}

  #page-index.active{display:flex}
  
  .stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:20px}
  .stat-card{background:var(--white);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);border:1px solid var(--gray-border)}
  .stat-card .label{font-size:11px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}
  .stat-card .value{font-size:24px;font-weight:600}
  .stat-card.red .value{color:var(--red)}
  .stat-card.green .value{color:var(--green)}
  .stat-card.blue .value{color:var(--blue)}
  
  .report-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}
  @media(max-width:700px){.report-grid{grid-template-columns:1fr}}
  
  .report-card{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--gray-border);overflow:hidden}
  .report-card .rh{padding:12px 16px;font-weight:600;font-size:13px;color:#fff;display:flex;align-items:center;justify-content:space-between}
  .report-card.hai .rh{background:var(--red)}
  .report-card.hieu .rh{background:var(--blue)}
  .report-card .rh span{font-size:11px;font-weight:400;opacity:.85}
  .report-table{width:100%;border-collapse:collapse;font-size:13px}
  .report-table th{background:var(--gray-light);padding:8px 12px;text-align:left;font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:var(--text-muted);border-bottom:1px solid var(--gray-border)}
  .report-table td{padding:8px 12px;border-bottom:1px solid var(--gray-border)}
  .report-table tr:last-child td{border-bottom:none}
  .report-table tr:hover td{background:var(--gray-light)}
  .report-table .total-row td{font-weight:600;background:var(--gray-light);border-top:2px solid var(--gray-border)}
  .report-table td.money{font-weight:500;color:var(--green)}
  .report-table td.money-red{font-weight:500;color:var(--red)}
  td.num{text-align:right}
  
  .panel{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--gray-border)}
  #page-hai .panel, #page-hieu .panel{display:flex;flex-direction:column;height:calc(100vh - 96px)}
  #page-hai .table-wrap, #page-hieu .table-wrap{overflow-y:auto;flex:1;overflow-x:auto}
  .panel-header{padding:12px 16px;border-bottom:1px solid var(--gray-border);display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;flex-shrink:0}
  .panel-title{font-weight:600;font-size:14px}
  .panel-body{padding:16px}
  
  .toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
  input,select,textarea{font-family:inherit;font-size:13px;border:1px solid #30363d !important;border-radius:6px;padding:7px 10px;outline:none;background-color:#0d1117 !important;color:#c9d1d9 !important}
  input:focus,select:focus,textarea:focus{border-color:#58a6ff !important;box-shadow:0 0 0 2px rgba(56, 139, 253, 0.3) !important}
  input[type=text],input[type=date]{height:34px}
  select{height:34px;cursor:pointer}
  
  .btn{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;border:1px solid transparent;transition:all .15s;height:34px}
  .btn-primary{background:var(--red);color:#fff;border-color:var(--red)}
  .btn-primary:hover{background:#a93226}
  .btn-outline{background:#fff;border-color:var(--gray-border);color:var(--text)}
  .btn-outline:hover{background:var(--gray-light)}
  .btn-sm{height:28px;padding:4px 10px;font-size:12px}
  .btn-danger{background:#fff;border-color:#e74c3c;color:#e74c3c}
  .btn-danger:hover{background:#fdf2f2}
  
  .table-wrap{width:100%;overflow-x:auto}
  .data{width:100%;border-collapse:collapse;min-width:900px;font-size:13px}
  table.data th{background:var(--gray-light);padding:9px 12px;text-align:left;font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:var(--text-muted);border-bottom:1px solid var(--gray-border);white-space:nowrap;position:sticky;top:0;z-index:8}
  table.data td{padding:9px 12px;border-bottom:1px solid var(--gray-border);vertical-align:middle}
  table.data tr:last-child td{border-bottom:none}
  table.data tr:hover td{background:#fafafa}
  table.data td a{color:var(--blue);text-decoration:none;word-break:break-all}
  table.data td a:hover{text-decoration:underline}
  
  .badge{display:inline-block;padding:2px 8px;border-radius:20px;font-size:11px;font-weight:500}
  .badge-red{background:#fdf2f2;color:#c0392b;border:1px solid #f5c6c6}
  .badge-blue{background:#f0f7fd;color:#2980b9;border:1px solid #b8d4ea}
  .badge-green{background:var(--green-light);color:var(--green);border:1px solid #a8deba}
  .badge-gray{background:var(--gray-light);color:var(--gray);border:1px solid var(--gray-border)}
  
  .form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
  .form-group{display:flex;flex-direction:column;gap:4px}
  .form-group label{font-size:12px;font-weight:500;color:var(--text-muted)}
  .form-group input,.form-group select,.form-group textarea{width:100%}
  textarea{resize:vertical;min-height:60px}
  
  .empty{text-align:center;padding:40px;color:var(--text-muted)}
  .empty .icon{font-size:32px;margin-bottom:8px}
  
  .modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:200;align-items:center;justify-content:center;padding:20px}
  .modal-overlay.open{display:flex}
  .modal{background:#fff;border-radius:12px;width:100%;max-width:560px;box-shadow:0 8px 32px rgba(0,0,0,.15);overflow:hidden}
  .modal-header{padding:16px 20px;border-bottom:1px solid var(--gray-border);display:flex;align-items:center;justify-content:space-between}
  .modal-header h3{font-size:15px;font-weight:600}
  .modal-close{background:none;border:none;cursor:pointer;font-size:20px;color:var(--text-muted);padding:0;line-height:1}
  .modal-body{padding:20px;display:flex;flex-direction:column;gap:12px}
  .modal-footer{padding:12px 20px;border-top:1px solid var(--gray-border);display:flex;gap:8px;justify-content:flex-end}
  
  .filter-bar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
  .filter-bar input,.filter-bar select{height:32px;font-size:12px}
  
  .tag-person{display:inline-flex;align-items:center;gap:4px;padding:2px 10px;border-radius:20px;font-size:11px;font-weight:600}
  .tag-hai{background:#fdf2f2;color:#c0392b;border:1px solid #f5c6c6}
  .tag-hieu{background:#f0f7fd;color:#2980b9;border:1px solid #b8d4ea}
  
  .progress-bar{height:6px;background:var(--gray-border);border-radius:3px;overflow:hidden;margin-top:4px}
  .progress-bar .fill{height:100%;border-radius:3px;transition:width .4s}
  .fill-red{background:var(--red)}
  .fill-blue{background:var(--blue)}
  
  .info-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--text-muted);margin-bottom:2px}
  
  .fh{cursor:pointer;user-select:none;white-space:nowrap;position:relative}
  .fh:hover{background:#f0e8e8}
  .fh.active{background:#fdf0f0;color:var(--red)}
  .fh-ic{font-size:9px;opacity:.6;margin-left:3px}
  .bulk-bar{display:flex;align-items:center;gap:8px;padding:8px 16px;background:#fff8e1;border-bottom:1px solid #ffe082;flex-wrap:wrap;position:sticky;top:0;z-index:10;box-shadow:0 2px 8px rgba(0,0,0,.06);transition:opacity .2s;flex-shrink:0}
  .date-nav-sticky{position:sticky;z-index:92;background:#fafafa}
  .panel-sticky-head{position:sticky;z-index:93;background:#fff}

  .bulk-bar-inactive{opacity:.45;pointer-events:none}
  .bulk-bar-inactive .btn{cursor:default}
  #dateNavHai,#dateNavHieu{position:sticky;z-index:91;background:#fafafa}
  .fdrop{position:fixed;background:#fff;border:1px solid var(--gray-border);border-radius:8px;box-shadow:0 6px 24px rgba(0,0,0,.16);z-index:9999;min-width:230px;max-width:300px;overflow:hidden}
  .fdrop-search{padding:8px 10px;border-bottom:1px solid var(--gray-border)}
  .fdrop-search input{width:100%;height:30px;font-size:12px;padding:4px 8px;border:1px solid var(--gray-border);border-radius:5px;outline:none;box-sizing:border-box}
  .fdrop-search input:focus{border-color:var(--red)}
  .fdrop-date{padding:10px 12px;border-bottom:1px solid var(--gray-border);display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .fdrop-date label{font-size:10px;color:var(--text-muted);display:block;margin-bottom:2px}
  .fdrop-date input{height:28px;font-size:11px;padding:2px 4px;border:1px solid var(--gray-border);border-radius:5px;width:100%;box-sizing:border-box}
  .fdrop-list{max-height:220px;overflow-y:auto;padding:4px 0}
  .fdrop-selectall{border-bottom:1px solid var(--gray-border);padding-bottom:5px;margin-bottom:2px}
  .fdrop-item{display:flex;align-items:center;gap:8px;padding:4px 12px;cursor:pointer;font-size:13px;user-select:none}
  .fdrop-item:hover{background:var(--gray-light)}
  .fdrop-item input[type=checkbox]{cursor:pointer;accent-color:var(--red);width:14px;height:14px;flex-shrink:0;margin:0}
  .fdrop-footer{padding:8px 12px;border-top:1px solid var(--gray-border);display:flex;gap:6px;justify-content:flex-end;background:var(--gray-light)}
  td.ec{cursor:pointer;position:relative}
  td.ec:hover{background:#fff8f8 !important;outline:1px dashed #e0b0b0}
  td.ec:hover::after{content:'✎';position:absolute;top:2px;right:3px;font-size:9px;color:#c0392b;opacity:.5}
  td.ec input,td.ec select{display:block}
  tr.row-selected td{background:#fff3f3 !important}
  .task-group-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted);padding:4px 2px;margin-bottom:6px;border-bottom:1px solid var(--gray-border)}
  .task-row{background:#fff;border-radius:8px;border:1px solid var(--gray-border);padding:12px 14px;margin-bottom:8px;cursor:pointer;transition:box-shadow .15s,border-color .15s,opacity .15s;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
  
  .priority-binh{border-left:3px solid #e67e22 !important}
  .priority-thap{border-left:3px solid #27ae60 !important}
  .task-row.drag-over{border:2px dashed var(--red);background:#fdf2f2}
  .task-row.dragging{opacity:.35}
  .drag-handle{cursor:grab;padding:0 6px 0 0;color:var(--gray-border);font-size:16px;flex-shrink:0;user-select:none;line-height:1}
  .drag-handle:hover{color:var(--text-muted)}
  .task-row:hover{box-shadow:0 2px 10px rgba(0,0,0,.08);border-color:#c8c8c8}
  .task-row-main{flex:1;min-width:200px}
  .task-row-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;flex-shrink:0}
  .kb-col-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
  .kb-col-title{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}
  .kb-col-count{font-size:11px;background:#fff;border:1px solid var(--gray-border);border-radius:20px;padding:1px 8px;color:var(--text-muted)}
  .kb-card{background:#fff;border-radius:8px;border:1px solid var(--gray-border);padding:10px 12px;margin-bottom:8px;cursor:grab;transition:box-shadow .15s,transform .15s;user-select:none;position:relative}
  .kb-card:hover{box-shadow:0 3px 10px rgba(0,0,0,.09);transform:translateY(-1px)}
  .kb-card.dragging{opacity:.35;cursor:grabbing}
  .kb-card-pending{font-size:11px;color:#e67e22;background:#fff8ee;border:1px solid #fce0b0;border-radius:4px;padding:3px 7px;margin-top:5px}
  .kb-card.card-selected{border-color:var(--red);background:#fdf9f9}
  .kb-ws-menu-btn{background:none;border:none;padding:2px 5px;cursor:pointer;font-size:11px;color:var(--text-muted);line-height:1;flex-shrink:0;transition:color .15s}
  .kb-ws-menu-btn:hover{color:var(--red)}
  .kb-ws-expand{display:none;gap:5px;flex-wrap:wrap;padding:6px 0 2px 0;border-top:1px solid var(--gray-border);margin-top:5px}
  .kb-ws-expand.open{display:flex}
  .kb-ws-exp-btn{border-radius:4px;padding:3px 8px;cursor:pointer;font-size:11px;border:1px solid var(--gray-border);background:#f8f9fa;color:var(--text);white-space:nowrap;text-decoration:none;display:inline-flex;align-items:center;gap:3px}
  .kb-ws-exp-btn:hover{background:#f0f0f0}
  .kb-add-btn{width:100%;text-align:left;background:none;border:1px dashed var(--gray-border);border-radius:6px;padding:6px 10px;font-size:12px;color:var(--text-muted);cursor:pointer;margin-top:4px}
  .kb-add-btn:hover{background:#fff;border-color:var(--red);color:var(--red)}
  .member-picker{position:relative;display:flex;align-items:center;gap:8px}
  .member-avatar{width:34px;height:34px;border-radius:50%;border:2px solid rgba(255,255,255,.5);background:rgba(255,255,255,.15);color:#fff;font-size:13px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;flex-shrink:0;overflow:hidden}
  .member-avatar:hover{border-color:#fff;background:rgba(255,255,255,.3)}
  .member-role-label{font-size:12px;color:var(--red);font-weight:700;white-space:nowrap;background:rgba(255,255,255,.92);padding:2px 8px;border-radius:20px}
  .member-dropdown{position:absolute;top:calc(100% + 8px);left:0;background:#fff;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.18);min-width:180px;overflow:hidden;z-index:200;display:none}
  .member-dropdown.open{display:block}
  .md-header{padding:10px 14px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted);border-bottom:1px solid var(--gray-border)}
  .md-item{display:flex;align-items:center;gap:10px;padding:10px 14px;cursor:pointer;transition:background .1s}
  .md-item:hover{background:var(--gray-light)}
  .md-item.active{background:#fdf2f2}
  .md-avatar{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0;overflow:hidden}
  .md-name{font-size:13px;font-weight:700;color:var(--red)}
  .md-role{font-size:11px;color:var(--text-muted)}
  .md-check{margin-left:auto;color:var(--red);font-size:14px}
  .link-group-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted);padding:4px 2px;margin-bottom:8px;margin-top:14px;border-bottom:1px solid var(--gray-border);display:flex;align-items:center;gap:6px}
  .links-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px;margin-bottom:4px}
  .link-card{background:#fff;border-radius:8px;border:1px solid var(--gray-border);padding:12px 14px;transition:box-shadow .15s,border-color .15s;cursor:pointer}
  .link-card:hover{box-shadow:0 2px 10px rgba(0,0,0,.08);border-color:#bbb}
  .link-card-name{font-size:13px;font-weight:600;margin-bottom:3px;display:flex;align-items:center;gap:6px}
  .link-card-url{font-size:11px;color:var(--blue);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:5px}
  .link-card-desc{font-size:11px;color:var(--text-muted);line-height:1.5}
  .link-card-footer{display:flex;align-items:center;gap:6px;margin-top:8px;padding-top:7px;border-top:1px solid var(--gray-border)}
  .owner-badge-admin{background:#f0f0f0;color:#555;border:1px solid #ddd;font-size:10px;padding:1px 7px;border-radius:10px}
  .owner-badge-hai{background:#fdf2f2;color:#c0392b;border:1px solid #f5c6c6;font-size:10px;padding:1px 7px;border-radius:10px}
  .date-tab{background:none;border:1px solid var(--gray-border);border-radius:20px;padding:3px 10px;cursor:pointer;color:var(--text-muted);transition:all .15s;white-space:nowrap}
  .date-tab:hover{border-color:var(--red);color:var(--red)}
  .date-tab-active{background:var(--red);border-color:var(--red);color:#fff!important;font-weight:600}
  .ac-wrap{position:relative}
  .ac-list{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid var(--gray-border);border-radius:0 0 6px 6px;box-shadow:0 4px 12px rgba(0,0,0,.1);z-index:300;max-height:180px;overflow-y:auto;display:none}
  .ac-list.open{display:block}
  .ac-item{padding:7px 10px;cursor:pointer;font-size:12px;border-bottom:1px solid var(--gray-border)}
  .ac-item:last-child{border-bottom:none}
  .ac-item:hover,.ac-item.active{background:#fdf2f2;color:var(--red)}
  .edit-menu-item{display:flex;align-items:center;gap:8px;width:100%;text-align:left;background:none;border:none;padding:9px 14px;font-size:13px;cursor:pointer;color:var(--text);transition:background .1s}
  .edit-menu-item:hover{background:#fdf2f2;color:var(--red)}
  #toast{position:fixed;bottom:20px;right:20px;background:#333;color:#fff;padding:10px 16px;border-radius:8px;font-size:13px;opacity:0;transition:opacity .3s;z-index:999;pointer-events:none}
  #toast.show{opacity:1}

.eco-tab {
  padding: 10px 18px; border: none; border-bottom: 3px solid transparent;
  background: transparent; font-size: 13px; font-weight: 600;
  cursor: pointer; color: var(--text-muted, #888); transition: all 0.2s ease;
}
.eco-tab:hover { color: var(--blue,#3498db); background:rgba(52,152,219,0.05); }
.eco-tab.eco-tab-active { color:var(--blue,#3498db); border-bottom-color:var(--blue,#3498db); background:rgba(52,152,219,0.08); }
#page-ecosystem { display:none; flex-direction:column; height:calc(100vh - 76px); }
#page-ecosystem.active { display:flex !important; }
/* ===== ECOSYSTEM APP SHELL ===== */
#page-ecosystem { padding: 0 !important; overflow: hidden; }
#page-ecosystem.active { display: flex !important; flex-direction: column; height: calc(100vh - 76px); }
#frame-finance, #frame-tools { flex: 1; display: none; flex-direction: column; height: 100%; }
#frame-finance.active, #frame-tools.active { display: flex; }
#frame-finance iframe, #frame-tools iframe { flex: 1; width: 100%; height: 100%; border: none; display: block; }

/* Eco nav buttons in sidebar */
nav button[id^="eco-btn-"] { transition: all 0.2s ease; }
nav button[id^="eco-btn-"].active {
  background: rgba(192,57,43,0.15);
  border-left: 3px solid var(--red, #c0392b);
  color: var(--red, #c0392b);
  font-weight: 700;
}

/* PREMIUM DARK LOGIN GATE */
.login-screen-deep {
  position: fixed;
  inset: 0;
  background: #0f111a;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: auto;
}
.login-card-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
}
/* HIERARCHICAL SIDEBAR */
.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}
.section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  opacity: 0.65;
  text-transform: uppercase;
  padding: 10px 18px 6px;
}
.sidebar-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}
.sidebar-tab:hover {
  color: var(--text);
  background: var(--gray-light);
}
.sidebar-tab.active {
  color: var(--red) !important;
  background: #fdf2f2 !important;
  border-left-color: var(--red) !important;
  font-weight: 600 !important;
}
.sub-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
  cursor: pointer;
  margin: 1px 0;
}
.sub-tab-btn:hover {
  color: var(--text);
  background: var(--gray-light);
}
.sub-tab-btn.active {
  color: var(--red) !important;
  font-weight: 600;
  background: rgba(192, 57, 43, 0.05);
}

/* APP SHELL & MASTER CONTAINER VIEWPORT CONTROL */
header.main-header, .main-header {
  height: 56px;
  width: 100vw;
  box-sizing: border-box;
  flex-shrink: 0;
  background: #141724 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.app-shell-wrapper {
  display: flex;
  width: 100vw;
  height: calc(100vh - 56px);
  overflow: hidden;
  background: #0f111a;
  margin-top: 56px; /* Shift down to avoid header overlap */
}

/* SIDEBAR REFACTORING & OPTIMIZATION */
.sidebar {
  width: 210px;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 10px;
  box-sizing: border-box;
}

.sidebar-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  padding: 0 12px 12px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  overflow-y: auto;
}

.sidebar-nav-item, .sidebar-footer button {
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  transition: all 0.2s ease;
  font-family: inherit;
}
.sidebar-nav-item.active, .sidebar-nav-item:hover, .sidebar-footer button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar i.fa {
  font-family: 'FontAwesome' !important;
  display: inline-block;
  width: 20px;
  text-align: center;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Guideline Cây Sub-menu */
.sidebar-sub-container {
  padding-left: 12px;
  margin-left: 20px;
  margin-top: 2px;
  margin-bottom: 10px;
  border-left: 1.5px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-sub-item {
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  font-family: inherit;
  display: flex;
  align-items: center;
}
.sidebar-sub-item:hover, .sidebar-sub-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.sidebar-sub-item i.fa {
  font-size: 11px;
}

/* Bottom Actions Panel in Sidebar */
.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* RIGHT HAND SIDE LAYERS */
.main-workspace-container {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.workspace-panel, .page {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Static sub-page content wrapper layout */
.page {
  padding: 24px !important;
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  overflow-y: auto;
}

/* Guard exclusions: scroll controls for iframe apps and Kanban boards */
#page-tasks, #page-recurring, .workspace-panel, .iframe-panel-wrap {
  overflow: hidden !important;
}
#page-tasks .kanban-wrapper, #page-recurring .kanban-wrapper {
  overflow-x: auto;
  height: 100%;
  width: 100%;
}

.iframe-panel-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.iframe-panel-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* LOGIN DIALOG CLEAN CSS CLASSES (Eliminates inline styling) */
.login-brand {
  text-align: center;
  margin-bottom: 40px;
}
.login-logo-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #c0392b, #8e1212);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 18px;
  box-shadow: 0 8px 32px rgba(192, 57, 43, 0.45);
  color: #fff;
}
.login-title {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
  letter-spacing: 0.3px;
}
.login-subtitle {
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  margin: 0;
}
.login-form-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}
.login-input-container {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}
.login-pw-input {
  width: 100%;
  box-sizing: border-box;
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  border-radius: 12px;
  padding: 14px 48px 14px 18px;
  font-size: 15px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.login-pw-input:focus {
  border-color: #58a6ff !important;
  box-shadow: 0 0 0 2px rgba(56, 139, 253, 0.3) !important;
}
.login-pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  padding: 2px;
}
.login-pw-err {
  display: none;
  color: #e74c3c;
  font-size: 12px;
  margin-bottom: 10px;
  padding-left: 4px;
}
.login-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #c0392b, #8e1212);
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: opacity 0.15s;
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.4);
}
.login-submit-btn:hover {
  opacity: 0.85;
}
.login-google-btn {
  transition: all 0.2s ease !important;
}
.login-google-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1) !important;
}
.login-footer-text {
  color: rgba(255, 255, 255, 0.15);
  font-size: 11px;
  margin-top: 40px;
  text-align: center;
}

.is-hidden {
  display: none !important;
}

/* PREMIUM DARK GLASSMORPHISM AND NEON ACCENTS */
.report-card, .stat-card {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.report-card.hai .rh, .report-card.hieu .rh, .stat-card .rh {
  background: #21262d !important;
  border-bottom: 1px solid #30363d !important;
  color: #f0f6fc !important;
}
.report-card h1, .stat-card h1, .stat-card .value, .stat-number, .total-count {
  color: #f0f6fc !important;
  text-shadow: none !important;
}

/* DASHBOARD DYNAMIC GLASS STATS CARDS */
.db-card-glass {
  background: #161b22 !important;
  border: 1px solid #30363d !important;
  border-radius: 14px;
  padding: 20px;
  box-shadow: none !important;
  color: #f0f6fc;
}
.db-card-glass .db-card-value {
  font-size: 32px;
  font-weight: 800;
  margin: 8px 0;
  color: #f0f6fc !important; /* Flat White count */
  text-shadow: none !important;
}
.db-card-glass .db-card-label {
  font-size: 12px;
  color: #8b949e !important; /* Muted gray label */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.db-card-glass .db-card-desc {
  font-size: 12px;
  color: #8b949e !important;
}

/* MINIMALIST MONOCHROMATIC OVERRIDES (GITHUB DARK MODE) */
body, html, .app-shell-wrapper, main.main-workspace-container, .workspace-panel, .page, .date-nav-sticky, #dateNavHai, #dateNavHieu {
  background: #0d1117 !important;
  color: #c9d1d9 !important;
}

header.main-header, .main-header {
  background: #161b22 !important;
  border-bottom: 1px solid #30363d !important;
}

/* Cards, Rows, and Lists (Eliminate white cards leak) */
.task-row, .kb-card, .task-card, .project-card, .link-card, 
[class="task-item"], [class*="project-"], .item, .list-group-item,
.report-card, .stat-card, .db-card-glass {
  background: #161b22 !important;
  border: 1px solid #30363d !important;
  box-shadow: none !important;
  color: #c9d1d9 !important;
}

/* Specific sub-sections */
.report-card .rh, .stat-card .rh, .panel-header, .panel-sticky-head {
  background: #21262d !important;
  border-bottom: 1px solid #30363d !important;
  color: #f0f6fc !important;
}

.report-table th, table.data th {
  background: #161b22 !important;
  color: #8b949e !important;
  border-bottom: 1px solid #30363d !important;
}

.report-table td, table.data td {
  border-bottom: 1px solid #21262d !important;
  color: #c9d1d9 !important;
}

table.data tr:hover td, .report-table tr:hover td {
  background: #21262d !important;
}

/* Modals, Dropdowns, Drop-lists and Autocomplete Panels */
.modal, .modal-header, .modal-footer, .fdrop, .fdrop-footer, .member-dropdown, .md-header, .ac-list {
  background: #161b22 !important;
  border: 1px solid #30363d !important;
  color: #c9d1d9 !important;
}

.modal-header, .modal-footer, .fdrop-search, .fdrop-date, .fdrop-footer, .md-header, .ac-item {
  border-color: #30363d !important;
}

.fdrop-item:hover, .md-item:hover, .ac-item:hover, .ac-item.active {
  background: #21262d !important;
  color: #58a6ff !important;
}

/* Sub-items list or menu selections active */
.fdrop-item, .md-item, .ac-item {
  color: #c9d1d9 !important;
}

/* Dynamic panels and helper components */
.bulk-bar {
  background: #21262d !important;
  border-bottom: 1px solid #30363d !important;
  color: #c9d1d9 !important;
}

.kb-col-count {
  background: #21262d !important;
  border: 1px solid #30363d !important;
  color: #8b949e !important;
}

.kb-card-pending {
  background: rgba(230, 126, 34, 0.1) !important;
  color: #e67e22 !important;
  border: 1px solid rgba(230, 126, 34, 0.3) !important;
}

.kb-ws-exp-btn {
  background: #21262d !important;
  border: 1px solid #30363d !important;
  color: #c9d1d9 !important;
}
.kb-ws-exp-btn:hover {
  background: #30363d !important;
}

.kb-add-btn {
  border: 1px dashed #30363d !important;
  color: #8b949e !important;
}
.kb-add-btn:hover {
  background: #21262d !important;
  border-color: #58a6ff !important;
  color: #58a6ff !important;
}

/* Sidebar and Navigation Monochromatic Refinement */
.sidebar {
  background: #161b22 !important;
  border-right: 1px solid #30363d !important;
}

.sidebar-tab, .sub-tab-btn, .sidebar-nav-item, .sidebar-footer button, .btn-outline {
  background: transparent !important;
  color: #8b949e !important;
  border-color: transparent !important;
}

.sidebar-tab:hover, .sub-tab-btn:hover, .sidebar-nav-item:hover, .sidebar-footer button:hover, .btn-outline:hover {
  background: #21262d !important;
  color: #f0f6fc !important;
}

.sidebar-tab.active, .sub-tab-btn.active, .sidebar-nav-item.active, nav button[id^="eco-btn-"].active {
  background: #21262d !important;
  color: #58a6ff !important;
  border-left-color: #58a6ff !important;
  font-weight: 600 !important;
}

/* Date tabs active states */
.date-tab {
  border: 1px solid #30363d !important;
  background: transparent !important;
  color: #8b949e !important;
}
.date-tab:hover {
  border-color: #58a6ff !important;
  color: #58a6ff !important;
}
.date-tab-active {
  background: #21262d !important;
  border-color: #58a6ff !important;
  color: #58a6ff !important;
  font-weight: 600 !important;
}

/* Typography, Headings & Text Shadows Elimination */
h1, h2, h3, h4, .value, .stat-number, .total-count, strong, .sidebar-brand, .panel-title, .modal-header h3 {
  color: #f0f6fc !important;
  text-shadow: none !important;
}

p, .text-muted, .meta, .sidebar-sub-item:not(.active), .form-group label {
  color: #8b949e !important;
}

/* Buttons hierarchy refactoring to standard flat GitHub aesthetics */
.btn, .btn-view-all {
  background: #21262d !important;
  color: #c9d1d9 !important;
  border: 1px solid #30363d !important;
  border-radius: 6px !important;
  padding: 6px 12px;
}
.btn:hover, .btn-view-all:hover {
  background: #30363d !important;
  color: #f0f6fc !important;
  border-color: #8b949e !important;
}

.btn-primary {
  background: #238636 !important;
  color: #ffffff !important;
  border: 1px solid #2ea44f !important;
}
.btn-primary:hover {
  background: #2ea44f !important;
}

.btn-danger, .text-danger-btn {
  background: rgba(248, 81, 73, 0.1) !important;
  color: #f85149 !important;
  border: 1px solid rgba(248, 81, 73, 0.4) !important;
}
.btn-danger:hover {
  background: #f85149 !important;
  color: #ffffff !important;
}

/* Unified Flat Badge Styles */
.badge-green, .tag-good {
  background: rgba(46, 160, 67, 0.15) !important;
  color: #3fb950 !important;
  border: 1px solid rgba(46, 160, 67, 0.3) !important;
}
.badge-red, .badge-error, .tag-error {
  background: rgba(248, 81, 73, 0.15) !important;
  color: #f85149 !important;
  border: 1px solid rgba(248, 81, 73, 0.3) !important;
}
.badge-blue, .badge-info {
  background: rgba(56, 139, 253, 0.15) !important;
  color: #58a6ff !important;
  border: 1px solid rgba(56, 139, 253, 0.3) !important;
}
.badge-gray, .badge-pending {
  background: rgba(139, 148, 158, 0.15) !important;
  color: #8b949e !important;
  border: 1px solid rgba(139, 148, 158, 0.3) !important;
}

/* Clean Form Input Shadows / Focus states */
input, select, textarea {
  background-color: #0d1117 !important;
  border: 1px solid #30363d !important;
  color: #c9d1d9 !important;
}
input:focus, select:focus, textarea:focus {
  border-color: #58a6ff !important;
  box-shadow: 0 0 0 2px rgba(56, 139, 253, 0.3) !important;
}
.login-pw-input {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  color: #fff !important;
}
.login-pw-input:focus {
  border-color: #58a6ff !important;
  box-shadow: 0 0 0 2px rgba(56, 139, 253, 0.3) !important;
}

/* Eliminate active row/card selection background highlight leaks */
tr.row-selected td {
  background: #21262d !important;
}
.kb-card.card-selected {
  border-color: #58a6ff !important;
  background: #21262d !important;
}

/* --- Target Projects and Rows to eliminate White Backdrops --- */
.task-row, .kb-card, .project-list-item, .list-group-item, .item, .main-workspace-container div[style*="background"] {
  background: #161b22 !important;
  border: 1px solid #30363d !important;
  box-shadow: none !important;
}

/* --- Typography Dark Contrast Correction (Without Universal * Selectors) --- */
.main-workspace-container h1, 
.main-workspace-container h2, 
.main-workspace-container h3, 
.main-workspace-container h4, 
.main-workspace-container strong, 
.main-workspace-container .value,
.main-workspace-container .panel-title,
.main-workspace-container .total-count,
.main-workspace-container .stat-number {
  color: #f0f6fc !important;
}

.main-workspace-container p, 
.main-workspace-container td, 
.main-workspace-container li,
.main-workspace-container span:not([class*="badge"]):not([class*="tag"]):not([class*="status"]) {
  color: #c9d1d9;
}

.main-workspace-container .text-muted, 
.main-workspace-container .time, 
.main-workspace-container .date, 
nav.sidebar i.fa {
  color: #8b949e !important;
}

/* Muted buttons styled cleanly */
.btn-success, [class*="btn-view"] {
  background: #21262d !important;
  border: 1px solid #30363d !important;
  color: #c9d1d9 !important;
}
.btn-success:hover, [class*="btn-view"]:hover {
  background: #30363d !important;
  border-color: #8b949e !important;
}

/* 1. Sửa lỗi màu chữ trạng thái "100% Hoàn thành" */
.task-row-done span,
.task-row-done div,
.task-row-done .task-row-meta span,
.task-status-done,
.project-status-done,
[class*="status-complete"],
[class*="status-done"] {
    color: #3fb950 !important; /* Màu xanh lục bảo chuẩn GitHub */
    font-weight: 600;
}

/* 2. Khai tử dải màu đỏ gắt trên Top Header và quy đổi về đơn sắc */
.admin-badge, .member-role-label, .main-header button, [class*="btn-add"], #search-wrapper button, #uniAddBtn, #uniModeBtn {
    background: #21262d !important;
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
}
.admin-badge:hover, .member-role-label:hover, .main-header button:hover, #uniAddBtn:hover, #uniModeBtn:hover {
    background: #30363d !important;
    color: #f0f6fc !important;
}

/* 3. Vá đường viền ô nhập liệu tìm kiếm */
.main-header input, #search-prompt-input, .search-box-wrapper input, #uniInput {
    border: none !important;
    background-color: transparent !important;
    color: #c9d1d9 !important;
}
.search-box-container {
    background-color: #0d1117 !important;
    border: 1px solid #30363d !important;
}
#uniModeBtn {
    border: none !important;
    border-right: 1px solid #30363d !important;
    border-radius: 0 !important;
}

/* 4. Đồng bộ hóa Dark Mode chuyên sâu cho toàn bộ các Tab con */
.page table, .page thead, .page tbody, .page tr, .page td, .page th, .page li, .page ul {
    background-color: #161b22 !important;
    color: #c9d1d9 !important;
    border-color: #30363d !important;
}
.page th, .page label, .page .title {
    color: #f0f6fc !important;
    background-color: #21262d !important;
}

/* V13: Precision Typography Refit & Buttons styling */
/* --- Safely target Task Titles (White highlight) --- */
.task-row-main span[style*="font-weight:600"],
.task-row-main span[style*="font-weight: 600"] {
    color: #f0f6fc !important;
    font-size: 13px !important;
}

/* --- Target metadata spans specifically, protecting tags & badges --- */
.task-row-meta span:not(.badge):not(.tag-person):not([class*="status"]):not([class*="priority"]) {
    color: #c9d1d9 !important;
}

/* --- Target warning & overdue badges directly --- */
.task-row .text-danger,
.task-row [style*="color:var(--red)"],
.task-row [style*="color: var(--red)"],
.task-row [class*="overdue"],
.task-row [class*="tre-han"] {
    color: #f85149 !important;
    font-weight: 600 !important;
}

/* --- Action buttons layout and styling inside task rows --- */
.task-row button {
    background: #21262d !important;
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
    border-radius: 4px !important;
    padding: 4px 10px !important;
    transition: background 0.15s, color 0.15s, border-color 0.15s !important;
}
.task-row button:hover {
    background: #30363d !important;
    color: #f0f6fc !important;
    border-color: #8b949e !important;
}

/* --- Specific targeted color for delete button icon (red alert indicator) --- */
.task-row button[title*="Xoá"], .task-row button[title*="Xóa"] {
    color: rgba(248, 81, 73, 0.7) !important;
    border-color: transparent !important;
    background: transparent !important;
}
.task-row button[title*="Xoá"]:hover, .task-row button[title*="Xóa"]:hover {
    color: #f85149 !important;
    background: rgba(248, 81, 73, 0.1) !important;
    border-color: rgba(248, 81, 73, 0.4) !important;
}

/* Active pending state button color override */
.task-row button.btn-pending-active {
    color: #e67e22 !important;
    border-color: rgba(230, 126, 34, 0.4) !important;
}
.task-row button.btn-pending-active:hover {
    border-color: #e67e22 !important;
}

/* V18: Dark Mode Panel & Monochromatic Polish for page-recurring */
#page-recurring .panel {
    background: #0d1117 !important;
    border: 1px solid #30363d !important;
}

.task-recur-card {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
    box-shadow: none !important;
}

#page-recurring #recurringList div[style*="font-weight:600"],
#page-recurring #recurDoneList div[style*="font-weight:600"],
#page-recurring span[style*="font-weight"] {
    color: #f0f6fc !important;
}

.task-recur-card.task-recur-done {
    background: rgba(46, 160, 67, 0.1) !important;
    border: 1px solid rgba(46, 160, 67, 0.3) !important;
    color: #8b949e !important;
}

.task-recur-card.task-recur-due {
    background: rgba(248, 81, 73, 0.05) !important;
    border: 1px solid #30363d !important;
    border-left: 4px solid #f85149 !important;
}

#page-recurring .text-danger,
#page-recurring [style*="color:var(--red)"],
#page-recurring [style*="color: var(--red)"],
#page-recurring [class*="due"],
#page-recurring i.fa-warning {
    color: #f85149 !important;
    font-weight: 600 !important;
}

#page-recurring button, #page-recurring .btn {
    background: #21262d !important;
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
}
#page-recurring button:hover {
    background: #30363d !important;
    color: #f0f6fc !important;
}

#page-recurring button[onclick*="deleteRecurring"] {
    color: rgba(248, 81, 73, 0.7) !important;
    background: transparent !important;
    border-color: transparent !important;
}
#page-recurring button[onclick*="deleteRecurring"]:hover {
    color: #f85149 !important;
    background: rgba(248, 81, 73, 0.1) !important;
    border-color: rgba(248, 81, 73, 0.4) !important;
}

/* V20: Dark Mode & Precision Typography for page-tasks */
#page-tasks #panel-mytasks,
#page-tasks #tasksOverview,
#page-tasks #taskSubBoard {
    background: #0d1117 !important;
}

#page-tasks .gv-tab {
    color: #8b949e !important;
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    border-bottom: none !important;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 500;
}

#page-tasks .gv-tab.active {
    color: #f0f6fc !important;
    background: #0d1117 !important;
    border-color: #30363d !important;
    border-bottom: 2px solid #58a6ff !important;
}

#page-tasks .task-row {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
    margin-bottom: 6px;
}

#page-tasks .task-row.task-row-pending {
    background: rgba(230, 126, 34, 0.05) !important;
    border-left: 3px solid #e67e22 !important;
}

#page-tasks .task-row-main span[style*="font-weight:600"],
#page-tasks .task-row-main span[style*="font-weight: 600"] {
    color: #f0f6fc !important;
}

#page-tasks .task-row .badge,
#page-tasks .task-row .tag-person,
#page-tasks .task-row span[style*="background"],
#page-tasks .task-row span[style*="border-radius"] {
    background-color: #21262d !important;
    color: #c9d1d9 !important;
    border: 1px solid #30363d !important;
    text-shadow: none !important;
}

#page-tasks .task-row-meta span:not(.badge):not(.tag-person):not([class*="status"]):not([class*="priority"]) {
    color: #c9d1d9 !important;
}

#page-tasks select,
#page-tasks input,
#page-tasks button {
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
}

#page-tasks button:hover {
    background-color: #30363d !important;
    color: #f0f6fc !important;
}

#page-prompts,
#page-prompts > div {
    background-color: #0d1117 !important;
    border-color: #30363d !important;
}

#page-prompts > div:first-child {
    display: flex !important;
    gap: 10px !important;
    background: transparent !important;
    border: none !important;
    padding-bottom: 12px !important;
    overflow: visible !important;
}

#page-prompts .gv-tab {
    border-radius: 6px !important;
    border: 1px solid #30363d !important;
    background-color: #161b22 !important;
    color: #8b949e !important;
    padding: 6px 14px !important;
    transition: all 0.15s ease;
}

#page-prompts .gv-tab.active {
    background-color: #21262d !important;
    color: #f0f6fc !important;
    border-color: #8b949e !important;
}

.prompt-cat-tag {
    background-color: #161b22 !important;
    border: 1px solid #30363d !important;
    color: #8b949e !important;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    transition: all 0.15s;
}

.prompt-cat-tag:hover,
.prompt-cat-tag.active {
    background-color: #21262d !important;
    border-color: #8b949e !important;
    color: #f0f6fc !important;
}

#page-prompts .prompt-card span[style*="background"] {
    background-color: #21262d !important;
    color: #c9d1d9 !important;
    border: 1px solid #30363d !important;
}

#page-prompts .prompt-card span[style*="color:var(--text)"],
#page-prompts .prompt-card span[style*="color: var(--text)"] {
    color: #f0f6fc !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.prompt-card {
    background-color: #161b22 !important;
    border: 1px solid #30363d !important;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 10px;
}

.prompt-content {
    display: none;
    background-color: #0d1117 !important;
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
    font-family: monospace;
    padding: 12px;
    border-radius: 6px;
    margin-top: 8px;
    white-space: pre-wrap;
}

.prompt-content.expanded {
    display: block !important;
}

#page-prompts button,
#page-prompts .btn {
    background: #21262d !important;
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
}

#page-prompts button:hover,
#page-prompts .btn:hover {
    background: #30363d !important;
    color: #f0f6fc !important;
    border-color: #8b949e !important;
}

#page-prompts .btn-danger,
#page-prompts button[class*="danger"] {
    background: rgba(248, 81, 73, 0.1) !important;
    color: #f85149 !important;
    border: 1px solid rgba(248, 81, 73, 0.4) !important;
}

#page-prompts .btn-danger:hover {
    background: #f85149 !important;
    color: #ffffff !important;
}
#page-links,
#page-links #linksPanel,
#page-links #websitesPanel {
    background-color: #0d1117 !important;
    border-color: #30363d !important;
}

/* 1. Đồng bộ thanh Tab rời độc lập kiểu nút Premium */
#page-links > div:first-child {
    display: flex !important;
    gap: 10px !important;
    background: transparent !important;
    border: none !important;
    padding-bottom: 12px !important;
}

#page-links #linksTab1,
#page-links #linksTab2 {
    border-radius: 6px !important;
    border: 1px solid #30363d !important;
    background-color: #161b22 !important;
    color: #8b949e !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

#page-links #linksTab1.active,
#page-links #linksTab2.active {
    background-color: #21262d !important;
    color: #f0f6fc !important;
    border-color: #8b949e !important;
}

/* 2. Hạ tông toàn bộ Dải bộ lọc trạng thái về Translucent */
#page-links #wsPillAll {
    background-color: #21262d !important;
    color: #c9d1d9 !important;
    border: 1px solid #30363d !important;
}
#page-links #wsPillTot {
    background-color: rgba(46, 160, 67, 0.15) !important;
    color: #3fb950 !important;
    border: 1px solid rgba(46, 160, 67, 0.3) !important;
}
#page-links #wsPillMK {
    background-color: rgba(230, 126, 34, 0.15) !important;
    color: #e67e22 !important;
    border: 1px solid rgba(230, 126, 34, 0.3) !important;
}
#page-links #wsPillLoi {
    background-color: rgba(248, 81, 73, 0.15) !important;
    color: #f85149 !important;
    border: 1px solid rgba(248, 81, 73, 0.3) !important;
}

/* Đồng bộ bộ đếm bên trong nút lọc */
#page-links button span {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f0f6fc !important;
    border-radius: 10px !important;
    padding: 1px 6px !important;
    margin-left: 6px !important;
}

/* 3. Làm sạch nút Xóa 🗑️ và nút Bánh răng ⚙️ trong Form (Thiết kế Borderless) */
#page-links form button[onclick*="Delete"], 
#page-links form button[onclick*="delete"],
#page-links form button[id*="delete"] {
    background: transparent !important;
    border: none !important;
    color: rgba(248, 81, 73, 0.7) !important;
    padding: 4px !important;
    cursor: pointer !important;
}
#page-links form button[onclick*="delete"]:hover {
    color: #f85149 !important;
    background: rgba(248, 81, 73, 0.1) !important;
    border-radius: 4px !important;
}

/* Nút Bánh răng cài đặt */
#page-links form button[onclick*="GroupManager"],
#page-links form button[onclick*="CategoryManager"],
#page-links form button[onclick*="openWsGroupManager"] {
    background: transparent !important;
    border: none !important;
    color: #8b949e !important;
    padding: 4px !important;
    cursor: pointer !important;
}
#page-links form button[onclick*="GroupManager"]:hover,
#page-links form button[onclick*="CategoryManager"]:hover,
#page-links form button[onclick*="openWsGroupManager"]:hover {
    color: #f0f6fc !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
}

/* Giữ nguyên các định nghĩa màu nền website card của V25 */
#page-links #websitesGrid > div,
#page-links #workLinksGrid > div {
    background-color: #161b22 !important;
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
    border-radius: 8px !important;
}
#page-links #websitesGrid > div strong,
#page-links #workLinksGrid > div strong {
    color: #f0f6fc !important;
}
#page-links #websitesGrid span[style*="background"],
#page-links #workLinksGrid span[style*="background"] {
    background-color: #21262d !important;
    color: #c9d1d9 !important;
    border: 1px solid #30363d !important;
}
#page-links #websitesGrid span[style="background:#f0f0ff"],
#page-links #websitesGrid button[style*="background:#e8f5e9"] {
    background-color: rgba(108, 92, 231, 0.15) !important;
    color: #a78bfa !important;
    border-color: rgba(108, 92, 231, 0.3) !important;
}
#page-links #linkAddPanel,
#page-links #websiteFormPanel {
    background-color: #161b22 !important;
    border-left: 1px solid #30363d !important;
}
#page-links #linkAddPanel > div:first-child,
#page-links #websiteFormPanel > div:first-child {
    background-color: #21262d !important;
    color: #f0f6fc !important;
    border-bottom: 1px solid #30363d !important;
}
#page-links form input,
#page-links form select,
#page-links form textarea {
    background-color: #0d1117 !important;
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
    border-radius: 6px !important;
}
#page-links form input:focus {
    border-color: #58a6ff !important;
}
#page-links #websiteFormPanel div[style*="background:#f8f0ff"],
#page-links #websiteFormPanel div[style*="background: #f8f0ff"] {
    background-color: rgba(108, 92, 231, 0.1) !important;
    border: 1px solid rgba(108, 92, 231, 0.3) !important;
}
#page-links button[style="background:#27ae60"] {
    background-color: rgba(46, 160, 67, 0.15) !important;
    color: #3fb950 !important;
    border: 1px solid rgba(46, 160, 67, 0.3) !important;
}
#page-links button[style*="background:#2980b9"] {
    background-color: rgba(56, 139, 253, 0.15) !important;
    color: #58a6ff !important;
    border: 1px solid rgba(56, 139, 253, 0.3) !important;
}

#page-links .form-group button,
#page-links button[onclick*="openWsGroupManager"],
#page-links button[onclick*="openCategoryManager"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #8b949e !important;
    padding: 4px 8px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

#page-links .form-group button:hover,
#page-links button[onclick*="openWsGroupManager"]:hover,
#page-links button[onclick*="openCategoryManager"]:hover {
    color: #f0f6fc !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 4px !important;
    border: none !important;
}

#page-wstrack,
#page-wstrack .panel,
#wstTable,
#wstTable tr,
#wstTable td {
    background-color: #0d1117 !important;
    color: #c9d1d9 !important;
    border-color: #30363d !important;
}

#page-wstrack #wstThead,
#page-wstrack #wstThead th {
    background-color: #21262d !important;
    color: #f0f6fc !important;
    border-color: #30363d !important;
}

#page-wstrack select, 
#page-wstrack input, 
#page-wstrack button {
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
}
#page-wstrack button:hover {
    background-color: #30363d !important;
    color: #f0f6fc !important;
}

#page-wstrack #wstApiBadge {
    background-color: rgba(56, 139, 253, 0.15) !important;
    color: #58a6ff !important;
    border: 1px solid rgba(56, 139, 253, 0.3) !important;
}

#page-dashboard div[style*="color:#c0392b"],
#page-dashboard div[style*="color: #c0392b"] {
    color: #c9d1d9 !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

/* ==========================================================================
   V30: PAGE PROMPTS DARK REFIT & MONOCHROME DESIGN
   ========================================================================== */

/* Nền và viền của container trang Prompts */
#page-prompts {
    background-color: #0d1117 !important;
}

#page-prompts > div[style*="border"] {
    background-color: #0d1117 !important;
    border-color: #30363d !important;
}

#page-prompts .panel-header {
    background-color: #161b22 !important;
    border-bottom: 1px solid #30363d !important;
}

/* Định dạng cấu trúc Tab Bar phía trên */
#page-prompts div[style*="display:flex;background:#fff"] {
    background-color: #161b22 !important;
    border-color: #30363d !important;
}

#page-prompts .gv-tab {
    background-color: #161b22 !important;
    border-color: #30363d !important;
    color: #8b949e !important;
    transition: all 0.15s ease !important;
}

#page-prompts .gv-tab.active {
    background-color: #0d1117 !important;
    color: #f0f6fc !important;
    border-bottom-color: #0d1117 !important;
}

#page-prompts .gv-tab:hover:not(.active) {
    background-color: #21262d !important;
    color: #c9d1d9 !important;
}

/* Thiết lập các Category Tags */
#page-prompts .prompt-cat-tag {
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

#page-prompts .prompt-cat-tag.active {
    background-color: #388bfd !important;
    border-color: #58a6ff !important;
    color: #ffffff !important;
}

#page-prompts .prompt-cat-tag:hover:not(.active) {
    background-color: #30363d !important;
    color: #f0f6fc !important;
}

/* Các thẻ input tìm kiếm và nút bấm trên Toolbar */
#page-prompts input#promptSearch {
    background-color: #0d1117 !important;
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
    border-radius: 6px !important;
}

#page-prompts input#promptSearch:focus {
    border-color: #58a6ff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(56,139,253,0.3) !important;
}

/* Thẻ Prompt Card */
#page-prompts .prompt-card {
    background-color: #161b22 !important;
    border: 1px solid #30363d !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 10px !important;
}

/* Tiêu đề & Tag phân loại nhỏ trong Card */
#page-prompts .prompt-card span[style*="font-weight:700"] {
    color: #f0f6fc !important;
}

#page-prompts .prompt-card span[style*="background:#f0f0f0"] {
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
    color: #8b949e !important;
}

/* Nội dung Code / Text của Prompt */
#page-prompts .prompt-content, 
#page-prompts pre, 
#page-prompts code {
    background-color: #0d1117 !important;
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
    font-family: monospace !important;
}

/* Đè bẹp inline style của nút Copy và các nút hành động nhỏ */
#page-prompts .prompt-card button[onclick*="copyPrompt"] {
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
    color: #58a6ff !important;
}

#page-prompts .prompt-card button[onclick*="copyPrompt"]:hover {
    background-color: #30363d !important;
    color: #58a6ff !important;
}

#page-prompts .prompt-card button[onclick*="openEditPromptModal"],
#page-prompts .prompt-card button[id*="pexpand-"] {
    background-color: transparent !important;
    border: 1px solid #30363d !important;
    color: #8b949e !important;
}

#page-prompts .prompt-card button[onclick*="openEditPromptModal"]:hover,
#page-prompts .prompt-card button[id*="pexpand-"]:hover {
    background-color: #21262d !important;
    border-color: #8b949e !important;
    color: #c9d1d9 !important;
}

/* Các tiêu đề lớn */
#page-prompts h1, #page-prompts h2, #page-prompts h3, #page-prompts strong {
    color: #f0f6fc !important;
}

/* ==========================================================================
   V37: UNIFIED DROPDOWNS & POPOVERS DARK REFIT (qlDropdown, pqDropdown, etc)
   ========================================================================== */

/* Trục xuất nền trắng của các hộp dropdown và popover nổi toàn hệ thống */
#qlDropdown, 
#pqDropdown,
#gvAssigneeDropdown,
.member-dropdown,
.dropdown-menu, 
.custom-popover {
    background-color: #161b22 !important; /* Tone xám đậm chuẩn layer 2 */
    border: 1px solid #30363d !important; /* Viền tối phân cấp */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important; /* Bóng đổ tối */
    color: #c9d1d9 !important;
    z-index: 9999 !important;
}

/* Định dạng các hàng danh sách tìm kiếm (.search-item) */
#qlDropdown .search-item,
#gvAssigneeDropdown .search-item,
.dropdown-menu .search-item {
    background-color: transparent !important;
    border-bottom: 1px solid #21262d !important;
    color: #c9d1d9 !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

/* Hover chuột sạch thay thế inline style */
#qlDropdown .search-item:hover,
#gvAssigneeDropdown .search-item:hover,
.dropdown-menu .search-item:hover {
    background-color: #21262d !important;
    color: #f0f6fc !important;
}

/* Refit riêng text cụ thể trong dropdown link */
#qlDropdown .search-item div[style*="font-weight:600"] {
    color: #f0f6fc !important;
}

#qlDropdown .search-item div[style*="color:var(--blue)"] {
    color: #58a6ff !important;
}

/* Đồng bộ các nút thao tác nhỏ trong dropdown */
#qlDropdown button,
#pqDropdown button {
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

#qlDropdown button:hover,
#pqDropdown button:hover {
    background-color: #30363d !important;
    border-color: #8b949e !important;
    color: #f0f6fc !important;
}

/* ==========================================
   Refit Dropdown Prompt Nổi (pqDropdown)
   ========================================== */

#pqDropdown div[style*="display:flex;border-bottom"] {
    background-color: #161b22 !important;
    border-bottom: 1px solid #30363d !important;
}

#pqDropdown button[id*="pqTab"] {
    background-color: #161b22 !important;
    border-color: transparent !important;
    color: #8b949e !important;
}

#pqDropdown button[id*="pqTab"][style*="color:var(--red)"] {
    border-bottom: 2px solid #f85149 !important;
    color: #f85149 !important;
    background-color: #21262d !important;
}

#pqDropdown #pqResults {
    background-color: #0d1117 !important;
}

/* Footer gợi ý của dropdown prompt */
#pqDropdown div[style*="background:#f8f9fa"] {
    background-color: #161b22 !important;
    border-top: 1px solid #30363d !important;
}

/* ==========================================================================
   V38: QUICK ADD MODAL DARK REFIT (#qlAddModal)
   ========================================================================== */

/* Lớp vỏ bọc Form Thêm Nhanh */
#qlAddModal {
    background-color: #161b22 !important; /* Đổi về xám đậm layer 2 */
    border: 1px solid #30363d !important; /* Viền tối phân cấp */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important; /* Bóng đổ sâu */
    color: #f0f6fc !important; /* Chữ tiêu đề trắng sáng */
}

/* Header modal */
#qlAddModal div[style*="display:flex;align-items:center;justify-content:space-between"] {
    border-bottom: 1px solid #30363d !important;
    padding-bottom: 10px !important;
    margin-bottom: 14px !important;
}

#qlAddModal div[style*="font-weight:600"] {
    color: #f0f6fc !important;
}

#qlAddModal button[onclick*="qlCloseAdd"] {
    color: #8b949e !important;
}

/* Các nhãn label trong form */
#qlAddModal label {
    color: #c9d1d9 !important;
    font-weight: 500 !important;
}

/* Các ô Input, Select, Textarea bên trong Form */
#qlAddModal input, 
#qlAddModal select, 
#qlAddModal textarea {
    background-color: #0d1117 !important; /* Nền tối phẳng */
    border: 1px solid #30363d !important; /* Viền tối */
    color: #c9d1d9 !important; /* Chữ nhập màu trắng xám */
    border-radius: 6px !important;
    padding: 6px 10px !important;
}

/* Khi người dùng click chọn vào ô nhập liệu */
#qlAddModal input:focus, 
#qlAddModal select:focus, 
#qlAddModal textarea:focus {
    border-color: #58a6ff !important; /* Nẩy viền xanh dương GitHub */
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.3) !important;
}

/* Đè màu cho nút cộng thêm nhóm con inline */
#qlAddModal button#ql_group_add_btn {
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
}

#qlAddModal button#ql_group_add_btn:hover {
    background-color: #30363d !important;
    border-color: #8b949e !important;
    color: #f0f6fc !important;
}

/* Định dạng các nút Lưu và Huỷ ở chân Modal */
#qlAddModal button[onclick*="qlSave"] {
    background-color: #238636 !important;
    border: 1px solid rgba(240, 246, 252, 0.1) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

#qlAddModal button[onclick*="qlSave"]:hover {
    background-color: #2ea043 !important;
}

#qlAddModal button[onclick*="qlCloseAdd"].btn-outline {
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

#qlAddModal button[onclick*="qlCloseAdd"].btn-outline:hover {
    background-color: #30363d !important;
    border-color: #8b949e !important;
    color: #f0f6fc !important;
}

/* ==========================================================================
   V39: UNIFIED QUICK ADD MODAL DARK REFIT & FORM OVERLAY
   ========================================================================== */

/* Nền mờ phía sau Modal */
#qlOverlay {
    background-color: rgba(1, 4, 9, 0.8) !important; /* Màu đen trong suốt tối ưu trải nghiệm tập trung */
    backdrop-filter: blur(4px) !important; /* Làm mờ nhẹ nền phía sau */
}

/* Lớp vỏ bọc Form Thêm Nhanh (Đè bẹp background:#fff cũ) */
#qlAddModal {
    background-color: #161b22 !important; /* Xám đậm layer 2 GitHub Dark */
    border: 1px solid #30363d !important; /* Viền xám tối */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important; /* Bóng đổ sâu */
    color: #c9d1d9 !important; /* Chữ mặc định sáng vừa */
}

/* Đồng bộ tiêu đề modal & icon đóng */
#qlAddModal div[style*="display:flex;align-items:center;justify-content:space-between"] {
    border-bottom: 1px solid #30363d !important;
    padding-bottom: 10px !important;
    margin-bottom: 14px !important;
}

#qlAddModal div[style*="font-weight:600"] {
    color: #f0f6fc !important; /* Chữ tiêu đề trắng sáng rõ */
}

#qlAddModal button[onclick*="qlCloseAdd"] {
    color: #8b949e !important;
    transition: color 0.2s ease !important;
}

#qlAddModal button[onclick*="qlCloseAdd"]:hover {
    color: #f0f6fc !important;
}

/* Chống lỗi nhãn chữ tối trên nền tối (Labels) */
#qlAddModal label {
    color: #c9d1d9 !important;
    font-weight: 600 !important;
    display: inline-block !important;
    margin-bottom: 4px !important;
}

/* Đồng bộ tất cả các ô input, select, textarea */
#qlAddModal input, 
#qlAddModal select, 
#qlAddModal textarea {
    background-color: #0d1117 !important; /* Nền tối phẳng phẳng */
    border: 1px solid #30363d !important; /* Viền tối */
    color: #c9d1d9 !important; /* Chữ sáng dịu */
    border-radius: 6px !important;
    padding: 6px 12px !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* Hiệu ứng Focus chuẩn GitHub */
#qlAddModal input:focus, 
#qlAddModal select:focus, 
#qlAddModal textarea:focus {
    border-color: #58a6ff !important; /* Nẩy viền xanh dương GitHub */
    box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.3) !important;
}

/* Định hình placeholder dịu đi trong nền tối */
#qlAddModal input::placeholder,
#qlAddModal textarea::placeholder {
    color: #484f58 !important;
}

/* Các nút hành động chính ở Footer */
#qlAddModal button[onclick*="qlSave"] {
    background-color: #238636 !important; /* Nút Lưu xanh lá GitHub */
    border: 1px solid rgba(240, 246, 252, 0.1) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

#qlAddModal button[onclick*="qlSave"]:hover {
    background-color: #2ea043 !important;
}

#qlAddModal button[onclick*="qlCloseAdd"].btn-outline {
    background-color: #21262d !important; /* Nút Huỷ xám vừa */
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

#qlAddModal button[onclick*="qlCloseAdd"].btn-outline:hover {
    background-color: #30363d !important;
    border-color: #8b949e !important;
    color: #f0f6fc !important;
}

/* Đồng bộ nút inline thêm nhóm mới (+) */
#qlAddModal #ql_group_add_btn {
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
    transition: all 0.2s ease !important;
}

#qlAddModal #ql_group_add_btn:hover {
    background-color: #30363d !important;
    border-color: #8b949e !important;
    color: #f0f6fc !important;
}

/* ECOSYSTEM APP SHELL OVERFLOW LOCK (V66) */
#page-ecosystem {
  display: none;
  width: 100%;
  height: calc(100vh - 76px);
  overflow: hidden !important;
  position: relative;
}
#page-ecosystem iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block;
  overflow: hidden;
}

/* BỘ LỌC ĐỘNG HYBRID V94 - STYLE FILTER BAR */
.job-filter-bar {
  display: flex !important;
  gap: 8px !important;
  margin-top: 12px !important;
  margin-bottom: 12px !important;
  width: 100% !important;
  height: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-wrap: wrap !important;
}

.filter-pills {
  background: #21262d !important;
  border: 1px solid #30363d !important;
  color: #c9d1d9 !important;
  padding: 4px 12px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
  display: inline-flex;
  align-items: center;
}

.filter-pills:hover {
  background: #30363d !important;
  border-color: #8b949e !important;
}

.filter-pills.active {
  background: #1f6feb !important;
  border-color: #388bfd !important;
  color: #ffffff !important;
}



