.gq-board__export-button {
    position: absolute;
    top: 18px;
    right: 68px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}

.gq-board__export-button:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.28);
}

.gq-board__export-button:disabled {
    opacity: .7;
    cursor: wait;
}

.gq-export-root {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.gq-board--export-mode {
    --header-gap: 28px;
    width: var(--gq-export-width, 1080px);
    min-height: var(--gq-export-min-height, 1350px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 24px 34px;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.gq-board--export-mode .gq-board__header {
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    gap: 18px;
    margin-bottom: 28px;
    align-items: center;
}

.gq-board--export-mode .gq-board__header--with-sponsor {
    grid-template-areas: "title sponsor";
    grid-template-columns:
        minmax(0, calc(62% - (var(--header-gap) / 2)))
        minmax(0, calc(38% - (var(--header-gap) / 2)));
    row-gap: 0;
    align-items: center;
}

.gq-board--export-mode .gq-board__title_wrap {
    gap: 6px;
    justify-content: center;
}

.gq-board--export-mode .gq-board__header--with-sponsor .gq-board__title_wrap {
    display: contents;
}

.gq-board--export-mode .gq-board__header--with-sponsor .gq-board__title_line {
    grid-area: title;
    align-self: center;
}

.gq-board--export-mode .gq-board__title {
    font-size: calc(var(--title-size) + 12px);
    line-height: 1;
}

.gq-board--export-mode .gq-board__subtitle {
    margin-left: 12px;
    font-size: calc(var(--subtitle-size) + 7px);
}

.gq-board--export-mode .gq-board__sponsor {
    justify-content: center;
    align-items: center;
}

.gq-board--export-mode .gq-board__title_logo {
    height: 210px;
}

.gq-board--export-mode .gq-board__table table {
    font-size: var(--gq-export-table-font-size, 16px);
}

.gq-board--export-mode .gq-board__table thead th {
    padding: 10px 8px;
    border-width: 0.5px;
}

.gq-board--export-mode .gq-board__table tbody td {
    padding: 9px 7px;
    border-width: 0.5px;
}

.gq-board--export-mode .gq-board__table {
    width: 100%;
    padding: 0;
    margin: 0;
}

.gq-board--export-mode .gq-board__grid {
    width: 100%;
    margin: 0 0 28px;
}

.gq-board--export-mode .gq-board__meta {
    display: none !important;
}

.gq-board--export-mode .gq-board__fit-text--team {
    font-size: 1em;
}

.gq-board--export-mode .gq-board__fit-text--blackbox {
    font-size: 0.9em;
}

.gq-board--export-mode .gq-board__legend {
    font-size: 15px !important;
    margin-top: 0;
    line-height: 1.35;
    letter-spacing: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.gq-board--export-mode .gq-board__logos {
    margin-top: 34px;
    gap: 12px;
    padding: 0;
}

.gq-board--export-mode .gq-board__logos .gq-board__logo {
    max-width: 205px;
    min-height: 92px;
}

.gq-board--export-mode .gq-board__logos .gq-board__logo img {
    max-width: 170px;
    max-height: 120px;
}

.gq-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gq-export-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(6px);
}

.gq-export-dialog-backdrop.is-visible {
    display: flex;
}

.gq-export-dialog {
    width: min(92vw, 360px);
    padding: 20px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(18, 5, 31, .96), rgba(31, 11, 52, .98));
    color: #fff;
    box-shadow: 0 22px 70px rgba(0,0,0,.45);
}

.gq-export-dialog__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.gq-export-dialog__text {
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.45;
}

.gq-export-dialog__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.gq-export-dialog__button {
    flex: 1 1 108px;
    min-width: 108px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.gq-export-dialog__button:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.26);
}

.gq-export-dialog__button--primary {
    background: #ffffff;
    color: #16071f;
    border-color: #ffffff;
}

.gq-export-dialog__button--primary:hover {
    background: #f0e7ff;
    border-color: #f0e7ff;
}

@media (max-width: 900px) {
    .gq-board__export-button {
        top: calc(10px + env(safe-area-inset-top, 0px));
        right: 56px;
        width: 32px;
        height: 32px;
        padding: 0;
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .gq-board__export-button {
        top: 9px;
        right: 48px;
        width: 30px;
        height: 30px;
        padding: 0;
        font-size: 11px;
    }
}
