#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.hangar5-title {
    font-family: "Comfortaa", sans-serif;
    font-optical-sizing: auto;
    font-size: 0.7rem;
    font-weight: 700;
    font-style: normal;
    color: #D7FF11;
}

a:hover{
    color: #D7FF11;
}

:root {
    --main-font: "Outfit", Arial, sans-serif;
    --font-sans: var(--main-font);
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --outfit-extralight: 200;
    --outfit-regular: 400;
    --outfit-medium: 500;
    --outfit-bold: 700;
    font-size: 17px;
}

html, body {
    font-family: var(--main-font);
    background-color: #252525; /* Dark grey background */
    color: #D7FF11;
    letter-spacing: 0.01em;
}

a, .btn-link {
    color: #000000;
}

h3{
    color: #D7FF11;
    font-size: 1.55rem;
    margin-bottom: 12px;
}

.logoPDFCover {
        max-width: 150px;
        height: auto;
        margin-bottom: 20px;
}

.logoPDFSeparator {
            max-width: 120px;
            margin-bottom: 30px;
        }


.nav-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:10000}
.nav-progress__bar{height:100%;background:currentColor;opacity:.85;animation:navload 1.1s ease-in-out infinite}
@keyframes navload{0%{width:0;opacity:.6}50%{width:60%;opacity:.9}100%{width:100%;opacity:1}}


.nav-link{
    padding:0px;
    color: #D7FF11;
}

.nav-link-sub{
    padding: 15px;
}

.nav-link:focus, .nav-link:hover .nav-link-sub:focus, .nav-link-sub:hover {
    color: rgba(215, 255, 17, 0.7);
    font-weight: bold;
}

.nav-pills .nav-link.active, .nav-link-sub.active, .nav-pills .show>.nav-link {
    color: black;
    background-color:  rgba(215, 255, 17, 0.7);
    padding-left: 5px;;
}

button, .button {
    background-color: #D7FF11;
    color: #1E1E1E;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 22px;
}

button:hover, .button:hover
{
    background-color: rgba(215, 255, 17, 0.7);
    color: #1E1E1E;
}

.btn-small {
    padding: 5px 14px;
    border-radius: 17px;
}

.btn-primary {
    background-color: rgba(215, 255, 17, 1);
    border-color: rgba(215, 255, 17, 1);
    color: #1E1E1E;
}

.btn-primary:hover
{
    background-color: rgba(215, 255, 17, 0.7);
    color: #1E1E1E;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(215, 255, 17, 1);
}

.btn-success {
    color: rgba(215, 255, 17, 1);
    background-color: #edc405;
    border-color: #edc405;
}

.text-content{
    color: #fff;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #edc405;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: solid 1px #D7FF11;
}

header h1 {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.15;
    font-weight: 600;
}

header .create-project {
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.1;
}

header .kebab-button {
    padding: 4px 6px;
    font-size: 1rem;
}

.icon-option{
    color: #dadada;
    fill: #dadada;    
    width: 30px;
    height: 30px;
    
}

.column{
    padding-left:10px;
    padding-right:10px;
}


.table {
    width: 100%;
    margin-top: 20px;
}

.table>:not(:last-child)>:last-child>* {
    border-bottom-color: rgba(215, 255, 17, 0.8);
}

.table th {
    white-space: nowrap;
    padding-bottom: 20px;
    color: #ffffff;
}

.table td {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(121, 121, 121, 0.3);
    color: #fff;
}

.table.table-condensed td {
    padding: 10px 10px;
 }

.modal .modal-content {
    background: #656565;
}

.form-group {
    margin-bottom: 20px;
}

dt{
    color: #D7FF11;
    font-weight: 500;
}

input[type="checkbox"] {
    margin-right: 10px;
}
 

.placeholder { 
    border: dashed 1px #AAAAAA;
    text-align: center;
    color: #AAAAAA;
    padding: 100px 40px;
    margin-bottom: 50px; 
    display: block;
    background: transparent;
    border-radius: 5px;
    cursor: progress;
}

.form-control.textarea::placeholder {
    color: red; /* Change this to your desired color */
    opacity: 1; /* Ensure the color is fully opaque */
  }
  

.popup-content .close-button { 
    z-index: 2;
}

.loader {
    width: 15px;
    aspect-ratio: 1;
    --_g: no-repeat radial-gradient(circle closest-side,#D7FF11 90%,#0000);
    background: 
      var(--_g) 0%   50%,
      var(--_g) 50%  50%,
      var(--_g) 100% 50%;
    background-size: calc(100%/3) 50%;
    animation: l3 1s infinite linear;
  }
  @keyframes l3 {
      20%{background-position:0%   0%, 50%  50%,100%  50%}
      40%{background-position:0% 100%, 50%   0%,100%  50%}
      60%{background-position:0%  50%, 50% 100%,100%   0%}
      80%{background-position:0%  50%, 50%  50%,100% 100%}
  }

  .icon {
    display: inline-block;
    width: 20px;
    text-align: center;
    margin-right: 10px;
  }

  .icon.tick { 
    color: #008000;
  }

  .icon.cross { 
    color: #ff0000;
  }

/***********************************************************
****                    Popup                           ****
***********************************************************/
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.075); /* Semi-transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Higher than kebab menu */
}

.confirmation-content {
    background-color: white;
    color: #4b4b4b;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.confirmation-content h3 {
    margin-top: 0;
}

.confirmation-content button {
    margin: 10px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-confirm {
    background-color: #d9534f; /* Red */
    color: white;
}

.btn-cancel {
    background-color: #ccc; /* Grey */
    color: black;
}

.confirmation-content.rerun-confirm {
    width: 520px;
    text-align: left;
}

.rerun-count-selector {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 16px 0;
}

.rerun-count-selector label {
    font-weight: 500;
    font-size: 0.9rem;
}

.rerun-count-selector .form-control {
    width: 100%;
}

.rerun-confirm-message {
    margin: 8px 0 0;
}

.rerun-confirm-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

.rerun-confirm-actions button {
    margin: 0;
}

/**********************************************************
****                 Toggle Switch                     ***
**********************************************************/

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: rgba(215, 255, 17, 0.8);
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px rgba(215, 255, 17, 0.8);
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }  

/**********************************************************
****                   Tree View                       ****
**********************************************************/

.treeview {
    margin: 5px 0 20px;
    border-top: solid 1px #4b4b4b;
}

.treeview .root-block {
    padding: 10px;
    border-bottom: solid 1px #4b4b4b;
}

.treeview .folder {
    color: rgba(215, 255, 17, 0.8);
    cursor: pointer;
}

.treeview .folder:hover { 
    color: rgba(215, 255, 17, 1);
}

.treeview .subfolder { 
    padding: 10px 0;
}

.treeview .subfolder > div { 
    padding: 0;
}

.treeview ul { 
    margin: 0 0 0 0px;
    padding: 0;
    list-style-type: none;
}

.treeview ul input[type="checkbox"] { 
    margin-right: 5px;
}

.treeview .toggle-icon { 
    display: inline-block;
    width: 20px;
    text-align: center;
}

/**********************************************************
****                  Homepage                         ****
**********************************************************/

.home-title {
    margin: 50px auto 20px;
    
}

.narrative-bar { 
  width: 100%;   
  display: flex;
  gap: 2px;

}

/*.narrative-bar span { 
    text-align: center;
    background: #D7FF11;
    color: #1e1e1e;
    font-size: 22px;
    font-weight: 700;
    padding: 0 10px;  
}*/

.narrative-bar span:not(:nth-of-type(2)) {
    width: 50%;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 32px;
    padding: 24px 0 48px;
    max-width: 1200px;
    margin: 0;
}

.home-hero__left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.home-hero__tag {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
    color: rgba(215, 255, 17, 0.65);
}

.home-hero__title {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 3rem);
    color: #D7FF11;
}

.home-hero__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
}

.home-feature-list {
    display: grid;
    gap: 16px;
}

.home-feature {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #202020;
    border: 1px solid rgba(215, 255, 17, 0.15);
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.4);
}

.home-feature__icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(215, 255, 17, 0.12);
    border: 1px solid rgba(215, 255, 17, 0.2);
}

.home-feature__icon img {
    width: 45px;
    height: 45px;
}

.home-feature__title {
    margin: 0;
    font-size: 1.1rem;
    color: #D7FF11;
}

.home-feature__list {
    margin: 8px 0 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.75);
}

.home-feature__list li {
    margin-bottom: 6px;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: right;
    position: relative;
    min-height: 440px;
    
    animation: fadeIn 1.4s 0.5s forwards;
    --key: #D7FF11;
    --sub: #ECFF8A;
}

.hero-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(215, 255, 17, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(215, 255, 17, 0.02) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
}

.logo-orb {
    position: relative;
    width: 340px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.logo-orb svg {
    width: 260px;
    height: 260px;
    filter: drop-shadow(0 0 80px rgba(215, 255, 17, 0.25));
}

.orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(215, 255, 17, 0.1);
    animation: spin 20s linear infinite;
}

.orb-ring::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--key);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px var(--key);
}

.orb-ring-2 {
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    border: 1px solid rgba(215, 255, 17, 0.06);
    animation: spin 35s linear infinite reverse;
}

.orb-dot-inner {
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    animation: spin 10s linear infinite;
    pointer-events: none;
}

.orb-dot-inner::before {
    content: "";
    position: absolute;
    top: -2.5px;
    left: 50%;
    width: 5px;
    height: 5px;
    background: var(--sub);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--sub), 0 0 4px rgba(236, 255, 138, 0.6);
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--key);
    animation: float var(--d, 4s) var(--delay, 0s) ease-in-out infinite alternate;
}

@keyframes float {
    from {
        transform: translateY(0) scale(1);
    }
    to {
        transform: translateY(-20px) scale(1.1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .hero-right {
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    .home-hero {
        padding-bottom: 32px;
    }

    .home-feature {
        grid-template-columns: 1fr;
    }

    .home-feature__icon {
        width: 45px;
        height: 45px;
    }
}


/**********************************************************
****                 Login List                       ***
**********************************************************/

.form-floating>label{
    color:#000;
}




  /**********************************************************
****                 Project List                       ***
**********************************************************/



.create-project {
    background-color: #D7FF11;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
}

.create-project:hover { 
    background-color: #D7FF11ec;
    color: #1e1e1e;
}
.project-list, .test-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.project-list h2, .test-list h2 {
    color: #D7FF11;
    margin-bottom: 10px;
    font-weight: var(--outfit-extralight);
}


.project {
    width: 100%;
    background: #202020;
    display: flex;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(215, 255, 17, 0.15);
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.4);
    gap: 100px;
}


.tests-run {
    color: #AAAAAA;
    font-size: medium;
}

.h3-Projectname, .h3-Projectname:visited, .h3-Projectname:active{
    color: white; 
    text-decoration: none;
    letter-spacing: 0.01em;
}

.h3-Projectname:hover {
    color: #D7FF11; /* Color when the link is hovered */
    text-decoration: underline; /* Optional: Adds underline on hover */
}

.h3-Projectname.red-team {
    text-decoration: underline;
    text-decoration-color: #ff4d4f;
}

.project-info {
    display: flex;
    flex: 1;
    flex-direction: row;
}

.project-info h3 {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.project-info .project-test { 
    flex: 2;
    display: flex;
    flex-direction: column;
}

.project-info .tests-run { 
    margin-top: 10px;
}

.project-info .project-test.empty p {
    margin: 0;
}

/******************** Test Result List **************/
.test-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.test {
    width: 100%;
    background: #202020;
    display: flex;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(215, 255, 17, 0.15);
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.4);
    gap: 50px;
}

.test-resultContainer{
    display: flex;
    width: 100%; 
}

.test-resultContainer-left{
    flex: 3;
    padding: 10px;
    box-sizing: border-box;
    float: left;
}

.test-resultContainer-right {
    flex: 1;
    padding: 10px;
    box-sizing: border-box;
    float: right;
}



.test-info {
    font-size: large;
    color: #a0a0a0;
    width: 100%;
}

.loader-container { 
    display: flex;
    gap: 10px;
}

.loader-container label { 
    font-style: italic;
    font-weight: 200;
    color: #D7FF11;
}

.page-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 48px 16px;
}

.page-loading-state .loader {
    width: 42px;
}

.page-loading-state p,
.page-loading-inline {
    color: #D7FF11;
}

.page-loading-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.empty-results-state {
    max-width: none;
    margin: 0;
    padding-top: 0;
}

.test-title {
    font-size: large;
    margin: 0;
}


.test-description {
    font-size: large;
    color: #a0a0a0;
    margin-bottom: 15px;
}

/******************** End Test Result List **************/

/******************** Result page **********************/
.filters {
    /* Styles for filters section */
    margin-top: 12px;
    margin-left: 10px;
    margin-bottom: 36px;
    width: 100%; /* Adjust width as needed */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    overflow: visible;
}

.filters-item{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.filters-item-label{
    display: inline-flex;
    align-items: center;
    margin-top: 0;
    margin-left: 0.8rem;
    font-size: 0.85rem;
    line-height: 1;
}
.filters-item-right{
    display: inline-flex;
    align-items: center;
    margin: 0 4px 0 8px;
}

.filters-searchbox {
    width: 390px;
}

.filters-item.filters-searchbox {
    flex: 0 1 390px;
    min-width: 260px;
}

.filters input.filters-searchbox {
    width: 100%;
    min-height: 28px;
    padding: 5px 9px;
    font-size: 0.85rem;
}

.filters-pass{
    gap: 6px;
}

.filters-fail{
    gap: 6px;
}

.filters-fail-only{
    gap: 6px;
}

.filters-button{
    margin-right: 0;
    border-radius: 13px;
    padding: 5px 16px;
    font-size: 0.9rem;
    line-height: 1.1;
}

.filters-select {
    display: inline-block;
    vertical-align: middle;
    height: 30px;
    min-width: 110px;
    padding: 2px 7px;
    border-radius: 13px;
    border: 1px solid #D7FF11;
    background-color: #2a2a2a;
    color: #ddd;
    cursor: pointer;
    font-size: 0.85rem;
}

.filters-select:focus {
    outline: none;
    border-color: #D7FF11;
}

.filters .switch {
    flex-shrink: 0;
    width: 46px;
    height: 26px;
}

.filters .slider:before {
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
}

.filters input:checked + .slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}
.testResultPage-overview{
    width: 100%;
    background-color: #202020;
    padding: 14px 16px;
    border-radius: 10px;  
    display: flex;
    gap: 28px;
}

.testResultPage-overview h4{
    align-content: center;
    margin: 0;
}

.testResultPage-Container{
    gap: 18px;
    display: flex; 
}

.testcaseresult-score{
    float: left;
    margin-left:20px;
}

.previous-pass-mark{   
    overflow: auto;
}
.pass-mark-fail {
    float: left; 
    background-color: #FE746D;
    width: 15px;
    height: 15px;
    margin: 2px;
}

.pass-mark-error {
    float: left; 
    background-color: black;
    width: 15px;
    height: 15px;
    margin: 2px;
}

.pass-mark-pass {
    float: left; 
    background-color: #C8FF00;
    width: 15px;
    height: 15px;
    margin: 2px;
}

.pass-mark-sign-fail {
    color: #000;
    background-color: #FE746D;
    padding: 6px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 5px;     
}

.pass-mark-sign-pass {
    color: #000;
    background-color: #C8FF00;
    padding: 6px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 5px;
}

.pass-mark-sign-error {
    color: #000;
    background-color: #FFB347;
    padding: 6px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 5px;
}

.pass-mark-sign-processing {
    color: #000;
    background-color: #A8D8EA;
    padding: 6px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 5px;
}

.pass-mark-pass-2 {
    background-color: rgba(200, 255, 0, 0.90)
}
.pass-mark-pass-3 {
    background-color: rgba(200, 255, 0, 0.80)
}
.pass-mark-pass-4 {
    background-color: rgba(200, 255, 0, 0.70)
}
.pass-mark-pass-5 {
    background-color: rgba(200, 255, 0, 0.60)
}
.pass-mark-pass-6 {
    background-color: rgba(200, 255, 0, 0.5)
}
.pass-mark-pass-7 {
    background-color: rgba(200, 255, 0, 0.4)
}
.pass-mark-pass-8 {
    background-color: rgba(200, 255, 0, 0.3)
}
.pass-mark-pass-9 {
    background-color: rgba(200, 255, 0, 0.2)
}
.pass-mark-pass-10 {
    background-color: rgba(200, 255, 0, 0.1)
}

.pass-mark-fail-2 {
    background-color: rgba(254, 116, 109, 0.90)
}
.pass-mark-fail-3 {
    background-color: rgba(254, 116, 109, 0.80)
}
.pass-mark-fail-4 {
    background-color: rgba(254, 116, 109, 0.70)
}
.pass-mark-fail-5 {
    background-color: rgba(254, 116, 109, 0.60)
}
.pass-mark-fail-6 {
    background-color: rgba(254, 116, 109, 0.5)
}
.pass-mark-fail-7 {
    background-color: rgba(254, 116, 109, 0.4)
}
.pass-mark-fail-8 {
    background-color: rgba(254, 116, 109, 0.3)
}
.pass-mark-fail-9 {
    background-color: rgba(254, 116, 109, 0.2)
}
.pass-mark-fail-10 {
    background-color: rgba(254, 116, 109, 0.1)
}

.pass-mark-error-2 {
    background-color: rgba(0, 0, 0, 0.9)
}
.pass-mark-error-3 {
    background-color: rgba(0, 0, 0, 0.80)
}
.pass-mark-error-4 {
    background-color: rgba(0, 0, 0, 0.70)
}
.pass-mark-error-5 {
    background-color: rgba(0, 0, 0, 0.60)
}
.pass-mark-error-6 {
    background-color: rgba(0, 0, 0, 0.5)
}
.pass-mark-error-7 {
    background-color: rgba(0, 0, 0, 0.4)
}
.pass-mark-error-8 {
    background-color: rgba(0, 0, 0, 0.3)
}
.pass-mark-error-9 {
    background-color: rgba(0, 0, 0, 0.2)
}
.pass-mark-error-10 {
    background-color: rgba(0, 0, 0, 0.1)
}

.pass-mark-na {
    float: left;
    background-color: #6b6b6b;
    width: 15px;
    height: 15px;
    margin: 2px;
}
.pass-mark-na-2  { background-color: rgba(107, 107, 107, 0.90) }
.pass-mark-na-3  { background-color: rgba(107, 107, 107, 0.80) }
.pass-mark-na-4  { background-color: rgba(107, 107, 107, 0.70) }
.pass-mark-na-5  { background-color: rgba(107, 107, 107, 0.60) }
.pass-mark-na-6  { background-color: rgba(107, 107, 107, 0.50) }
.pass-mark-na-7  { background-color: rgba(107, 107, 107, 0.40) }
.pass-mark-na-8  { background-color: rgba(107, 107, 107, 0.30) }
.pass-mark-na-9  { background-color: rgba(107, 107, 107, 0.20) }
.pass-mark-na-10 { background-color: rgba(107, 107, 107, 0.10) }

.token-health-green {
    color: #C8FF00;
}

.token-health-neutral {
    color: #fff;
}

.token-health-red {
    color: #FE746D;
}

.pass-health-green {
    color: #C8FF00;
}

.pass-health-neutral {
    color: #fff;
}

.pass-health-orange {
    color: #edc405;
}

.pass-health-red {
    color: #FE746D;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a {
    margin: 0 5px;
    padding: 5px 10px;
    text-decoration: none;
    border: 1px solid #ccc;
}
.pagination .active {
    background-color: #000;
    color: #fff;
}
/**********************back navigation ******************/
.back-button {
    margin-top: 0px;
    margin-bottom: 20px;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.2;
    padding: 0px 8px;
    text-decoration: none;
}

.arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 1.35rem;
    height: 1.35rem;
    padding-bottom: 1.5px;
    flex-shrink: 0;
    border-radius: 999px;
    border: 1px solid rgba(215, 255, 17, 0.22);
    background: rgba(215, 255, 17, 0.08);
    color: #D7FF11;
    font-size: 0.82rem;
    text-decoration: none;
    transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.btn-back:hover span:not(.arrow) {
    text-decoration: underline;
}

.btn-back:hover .arrow {
    transform: translateX(-2px);
    background: rgba(215, 255, 17, 0.14);
    border-color: rgba(215, 255, 17, 0.38);
}

.btn-back:hover { 
    color: #D7FF11;
}



/******************** End Test Result List **************/


.last-test-run {
    color: #AAAAAA;
    margin-bottom: 10px;
    display: inline-block;
}

.scores {
    display: flex;
    gap: 20px;
}

.result-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 35px;
    margin-left: auto;
    align-items: center;
}

.score {
    background: #444;
    border: 1px solid #444;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.score > label {
    padding: 6px 12px 5px 0px;
    white-space: nowrap;
    font-weight: bold;
    font-size: 0.95rem;
    align-items: center;
}

.score > .score-value {
    text-align: center;
    background: #202020;
    border-radius: 0 5px 5px 0;
    padding: 6px 10px;
    min-width: 4.5ch;
    box-sizing: border-box;
    font-size: 1rem;
    font-weight: var(--outfit-medium);
    font-variant-numeric: tabular-nums;
}

.score-value-good,
.pass-score > .score-value.score-value-good,
.ux-score > .score-value.score-value-good { 
    color: rgba(215, 255, 17, 0.8);;
}

.score-value-bad, 
.pass-score > .score-value.score-value-bad,
.ux-score > .score-value.score-value-bad { 
    color: #FE746D;
}

.pass-score, .ux-score {
    background-color: rgba(215, 255, 17, 0.8);
    color: #2E2E2E;
    border: 1px solid rgba(215, 255, 17, 0.9);
}

.pass-score > .score-value,
.ux-score > .score-value {
    color: rgba(255, 255, 255, 1);
}

.score.error {
    background-color: rgba(144, 58, 58, 0.8);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(144, 58, 58, 0.8);
}

.project-chart {
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-chart img {
    max-height: 100px;
}


/******************** START Test Case Result **************/

#test-case-result .result-columns {
    display: flex;
    gap: 70px;
}
.result-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #333333;
    border: 1px solid #D7FF11;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.75rem;
}

.result-tag i {
    color: #D7FF11;
}

.result-tag-label {
    color: #D7FF11;
}

.result-tag-value {
    color: #D7FF11;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.result-tag.result-tag-right {
    margin-left: auto;
}

.result-tag.result-tag-danger {
    border-color: #ff4d4f;
}

.result-tag.result-tag-danger i,
.result-tag.result-tag-danger .result-tag-label,
.result-tag.result-tag-danger .result-tag-value {
    color: #ff4d4f;
}

#test-case-result .result-columns article {
    flex: 1.4;
}

#test-case-result .result-columns article .scores {
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
}

#test-case-result .result-columns article .score-reason {
    margin-bottom: 40px;
    padding-bottom: 30px;
    font-size: 1rem;
    border-bottom: solid 1px #5e5e5e;
}

#test-case-result .result-columns aside {
    flex: 1;
    border-radius: 5px;
    padding-top: 5px;
    padding-bottom: 20px;
}


#test-case-result .result-columns aside dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    font-size: 1rem;
}

/******************** START Create New Test **************/

#create-new-test .launch-grid {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

#create-new-test .launch-main {
    flex: 1.45;
    min-width: 0;
}

#create-new-test .launch-aside {
    flex: 0.85;
    min-width: 280px;
    position: sticky;
    top: 20px;
}

#create-new-test .launch-section {
    background: #202020;
    border: 1px solid #454545;
    border-left: 4px solid #D7FF11;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 22px;
}

#create-new-test .launch-section .icon_and_h3 {
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

#create-new-test .launch-section .icon_and_h3 h3 {
    margin: 0;
}

#create-new-test .launch-section .icon_and_h3 i {
    color: #D7FF11;
    font-size: 1.15rem;
}

#create-new-test .launch-section .form-group:last-child {
    margin-bottom: 0;
}

#create-new-test .launch-hint {
    color: #a8a8a8;
    margin-bottom: 12px;
}

#create-new-test .launch-select-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #f2f2f2;
    font-size: 0.9rem;
    cursor: pointer;
}

#create-new-test .launch-select-all input[type="checkbox"] {
    margin: 0;
}

#create-new-test .treeview {
    margin: 0;
    border-top: none;
    border: 1px solid #3d3d3d;
    border-radius: 8px;
    background: #1a1a1a;
}

#create-new-test .treeview .root-block:last-child {
    border-bottom: none;
}

#create-new-test .test-type {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#create-new-test .difficulty-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

#create-new-test .difficulty-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 0;
}

#create-new-test .difficulty-option-content {
    display: flex;
    flex-direction: column;
}

#create-new-test .difficulty-option-content strong {
    color: #D7FF11;
}

#create-new-test .difficulty-option-content small {
    color: #b3b3b3;
    font-size: 0.8rem;
    line-height: 1.3;
}

#create-new-test .launch-summary-list {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 8px 10px;
    margin-bottom: 16px;
}

#create-new-test .launch-summary-list dt {
    margin: 0;
}

#create-new-test .launch-summary-list dd {
    margin: 0;
    color: #f2f2f2;
}

#create-new-test .launch-summary-list dd.launch-summary-over {
    color: #ff746d;
    font-weight: 700;
}

#create-new-test .launch-button {
    width: 100%;
}

#create-new-test .launch-error {
    margin-top: 12px;
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    #create-new-test .launch-grid {
        flex-direction: column;
    }

    #create-new-test .launch-aside {
        position: static;
        width: 100%;
    }
}

@media (max-width: 760px) {
    #create-new-test .difficulty-grid {
        grid-template-columns: 1fr;
    }
}

/* User help panel */
.user-help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1040;
}

.user-help-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 420px;
    max-width: 92vw;
    background: #1a1a1a;
    border-left: 3px solid #D7FF11;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    animation: userHelpSlideIn 0.22s ease;
}

@keyframes userHelpSlideIn {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

.user-help-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.user-help-panel-header h4 {
    margin: 0;
    color: #D7FF11;
    font-size: 1.1rem;
    font-weight: 600;
}

.user-help-close {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.15s;
}

.user-help-close:hover {
    color: #D7FF11;
}

.user-help-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.user-help-example {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-help-example h5 {
    margin: 0;
    color: #D7FF11;
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid #2e2e2e;
    padding-bottom: 6px;
}

.user-help-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-help-label {
    font-size: 0.78rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-help-pre {
    margin: 0;
    padding: 10px 12px;
    background: #111;
    border: 1px solid #2e2e2e;
    border-radius: 5px;
    color: #e0e0e0;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.78rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.user-help-wiki {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #D7FF11;
    text-decoration: none;
    margin-top: 2px;
}

.user-help-wiki:hover {
    text-decoration: underline;
}

.user-help-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0 0 0 6px;
    line-height: 1;
    margin-left: auto;
    transition: color 0.15s;
}

.user-help-btn:hover {
    background-color: transparent;
    color: #D7FF11;
}

/******************** START Add/Edit Test Case **************/

#add-edit-test-case .form-control {
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    color: #1a1a1a !important;
    border-radius: 6px;
}

#add-edit-test-case .form-control::placeholder {
    color: #999 !important;
}

#add-edit-test-case .form-control:focus {
    background: #ffffff !important;
    border-color: #D7FF11 !important;
    box-shadow: 0 0 0 2px rgba(215, 255, 17, 0.25) !important;
}

#add-edit-test-case .folder-picker-toggle {
    background: #ffffff !important;
    border-color: #cccccc;
    color: #1a1a1a;
    padding: 6px 12px;
}

#add-edit-test-case .folder-picker-toggle:hover {
    border-color: #D7FF11;
}

#add-edit-test-case .folder-picker-placeholder {
    color: #999;
}

#add-edit-test-case .folder-picker-dropdown {
    background: #ffffff;
    border-color: #cccccc;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

#add-edit-test-case .folder-tree-node:hover {
    background: #f5f5f5;
}

#add-edit-test-case .folder-tree-node-selected {
    background: rgba(215, 255, 17, 0.3);
}

#add-edit-test-case .folder-tree-node-selected .folder-name-btn {
    color: #4a5c00;
    font-weight: 600;
}

#add-edit-test-case .folder-name-btn {
    background: transparent !important;
    color: #1a1a1a;
    padding: 4px 6px;
}

#add-edit-test-case .folder-name-btn:hover {
    background: transparent !important;
    color: #1a1a1a;
}

#add-edit-test-case .folder-expand-btn {
    background: transparent !important;
    color: #666;
    padding: 0;
}

#add-edit-test-case .folder-expand-btn:hover {
    background: #e8e8e8 !important;
    color: #333;
}

/* Chat inside ae-section */
#add-edit-test-case .chat-window {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

#add-edit-test-case .chat-window .marker-success label {
    background: #202020;
}

#add-edit-test-case .chat-window .bot-output .chat-live-dots {
    --chat-live-dot-color: #202020;
}

#add-edit-test-case .chat-window .user-input {
    background: #f5f5f5;
    color: #1a1a1a;
}

#add-edit-test-case .chat-window .bot-output {    
    background: #444444;
    color: #D7FF11;
}

#add-edit-test-case .ae-test-select {
    background: #ffffff !important;
    color: #1a1a1a !important;
    border: 1px solid #cccccc !important;
    color-scheme: light;
}

/******************** END Add/Edit Test Case **************/

.fact-check-table {
    margin-bottom: 50px;
    margin-top: 0px;
}

/* ------- Folder ------- */

.folder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.folder-toggle {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    color: #D7FF11;
    text-decoration: none;
    font-style: normal;
}

.folder-toggle:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
}

.folder-toggle .bi-chevron-right {
    transition: transform 0.2s;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    color: #D7FF11;
    
}

.folder-toggle .bi-chevron-down {
    
    transition: transform 0.2s;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    color: #D7FF11;
}

.folder-toggle .bi-folder-fill {
    color: #ffd43b;
}

.folder-sub {
    margin-left: 20px;
}
.kebab-menu {
    position: relative;
    display: inline-block;
}

.kebab-button {
    padding: 0;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
}

.kebab-menu-content {
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 1000;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-width: 220px;
}

.kebab-menu-content button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.kebab-menu-content button:hover {
    background-color: #f8f9fa;
}

.use-case {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.use-case-buttons .btn-link {
    padding: 0.25rem 0.5rem;
    color: #6c757d;
}

.use-case-buttons .btn-link:hover {
    color: #0d6efd;
}

.folder-content {
    margin-top: 0.5rem;
    margin-left: 1rem !important;
    padding-left: 1rem;
    border-left: 1px solid #dee2e6;
}

/* ------- CONTEXTUAL MENU ------- */
.icon-option {
    cursor: pointer;
}

.context-menu {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 150px;
}

.context-menu li {
    padding: 8px;
    cursor: pointer;
}

.context-menu li:hover {
    background-color: #f0f0f0;
}

/* ------- START BAR CHART ------- */

.firstGraphOffser{
    margin-left: 20px;
}

.title-label {
    width: 100%;
    text-align: center;
    font-size: large;   
} 
.bar-graph-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 80px;
    
}

.bar-graph {
    display: flex;
    width: 100%;
    height: 300px; /* increased height */
}

.y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.y-axis-label {
    margin: 0;
    border-right: solid 1px #AAAAAA;
    height: 100%;
    padding-right: 5px;
    font-weight: 200;
    font-size: 0.88rem;
    display: flex;
    align-items: flex-start;
}

.y-axis-label:last-of-type {
    height: 20px;
    align-items: flex-end;
}


.bars-container {
display: flex;
justify-content: space-between; /* Spread bars evenly across the container */
align-items: flex-end; /* Align bars to the bottom */
flex-grow: 1;
height: 100%; /* Full height of the container */
width: 100%; /* Full width of the container */
}

.bar-wrapper {
flex: 1; /* Allow each bar-wrapper to take an equal portion of the bars-container */
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: center; /* Center the bars and labels horizontally */
height: 100%; /* Ensure it takes up full height of bars-container */
position: relative;
}

.bar {
width: 80%; /* Control the bar width inside its wrapper */
background-color: green;
transition: background-color 0.3s;
height: 100%; /* Make sure it takes up the full height of its parent */
border-radius: 4px; /* Slightly round the edges of the bar */
}
.x-axis-label {
width: 100%; /* Full width of the container */
text-align: center; /* Center text */
}

.x-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    width: 100%; /* Ensure full width */
    position: absolute;
    bottom: 0; /* Position it at the bottom of the bar graph */
}


.axis-labels {
    display: flex;
    justify-content: space-between;
}

.y-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.x-label {
    text-align: center;
    
}

/* ------- END BAR CHART ------- */

/* ------- START CHATBOT CONVERSATION ------- */

.chat-window { 
    background: #444;
    border-radius: 5px;
    padding: 5px 10px;
    display: flex;
    flex-direction: column;
}

.chat-window .chat-window-header { 
    border-bottom: dotted 1px #AAAAAA;
    display: flex;
    justify-content: center;
    padding: 10px 0 15px;
    margin: 0 0 5px;
}

.chat-window .bot-output { 
    font-weight: 400;
    width: 90%;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.85);
    color: #2e2e2e;
    padding: 1px 7px 3px;
    border-radius: 5px;
    min-height: 2em;
}

.chat-window .user-input { 
    
    font-weight: 400;
    max-width: 90%; 
    align-self: flex-end;
    margin-bottom: 20px;
    background: #2e2e2e;
    color: #D7FF11;
    padding: 1px 7px 3px;
    border-radius: 5px;
    min-height: 2em;
}

.chat-window .marker-success { 
    display: flex;
    justify-content: center;
    position: relative;
    margin: 20px 0;
}

.chat-window .marker-success::before {
     content: '';
     position: absolute;
     width: 100%;
     height: 1px;
     border-top: solid 1px #AAAAAA;
     top: 50%;
}

.chat-window .marker-success label { 
    background: #444;
    padding: 0 20px;
    color: #AAAAAA;
    display: inline-block;
    position: relative;
}

.chat-live-pending {
    display: flex;
    justify-content: center;
    padding: 6px 0 10px;
}

.chat-live-dots {
    width: 22px;
    aspect-ratio: 2;
    --chat-live-dot-color: #D7FF11;
    --_g: no-repeat radial-gradient(circle closest-side,var(--chat-live-dot-color) 90%,#0000);
    background:
      var(--_g) 0%   50%,
      var(--_g) 50%  50%,
      var(--_g) 100% 50%;
    background-size: calc(100%/3) 50%;
    animation: chatdots 1s infinite linear;
}

.chat-live-indicator {
    display: flex;
    align-items: center;
}

.bot-output .chat-live-dots {
    --chat-live-dot-color: #202020;
}

@keyframes chatdots {
    20% { background-position: 0% 0%, 50% 50%, 100% 50%; }
    40% { background-position: 0% 100%, 50% 0%, 100% 50%; }
    60% { background-position: 0% 50%, 50% 100%, 100% 0%; }
    80% { background-position: 0% 50%, 50% 50%, 100% 100%; }
}

/* ------- END CHATBOT CONVERSATION ------- */

/* ------- ICON ------- */


.score-icon-pass {
    color: #D7FF11;
    padding-left: 10px;
    padding-right: 8px;
}

.score-icon-fail {
    color: #ff5d54;
    padding-left: 10px;
    padding-right: 8px;
}

.score-icon-neutral {
    color: #888888;
    padding-left: 10px;
    padding-right: 8px;
}

.text-na {
    color: #9aa08a !important;
}

.fa-list-check {
    font-size: 1.3rem;
    padding-right: 10px;
}

.fa-bullseye {
    font-size: 1.3rem;    
    padding-right: 10px;
}

.fa-face-smile-beam {
    font-size: 1.3rem;
    padding-right: 10px;
}

.fa-chart-simple {
    font-size: 1.3rem;
    color: #D7FF11;
    padding-right: 10px;
}

.icon_and_h3{
    display: flex;
    align-items: baseline;
}

#test-case-result .result-panel-section {
    background: #202020;
    border: 1px solid #454545;
    border-left: 4px solid #D7FF11;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 26px;
}

#test-case-result .result-panel-section .icon_and_h3 {
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

#test-case-result .result-panel-section .icon_and_h3 h3 {
    margin: 0;
}

#test-case-result .result-panel-section .section-subtitle {
    color: #afafaf;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

#test-case-result .result-panel-section .score-reason {
    border-bottom: none;
    margin-bottom: 16px;
    padding-bottom: 0;
}

#test-case-result .result-panel-section .score-reason:last-child {
    margin-bottom: 20px;
}

#test-case-result .result-panel-section .fact-check-table {
    margin-bottom: 0;
}

/* jQuery UI Tooltip styling for evidence */
.evidence-ui-tooltip {
    background: #333;
    color: #D7FF11;
    border: 1px solid #D7FF11;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 0.88rem;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.evidence-tooltip {
    color: #D7FF11;
    text-decoration: underline;
    text-decoration-style: dotted;
}

/* UX Score Experience section */
.ux-classification,
.ux-turn-analysis,
.ux-overall-rationale {
    margin-bottom: 20px;
}

.ux-classification h4,
.ux-turn-analysis h4,
.ux-overall-rationale h4 {
    color: #D7FF11;
    font-size: 1rem;
    margin-bottom: 8px;
}

.ux-label {
    background: #D7FF11;
    color: #252525;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.ux-overall-rationale h5 {
    color: #D7FF11;
    font-size: 0.88rem;
    margin-top: 12px;
    margin-bottom: 6px;
}

.indent{
    padding-left: 10px;
}

/* ------- Tabs ------- */

.tab-bar {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #555;
}

.tab-button {
    background-color: transparent;
    color: #aaa;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 24px;
    cursor: pointer;
    border-radius: 0;
    font-size: 0.9rem;
    font-family: var(--main-font);
    margin-bottom: -1px;
}

.tab-button:hover {
    color: #D7FF11;
    background-color: transparent;
    border-bottom-color: rgba(215, 255, 17, 0.4);
}

.tab-button.tab-active {
    color: #D7FF11;
    background-color: transparent;
    border-bottom: 2px solid #D7FF11;
}

.tab-button.tab-active:hover {
    background-color: transparent;
    color: #D7FF11;
}

/* Folder-grouped test case results */
.folder-result-group {
    margin-bottom: 4px;
}

.folder-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background-color: #2a2a2a;
    border-left: 3px solid #D7FF11;
    cursor: pointer;
    user-select: none;
}

.folder-result-header:hover {
    background-color: #333;
}

.folder-result-icon {
    color: #D7FF11;
    font-size: 1rem;
    flex-shrink: 0;
}

.folder-result-name {
    font-weight: 600;
    color: #fff;
    flex: 1;
}

.folder-result-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.folder-result-badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.folder-result-stat {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.folder-result-total {
    color: #aaa;
    font-size: 0.85rem;
}

.folder-result-metrics {
    display: flex;
    align-items: center;
    gap: 0;
    border-left: 1px solid #444;
    padding-left: 14px;
}

.folder-result-metric {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 80px;
    color: #ccc;
    font-size: 0.85rem;
}

.folder-result-metric-icon {
    color: #888;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.folder-result-metric-value {
    font-weight: 600;
}

.folder-result-toggle {
    color: #aaa;
    flex-shrink: 0;
}

/* Project selector bar */
.project-selector-bar {
    background: #D7FF11;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 16px;
    height: 36px;
    position: sticky;
    top: 0;
    z-index: 200;
    flex-shrink: 0;
}

.project-selector-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #1E1E1E;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0;
}

.project-selector-select {
    background: #1E1E1E;
    color: #D7FF11;
    border: none;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 1rem;
    font-family: var(--main-font);
    cursor: pointer;
    outline: none;
    min-width: 200px;
}

.project-selector-select:focus {
    box-shadow: 0 0 0 2px #1E1E1E;
}

.project-selector-bar.project-selector-required .project-selector-select {
    box-shadow: 0 0 0 3px rgba(215, 255, 17, 0.45);
    animation: project-selector-pulse 0.9s ease-in-out infinite alternate;
}

.project-selector-overlay {
    position: fixed;
    inset: 0;
    z-index: 1900;
    background: rgba(20, 20, 20, 0.65);
}

.project-selector-popup {
    --project-selector-popup-arrow-left: 50%;
    position: absolute;
    z-index: 2000;
    background: #1E1E1E;
    color: #D7FF11;
    border: 1px solid #D7FF11;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.project-selector-popup::before {
    content: "";
    position: absolute;
    top: -7px;
    left: calc(var(--project-selector-popup-arrow-left) - 7px);
    width: 14px;
    height: 14px;
    background: #1E1E1E;
    border-top: 1px solid #D7FF11;
    border-left: 1px solid #D7FF11;
    transform: rotate(45deg);
}

@keyframes project-selector-pulse {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-1px);
    }
}

/* ======= H5 NESTED TREE TABLE (Test Results redesign) ======= */
.h5-table {
    background: #171a12;
    border: 1px solid #262b1d;
    border-radius: 10px;
    width: max-content;
    min-width: 100%;
    overflow: visible;
}

.h5-row,
.h5-thead-top,
.h5-thead-bottom {
    display: grid;
    grid-template-columns:
        minmax(220px, 1.6fr)
        110px
        100px
        85px
        100px
        85px
        100px
        44px;
    gap: 12px;
    align-items: center;
    padding: 0 18px;
    min-width: 1216px;
}

.h5-thead-top,
.h5-thead-bottom {
    align-items: stretch;
}

.h5-row > div,
.h5-thead-top > div,
.h5-thead-bottom > div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.h5-thead {
    display: flex;
    flex-direction: column;
    min-width: 1216px;
    background: #12150e;
    border-bottom: 1px solid #262b1d;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 4px;
}

.h5-head-main,
.h5-head-sub {
    display: flex;
    align-items: center;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h5-head-main {
    color: #e8ecd8;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.h5-head-sub {
    color: #9aa08a;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    justify-content: center;
    text-align: center;
}

.h5-head-group-span-2 {
    grid-column: span 2;
    justify-content: center;
}

.h5-head-center {
    justify-content: center;
}

.h5-separator-left {
    border-left: 1px solid rgba(154, 160, 138, 0.18);
    padding-left: 12px;
}

.h5-row > .h5-separator-left:empty,
.h5-thead-top > .h5-separator-left:empty,
.h5-thead-bottom > .h5-separator-left:empty {
    align-self: stretch;
    min-height: 100%;
    padding-left: 12px;
}

.h5-row {
    min-height: 48px;
    border-bottom: 1px solid #1e2217;
    cursor: pointer;
    transition: background 120ms ease;
    background: #141812;
}

.h5-row:last-child { border-bottom: none; }
.h5-row:hover { background: #1c2118; }

.h5-row-folder {
    background: #1a1e14;
    border-bottom: 1px solid #262b1d;
}
.h5-row-folder:hover { background: #20251a; }

.h5-col-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.h5-col-num {
    font-variant-numeric: tabular-nums;
    font-size: 0.8rem;
}

.h5-col-num.muted { color: #9aa08a; }

.h5-col-meta {
    font-size: 0.75rem;
    color: #9aa08a;
}

.h5-col-spark {
    font-size: 0.8rem;
}

.h5-col-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: visible !important;
}

.row-kebab-menu-content {
    right: 0;
    top: calc(100% + 4px);
}

.h5-indent { flex-shrink: 0; }

.h5-chev {
    color: #9aa08a;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 120ms ease;
}

.h5-chev svg {
    transition: transform 160ms ease;
}

.h5-folder-icon {
    color: #c6ff3d;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.h5-folder-name {
    font-weight: 600;
    color: #e8ecd8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h5-folder-count {
    background: #0b0d08;
    color: #9aa08a;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.h5-folder-pills {
    display: flex;
    gap: 4px;
    margin-left: 4px;
    flex-shrink: 0;
}

.h5-pill {
    font-size: 0.63rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.h5-pill.pass { background: rgba(198, 255, 61, 0.15); color: #c6ff3d; }
.h5-pill.fail { background: rgba(255, 90, 110, 0.15); color: #ff5a6e; }
.h5-pill.processing { background: rgba(168, 216, 234, 0.16); color: #a8d8ea; }
.h5-pill.error { background: rgba(255, 181, 71, 0.15); color: #ffb547; }

.h5-folder-bar-cell {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 3px;
    justify-content: center;
    overflow: visible !important;
}

.h5-folder-bar {
    display: flex;
    width: 100%;
    max-width: 70px;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    background: #0b0d08;
}
.h5-folder-bar span { display: block; height: 100%; }

.h5-folder-pf-row {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.h5-agg-pass { color: #c6ff3d; }
.h5-agg-fail { color: #ff5a6e; }
.h5-agg-processing { color: #a8d8ea; }
.h5-agg-error { color: #ffb547; }

.h5-test-icon {
    color: #6b7160;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 120ms ease;
}
.h5-row-test:hover .h5-test-icon { color: #c6ff3d; }

.h5-test-name-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.h5-test-meta-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    flex-wrap: nowrap;
    align-self: flex-start;
}
.h5-test-meta {
    display: inline-flex;
    align-items: center;
    font-size: 0.72em;
    color: #7a8070;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    margin-top: 0;
}
.h5-test-name {
    color: #e8ecd8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}


.h5-relevance {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: 0.75rem;
    white-space: nowrap;
}
.h5-relevance-pass { background: rgba(198, 255, 61, 0.14); color: #c6ff3d; }
.h5-relevance-na {
    background: rgba(154, 160, 138, 0.10);
    color: #9aa08a !important;
    box-shadow: inset 0 0 0 1px rgba(154, 160, 138, 0.26);
}
.h5-relevance-warn {
    background: rgba(255, 181, 71, 0.28);
    color: #ffd089;
    box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.35);
}
.h5-relevance-processing {
    background: rgba(168, 216, 234, 0.16);
    color: #a8d8ea;
    box-shadow: inset 0 0 0 1px rgba(168, 216, 234, 0.28);
}
.h5-relevance-fail { background: rgba(255, 90, 110, 0.15); color: #ff5a6e; }
.h5-relevance-error { background: rgba(255, 181, 71, 0.15); color: #ffb547; }

.h5-spark {
    display: flex;
    gap: 3px;
    align-items: center;
}
.h5-spark-cell {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
}
.h5-spark-cell-loading {
    background-color: rgba(154, 160, 138, 0.18);
    animation: h5-spark-pulse 1.2s ease-in-out infinite;
}
@keyframes h5-spark-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .h5-spark-cell-loading { animation: none; }
}

.h5-tbody-empty {
    padding: 40px 18px;
    text-align: center;
    color: #6b7160;
    font-size: 0.8rem;
}

/* ======= H5 ADMIN TREE (Test case admin redesign) ======= */
.admin-tree-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.admin-tree-header-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-tree-subtitle {
    margin: 0;
    max-width: 720px;
    color: #9aa08a;
    font-size: 0.88rem;
    line-height: 1.45;
}

.admin-tree-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.admin-tree-header-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-tree-header-button-secondary {
    background: #141812;
    border: 1px solid #323826;
    color: #e8ecd8;
}

.admin-tree-header-button-secondary:hover {
    background: #1a1e14;
    border-color: #4a5238;
    color: #c6ff3d;
}

.admin-tree-overview {
    margin-top: 18px;
    margin-bottom: 14px;
}

.admin-tree-overview .testResultPage-Container {
    flex-wrap: wrap;
}

.admin-tree-filters {
    margin-bottom: 20px;
}

.admin-tree-filters-note {
    padding: 7px 12px;
    border: 1px solid #2a3020;
    border-radius: 999px;
    background: #141812;
    color: #9aa08a;
}

.admin-tree-filters-note .filters-item-label {
    gap: 7px;
}

.admin-tree-table-wrap {
    width: 100%;
    overflow-x: clip;
    padding-bottom: 6px;
}

.h5-admin-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.h5-admin-thead {
    min-width: 0;
}

.h5-admin-head,
.h5-admin-row {
    display: grid;
    grid-template-columns:
        minmax(220px, 1.3fr)
        minmax(220px, 1fr)
        44px;
    gap: 12px;
    align-items: center;
    padding: 0 18px;
    min-width: 0;
}

.h5-admin-row {
    min-height: 54px;
}

.h5-admin-row > .h5-col-meta {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.h5-admin-row-system {
    background: #191d16;
}

.h5-admin-row-archived > .h5-col-name,
.h5-admin-row-archived > .h5-col-meta {
    opacity: 0.55;
}

.h5-pill.h5-pill-archived {
    background: rgba(168, 216, 234, 0.12);
    color: #a8d8ea;
    gap: 4px;
}

.admin-tree-archive-toggle {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid #2a3020;
    border-radius: 999px;
    background: #141812;
    color: #9aa08a;
}

.admin-tree-archive-toggle .form-check {
    margin: 0;
}

.admin-tree-archive-toggle .form-check-label {
    cursor: pointer;
    white-space: nowrap;
}

.h5-chev-placeholder {
    opacity: 0.3;
}

.h5-pill.neutral {
    background: rgba(154, 160, 138, 0.12);
    color: #cfd4bf;
    box-shadow: inset 0 0 0 1px rgba(154, 160, 138, 0.18);
}

.h5-relevance-neutral {
    background: rgba(154, 160, 138, 0.12);
    color: #d9ddcc;
    box-shadow: inset 0 0 0 1px rgba(154, 160, 138, 0.22);
}

.h5-admin-summary,
.h5-admin-objective {
    display: block;
    color: #cfd4bf;
    font-size: 0.8rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.4;
    word-break: break-word;
}

.h5-admin-summary {
    color: #9aa08a;
}

.h5-admin-summary-empty {
    display: block;
    min-height: 1px;
}

.h5-admin-link-button {
    background: none;
    border: none;
    padding: 0;
    width: fit-content;
    max-width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.h5-admin-link-button.h5-test-name {
    display: inline-block;
}

.h5-admin-link-button:hover {
    background-color: transparent;
    color: #c6ff3d;
}

.h5-admin-test-icon {
    min-width: 16px;
    justify-content: center;
}

.h5-admin-test-icon.is-danger {
    color: #ffb547;
}

.h5-admin-inline-pill {
    display: inline-flex;
    align-self: center;
    margin-top: 0;
}

.h5-admin-table mark {
    background: rgba(198, 255, 61, 0.18);
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
}

@media (max-width: 900px) {
    .admin-tree-header {
        flex-direction: column;
    }

    .admin-tree-header-actions {
        justify-content: flex-start;
    }

    .h5-admin-head,
    .h5-admin-row {
        grid-template-columns:
            minmax(0, 1fr)
            44px;
    }

    .h5-admin-head > :nth-child(2) {
        display: none;
    }

    .h5-admin-row > .h5-col-meta {
        grid-column: 1 / -1;
        border-left: none;
        padding-left: 0;
        margin-left: 34px;
        margin-top: -4px;
        padding-bottom: 12px;
    }
}

/* ============================================================
   DetailsTestCaseResult2 — restyle of the in-page sections only:
   Relevance, Grounding, Experience, Historical data, Test brief, Replay.
   Header, score band, back link and kebab menu use the existing styles.
   ============================================================ */
:root {
    --tc-panel: #181b11;
    --tc-panel-2: #1d2114;
    --tc-panel-3: #232818;
    --tc-line: #2a2f1c;
    --tc-line-2: #353c25;
    --tc-ink: #f4f7e8;
    --tc-ink-2: #c2c8aa;
    --tc-ink-3: #8a906f;
    --tc-ink-4: #5b6043;
    --tc-accent: #D7FF11;
    --tc-accent-ink: #0e0f0a;
    --tc-accent-soft: rgba(215, 255, 17, 0.12);
    --tc-accent-line: rgba(215, 255, 17, 0.35);
    --tc-good: #7fdc4c;
    --tc-good-soft: rgba(127, 220, 76, 0.14);
    --tc-warn: #ffb547;
    --tc-warn-soft: rgba(255, 181, 71, 0.14);
    --tc-bad: #ff5e5e;
    --tc-bad-soft: rgba(255, 94, 94, 0.14);
    --tc-radius-lg: 14px;
    --tc-radius-pill: 999px;
    --tc-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---- Shared primitives ---- */

/* Eyebrow / mono caps — section labels, table headers, KV keys, meta, role */
.tc-eyebrow,
.tc-section-label,
.tc-gtable th,
.tc-kv .k,
.tc-kv-cell .k,
.tc-evlist .who,
.tc-transcript-head .role,
.tc-card-head .tc-meta {
    font: 500 10px/1.2 var(--tc-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tc-ink-3);
}
.tc-evlist .who { color: var(--tc-accent); }
.tc-section-label { letter-spacing: 0.12em; margin: 14px 0 8px; font-weight: normal; }
.tc-section-label:first-child { margin-top: 0; }

/* Pill / chip — classification badge, play button, evidence link */
.tc-pill,
.tc-classification,
.tc-play,
.tc-link-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px;
    border-radius: var(--tc-radius-pill);
    font-size: 0.7rem; font-weight: 600;
    text-decoration: none;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.tc-classification { background: var(--tc-good-soft); color: var(--tc-good); }
.tc-play           { background: var(--tc-accent);    color: var(--tc-accent-ink); padding: 6px 12px; }
.tc-play:hover     { filter: brightness(1.05); color: var(--tc-ink-3);}
.tc-link-btn       { padding: 0; text-transform: none; letter-spacing: 0; font-weight: normal; font-size: 0.75rem; color: var(--tc-accent); gap: 5px; }
.tc-link-btn:hover { text-decoration: underline; }

.test-brief-toggle {
    border: 1px solid rgba(215, 255, 17, 0.32);
    background: rgba(215, 255, 17, 0.08);
    padding: 5px 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.test-brief-toggle:hover {
    background: rgba(215, 255, 17, 0.14);
    text-decoration: none;
}

/* Centred badge — card-head icon, status check, avatar */
.tc-icon,
.tc-check,
.tc-avatar {
    display: grid; place-items: center;
    flex-shrink: 0;
}
.tc-card-head .tc-icon {
    width: 26px; height: 26px; font-size: 0.75rem;
    border-radius: 7px;
    color: var(--tc-accent);
}
.tc-check {
    width: 20px; height: 20px; font-size: 0.63rem;
    border-radius: 50%;
    background: var(--tc-good-soft); color: var(--tc-good);
}
.tc-check.no      { background: var(--tc-bad-soft);  color: var(--tc-bad); }
.tc-check.unknown { background: var(--tc-warn-soft); color: var(--tc-warn); }
.tc-avatar {
    width: 28px; height: 28px; font-size: 0.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tc-accent), #c7ff6c);
    color: var(--tc-accent-ink);
    font-weight: 700;
}

/* Card / transcript surfaces */
.tc-card,
.tc-transcript {
    background: var(--tc-panel);
    border: 1px solid var(--tc-line);
    border-radius: var(--tc-radius-lg);
}
.tc-card       { border-left: 3px solid var(--tc-accent); margin-bottom: 14px; }
.tc-transcript { overflow: hidden; }

/* Card / transcript header bands */
.tc-card-head,
.tc-transcript-head {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--tc-line);
}
.tc-transcript-head { padding: 12px 14px; gap: 8px; }
.tc-card-head .grow,
.tc-transcript-head .grow { flex: 1; }
.tc-card-head h3 {
    margin: 0; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--tc-ink);
}
.tc-card-body { padding: 16px 18px 18px; }

/* Body copy */
.tc-lede {
    font-size: 0.88rem; line-height: 1.55;
    color: var(--tc-ink); margin: 0;
}
.tc-lede.tc-muted { color: var(--tc-ink-3); }
.tc-lede em {
    font-style: normal;
    background: var(--tc-accent-soft); color: var(--tc-accent);
    padding: 0 4px; border-radius: 3px;
}
.tc-lede .reasoning_highlight {
    display: inline;
    background: var(--tc-accent-soft);
    color: var(--tc-accent);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.tc-bullets { margin: 4px 0 0; padding-left: 16px; color: var(--tc-ink-2); font-size: 0.8rem; }
.tc-bullets li { margin-bottom: 4px; }
.tc-bullets li::marker { color: var(--tc-ink-4); }

/* Subhead with coloured pip (Top strengths / weaknesses / fix) */
.tc-subhead {
    display: flex; align-items: center; gap: 8px;
    margin: 14px 0 6px;
    font-size: 0.75rem; font-weight: 600; color: var(--tc-ink);
}
.tc-subhead .pip   { width: 4px; height: 12px; border-radius: 2px; background: var(--tc-accent); }
.tc-subhead.bad .pip { background: var(--tc-warn); }
.tc-subhead.fix .pip { background: var(--tc-bad); }

/* Two-column rows (evidence list items, KV brief rows) */
.tc-evlist { list-style: none; padding: 0; margin: 0; }
.tc-evlist li,
.tc-kv {
    display: grid; gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--tc-line);
    font-size: 0.88rem;
}
.tc-evlist li { grid-template-columns: 80px 1fr; border-bottom-style: dashed; color: var(--tc-ink); }
.tc-kv        { grid-template-columns: 100px 1fr; gap: 10px; padding: 8px 0; }
.tc-evlist li:last-child,
.tc-kv:last-child { border-bottom: 0; }
.tc-evlist .who,
.tc-kv .k         { padding-top: 2px; }
.tc-kv .v         { color: var(--tc-ink); white-space: pre-wrap; }
.tc-kv .v.muted   { color: var(--tc-ink-2); }

/* Grounding table */
.tc-gtable     { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.tc-gtable th  { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--tc-line); }
.tc-gtable td  {
    padding: 12px 8px 12px 0;
    border-bottom: 1px solid var(--tc-line);
    vertical-align: top;
    color: var(--tc-ink-2);
}
.tc-gtable tr:last-child td { border-bottom: 0; }
.tc-gtable td.fact     { color: var(--tc-ink); }
.tc-gtable td.present  { width: 150px; }
.tc-gtable td.evidence { width: 160px; }
.tc-gtable tr.tc-correctly-absent td {
    background: rgba(69, 196, 176, 0.07);
}
.tc-gtable tr.tc-correctly-absent td:first-child {
    box-shadow: inset 3px 0 0 #45c4b0;
    padding-left: 10px;
}
.tc-fact-type {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 650;
    line-height: 1.35;
    white-space: nowrap;
}
.tc-fact-type.find {
    color: var(--tc-good);
    background: var(--tc-good-soft);
}
.tc-fact-type.dont-find {
    color: #65d7c5;
    background: rgba(69, 196, 176, 0.14);
}
.tc-absence-success {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #65d7c5;
    background: rgba(69, 196, 176, 0.14);
    font-size: 0.72rem;
    font-weight: 650;
    white-space: nowrap;
}

/* Inset surfaces (history chart cards, KV grid) */
.tc-chart,
.tc-kv-cell {
    background: var(--tc-panel-2);
    padding: 12px 14px;
}
.tc-chart {
    border: 1px solid var(--tc-line);
    border-radius: 10px;
}
.tc-kv-cell { padding: 10px 12px; }

.tc-kv-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    margin-top: 12px;
    background: var(--tc-line);
    border: 1px solid var(--tc-line);
    border-radius: 10px; overflow: hidden;
}
.tc-kv-cell .k { margin-bottom: 4px; }
.tc-kv-cell .v { font-size: 0.88rem; font-weight: 600; color: var(--tc-ink); }

.tc-history-grid { display: grid; gap: 14px; }

/* Inline history charts (custom markup, not BarGraph) */
.tc-chart-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 10px;
}
.tc-chart-head .lbl  { font-size: 0.7rem; font-weight: 500; color: var(--tc-ink-2); }
.tc-chart-head .unit {
    font-size: 0.63rem; font-family: var(--tc-mono);
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--tc-ink-4);
}
.tc-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.tc-dot {
    width: 14px; height: 14px; border-radius: 4px;
    background: var(--tc-good);
}
.tc-dot.fail { background: var(--tc-bad); }
.tc-dot.skip { background: var(--tc-ink-4); opacity: 0.4; }

.tc-bars {
    display: flex; align-items: flex-end; gap: 4px;
    height: 86px;
}
.tc-bar {
    flex: 1;
    min-height: 4px;
    border-radius: 3px 3px 0 0;
    background: var(--tc-good);
    transition: filter 0.15s;
}
.tc-bar.hl     { background: var(--tc-accent); }
.tc-bar:hover  { filter: brightness(1.15); }
.tc-bars-axis {
    display: flex; justify-content: space-between;
    margin-top: 6px;
    font-size: 0.6rem; font-family: var(--tc-mono);
    letter-spacing: 0.04em; color: var(--tc-ink-4);
}

/* Transcript pieces */
.tc-who { display: flex; align-items: center; gap: 8px; }
.tc-transcript-head .name { font-size: 0.75rem; font-weight: 600; color: var(--tc-ink); }
.tc-transcript-body { padding: 14px; }

/* Reset .chat-window's outer chrome inside the transcript so it just acts
   as a flex column on top of the panel. The bubbles are restyled below. */
.tc-transcript-body.chat-window {
    background: transparent;
    border-radius: 0;
    padding: 24px;
    gap: 14px;
}

/* Bubbles — match the design example. The ChatLive component emits
   .user-input (the test scenario user, on the left) and .bot-output
   (Hangar 5, on the right). */
.tc-transcript-body .user-input,
.tc-transcript-body .bot-output {
    position: relative;
    width: fit-content;
    max-width: 86%;
    margin: 18px 0 0;
    padding: 8px 11px;
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 400;
    border-radius: 12px;
    min-height: 0;
}
.tc-transcript-body .user-input {
    align-self: flex-end;
    background: var(--tc-panel-3);
    color: var(--tc-ink);
    border-bottom-right-radius: 3px;
}
.tc-transcript-body .bot-output {
    align-self: flex-start;
    background: var(--tc-accent);
    color: var(--tc-accent-ink);
    
    border-bottom-left-radius: 3px;
}
.tc-transcript-body .user-input:first-child,
.tc-transcript-body .bot-output:first-child { margin-top: 0; }

/* Sender eyebrow above each bubble */
.tc-transcript-body .user-input::before,
.tc-transcript-body .bot-output::before {
    position: absolute;
    top: -14px;
    font: 500 10px/1.2 var(--tc-mono);
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--tc-ink-3);
    /* A bubble holding only the typing dots is narrower than the label: without this
       "Hangar 5" wraps onto two lines and runs into the bubble. */
    white-space: nowrap;
}
.tc-transcript-body .user-input::before  { content: "Hangar 5"; right: 2px;}
.tc-transcript-body .bot-output::before  { content: "Assistant"; left: 2px;}

/* Live-dots inside a bubble pick a contrasting dot colour */
.tc-transcript-body .bot-output .chat-live-dots { --chat-live-dot-color: var(--tc-accent-ink); }
.tc-transcript-body .user-input .chat-live-dots { --chat-live-dot-color: var(--tc-ink); }

/* Objective reached / failed divider */
.tc-transcript-body .marker-success {
    align-self: stretch;
    margin: 8px 0 4px;
}
.tc-transcript-body .marker-success::before {
    border-top-color: var(--tc-line);
}
.tc-transcript-body .marker-success label {
    background: var(--tc-panel);
    color: var(--tc-ink-3);
    font: 500 10px/1 var(--tc-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 12px;
}

/* ---- ListTestResult2 — list of test result cards ---- */
.tc-list {
    display: flex; flex-direction: column;
    gap: 14px;
}
.tc-list-card {
    margin-bottom: 0;
    transition: border-color 0.15s, transform 0.15s;
}
.tc-list-card:hover {
    border-color: var(--tc-accent-line);
}
.tc-list-card-title {
    display: flex; flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.tc-list-card-link { text-decoration: none; }
.tc-list-card-link h3 {
    margin: 0 0 4 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bs-white);
    letter-spacing: 0.05em;
    transition: color 0.15s;
}
.tc-list-card-link:hover h3 { color: var(--tc-accent); }
.tc-list-card-eyebrow {
    font: 500 10px/1.2 var(--tc-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tc-ink-3);
}

.tc-list-scores { flex-wrap: wrap; }
.tc-list-tags  {
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--tc-line);
}

/* In-progress pill — uses the .tc-classification shape with warn palette */
.tc-pending {
    background: var(--tc-warn-soft);
    color: var(--tc-warn);
}
.tc-pending .chat-live-dots { --chat-live-dot-color: var(--tc-warn); }

/* Card body holding a full-width table (consistency results) */
.tc-card-body-table { padding: 0; }
.tc-card-body-table > table { margin: 0; width: 100%; }

/* Filter row inside a tc-card hugs the card padding */
.tc-filters-card .tc-card-body .filters,
.tc-filters-row { 
    margin: 0; 
}

.tc-filters-card{
    margin-top: 20px;
}


/***********************************************************
****                 Ticket modal                        ****
***********************************************************/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.ticket-modal {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 28px;
    width: 560px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ticket-modal h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.ticket-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ticket-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ticket-field input,
.ticket-field select,
.ticket-textarea {
    background: #141414;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 0.875rem;
    padding: 8px 10px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.ticket-field input:focus,
.ticket-field select:focus,
.ticket-textarea:focus {
    outline: none;
    border-color: #b8f53a;
}

.ticket-textarea {
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
    min-height: 200px;
}

.ticket-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 4px;
}

.ticket-btn-primary {
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    background: #b8f53a;
    color: #111;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.ticket-btn-primary:hover:not(:disabled) { opacity: 0.85; }
.ticket-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.ticket-btn-secondary {
    padding: 8px 20px;
    border-radius: 6px;
    border: 1px solid #444;
    background: transparent;
    color: #aaa;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.ticket-btn-secondary:hover {
    border-color: #888;
    color: #e0e0e0;
}

.ticket-error {
    font-size: 0.85rem;
    color: #cf7e7e;
    background: #3a1a1a;
    border: 1px solid #6a3a3a;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0;
}

.ticket-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    text-align: center;
}

.ticket-success-icon {
    font-size: 2.5rem;
    color: #b8f53a;
}

.ticket-success p {
    margin: 0;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.ticket-result-link {
    font-size: 0.875rem;
    color: #b8f53a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticket-result-link:hover { text-decoration: underline; }

/* ---- Compare with another run (ListTestCaseResult / DetailsTestCaseResult) ---- */
.cmp-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    margin-left: 0.4rem;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    cursor: help;
}
.cmp-up   { color: #c6ff3d; background: rgba(198, 255, 61, 0.14); }
/* Score cells are fixed widths that clip with "...": give the 3 score columns room for the arrow
   while comparing (taken from the Name column, so the table doesn't get wider) */
.h5-table.is-comparing .h5-row,
.h5-table.is-comparing .h5-thead-top,
.h5-table.is-comparing .h5-thead-bottom {
    grid-template-columns:
        minmax(220px, 1.6fr)
        136px
        100px
        112px
        100px
        112px
        100px
        44px;
}
/* Score cards get a little wider with an arrow: wrap them rather than overflow */
.testResultPage-Container:has(.cmp-arrow),
.scores:has(.cmp-arrow) { flex-wrap: wrap; }
.cmp-down { color: #ff5a6e; background: rgba(255, 90, 110, 0.16); }
.cmp-same { color: #c2c8aa; background: rgba(194, 200, 170, 0.10); }

/* The page header is a no-wrap flex row: let it wrap once the compare dropdown is in it,
   so a long run name + the dropdown never push the page wider than the window */
header:has(.cmp-header-actions) { flex-wrap: wrap; }
header > div:has(> .cmp-header-actions) { min-width: 0; max-width: 100%; flex-wrap: wrap; gap: 0.75rem; }

.cmp-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}
.cmp-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    color: #c2c8aa;
    font-size: 0.85rem;
    white-space: nowrap;
}
.cmp-select {
    /* fixed width: long run names are cut off instead of widening the header */
    width: 24rem;
    max-width: 100%;
    min-width: 0;
    text-overflow: ellipsis;
    height: 2.3rem;
    padding: 0 0.6rem;
    border: 1px solid #353c25;
    border-radius: 8px;
    background: #1d2114;
    color: #f4f7e8;
    font-family: var(--main-font);
    font-size: 0.9rem;
}
.cmp-select.is-active { border-color: #D7FF11; }

.cmp-banner {
    clear: both;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: fit-content;
    margin: 0.5rem 0 0.75rem;
    padding: 0.35rem 0.4rem 0.35rem 0.9rem;
    border: 1px solid #353c25;
    border-radius: 10px;
    background: rgba(215, 255, 17, 0.06);
    color: #c2c8aa;
    font-size: 0.9rem;
}
.cmp-banner strong { color: #f4f7e8; font-weight: 500; }
.cmp-banner a { color: #D7FF11; }
.cmp-banner-close {
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #8a906f;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.2rem 0.45rem;
    cursor: pointer;
}
.cmp-banner-close:hover { color: #f4f7e8; background: rgba(255, 255, 255, 0.06); }

.cmp-prev-reason {
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--tc-line, #2a2f1c);
}
.cmp-prev-reason > summary { cursor: pointer; color: #c2c8aa; font-size: 0.9rem; }
.cmp-prev-reason > .tc-lede { margin-top: 0.5rem; color: #c2c8aa; }

/* ============================================================
   Reviewer overrides & fix note — DetailsTestCaseResult2
   Read mode: verdicts stay plain; a pencil appears on hover/focus and turns the verdict into a
   Pass/Fail switch (one click saves). Review mode shows every switch and the fix note editor.
   Buttons start with "button" to beat the global lime "button" / "button:hover" rules.
   ============================================================ */

/* Run headers on the list pages: original AI figure next to the overridden one */
.score > .score-override-note {
    padding: 0 10px;
    font: 500 10px/1.2 var(--tc-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tc-ink-3);
    white-space: nowrap;
}

/* Score chips: coloured label + dark value. tone-pass lime, tone-fail red, tone-warn amber */
/* Same size and spacing as the original .score boxes */
.scores.tc-chips { gap: 20px; }
.tc-chip-wrap { position: relative; display: inline-flex; }
.tc-chip {
    display: flex;
    min-height: 38px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #444;
}
.tc-chip-l {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px 5px 10px;
    background: #444;
    color: var(--tc-ink);
    font-size: 0.95rem; font-weight: bold;
    white-space: nowrap;
}
.tc-chip-l > i { font-size: 1.1rem; }
.tc-chip-v {
    display: flex; align-items: center; justify-content: center;
    min-width: 4.5ch;
    padding: 6px 10px;
    background: #141610;
    color: #eef0e6;
    font-size: 1rem; font-weight: var(--outfit-medium);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.tc-chip.tone-pass { border-color: var(--tc-accent); }
.tc-chip.tone-pass .tc-chip-l { background: var(--tc-accent); color: #141610; }
.tc-chip.tone-fail { border-color: #a8322f; }
.tc-chip.tone-fail .tc-chip-l { background: #a8322f; color: #ffe9e7; }
.tc-chip.tone-warn { border-color: #e0a92e; }
.tc-chip.tone-warn .tc-chip-l { background: #e0a92e; color: #141610; }
.tc-chip-v.v-pass { color: var(--tc-accent); }
.tc-chip-v.v-fail { color: #ff8a8a; }

/* Override dots: lime = changed to Pass, orange = changed to Fail, split = both (chips only) */
.tc-chip-dot {
    position: absolute;
    right: -5px; top: 50%;
    width: 10px; height: 10px;
    margin-top: -5px;
    border-radius: 50%;
    box-shadow: 0 0 0 2.5px #252525; /* page background */
    cursor: help;
}
.tc-chip-dot.to-pass, .tc-change-dot.to-pass { background: var(--tc-accent); }
.tc-chip-dot.to-fail, .tc-change-dot.to-fail { background: #ff8a3d; }
.tc-chip-dot.to-both { background: linear-gradient(90deg, var(--tc-accent) 50%, #ff8a3d 50%); }
.tc-change-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; cursor: help; }

/* Experience classification pill, coloured like its chip */
.tc-classification.tone-pass { background: #1f3317; color: #8be05a; }
.tc-classification.tone-warn { background: #3a2f12; color: #f0cf6a; }
.tc-classification.tone-fail { background: #3b1d1d; color: #ff8a8a; }

.tc-mono {
    font: 500 11px/1.2 var(--tc-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tc-ink-3);
}
.tc-mono.tc-good { color: #8be05a; }
.tc-mono.tc-bad  { color: #ff7a7a; }
.tc-mono.tc-status { display: inline-flex; align-items: center; gap: 6px; }

/* Header "Review" button */
button.tc-review-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 36px; padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #3a3d31;
    background: transparent;
    color: var(--tc-ink);
    font-size: 14px; font-weight: 500;
    cursor: pointer;
}
button.tc-review-btn:hover { background: transparent; border-color: var(--tc-accent); color: var(--tc-accent); }
button.tc-review-btn:focus-visible { outline: 2px solid var(--tc-accent); outline-offset: 2px; }

/* Icon-only button (pencil) */
button.tc-iconbtn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; padding: 0;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--tc-ink-3);
    cursor: pointer;
    flex-shrink: 0;
}
button.tc-iconbtn:hover { background: #2a2d23; color: var(--tc-ink); }
button.tc-iconbtn:focus-visible { outline: 2px solid var(--tc-accent); outline-offset: 1px; }

/* Pencil fades in on row/header hover or keyboard focus */
button.tc-qedit { opacity: 0; transition: opacity 0.12s; }
.tc-relhead:hover button.tc-qedit,
.tc-vrow:hover button.tc-qedit,
.tc-reasonblock:hover button.tc-qedit,
button.tc-qedit:focus-visible { opacity: 1; }
@media (hover: none) { button.tc-qedit { opacity: 1; } }

/* "Reset" / "Clear" text buttons */
button.tc-reset {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--tc-ink-3);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}
button.tc-reset:hover { background: transparent; color: var(--tc-ink); }
button.tc-reset:disabled { opacity: 0.5; cursor: wait; }

/* Pass / Fail switch */
.tc-seg { display: inline-flex; }
.tc-seg button {
    display: inline-flex; align-items: center; gap: 5px;
    height: 28px; padding: 0 10px;
    border: 1px solid #34372c;
    border-radius: 0;
    background: transparent;
    color: var(--tc-ink-3);
    font-size: 12px; font-weight: 600;
    cursor: pointer;
}
.tc-seg button:first-child { border-radius: 7px 0 0 7px; }
.tc-seg button:nth-child(2) { border-radius: 0 7px 7px 0; border-left: 0; }
/* Reset icon after the switch (only when overridden) */
.tc-seg button.tc-reset-icon,
.tc-seg button.tc-reset-icon:hover {
    width: 28px; padding: 0; margin-left: 4px;
    justify-content: center;
    border: 1px solid transparent; border-radius: 7px;
}
.tc-seg button.tc-reset-icon:hover { background: #2a2d23; color: var(--tc-ink); }
.tc-seg button:hover       { background: #23261d; color: var(--tc-ink); }
.tc-seg button.pass-on,
.tc-seg button.pass-on:hover { background: #1f3317; color: #8be05a; border-color: #4f8a2f; }
.tc-seg button.fail-on,
.tc-seg button.fail-on:hover { background: #3b1d1d; color: #ff7a7a; border-color: #8a3434; }
.tc-seg button:focus-visible { outline: 2px solid var(--tc-accent); outline-offset: 1px; position: relative; }
.tc-seg button:disabled { cursor: wait; opacity: 0.7; }

/* Relevance card header */
.tc-verdict { display: flex; align-items: center; gap: 8px; }
.tc-card-head .tc-verdict .tc-mono { font-size: 10px; }

/* Grounding result cell */
.tc-gtable td.present { width: 190px; }
.tc-verdict-cell { display: flex; align-items: center; gap: 6px; }
.tc-mark { position: relative; display: inline-flex; }
.tc-change-dot.tc-mark-dot {
    position: absolute; top: -2px; right: -2px;
    width: 8px; height: 8px;
    box-shadow: 0 0 0 2px var(--tc-panel); /* card background */
}

/* Relevance reason: pencil next to the label; the reviewer's version replaces the AI's on screen */
.tc-reasonhead { display: flex; align-items: center; gap: 8px; min-height: 28px; margin-bottom: 6px; }
.tc-reasonhead .tc-section-label { margin: 0; }
.tc-mono.tc-edited { font-size: 10px; color: var(--tc-accent); }
.tc-reason-nudge {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #2a2510;
    color: #f0cf6a;
    font-size: 13px;
}
.tc-reason-nudge-text { flex: 1 1 240px; }
button.tc-nudge-btn,
button.tc-nudge-btn:hover {
    padding: 0; border: 0;
    background: transparent;
    color: #f0cf6a;
    font-size: 13px; font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}
.tc-reason-edited { white-space: pre-line; }
textarea.tc-reason-editor {
    display: block;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #3a3d31;
    background: #141610;
    color: var(--tc-ink);
    font: inherit;
    font-size: 15px;
    line-height: 1.55;
}
textarea.tc-reason-editor:focus { outline: none; border-color: var(--tc-accent-line); }
.tc-reason-editor-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.tc-reason-hint { flex: 1 1 240px; font-size: 12px; color: var(--tc-ink-3); }
button.tc-small-done {
    height: 30px; padding: 0 14px;
    border-radius: 999px; border: 0;
    background: var(--tc-accent);
    color: var(--tc-accent-ink);
    font-size: 13px; font-weight: 600;
    cursor: pointer;
}
button.tc-small-done:hover { background: var(--tc-accent); color: var(--tc-accent-ink); filter: brightness(1.08); }
button.tc-small-done:disabled { opacity: 0.6; cursor: wait; }
.tc-ai-reason {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px dashed #3a3d31;
}
.tc-ai-reason .tc-mono { font-size: 10px; margin-bottom: 4px; }
.tc-ai-reason p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--tc-ink-3); }
button.tc-restore-btn,
button.tc-restore-btn:hover {
    margin-top: 6px; padding: 0; border: 0;
    background: transparent;
    color: var(--tc-accent);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}
button.tc-restore-btn:disabled { opacity: 0.5; cursor: wait; }

/* Review mode banner */
.tc-review-banner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 14px 12px 18px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px dashed var(--tc-accent);
    background: #20230f;
}
.tc-review-banner-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tc-review-banner-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border-radius: 8px;
    background: var(--tc-accent);
    color: var(--tc-accent-ink);
    flex-shrink: 0;
}
.tc-review-banner-title { font-size: 15px; font-weight: 600; color: var(--tc-ink); }
.tc-review-banner-text  { font-size: 13px; color: var(--tc-ink-2); }
.tc-review-banner-actions { display: flex; align-items: center; gap: 14px; }
.tc-review-banner-actions .tc-mono { color: var(--tc-ink-2); }
button.tc-done-btn {
    height: 36px; padding: 0 18px;
    border-radius: 999px;
    border: 0;
    background: var(--tc-accent);
    color: var(--tc-accent-ink);
    font-size: 14px; font-weight: 600;
    cursor: pointer;
}
button.tc-done-btn:hover { background: var(--tc-accent); color: var(--tc-accent-ink); filter: brightness(1.08); }
button.tc-done-btn:disabled { opacity: 0.6; cursor: wait; }

/* Fix note editor (Review mode) */
.tc-note-editor {
    padding: 14px 16px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid #3a3d31;
    background: #1b1d16;
}
.tc-note-editor-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tc-note-editor-head label {
    display: flex; align-items: center; gap: 8px;
    margin: 0;
    font-size: 14px; font-weight: 600;
    color: var(--tc-ink);
}
.tc-note-editor-head label svg { color: var(--tc-accent); }
.tc-optional { font-weight: 400; color: var(--tc-ink-3); }
.tc-note-editor textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #3a3d31;
    background: #141610;
    color: var(--tc-ink);
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
}
.tc-note-editor textarea:focus { outline: none; border-color: var(--tc-accent-line); }
.tc-note-editor textarea::placeholder { color: var(--tc-ink-4); }
.tc-note-editor .ticket-error { margin-top: 10px; }
.tc-note-status { margin-top: 6px; font-size: 12px; color: var(--tc-ink-3); }

/* Fix note strip (read mode, only when a note exists) */
.tc-note-strip {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 10px 10px 16px;
    margin-bottom: 16px;
    border-radius: 10px;
    border: 1px dashed #3a3d31;
}
.tc-note-strip-icon { display: inline-flex; color: var(--tc-ink-3); flex-shrink: 0; }
.tc-note-strip .tc-mono { flex: none; }
.tc-note-strip-text {
    flex: 1 1 auto; min-width: 0;
    font-size: 14px; color: var(--tc-ink-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc-note-strip-by { flex: none; font-size: 12px; color: var(--tc-ink-3); }
@media (max-width: 640px) { .tc-note-strip-by { display: none; } }

/* Review markers in the run's case list — same code as the detail page:
   lime = changed to Pass, orange = changed to Fail, split = both, hollow ring = only the reason was edited */
.h5-change-dot {
    display: inline-block;
    width: 8px; height: 8px;
    margin-left: 6px;
    border-radius: 50%;
    vertical-align: middle;
    flex-shrink: 0;
    cursor: help;
}
.h5-change-dot.to-pass { background: var(--tc-accent, #D7FF11); }
.h5-change-dot.to-fail { background: #ff8a3d; }
.h5-change-dot.to-both { background: linear-gradient(90deg, var(--tc-accent, #D7FF11) 50%, #ff8a3d 50%); }
.h5-change-dot.reason-only { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tc-accent, #D7FF11); }

/* Fix note: continues the "Level · Persona" meta line with a one-line preview; full note in the tooltip */
.h5-fixnote {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 36ch;
    font-size: 0.72em;
    line-height: 1.2;
    color: #d9ab4f;
    white-space: nowrap;
    cursor: help;
}
.h5-fixnote::before { content: "·"; color: #7a8070; margin-right: 1px; }
.h5-fixnote i { font-size: 0.85em; opacity: 0.9; }
.h5-fixnote-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.h5-fixnote:hover .h5-fixnote-text { text-decoration: underline dotted; text-underline-offset: 2px; }

/* Relevance reason tooltip on the Passed/Failed badge */
.h5-reason-hover {
    position: relative;
    display: inline-flex;
    cursor: help;
    outline: none;
}
.h5-reason-hover:focus-visible .h5-relevance { box-shadow: 0 0 0 2px rgba(198, 255, 61, 0.45); }
.h5-reason-tip {
    position: absolute;
    top: calc(100% + 8px);
    left: -8px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: max-content;
    max-width: min(380px, 70vw);
    padding: 10px 12px;
    border-radius: 6px;
    background: #1d2219;
    border: 1px solid #343b2c;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    cursor: default;
    text-align: left;
    animation: h5-reason-tip-in 120ms ease-out;
}
.h5-reason-tip::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 20px;
    width: 8px;
    height: 8px;
    background: #1d2219;
    border-left: 1px solid #343b2c;
    border-top: 1px solid #343b2c;
    transform: rotate(45deg);
}
.h5-reason-tip-head {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8d9480;
    white-space: nowrap;
}
.h5-reason-tip-edited { text-transform: none; letter-spacing: 0; font-weight: 500; color: #c6ff3d; }
.h5-reason-tip-text {
    font-size: 0.78rem;
    line-height: 1.45;
    color: #dfe3d3;
    white-space: normal;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.h5-reason-tip-text.is-empty { color: #7a8070; font-style: italic; }
@keyframes h5-reason-tip-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
