:root {
    --bg: #f4f8fb;
    --bg-accent: #eef4ef;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --surface-border: rgba(34, 70, 93, 0.11);
    --ink: #143041;
    --ink-soft: #5c7484;
    --brand: #285673;
    --brand-strong: #18384d;
    --brand-soft: #adc4ce;
    --sand: #eee0c9;
    --success: #1f7a62;
    --shadow-lg: 0 28px 80px rgba(19, 49, 66, 0.12);
    --shadow-md: 0 16px 48px rgba(19, 49, 66, 0.1);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --content-width: min(1320px, calc(100vw - 32px));
}

html {
    scroll-behavior: smooth;
    background:
        radial-gradient(circle at top left, rgba(173, 196, 206, 0.72), transparent 30%),
        radial-gradient(circle at top right, rgba(238, 224, 201, 0.82), transparent 28%),
        linear-gradient(180deg, #f9fcfe 0%, #f3f8fb 44%, #eef4ef 100%);
    background-attachment: fixed;
}

body.theme-refresh {
    min-height: 100%;
    position: relative;
    overflow-x: hidden;
    color: var(--ink);
    font-family: "Montserrat", sans-serif;
    background: transparent;
}

body.theme-refresh::before,
body.theme-refresh::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
    animation: ambientFloat 16s ease-in-out infinite;
}

body.theme-refresh::before {
    top: -120px;
    left: -120px;
    background: rgba(173, 196, 206, 0.9);
}

body.theme-refresh::after {
    right: -140px;
    bottom: 120px;
    background: rgba(238, 224, 201, 0.95);
    animation-delay: -6s;
}

#body_top_bot,
.body_osn {
    position: relative;
    z-index: 1;
}

#body_bot {
    position: relative;
    z-index: 1;
}

#body_top {
    position: relative;
    z-index: 50;
    min-height: 110px;
}

.body_osn {
    width: var(--content-width);
    margin: 0 auto;
    padding-top: 14px;
    padding-bottom: 64px;
    z-index: 5;
}

.page-hero {
    width: 100%;
    margin: 6px 0 30px;
    padding: 38px 40px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: cardReveal 0.8s ease both;
}

.page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(24, 56, 77, 0.08);
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-hero__title {
    max-width: 840px;
    margin: 18px 0 14px;
    color: var(--brand-strong);
    font-size: clamp(30px, 4.4vw, 52px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.page-hero__text {
    max-width: 760px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.7;
}

.page-content-shell {
    width: 100%;
    position: relative;
    z-index: 200;
    overflow: visible;
}

.nav_new_out {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--content-width);
    height: auto;
    min-height: 78px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72));
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 50px rgba(19, 49, 66, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-brand {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: inherit;
}

.nav-brand__title {
    color: var(--brand-strong);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.nav-brand__subtitle {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
}

.nav_new_out .nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
}

.nav-home-link,
.nav-menu-toggle,
.nav-menu .nav-link {
    color: var(--brand-strong) !important;
    font-size: 14px;
    font-weight: 700;
}

.nav-home-link,
.nav-menu-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nav-home-link {
    background: rgba(24, 56, 77, 0.06);
}

.nav-menu-toggle {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
    color: #fff !important;
}

.nav-home-link:hover,
.nav-menu-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(19, 49, 66, 0.12);
}

.nav-item.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu-details summary {
    list-style: none;
}

.nav-menu-details summary::-webkit-details-marker {
    display: none;
}

.nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    z-index: 1200;
    min-width: 260px;
    margin-top: 0 !important;
    padding: 10px;
    border: 1px solid rgba(24, 56, 77, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
}

.nav-menu-details[open] .nav-menu {
    display: block !important;
}

.nav-menu-toggle {
    border: 0 !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu .nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
}

.nav-menu .nav-link:hover {
    background: rgba(24, 56, 77, 0.06);
}

.form {
    width: min(720px, 100%);
    display: grid;
    gap: 16px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.74));
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
    animation: cardReveal 0.85s ease both;
    overflow: visible;
}

.form .title {
    margin: 0;
    padding: 0;
    color: var(--brand-strong);
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.form .title::before,
.form .title::after {
    display: none;
}

.form label {
    display: grid;
    gap: 10px;
}

.form-field-top {
    align-items: start;
}

.form-field-top span {
    order: -1;
}

.form label span {
    position: static !important;
    color: var(--ink-soft) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
}

.form label .input,
.form input[type="text"],
.form input[type="password"],
.form input[type="number"],
.form input[type="date"],
.form select,
.form textarea {
    width: 100%;
    min-height: 56px;
    padding: 16px 18px !important;
    border: 1px solid rgba(34, 70, 93, 0.12) !important;
    border-radius: 18px !important;
    background: rgba(246, 250, 252, 0.98) !important;
    color: var(--ink) !important;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.form textarea {
    min-height: 180px;
    resize: vertical;
}

.form label .input:focus,
.form input:focus,
.form select:focus,
.form textarea:focus {
    border-color: rgba(40, 86, 115, 0.38) !important;
    box-shadow: 0 0 0 5px rgba(40, 86, 115, 0.08) !important;
    transform: translateY(-1px);
}

.custom-select {
    position: relative;
}

.custom-select--enhanced > select {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.custom-select__trigger {
    width: 100%;
    min-height: 56px;
    padding: 16px 52px 16px 18px;
    border: 1px solid rgba(34, 70, 93, 0.12);
    border-radius: 18px;
    background: rgba(246, 250, 252, 0.98);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.custom-select__trigger::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(24, 56, 77, 0.6);
    border-bottom: 2px solid rgba(24, 56, 77, 0.6);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.18s ease;
}

.custom-select--open .custom-select__trigger {
    border-color: rgba(40, 86, 115, 0.38);
    box-shadow: 0 0 0 5px rgba(40, 86, 115, 0.08);
    transform: translateY(-1px);
}

.custom-select--open .custom-select__trigger::after {
    transform: translateY(-20%) rotate(-135deg);
}

.custom-select__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 4000;
    display: none;
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(24, 56, 77, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(19, 49, 66, 0.14);
    backdrop-filter: blur(16px);
}

.custom-select__menu--portal {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    z-index: 99999;
    display: block !important;
}

.custom-select--dropup .custom-select__menu {
    top: auto;
    bottom: calc(100% + 10px);
    box-shadow: 0 -18px 42px rgba(19, 49, 66, 0.14);
}

.custom-select--open .custom-select__menu {
    display: block;
    animation: cardReveal 0.18s ease both;
}

.custom-select__option {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.custom-select__option:hover {
    background: rgba(24, 56, 77, 0.06);
    transform: translateX(2px);
}

.custom-select__option.is-selected {
    background: linear-gradient(135deg, rgba(173, 196, 206, 0.3), rgba(238, 224, 201, 0.4));
    color: var(--brand-strong);
}

.custom-select__option.is-placeholder {
    color: var(--ink-soft);
}

.form .submit,
.form button[type="submit"] {
    min-height: 56px;
    padding: 0 24px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 16px 32px rgba(24, 56, 77, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.form .submit:hover,
.form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(24, 56, 77, 0.2);
    opacity: 0.98;
}

.messages {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.messages li {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 239, 239, 0.95);
    border: 1px solid rgba(183, 64, 64, 0.14);
    color: #8b3131;
    font-size: 14px;
    line-height: 1.5;
}

.messages .success {
    background: rgba(231, 250, 241, 0.95);
    color: var(--success);
    border-color: rgba(31, 122, 98, 0.16);
}

.messages .warning {
    background: rgba(255, 247, 230, 0.95);
    color: #966000;
    border-color: rgba(150, 96, 0, 0.14);
}

.BD_table_div,
.BD_table_div_user {
    width: 100%;
    margin-top: 26px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.BD_table_div .BD_table_div_schools_row,
.BD_table_div_user .BD_table_div_schools_row {
    position: relative;
    margin-bottom: 10px;
    border-radius: 22px;
    border: 1px solid rgba(28, 61, 82, 0.08);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    animation: cardReveal 0.7s ease both;
}

.BD_table_div .BD_table_div_schools_row:hover,
.BD_table_div_user .BD_table_div_schools_row:hover {
    transform: translateY(-2px);
    border-color: rgba(40, 86, 115, 0.12);
    box-shadow: 0 16px 32px rgba(19, 49, 66, 0.09);
}

.BD_table_div .BD_table_div_schools_row:last-child,
.BD_table_div_user .BD_table_div_schools_row:last-child {
    margin-bottom: 0;
}

.BD_table_div .color_1,
.BD_table_div_user .color_1 {
    background: linear-gradient(135deg, rgba(24, 56, 77, 0.92), rgba(40, 86, 115, 0.88));
    color: #fff;
}

.BD_table_div .color_2,
.BD_table_div_user .color_2 {
    background: rgba(250, 252, 253, 0.96);
}

.BD_table_div .color_3,
.BD_table_div_user .color_3 {
    background: rgba(240, 246, 248, 0.96);
}

.BD_table_div .BD_table_div_schools_col,
.BD_table_div_user .BD_table_div_schools_col {
    padding: 18px 16px;
    color: inherit;
    line-height: 1.5;
}

.mob_hide {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.BD_table_div .col_4,
.BD_table_div_user .col_10,
.BD_table_div_user .col_9 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.BD_table_div_user .BD_table_div_schools_row .col_2 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.BD_table_div_user .BD_table_div_schools_row .col_10 {
    width: 150px;
    align-items: center;
    justify-content: center;
}

.table-action-link,
.table-id-link,
.table-mini-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--brand-strong);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease;
}

.table-action-link {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
    color: #fff;
}

.table-id-link,
.table-mini-link {
    background: rgba(24, 56, 77, 0.06);
}

.table-id-link {
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 15px;
    font-weight: 800;
}

.table-action-link:hover,
.table-id-link:hover,
.table-mini-link:hover,
.table-icon-link:hover {
    transform: translateY(-1px);
}

.table-action-stack {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: 100%;
}

.table-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(24, 56, 77, 0.08);
}

.img_index_otg_edit {
    width: 20px;
    height: 20px;
    opacity: 0.88;
}

.table-mini-link {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    text-align: center;
    line-height: 1.35;
}

footer {
    width: var(--content-width);
    margin: 0 auto 28px;
    padding: 26px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(24, 56, 77, 0.9), rgba(40, 86, 115, 0.84));
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    color: #f6fbfd;
}

footer .footer_left iframe {
    width: min(100%, 420px);
    border-radius: 22px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

footer .footer_right .footer_title {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}

footer .footer_right .footer_lead {
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    font-weight: 700;
}

footer .footer_right p,
footer .footer_right a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.7;
}

footer .footer_right a:hover {
    color: #fff;
}

.page-administruvannia .page-content-shell,
.page-kabinet-slukhacha .page-content-shell,
.page-template-studio .page-content-shell {
    width: 100%;
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ambientFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(18px, 24px, 0) scale(1.08);
    }
}

@media (max-width: 1100px) {
    .nav_new_out {
        align-items: stretch;
        flex-direction: column;
    }

    .nav_new_out .nav-links {
        width: 100%;
        justify-content: space-between;
    }

    .body_osn {
        padding-top: 18px;
    }

    footer {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 760px) {
    .body_osn {
        width: min(calc(100vw - 20px), 100%);
        padding-top: 14px;
        padding-bottom: 36px;
    }

    .page-hero {
        padding: 28px 22px;
        border-radius: 28px;
    }

    .page-hero__title {
        font-size: clamp(28px, 10vw, 40px);
    }

    .form {
        padding: 22px;
        border-radius: 24px;
    }

    .nav_new_out {
        top: 10px;
        width: calc(100vw - 20px);
        padding: 14px 14px 16px;
        border-radius: 24px;
        gap: 14px;
    }

    .nav-brand {
        width: 100%;
    }

    .nav-brand__title {
        font-size: 24px;
    }

    .nav-brand__subtitle {
        font-size: 12px;
        line-height: 1.45;
    }

    .nav_new_out .nav-links {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .nav-home-link,
    .nav-menu-toggle {
        width: 100%;
        justify-content: center;
        min-height: 46px;
        padding: 0 14px;
    }

    .nav-item.dropdown,
    .nav-menu-details {
        width: 100%;
        display: block;
    }

    .nav-menu {
        position: static;
        min-width: 100%;
        margin-top: 10px !important;
        border-radius: 18px;
    }

    .nav-menu .nav-link {
        text-align: center;
    }

    .BD_table_div,
    .BD_table_div_user {
        padding: 10px;
        border-radius: 22px;
    }

    .BD_table_div_user .BD_table_div_schools_row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 6px;
        border-radius: 20px;
    }

    .BD_table_div_user .BD_table_div_schools_col {
        width: 100% !important;
        display: block !important;
        padding: 12px 14px;
        text-align: left !important;
        border-bottom: 1px solid rgba(24, 56, 77, 0.08);
    }

    .BD_table_div_user .BD_table_div_schools_col:last-child {
        border-bottom: 0;
    }

    .BD_table_div_user .BD_table_div_schools_col::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        color: var(--ink-soft);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .BD_table_div_user .BD_table_div_schools_row .col_1,
    .BD_table_div_user .BD_table_div_schools_row .col_2 {
        display: inline-flex !important;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
    }

    .BD_table_div_user .BD_table_div_schools_row .col_1::before,
    .BD_table_div_user .BD_table_div_schools_row .col_2::before {
        margin-bottom: 0;
        min-width: 24px;
    }

    .BD_table_div_user .BD_table_div_schools_row .col_3 {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.5;
        padding-top: 16px;
    }

    .BD_table_div_user .BD_table_div_schools_row .col_5 {
        line-height: 1.6;
    }

    .BD_table_div_user .BD_table_div_schools_row .col_3::before {
        color: var(--brand);
    }

    .BD_table_div_user .BD_table_div_schools_row .col_9 {
        justify-content: flex-start !important;
    }

    .BD_table_div_user .BD_table_div_schools_row .col_10 {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .table-action-stack {
        justify-items: start;
    }

.table-mini-link {
        width: auto;
        min-width: 190px;
    }
}

.group-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 22px;
    padding: 24px 26px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72));
    box-shadow: var(--shadow-md);
}

.group-toolbar__eyebrow {
    margin: 0 0 8px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.group-toolbar__title {
    margin: 0 0 8px;
    color: var(--brand-strong);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.group-toolbar__text {
    max-width: 760px;
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.7;
}

.group-toolbar__action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(24, 56, 77, 0.1), rgba(40, 86, 115, 0.16));
    color: var(--brand-strong);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.group-toolbar__action:hover {
    transform: translateY(-1px);
    color: var(--brand-strong);
    box-shadow: 0 14px 28px rgba(19, 49, 66, 0.12);
}

.group-toolbar__action--print {
    background: linear-gradient(135deg, rgba(24, 56, 77, 0.14), rgba(19, 124, 140, 0.22));
}

.group-toolbar__action.is-disabled {
    pointer-events: none;
    opacity: 0.68;
    transform: none;
}

.group-toolbar__action img {
    width: 22px;
    height: 22px;
}

.group-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.group-pdf-loading {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.group-pdf-loading.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.group-pdf-loading__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(96, 173, 214, 0.28), transparent 28%),
        radial-gradient(circle at 80% 18%, rgba(28, 124, 140, 0.24), transparent 30%),
        rgba(8, 24, 36, 0.6);
    backdrop-filter: blur(14px);
}

.group-pdf-loading__card {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 32px 30px 28px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.64);
    background:
        radial-gradient(circle at top, rgba(110, 189, 225, 0.18), transparent 34%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 250, 0.94));
    box-shadow:
        0 30px 90px rgba(11, 35, 49, 0.26),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    text-align: center;
    overflow: hidden;
}

.group-pdf-loading__card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #2d7da2 0%, #56b8da 48%, #1f8b78 100%);
}

.group-pdf-loading__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(40, 86, 115, 0.08);
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.group-pdf-loading__icon {
    position: relative;
    width: 86px;
    height: 86px;
    margin: 0 auto 16px;
}

.group-pdf-loading__icon-sheet {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: linear-gradient(160deg, #ffffff 0%, #edf7fb 100%);
    box-shadow:
        0 18px 32px rgba(21, 64, 88, 0.16),
        0 0 0 1px rgba(41, 110, 146, 0.08) inset;
}

.group-pdf-loading__icon-sheet::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, rgba(84, 180, 215, 0.95), rgba(39, 124, 159, 0.95));
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    border-top-right-radius: 22px;
}

.group-pdf-loading__icon-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2d7da2, #1f8b78);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.group-pdf-loading__spinner {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 5px solid rgba(40, 86, 115, 0.12);
    border-top-color: #2d7da2;
    border-right-color: #56b8da;
    box-shadow: 0 0 0 8px rgba(86, 184, 218, 0.08);
    animation: group-pdf-spin 0.9s linear infinite;
}

.group-pdf-loading__title {
    margin: 0 0 8px;
    color: var(--brand-strong);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.group-pdf-loading__text {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 16px;
}

.group-pdf-loading__progress {
    position: relative;
    width: min(100%, 280px);
    height: 10px;
    margin: 20px auto 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(45, 125, 162, 0.12);
}

.group-pdf-loading__progress-bar {
    position: absolute;
    inset: 0 auto 0 -35%;
    width: 35%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2d7da2 0%, #56b8da 55%, #1f8b78 100%);
    animation: group-pdf-progress 1.4s ease-in-out infinite;
}

.group-pdf-loading__pulse {
    display: inline-flex;
    gap: 8px;
    margin-top: 18px;
}

.group-pdf-loading__pulse span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d7da2, #56b8da);
    animation: group-pdf-bounce 1.2s infinite ease-in-out;
}

.group-pdf-loading__pulse span:nth-child(2) {
    animation-delay: 0.15s;
}

.group-pdf-loading__pulse span:nth-child(3) {
    animation-delay: 0.3s;
}

body.group-pdf-loading-open {
    overflow: hidden;
}

@keyframes group-pdf-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes group-pdf-bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.45;
    }
    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

@keyframes group-pdf-progress {
    0% {
        left: -35%;
    }
    100% {
        left: 100%;
    }
}

.extra-category-studio {
    display: grid;
    gap: 22px;
}

.extra-category-studio__header,
.extra-category-studio__form {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.74));
    box-shadow: var(--shadow-lg);
}

.extra-category-studio__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.extra-category-studio__eyebrow {
    margin: 0 0 10px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.extra-category-studio__title {
    margin: 0;
    color: var(--brand-strong);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.15;
}

.extra-category-studio__meta {
    margin: 12px 0 0;
    color: var(--ink-soft);
    line-height: 1.7;
}

.extra-category-studio__back,
.extra-category-studio__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border: 0;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
}

.extra-category-studio__back {
    background: rgba(24, 56, 77, 0.08);
    color: var(--brand-strong);
}

.extra-category-studio__form {
    display: grid;
    gap: 14px;
}

.extra-category-studio__grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.25fr) minmax(280px, 1.3fr) minmax(320px, 1.45fr);
    gap: 18px;
    align-items: stretch;
}

.extra-category-studio__grid--head {
    padding: 0 8px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.extra-category-studio__row {
    padding: 18px;
    border: 1px solid rgba(20, 48, 65, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
}

.extra-category-studio__person-name {
    color: var(--brand-strong);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.45;
}

.extra-category-studio__person-id {
    margin-top: 6px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
}

.extra-category-studio__category {
    color: var(--ink);
    line-height: 1.65;
}

.extra-category-studio__editor {
    display: grid;
    gap: 10px;
}

.extra-category-studio__label {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.extra-category-studio__editor textarea {
    width: 100%;
    min-height: 94px;
    padding: 14px 16px;
    border: 1px solid rgba(24, 56, 77, 0.12);
    border-radius: 16px;
    resize: vertical;
    background: rgba(248, 251, 253, 0.96);
    color: var(--ink);
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.extra-category-studio__editor textarea:focus {
    outline: none;
    border-color: rgba(40, 86, 115, 0.42);
    box-shadow: 0 0 0 4px rgba(40, 86, 115, 0.12);
    background: #fff;
}

.extra-category-studio__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 8px;
}

.extra-category-studio__hint {
    color: var(--ink-soft);
    line-height: 1.7;
}

.extra-category-studio__submit {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(24, 56, 77, 0.2);
}

.extra-category-studio__empty {
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink-soft);
    text-align: center;
}

@media (max-width: 980px) {
    .group-toolbar,
    .extra-category-studio__header,
    .extra-category-studio__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .group-toolbar__action,
    .extra-category-studio__back,
    .extra-category-studio__submit {
        width: 100%;
    }

    .group-toolbar__actions {
        width: 100%;
    }

    .extra-category-studio__grid,
    .extra-category-studio__grid--head {
        grid-template-columns: 1fr;
    }

    .extra-category-studio__grid--head {
        display: none;
    }
}
