/*****************************************************************************************************************/
/****************************************** BELLEROPHON VERIFICATION MAIN STYLE *********************************/
/***************************************************************************************************************/

:root{
    --ink: #16181d;
    --ink-soft: #52606d;
    --blue: rgb(33, 184, 245);
    --blue-dark: #0c8eb6;
    --panel: rgb(245, 245, 245);
    --red: #d93a3f;
    --red-soft: #fdecea;
    --font: "Poppins Regular", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-medium: "Poppins Medium", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-light: "Poppins Light", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html{
    font-size: 62.5%;
    font-family: var(--font);
    color: var(--ink);
}
body{
    width: 100%;
}
button{
    font: inherit;
    color: inherit;
    border: none;
    background: none;
    cursor: pointer;
}
.icon{
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}
.icon_sprite{
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
:focus-visible{
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}


/*************** HEADER *****************/
header{
    width: 100%;
    height: 5rem;
    display: flex;
    align-items: center;
    position: relative;
    font-size: 1.7rem;
    padding: 0 2vw;
    background: white;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, .1);
    z-index: 2;
}
#header_name{
    display: flex;
}
#header_name>p:nth-child(1){
    font-family: var(--font-medium);
}
#header_name>p:nth-child(2){
    font-family: var(--font-light);
    opacity: 0.7;
    margin-left: .7rem;
}
/* Right side of the header: "Main site" (back to gemlabanalysis.com), and "Single search" on the batch page */
.header_links{
    display: flex;
    align-items: center;
    gap: .8rem;
    position: absolute;
    top: 50%;
    right: 2vw;
    transform: translateY(-50%);
}
.header_link{
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 2rem;
    font-size: 1.35rem;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    transition: .2s;
}
.header_link .icon{
    font-size: 1.5rem;
}
.header_link:hover{
    background: var(--panel);
}
@media only screen and (max-width: 640px){
    .header_links{
        gap: .5rem;
        right: 12px;
    }
    .header_link{
        padding: .4rem .9rem;
        font-size: 1.2rem;
    }
}

/***************** MAIN ********************/
main{
    width: 100%;
    min-height: calc(100vh - 5rem);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: rgb(249,250,251);
    background: radial-gradient(circle, rgba(249,250,251,1) 53%, rgba(240,240,240,1) 100%);
    overflow: hidden;
    padding: 4vh 0 7vh 0;
    z-index: 1;
}
#verification_container{
    width: 60%;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: white;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
    border-radius: 1rem;
    padding: 2vh 2vw;
}
#verification_container_logo{
    width: 7rem;
    height: 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0%;
    background: white;
    border-radius: .5rem;
}
.corner_logo{
    width: 80%;
    height: 80%;
    fill: var(--ink);
}
.corner_check{
    width: 2rem;
    height: 2rem;
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
}
#verification_title{
    font-size: 2.5rem;
    margin:2vh 0 3vh 0;
}
#search_form{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
#verfification_inputs_container{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
}
.inputs_box{
    width: 30rem;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 1rem 0 0 0;
}
.input_icon{
    width: 3rem;
    height: 2.5rem;
    color: var(--ink);
}
.inputs_box>input{
    width: 100%;
    border-radius: .4rem;
    margin-left: 1rem;
    font-family: inherit;
    font-size: 1.6rem;
    padding: .7rem 1rem;
    background: var(--panel);
    border: 1px solid transparent;
    transition: border-color .2s, background .2s;
}
.inputs_box>input:focus{
    outline: none;
    border-color: var(--blue);
    background: white;
}
.inputs_box>input[aria-invalid="true"]{
    border-color: var(--red);
    background: var(--red-soft);
}
.santa_hat{
    width: 5rem;
    height: 5rem;
    object-fit: contain;
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%) rotate(30deg);

    display: none;
}
.field_error{
    width: 30rem;
    max-width: 100%;
    min-height: 1.8rem;
    padding: .3rem 0 0 4rem;
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--red);
}
.extra_message_text_for_weight{
    font-size: 1.2rem;
    margin-top: .4rem;
}
#search_report_button{
    width: 30rem;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    font-size: 1.7rem;
    background: var(--blue);
    border-radius: 3rem;
    color: white;
    font-family: var(--font-medium);
    transition: .2s;
}
#search_report_button .button_label{
    text-shadow: 1px 1px var(--blue-dark);
}
#search_report_button:hover{
    opacity: 0.8;
}
#search_report_button[aria-busy="true"]{
    opacity: .75;
    cursor: progress;
}
.button_spinner{
    display: none;
    width: 1.6rem;
    height: 1.6rem;
    border: 2px solid white;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: spinner .9s linear infinite;
}
[aria-busy="true"]>.button_spinner{
    display: inline-block;
}


/****************************** TOAST *************************/

#error_message_box{
    width: min(90%, 440px);
    display: flex;
    align-items: center;
    gap: .9rem;
    position: fixed;
    top: 2rem;
    left: 50%;
    background: var(--red-soft);
    border: 1px solid #e57373;
    color: #b3261e;
    border-radius: .6rem;
    padding: 1rem 1.2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -150%);
    transition: transform .35s ease, opacity .35s ease, visibility .35s;
}
#error_message_box.is_info{
    background: #e8f6fd;
    border-color: #7fcff0;
    color: #0b6a8c;
}
#error_message_box.error_message_visible{
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.toast_icon{
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    color: #e57373;
}
#error_message_box.is_info .toast_icon{
    color: var(--blue);
}
#error_message_text{
    flex: 1;
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.4;
}
#error_message_close{
    flex-shrink: 0;
    display: flex;
    font-size: 1.6rem;
    opacity: .6;
    transition: .2s;
}
#error_message_close:hover{
    opacity: 1;
}


/****************** MEDIAS CONTAINER ************/
#all_medias_container{
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 5rem 2rem 2rem 2rem;
    margin-top: 4vh;
    background: var(--panel);
    border-radius: .5rem;
}
#tiles_row{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.medias_box{
    width: 10vw;
    height: 10vw;
    min-width: 80px;
    min-height: 80px;
    max-width: 150px;
    max-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 1rem;
    border-radius: .4rem;
    padding: .5rem;
    color: var(--ink);
    text-decoration: none;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    overflow: hidden;
    pointer-events: none;
    transition: transform .2s, box-shadow .2s;
}
.medias_box[href]{
    pointer-events: all;
    cursor: pointer;
}
.medias_box[href]:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}
.tile_media{
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .35s ease;
}
.tile_icon{
    width: 45%;
    height: 45%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: .55;
    transition: opacity .25s;
}
.tile_play{
    width: 32%;
    height: 32%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .25s;
}
.tile_spinner{
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    position: absolute;
    border: 3px solid var(--blue);
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: spinner 1s linear infinite;
}
.tile_note{
    position: absolute;
    left: 0;
    right: 0;
    bottom: .6rem;
    padding: 0 .6rem;
    font-size: 1.1rem;
    line-height: 1.3;
    text-align: center;
    color: var(--ink-soft);
}
.medias_box[data-state="loading"] .tile_spinner{ display: block; }
.medias_box[data-state="loading"] .tile_icon{ opacity: .15; }
.medias_box[data-state="ready"] .tile_media{ opacity: 1; }
.medias_box[data-state="ready"] .tile_icon{ opacity: 0; }
.medias_box[data-state="ready"] .tile_play{ opacity: 1; }
.medias_box[data-state="icon"] .tile_icon{ opacity: .85; }
.medias_box[data-state="missing"] .tile_icon,
.medias_box[data-state="error"] .tile_icon{ opacity: .25; transform: translate(-50%, -70%); }

#download_zip_button{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .6rem;
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    border-radius: .5rem;
    z-index: 5;
    padding: .5rem 1rem;
    font-size: 1.4rem;
    background: var(--blue);
    color: white;
    transition: .2s;
}
#download_zip_button .icon{
    font-size: 1.8rem;
}
#download_zip_button .button_label{
    text-shadow: 1px 1px var(--blue-dark);
}
#download_zip_button:disabled{
    opacity: .45;
    cursor: default;
    box-shadow: none;
}
#download_zip_button:not(:disabled):hover{
    opacity: .85;
}
#download_zip_button[aria-busy="true"]{
    cursor: progress;
}
#download_zip_button[aria-busy="true"] .icon{
    animation: nudge 1s ease-in-out infinite;
}

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes nudge{
    0%, 100%{ transform: translateY(-2px); }
    50%{ transform: translateY(2px); }
}


/****************** EXTRA DOCUMENTS (appendix / privilege) ************/
#extra_docs_row{
    width: 100%;
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: .5rem;
}
#extra_docs_row.has_docs{
    display: flex;
}
.extra_doc_link{
    display: none;
    align-items: center;
    gap: .6rem;
    padding: .5rem 1.2rem;
    background: white;
    border-radius: .5rem;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    text-decoration: none;
    color: var(--ink);
    font-size: 1.4rem;
    transition: .2s;
}
.extra_doc_link .icon{
    font-size: 2rem;
    opacity: .8;
}
.extra_doc_link.doc_found{
    display: flex;
}
.extra_doc_link:hover{
    opacity: .8;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 1px 2px -1px, rgba(0, 0, 0, 0.3) 0px 1px 1px -1px;
}


/****************** VERIFY STAGE (search in progress / result) ************/
/* While it shows, it takes the place of the tiles (and of the download button) */
#all_medias_container.stage_open{
    padding-top: 2rem;
}
#all_medias_container.stage_open #tiles_row,
#all_medias_container.stage_open #extra_docs_row{
    display: none;
}
#all_medias_container.stage_open #download_zip_button{
    visibility: hidden;
}
#verify_stage{
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: .5rem 1rem 1rem;
}
#all_medias_container.stage_open #verify_stage{
    display: flex;
    animation: fadeIn .25s ease;
}
.stage_logo svg{
    width: min(34vw, 150px);
    height: auto;
    overflow: visible;
    margin-bottom: 1.4rem;
}
.stage_title{
    font-family: var(--font-medium);
    font-size: 1.7rem;
}
.stage_text{
    margin-top: .4rem;
    font-size: 1.35rem;
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 46rem;
}
.stage_text:empty{
    display: none;
}
.stage_list{
    margin-top: 1rem;
    padding: 0;
    list-style: none;
    font-size: 1.3rem;
    line-height: 1.5;
    text-align: left;
    color: var(--ink-soft);
}
.stage_list:empty{
    display: none;
}
.stage_list li{
    position: relative;
    padding-left: 1.6rem;
    margin: .3rem 0;
}
.stage_list li::before{
    content: "";
    position: absolute;
    left: .2rem;
    top: .75rem;
    width: .6rem;
    height: .6rem;
    background: var(--blue);
    transform: rotate(45deg);
}
.stage_actions{
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    margin-top: 1.4rem;
}
#verify_stage.is_failed .stage_actions{
    display: flex;
}
.stage_retry{
    display: none;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1.6rem;
    border-radius: 2rem;
    background: var(--blue);
    color: white;
    font-size: 1.4rem;
    font-family: var(--font-medium);
}
#verify_stage.can_retry .stage_retry{
    display: inline-flex;
}
.stage_retry:hover{
    opacity: .85;
}
.stage_support{
    font-size: 1.3rem;
    color: var(--blue-dark);
}

/* The logo while verifying: a light sweeps across the facets */
#verify_stage .lg_badge{
    display: none;
}
#verify_stage.is_scanning .lg_piece{
    animation: lgScan 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 55ms);
}
/* Verified: the facets settle and the check is drawn */
#verify_stage.is_verified .lg_piece{
    animation: lgSettle .45s ease both;
    animation-delay: calc(var(--i) * 14ms);
}
#verify_stage.is_verified .lg_badge_ok{
    display: inline;
    animation: badgePop .45s cubic-bezier(.2, .9, .3, 1.5) .25s both;
}
#verify_stage.is_verified .lg_badge_ok path{
    animation: lgDraw .35s ease-out .55s forwards;
}
/* Not verified: the facets go grey, a "!" shows, the logo shakes */
#verify_stage.is_failed .lg_piece{
    fill: #c3cad1;
    transition: fill .3s;
}
#verify_stage.is_failed .lg_badge_err{
    display: inline;
    animation: badgePop .4s cubic-bezier(.2, .9, .3, 1.5) both;
}
#verify_stage.is_failed .lg_badge_err circle{
    fill: var(--red);
}
#verify_stage.is_failed .lg_badge_err path{
    stroke-dashoffset: 0;
}
#verify_stage.is_failed .stage_logo{
    animation: shake .45s ease;
}
#verify_stage.is_waiting .lg_badge_err circle{
    fill: #f0a020;
}

@keyframes lgScan{
    0%, 55%, 100%{ fill: var(--ink); opacity: .3; }
    22%{ fill: var(--blue); opacity: 1; }
}
@keyframes lgSettle{
    from{ opacity: .3; }
    to{ opacity: 1; fill: var(--ink); }
}
@keyframes shake{
    0%, 100%{ transform: none; }
    20%{ transform: translateX(-7px); }
    40%{ transform: translateX(6px); }
    60%{ transform: translateX(-4px); }
    80%{ transform: translateX(2px); }
}
@keyframes fadeIn{
    from{ opacity: 0; }
    to{ opacity: 1; }
}



#date_text{
    position: absolute;
    bottom: 2%;
    left: 2%;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

#goto_batch_btn{
    position: absolute;
    top: 1.5%;
    right: 1%;
    font-size: 1.25rem;
    background: white;
    padding: .5rem 1rem;
    border-radius: .5rem;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    cursor: pointer;
    text-decoration: none;
    color: black;
}



#extra_message_text{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-top: 2rem;
}
#extra_message_text>p{
    margin-right: 1rem;
    font-size: 1.2rem;
}
#extra_message_text>a{
    text-decoration: none;
}

/******************************* SUCCESS ANIMATION ******************************/
#success_anime_box{
    width: 1rem;
    height: 1rem;
    position: absolute;
    top: 3rem;
    left: 10%;
    pointer-events: none;
    z-index: 5;
}
.success_anime_img{
    width: 1.7rem;
    height: 1.7rem;
    position: absolute;
    fill: var(--ink);
}



/* ****** CHRISTMAS ******** */
#christmas_three_box{
    width: 7rem;
    height: 7rem;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(2%, -100%);

    display: none;
}
#christmas_three_box>img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#christmas_bells_box{
    width: 5rem;
    height: 5rem;
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(40%, -40%) rotate(30deg);

    display: none;
}
#christmas_bells_box>img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}



/****************************************************************************************************/
/**************************************** CHRISTMAS ************************************************/
#christmas_icon_box01{
    width: 6rem;
    height: 6rem;
    position: absolute;
    top: 0;
    left: 1rem;

    display: none;
}
#christmas_icon_box01>img{
    width: 100%;
    height: 100%;
    object-fit: contain;

    display: none;
}






/********************************************************************************************************/
/************************************************ BATCH PROCESS ****************************************/

.header_badge{
    align-self: center;
    margin-left: 1rem;
    padding: .2rem .9rem;
    border-radius: 2rem;
    background: var(--blue);
    color: white;
    font-size: 1.2rem;
    font-family: var(--font-medium);
}
#batch_main{
    flex-direction: column;
    justify-content: flex-start;
    gap: 2.4rem;
    padding: 4vh 16px 8vh;
    overflow: visible;
}
.batch_card{
    width: min(100%, 860px);
    position: relative;
    padding: 3rem 3.2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
}
.batch_card[hidden]{
    display: none;
}
.card_logo{
    width: 7rem;
    height: 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
}
.batch_title{
    font-family: var(--font-medium);
    font-weight: normal;
    font-size: 2.2rem;
}
.batch_lead{
    max-width: 60rem;
    margin-top: .6rem;
    font-size: 1.45rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

/* The list */
.batch_input_wrap{
    position: relative;
    margin-top: 2rem;
}
#batch_datas_input{
    width: 100%;
    min-height: 18rem;
    resize: vertical;
    padding: 1.2rem 1.4rem;
    border: 1px solid #dfe3e8;
    border-radius: .8rem;
    background: #fbfbfc;
    font: 1.45rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--ink);
    transition: border-color .2s, background .2s;
}
#batch_datas_input:focus{
    outline: none;
    border-color: var(--blue);
    background: white;
}
.drop_hint{
    display: none;
    position: absolute;
    inset: 0;
    justify-content: center;
    align-items: center;
    border: 2px dashed var(--blue);
    border-radius: .8rem;
    background: rgba(33, 184, 245, .08);
    font-size: 1.6rem;
    color: var(--blue-dark);
    pointer-events: none;
}
.batch_input_wrap.is_dragging .drop_hint{
    display: flex;
}
.batch_tools{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem 2rem;
    margin-top: 1.2rem;
    font-size: 1.35rem;
}
.file_button{
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    position: relative;
    padding: .5rem 0;
    color: var(--blue-dark);
    cursor: pointer;
}
.file_button input{
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.file_button:focus-within{
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-radius: .4rem;
}
.file_button .icon{
    font-size: 1.8rem;
}
.batch_formats summary{
    padding: .5rem 0;
    color: var(--ink-soft);
    cursor: pointer;
}
.batch_formats ul{
    margin-top: .6rem;
    padding-left: 1.8rem;
    line-height: 1.8;
    color: var(--ink-soft);
}
.batch_formats code,
.preview_problems code{
    padding: .1rem .5rem;
    border-radius: .3rem;
    background: var(--panel);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.25rem;
    color: var(--ink);
}
#batch_preview{
    min-height: 2rem;
    margin-top: 1.4rem;
}
.preview_summary{
    font-family: var(--font-medium);
    font-size: 1.45rem;
    color: var(--ink);
}
.preview_summary.has_problems{
    color: #a15c00;
}
.preview_problems{
    margin-top: .6rem;
    list-style: none;
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--ink-soft);
}
.preview_problems b{
    font-family: var(--font-medium);
    font-weight: normal;
    color: var(--red);
}
#send_batch_button{
    width: min(100%, 30rem);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem auto 0;
    padding: 1rem 0;
    border-radius: 3rem;
    background: var(--blue);
    color: white;
    font-family: var(--font-medium);
    font-size: 1.7rem;
    transition: .2s;
}
#send_batch_button .button_label{
    text-shadow: 1px 1px var(--blue-dark);
}
#send_batch_button:disabled{
    opacity: .45;
    cursor: default;
}
#send_batch_button[aria-busy="true"]{
    opacity: .75;
    cursor: progress;
}
#send_batch_button:not(:disabled):hover{
    opacity: .85;
}

/* The results */
.results_head{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}
.results_counters{
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}
.chip{
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1.1rem;
    border-radius: 2rem;
    background: var(--panel);
    font-size: 1.3rem;
}
.chip b{
    font-family: var(--font-medium);
    font-weight: normal;
}
.chip .icon{
    font-size: 1.6rem;
}
.chip_ok .icon{ color: var(--blue); }
.chip_fail .icon{ color: var(--red); }
.chip_warn .icon{ color: #f0a020; }
.results_progress{
    margin-top: 1.6rem;
}
.progress_bar{
    height: .6rem;
    border-radius: 1rem;
    background: var(--panel);
    overflow: hidden;
}
#progress_fill{
    display: block;
    width: 0;
    height: 100%;
    border-radius: 1rem;
    background: var(--blue);
    transition: width .35s ease;
}
#text_user_msg{
    min-height: 1.9rem;
    margin-top: .8rem;
    font-size: 1.35rem;
    color: var(--ink-soft);
}
#text_user_msg.is_error{
    color: #a15c00;
}
.results_actions{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.4rem;
}
.action_primary,
.action_secondary{
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1.6rem;
    border-radius: 2rem;
    font-family: var(--font-medium);
    font-size: 1.4rem;
    transition: .2s;
}
.action_primary{
    background: var(--blue);
    color: white;
}
.action_primary .button_label{
    text-shadow: 1px 1px var(--blue-dark);
}
.action_secondary{
    border: 1px solid #d5dbe1;
    background: white;
    color: var(--ink);
}
.action_primary[hidden],
.action_secondary[hidden]{
    display: none;
}
.action_primary:disabled,
.action_secondary:disabled{
    opacity: .45;
    cursor: default;
}
.action_primary:not(:disabled):hover,
.action_secondary:not(:disabled):hover{
    opacity: .85;
}
.action_primary .icon,
.action_secondary .icon{
    font-size: 1.7rem;
}
.action_primary[aria-busy="true"] .icon{
    display: none;
}
.action_secondary[aria-busy="true"] .icon{
    animation: nudge 1s ease-in-out infinite;
}
.action_primary .button_spinner{
    width: 1.5rem;
    height: 1.5rem;
}
.results_hint{
    width: 100%;
    font-size: 1.2rem;
    color: var(--ink-soft);
}
.results_table{
    margin-top: 1.6rem;
    border: 1px solid #e6e9ed;
    border-radius: .8rem;
    overflow: hidden;
}
.results_row{
    display: grid;
    /* fixed action column: rows with and without a Download button line up */
    grid-template-columns: 3.2rem minmax(9rem, 1.1fr) minmax(7rem, .8fr) 2.4fr 12rem;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1.4rem;
    border-top: 1px solid #eef0f3;
    font-size: 1.4rem;
}
.results_header{
    padding-top: .7rem;
    padding-bottom: .7rem;
    border-top: none;
    background: var(--panel);
    font-size: 1.2rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.row_status{
    display: flex;
    justify-content: center;
}
.row_status .icon{
    font-size: 2rem;
}
.results_row[data-state="ok"] .row_status{ color: var(--blue); }
.results_row[data-state="not_found"] .row_status{ color: var(--red); }
.results_row[data-state="invalid_input"] .row_status,
.results_row[data-state="rate_limited"] .row_status,
.results_row[data-state="offline"] .row_status,
.results_row[data-state="timeout"] .row_status,
.results_row[data-state="server_error"] .row_status{ color: #f0a020; }
.results_row[data-state="pending"]{
    opacity: .55;
}
.row_reference{
    font-family: var(--font-medium);
    overflow-wrap: anywhere;
}
.row_weight{
    font-variant-numeric: tabular-nums;
}
.row_message{
    color: var(--ink-soft);
}
.results_row[data-state="ok"] .row_message{
    color: var(--ink);
}
.row_spinner{
    width: 1.6rem;
    height: 1.6rem;
    border: 2px solid var(--blue);
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: spinner .9s linear infinite;
}
.row_action{
    display: flex;
    justify-content: flex-end;
}
.row_download{
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 1.1rem;
    border-radius: 2rem;
    background: var(--blue);
    color: white;
    font-size: 1.3rem;
}
.row_download .icon{
    font-size: 1.5rem;
}
.row_download:hover{
    opacity: .85;
}
.batch_page #date_text{
    position: static;
    width: min(100%, 860px);
    margin: 0 auto;
    padding: 0;
}

@media (orientation: portrait){
    #batch_main{
        align-items: center;
        padding: 3vh 16px 6vh;
        background: rgb(249, 250, 251);
    }
}
@media only screen and (max-width: 640px){
    .batch_page #header_name>p:nth-child(2){
        display: none;
    }
    .batch_card{
        padding: 2.4rem 1.8rem;
        border-radius: .8rem;
    }
    .card_logo{
        display: none;
    }
    .results_header{
        display: none;
    }
    .results_row{
        grid-template-columns: 2.6rem 1fr auto;
        grid-template-areas: "status reference action" "status weight action" "status message message";
        row-gap: .2rem;
    }
    .row_status{ grid-area: status; align-self: start; padding-top: .2rem; }
    .row_reference{ grid-area: reference; }
    .row_weight{ grid-area: weight; color: var(--ink-soft); }
    .row_message{ grid-area: message; font-size: 1.25rem; }
    .row_action{ grid-area: action; }
}



/************************************************************************************/
/******************************** RESPONSIVE ***************************************/

@media only screen and (max-width: 800px) {

    #verification_container {
        width: 85%;
    }
    #goto_batch_btn{
        display: none;
    }

}


/* Portrait orientation */
@media (orientation: portrait) {
    main{
        flex-direction: column;
        background: white;
        padding: 2vh 0;
        align-items: flex-start;
        overflow-x: hidden;
    }
    #verification_container{
        width: 100%;
        min-width: 0;
        min-height: 90%;
        border-radius: initial;
        background: transparent;
        box-shadow: none;
        padding: 2vh 16px;
    }
    #verification_container_logo{
        display: none;
    }
    #all_medias_container {
        width: 100%;
        padding: 5rem 1rem 1.5rem 1rem;
    }
    .medias_box{
        width: 25vw;
        height: 25vw;
        min-width: 0;
        min-height: 0;
        margin: 1.5vw;
    }
    #goto_batch_btn{
        display: none;
    }
    #extra_message_text{
        padding: 0 16px;
        text-align: center;
    }
    #date_text{
        width: 100%;
        position: relative;
        padding-left: 1rem;
        padding-top: 4vh;
    }
}

@media (prefers-reduced-motion: reduce){
    *, *::before, *::after{
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
