:root {
    --palazzo-bordeaux: #401216;
    --palazzo-ivory: #FEEEDA;
    --palazzo-blue: #B7C1CF;
    --palazzo-sand: #D8CBB3;
    --palazzo-graphite: #131313;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/CormorantGaramond-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/CormorantGaramond-SemiBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/CormorantGaramond-LightItalic.ttf") format("truetype");
    font-style: italic;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Evolventa";
    src: url("../fonts/Evolventa-Regular.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Evolventa";
    src: url("../fonts/Evolventa-Bold.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

html,
body {
    min-height: 100%;
}


body {
    margin: 0;

    background: var(--palazzo-ivory);

    color: var(--palazzo-graphite);

    font-family: "Evolventa", sans-serif;
}


/* LOGIN LAYOUT */

.login-page {
    min-height: 100vh;
}


.login-layout {
    min-height: 100vh;
}


/* VISUAL SIDE */

.login-visual {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: flex-end;

    overflow: hidden;

    background: url("../images/background.jpg") center / cover no-repeat;
}


.login-visual-overlay {
    position: absolute;

    inset: 0;

    background: linear-gradient(
            180deg,
            rgba(64, 18, 22, .08) 0%,
            rgba(64, 18, 22, .22) 45%,
            rgba(64, 18, 22, .88) 100%
    );
}


.login-visual-content {
    position: relative;

    z-index: 1;

    padding: 4rem 4.5rem;

    color: var(--palazzo-ivory);
}


.login-visual-line {
    width: 56px;
    height: 1px;

    margin-bottom: 1.5rem;

    background: var(--palazzo-ivory);
}


.login-visual-kicker {
    margin: 0 0 1rem;

    font-size: .7rem;

    font-weight: 700;

    letter-spacing: .16em;

    text-transform: uppercase;
}


.login-visual-title {
    margin: 0;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(4rem, 7vw, 7rem);
    font-weight: 500;

    line-height: .85;

    text-transform: uppercase;
}


.login-visual-description {
    margin-top: 1.5rem;

    font-family: "Cormorant Garamond", serif;

    font-size: 1.35rem;
    font-style: italic;
    font-weight: 300;

    line-height: 1.3;
}


/* FORM SIDE */

.login-form-side {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--palazzo-ivory);
}


.login-form-wrapper {
    width: 100%;
    max-width: 460px;

    padding: 4rem 3.5rem;
}


/* LOGO */

.login-logo-wrapper {
    display: flex;
    justify-content: center;

    /*
        У логотипа по гайдбуку должно быть
        нормальное охранное поле.
    */
    padding: 1.2rem 2rem 3.5rem;
}


.login-logo {
    display: block;

    width: 185px;
    height: auto;
}


/* HEAD */

.login-heading {
    margin-bottom: 2.75rem;
}


.login-eyebrow {
    margin-bottom: .7rem;

    color: var(--palazzo-bordeaux);

    font-size: .68rem;
    font-weight: 700;

    letter-spacing: .16em;

    text-transform: uppercase;
}


.login-title {
    margin: 0;

    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;

    font-size: 4rem;
    font-weight: 500;

    line-height: .9;

    text-transform: uppercase;
}


.login-description {
    max-width: 360px;

    margin-top: 1.25rem;

    color: var(--palazzo-graphite);

    font-size: .85rem;

    line-height: 1.7;

    opacity: .72;
}


/* FORM */

.login-form .field {
    margin-bottom: 1.5rem;
}


.palazzo-label {
    margin-bottom: .65rem !important;

    color: var(--palazzo-bordeaux);

    font-family: "Evolventa", sans-serif;

    font-size: .67rem;
    font-weight: 700;

    letter-spacing: .16em;

    text-transform: uppercase;
}


.palazzo-input {
    height: 54px;

    padding: 0 1rem;

    border: 1px solid var(--palazzo-sand);
    border-radius: 0;

    background: transparent;

    color: var(--palazzo-graphite);

    font-family: "Evolventa", sans-serif;

    font-size: .9rem;

    box-shadow: none;

    transition: border-color .2s ease,
    background .2s ease;
}


.palazzo-input:hover {
    border-color: var(--palazzo-bordeaux);
}


.palazzo-input:focus {
    border-color: var(--palazzo-bordeaux);

    background: rgba(255, 255, 255, .25);

    box-shadow: none;
}


.palazzo-input::placeholder {
    color: rgba(19, 19, 19, .38);
}


/* BUTTON */

.login-submit {
    margin-top: 2rem;
}


.button.is-palazzo {
    height: 54px;

    border: 1px solid var(--palazzo-bordeaux);
    border-radius: 0;

    background: var(--palazzo-bordeaux);

    color: var(--palazzo-ivory);

    font-family: "Evolventa", sans-serif;

    font-size: .72rem;
    font-weight: 700;

    letter-spacing: .16em;

    text-transform: uppercase;

    transition: background .2s ease,
    color .2s ease;
}


.button.is-palazzo:hover {
    background: transparent;

    color: var(--palazzo-bordeaux);
}


/* ERROR */

.login-error {
    margin-bottom: 1.75rem;

    padding: .9rem 1rem;

    border-left: 2px solid var(--palazzo-bordeaux);

    background: rgba(64, 18, 22, .05);

    color: var(--palazzo-bordeaux);

    font-size: .8rem;
}


/* FOOT */

.login-footer {
    margin-top: 4rem;

    display: flex;
    align-items: center;

    gap: .8rem;

    color: var(--palazzo-bordeaux);

    font-size: .58rem;
    font-weight: 700;

    letter-spacing: .16em;
}


.login-footer-mark {
    width: 32px;
    height: 1px;

    background: var(--palazzo-bordeaux);
}


/* MOBILE */

@media (max-width: 768px) {

    .login-visual {
        display: none;
    }


    .login-form-side {
        min-height: 100vh;
    }


    .login-form-wrapper {
        max-width: 500px;

        padding: 2rem 1.5rem;
    }


    .login-logo-wrapper {
        padding-bottom: 3rem;
    }


    .login-logo {
        width: 160px;
    }


    .login-title {
        font-size: 3.2rem;
    }


    .login-footer {
        margin-top: 3rem;
    }

}

/* =========================================================
   VOTING
   ========================================================= */


.voting-page {
    min-height: calc(100vh - 90px);

    background: var(--palazzo-ivory);
}


/* NAVBAR */

/* HEADER */

.voting-header {
    border-bottom: 1px solid rgba(64, 18, 22, .14);

    background: var(--palazzo-ivory);
}


.voting-header-inner {
    min-height: 88px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 2rem;
}


.voting-header-logo {
    display: block;

    flex-shrink: 0;
}


.voting-header-logo img {
    display: block;

    width: 145px;
    height: auto;
}


.voting-header-actions {
    display: flex;
    align-items: center;

    gap: 1.5rem;
}

.voting-user {
    color: var(--palazzo-bordeaux);

    font-family: "Evolventa", sans-serif;

    font-size: .72rem;
    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.palazzo-nav-button {
    height: 38px;

    padding: 0 1.3rem;

    border: 1px solid var(--palazzo-bordeaux);

    border-radius: 0;

    background: transparent;

    color: var(--palazzo-bordeaux);

    font-family: "Evolventa", sans-serif;

    font-size: .65rem;
    font-weight: 700;

    letter-spacing: .14em;

    text-transform: uppercase;
}


.palazzo-nav-button:hover {
    background: var(--palazzo-bordeaux);

    color: var(--palazzo-ivory);
}


/* HERO */

.voting-hero {
    padding-top: 5.5rem;
    padding-bottom: 2rem;
}


.voting-heading {
    max-width: 800px;
}


.voting-eyebrow {
    margin-bottom: 1rem;

    color: var(--palazzo-bordeaux);

    font-family: "Evolventa", sans-serif;

    font-size: .68rem;
    font-weight: 700;

    letter-spacing: .16em;

    text-transform: uppercase;
}


.voting-title {
    margin: 0;

    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(4.5rem, 9vw, 8rem);
    font-weight: 500;

    line-height: .82;

    text-transform: uppercase;
}


.voting-description {
    max-width: 520px;

    margin-top: 1.8rem;

    color: var(--palazzo-graphite);

    font-family: "Evolventa", sans-serif;

    font-size: .9rem;

    line-height: 1.7;

    opacity: .7;
}


/* DIVIDER */

.voting-divider {
    position: relative;

    width: 100%;
    height: 20px;

    margin-top: 4rem;

    border-top: 1px solid rgba(64, 18, 22, .25);
}


.voting-divider-mark {
    position: absolute;

    top: -4px;
    left: 50%;

    width: 7px;
    height: 7px;

    transform: translateX(-50%) rotate(45deg);

    background: var(--palazzo-bordeaux);
}


/* VOTE STATUS */

.vote-status-section {
    padding-top: 1rem;
    padding-bottom: 2rem;
}


.vote-status {
    padding: 1.8rem 2rem;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 1px solid rgba(64, 18, 22, .22);

    background: rgba(216, 203, 179, .18);
}


.vote-status-label {
    margin-bottom: .5rem;

    color: var(--palazzo-bordeaux);

    font-size: .62rem;
    font-weight: 700;

    letter-spacing: .16em;
}


.vote-status-name {
    margin: 0;

    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;

    font-size: 2.3rem;
    font-weight: 600;

    line-height: 1;
}


.vote-status-title {
    margin-top: .45rem;

    font-size: .75rem;

    opacity: .6;
}


.vote-status-symbol {
    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;

    font-size: 3rem;

    line-height: 1;
}

/* =========================================================
   CANDIDATES
   ========================================================= */

.participants-section {
    padding-top: 1rem;
    padding-bottom: 7rem;
}

.candidate-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.candidate-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    grid-template-areas:
        "info action"
        "materials materials";
    column-gap: 3rem;
    row-gap: 2rem;

    padding: 2.5rem 2.7rem;

    border: 1px solid rgba(64, 18, 22, .24);
    background: rgba(255, 255, 255, .34);
    box-shadow: 0 10px 30px rgba(64, 18, 22, .035);

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.candidate-card:hover {
    border-color: rgba(64, 18, 22, .48);
    background: rgba(255, 255, 255, .48);
    box-shadow: 0 12px 34px rgba(64, 18, 22, .055);
}

.candidate-info {
    grid-area: info;
    min-width: 0;
}

.candidate-label {
    margin: 0 0 .8rem;

    color: var(--palazzo-bordeaux);

    font-family: "Evolventa", sans-serif;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;

    opacity: .55;
}

.candidate-name {
    margin: 0;

    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.6rem, 4vw, 3.8rem);
    font-weight: 600;
    line-height: .95;
}

.candidate-nomination {
    max-width: 900px;
    margin-top: 1.6rem;
}

.candidate-nomination-label {
    display: block;
    margin-bottom: .45rem;

    color: var(--palazzo-bordeaux);

    font-family: "Evolventa", sans-serif;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;

    opacity: .45;
}

.candidate-nomination-title {
    margin: 0;

    color: var(--palazzo-graphite);

    font-family: "Evolventa", sans-serif;
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.65;

    overflow-wrap: anywhere;
}

.candidate-action {
    grid-area: action;

    display: flex;
    align-items: flex-end;
    justify-content: flex-end;

    align-self: stretch;
}

.candidate-vote-button {
    width: 180px;
    height: 50px;

    border: 1px solid var(--palazzo-bordeaux);
    border-radius: 0;

    background: var(--palazzo-bordeaux);
    color: var(--palazzo-ivory);

    font-family: "Evolventa", sans-serif;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;

    transition:
        background .2s ease,
        color .2s ease;
}

.candidate-vote-button:hover {
    background: transparent;
    color: var(--palazzo-bordeaux);
}

.candidate-materials {
    grid-area: materials;

    padding-top: 1.5rem;

    border-top: 1px solid rgba(64, 18, 22, .14);
}

.candidate-materials-label {
    margin: 0 0 .9rem;

    color: var(--palazzo-bordeaux);

    font-family: "Evolventa", sans-serif;
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;

    opacity: .5;
}

.candidate-video-list {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.candidate-video {
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1.25rem;

    padding: .8rem 1rem;

    border-left: 2px solid var(--palazzo-sand);
    background: rgba(216, 203, 179, .10);

    color: var(--palazzo-graphite);
    text-decoration: none;

    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease;
}

.candidate-video:hover {
    border-left-color: var(--palazzo-bordeaux);
    background: rgba(216, 203, 179, .22);
    color: var(--palazzo-bordeaux);
}

.candidate-video-title {
    min-width: 0;

    font-family: "Evolventa", sans-serif;
    font-size: .72rem;
    line-height: 1.5;

    overflow-wrap: anywhere;
}

.candidate-video-arrow {
    flex-shrink: 0;

    color: var(--palazzo-bordeaux);
    font-size: 1rem;
}

.candidate-card-selected {
    border-color: var(--palazzo-bordeaux);
    background: rgba(216, 203, 179, .16);
}

.candidate-selected {
    width: 180px;
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--palazzo-bordeaux);

    color: var(--palazzo-bordeaux);

    font-family: "Evolventa", sans-serif;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.candidate-card-disabled {
    opacity: .45;
}

.participants-empty {
    padding: 4rem 2rem;

    border: 1px solid rgba(64, 18, 22, .18);

    text-align: center;

    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
}

/* =========================================================
   MODAL
   ========================================================= */

.palazzo-modal {
    width: min(520px, calc(100% - 2rem));
}


.palazzo-modal-body {
    position: relative;

    padding: 3.5rem;

    background: var(--palazzo-ivory);
}


.palazzo-modal-close {
    position: absolute;

    top: 1.2rem;
    right: 1.4rem;

    padding: 0;

    border: none;

    background: none;

    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;

    font-size: 2rem;

    cursor: pointer;
}


.modal-eyebrow {
    margin-bottom: .9rem;

    color: var(--palazzo-bordeaux);

    font-size: .6rem;
    font-weight: 700;

    letter-spacing: .16em;
}


.modal-title-brand {
    margin: 0;

    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;

    font-size: 3.4rem;
    font-weight: 500;

    line-height: .9;

    text-transform: uppercase;
}


.modal-divider {
    width: 42px;
    height: 1px;

    margin: 2rem 0;

    background: var(--palazzo-bordeaux);
}


.modal-candidate-name {
    margin: 0;

    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;

    font-size: 2rem;
    font-weight: 600;
}


.modal-candidate-title {
    margin-top: .35rem;

    font-size: .72rem;

    letter-spacing: .08em;

    text-transform: uppercase;

    opacity: .55;
}


.modal-description {
    margin-top: 2rem;

    font-size: .78rem;

    line-height: 1.6;

    opacity: .65;
}


.modal-actions {
    margin-top: 2.5rem;

    display: flex;

    gap: .75rem;
}


.modal-actions form {
    flex: 1;
}


.modal-actions .button {
    width: 100%;

    height: 48px;

    border-radius: 0;

    font-size: .62rem;
    font-weight: 700;

    letter-spacing: .12em;

    text-transform: uppercase;
}


.modal-cancel-button {
    flex: 1;

    border: 1px solid var(--palazzo-bordeaux);

    background: transparent;

    color: var(--palazzo-bordeaux);
}


.modal-confirm-button {
    border: 1px solid var(--palazzo-bordeaux);

    background: var(--palazzo-bordeaux);

    color: var(--palazzo-ivory);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    /*
     * HEADER
     */
    .voting-header-inner {
        min-height: 68px;

        padding-left: 1rem;
        padding-right: 1rem;

        gap: 1rem;
    }


    .voting-header-logo img {
        width: 105px;
    }


    .voting-user {
        display: none;
    }


    .voting-header-actions {
        gap: .5rem;
    }


    .palazzo-nav-button {
        height: 34px;

        padding-left: .9rem;
        padding-right: .9rem;

        font-size: .58rem;
    }


    /*
     * PAGE
     */
    .voting-page {
        min-height: calc(100svh - 68px);
    }


    /*
     * HERO
     */
    .voting-hero {
        padding: 3rem 1rem 1rem;
    }


    .voting-heading {
        max-width: 100%;
    }


    .voting-eyebrow {
        margin-bottom: .8rem;

        font-size: .58rem;

        letter-spacing: .14em;
    }


    .voting-title {
        font-size: clamp(3.2rem, 16vw, 4.5rem);

        line-height: .85;

        overflow-wrap: break-word;
    }


    .voting-description {
        max-width: 100%;

        margin-top: 1.4rem;

        font-size: .8rem;

        line-height: 1.6;
    }


    .voting-divider {
        margin-top: 2.5rem;
    }


    /*
     * VOTE STATUS
     */
    .vote-status-section {
        padding: .5rem 1rem 1rem;
    }


    .vote-status {
        padding: 1.3rem;

        align-items: flex-start;

        gap: 1rem;
    }


    .vote-status-name {
        font-size: 1.8rem;
    }


    .vote-status-symbol {
        font-size: 2rem;
    }


    /*
     * PARTICIPANTS
     */
    .participants-section {
        padding: .5rem 1rem 4rem;
    }

    .candidate-list {
        gap: 1rem;
    }

    .candidate-card {
        display: flex;
        flex-direction: column;

        gap: 0;

        padding: 1.5rem 1.2rem;
    }

    .candidate-card:hover {
        background: rgba(255, 255, 255, .34);
        box-shadow: 0 10px 30px rgba(64, 18, 22, .035);
    }

    .candidate-info {
        width: 100%;
    }

    .candidate-name {
        font-size: 2.4rem;
    }

    .candidate-nomination {
        margin-top: 1.2rem;
    }

    .candidate-nomination-title {
        font-size: .82rem;
        line-height: 1.6;
    }

    .candidate-materials {
        order: 2;

        width: 100%;

        margin-top: 1.5rem;
        padding-top: 1.3rem;
    }

    .candidate-video-list {
        gap: .6rem;
    }

    .candidate-video {
        width: 100%;
        min-height: 54px;

        padding: .85rem .9rem;

        gap: 1rem;
    }

    .candidate-video-title {
        font-size: .68rem;
        line-height: 1.5;
    }

    .candidate-action {
        order: 3;

        width: 100%;

        margin-top: 1.5rem;
    }

    .candidate-vote-button,
    .candidate-selected {
        width: 100%;
        min-height: 52px;
    }

    /*
     * MODAL
     */
    .palazzo-modal {
        width: calc(100% - 1.5rem);

        margin: 0;
    }


    .palazzo-modal-body {
        padding: 2.8rem 1.4rem 1.5rem;
    }


    .palazzo-modal-close {
        top: .8rem;
        right: 1rem;
    }


    .modal-title-brand {
        font-size: 2.7rem;
    }


    .modal-candidate-name {
        font-size: 1.8rem;
    }


    .modal-description {
        margin-top: 1.5rem;
    }


    .modal-actions {
        margin-top: 2rem;

        flex-direction: column-reverse;

        gap: .6rem;
    }


    .modal-actions form {
        width: 100%;
    }


    .modal-actions .button {
        width: 100%;

        min-height: 50px;


    }
}

@media (max-width: 400px) {

    .voting-header-logo img {
        width: 90px;
    }


    .palazzo-nav-button {
        padding-left: .7rem;
        padding-right: .7rem;
    }


    .voting-hero {
        padding-top: 2.5rem;
    }


    .voting-title {
        font-size: 3rem;
    }


}

/* =========================================================
   ANALYTICS
   ========================================================= */

.analytics-page {
    min-height: calc(100vh - 88px);

    background: var(--palazzo-ivory);
}


.analytics-hero {
    padding-top: 5rem;
    padding-bottom: 1rem;
}


.analytics-title {
    margin: 0;

    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 500;

    line-height: .85;

    text-transform: uppercase;
}


.analytics-description {
    margin-top: 1.5rem;

    font-size: .85rem;

    opacity: .65;
}


/* SUMMARY */

.analytics-summary {
    padding-top: 1rem;
    padding-bottom: 2rem;
}


.analytics-stats {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid rgba(64, 18, 22, .18);
    border-bottom: 1px solid rgba(64, 18, 22, .18);
}


.analytics-stat {
    padding: 1.7rem 1.5rem;

    display: flex;
    flex-direction: column;

    gap: .4rem;

    border-right: 1px solid rgba(64, 18, 22, .18);
}


.analytics-stat:last-child {
    border-right: none;
}


.analytics-stat-label {
    color: var(--palazzo-bordeaux);

    font-size: .58rem;
    font-weight: 700;

    letter-spacing: .12em;

    text-transform: uppercase;

    opacity: .55;
}


.analytics-stat-value {
    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;

    font-size: 2.8rem;
    font-weight: 500;

    line-height: 1;
}


/* SECTIONS */

.analytics-section {
    padding-top: 3rem;
    padding-bottom: 4rem;
}


.analytics-section-heading {
    margin-bottom: 2rem;

    display: flex;
    justify-content: space-between;
}


.analytics-section-kicker {
    margin-bottom: .5rem;

    color: var(--palazzo-bordeaux);

    font-size: .58rem;
    font-weight: 700;

    letter-spacing: .16em;

    opacity: .55;
}


.analytics-section-title {
    margin: 0;

    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;

    font-size: 3rem;
    font-weight: 500;
}


/* LEADER */

.analytics-leaders {
    display: flex;
    flex-direction: column;

    gap: 1rem;

    margin-bottom: 2rem;
}


.analytics-leader {
    padding: 2rem;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 2rem;

    background: var(--palazzo-bordeaux);

    color: var(--palazzo-ivory);
}


.analytics-leader-label {
    display: block;

    margin-bottom: .5rem;

    font-size: .55rem;
    font-weight: 700;

    letter-spacing: .16em;

    text-transform: uppercase;

    opacity: .65;
}


.analytics-leader-name {
    margin: 0;

    color: var(--palazzo-ivory);

    font-family: "Cormorant Garamond", serif;

    font-size: 2.5rem;
    font-weight: 500;
}


.analytics-leader-title {
    margin-top: .4rem;

    font-size: .72rem;

    opacity: .7;
}


.analytics-leader-votes {
    text-align: right;
}


.analytics-leader-votes strong {
    display: block;

    font-family: "Cormorant Garamond", serif;

    font-size: 3rem;
    font-weight: 500;

    line-height: 1;
}


.analytics-leader-votes span {
    font-size: .6rem;

    letter-spacing: .12em;

    text-transform: uppercase;

    opacity: .65;
}


/* RANKING */

.analytics-ranking {
    border-top: 1px solid rgba(64, 18, 22, .18);
}


.analytics-ranking-row {
    min-height: 82px;

    display: grid;

    grid-template-columns:
        minmax(240px, 1fr)
        minmax(200px, 2fr)
        50px;

    gap: 2rem;

    align-items: center;

    border-bottom: 1px solid rgba(64, 18, 22, .18);
}


.analytics-ranking-person {
    display: flex;
    flex-direction: column;

    gap: .25rem;
}


.analytics-ranking-person strong {
    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;

    font-size: 1.4rem;
}


.analytics-ranking-person span {
    font-size: .65rem;

    opacity: .55;
}


.analytics-ranking-bar {
    height: 5px;

    overflow: hidden;

    background: rgba(64, 18, 22, .10);
}


.analytics-ranking-fill {
    height: 100%;

    background: var(--palazzo-bordeaux);
}


.analytics-ranking-value {
    text-align: right;

    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;

    font-size: 1.5rem;
}


/* USERS */

.analytics-users {
    display: flex;
    flex-direction: column;

    gap: 1rem;
}


.analytics-user {
    padding: 2rem;

    border: 1px solid rgba(64, 18, 22, .18);

    background: rgba(255, 255, 255, .18);
}


.analytics-user-absent {
    border-left: 3px solid rgba(19, 19, 19, .4);
}


.analytics-user-pending {
    border-left: 3px solid var(--palazzo-sand);
}


.analytics-user-voted {
    border-left: 3px solid var(--palazzo-bordeaux);
}


.analytics-user-main {
    display: flex;
    justify-content: space-between;

    gap: 3rem;
}


.analytics-status {
    display: inline-block;

    margin-bottom: .6rem;

    font-size: .55rem;
    font-weight: 700;

    letter-spacing: .14em;

    text-transform: uppercase;
}


.analytics-status-voted {
    color: var(--palazzo-bordeaux);
}


.analytics-status-pending {
    color: #8a6735;
}


.analytics-status-absent {
    color: rgba(19, 19, 19, .55);
}


.analytics-user-name {
    margin: 0;

    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;

    font-size: 2rem;
    font-weight: 600;
}


.analytics-user-login {
    font-size: .65rem;

    opacity: .45;
}


.analytics-choice {
    max-width: 360px;

    display: flex;
    flex-direction: column;

    text-align: right;
}


.analytics-choice > span {
    margin-bottom: .3rem;

    font-size: .55rem;
    font-weight: 700;

    letter-spacing: .12em;

    text-transform: uppercase;

    opacity: .45;
}


.analytics-choice strong {
    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;

    font-size: 1.5rem;
}


.analytics-choice small {
    margin-top: .25rem;

    font-size: .62rem;

    opacity: .55;
}


/* METRICS */

.analytics-user-metrics {
    margin-top: 1.5rem;

    padding-top: 1.3rem;

    display: flex;
    flex-wrap: wrap;

    gap: 2.5rem;

    border-top: 1px solid rgba(64, 18, 22, .12);
}


.analytics-user-metric {
    display: flex;
    flex-direction: column;

    gap: .3rem;
}


.analytics-user-metric span {
    font-size: .55rem;

    letter-spacing: .08em;

    text-transform: uppercase;

    opacity: .45;
}


.analytics-user-metric strong {
    color: var(--palazzo-bordeaux);

    font-size: .8rem;
}


/* LINKS */

.analytics-links {
    margin-top: 1.5rem;
}


.analytics-links summary {
    color: var(--palazzo-bordeaux);

    font-size: .65rem;
    font-weight: 700;

    cursor: pointer;
}


.analytics-links-list {
    margin-top: 1rem;

    border-top: 1px solid rgba(64, 18, 22, .12);
}


.analytics-link-row {
    padding: .9rem 0;

    display: flex;
    justify-content: space-between;

    gap: 2rem;

    border-bottom: 1px solid rgba(64, 18, 22, .12);
}


.analytics-link-row > div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: .25rem;
}


.analytics-link-row strong {
    font-size: .7rem;
}


.analytics-link-row span {
    max-width: 650px;

    overflow: hidden;

    font-size: .58rem;

    text-overflow: ellipsis;

    white-space: nowrap;

    opacity: .45;
}


.analytics-link-row time {
    flex-shrink: 0;

    color: var(--palazzo-bordeaux);

    font-size: .65rem;
}


.analytics-no-links {
    margin-top: 1.3rem;

    font-size: .65rem;

    opacity: .45;
}


.analytics-empty {
    padding: 2rem;

    border: 1px solid rgba(64, 18, 22, .18);

    text-align: center;
}


/* MOBILE */

@media (max-width: 768px) {

    .analytics-hero {
        padding:
            3rem
            1rem
            1rem;
    }


    .analytics-title {
        font-size: 3.5rem;
    }


    .analytics-summary,
    .analytics-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }


    .analytics-stats {
        grid-template-columns: 1fr 1fr;
    }


    .analytics-stat {
        border-bottom:
            1px solid rgba(64, 18, 22, .18);
    }


    .analytics-stat:nth-child(2n) {
        border-right: none;
    }


    .analytics-stat-value {
        font-size: 2.2rem;
    }


    .analytics-ranking-row {
        grid-template-columns:
            1fr
            45px;

        gap: .8rem;

        padding: 1rem 0;
    }


    .analytics-ranking-bar {
        grid-column: 1 / -1;

        grid-row: 2;
    }


    .analytics-user {
        padding: 1.4rem 1.2rem;
    }


    .analytics-user-main {
        flex-direction: column;

        gap: 1.4rem;
    }


    .analytics-choice {
        text-align: left;
    }


    .analytics-user-metrics {
        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 1rem;
    }


    .analytics-link-row span {
        max-width: 220px;
    }


    .analytics-leader {
        padding: 1.5rem;

        align-items: flex-end;
    }


    .analytics-leader-name {
        font-size: 2rem;
    }


    .analytics-leader-votes strong {
        font-size: 2.3rem;
    }

}
/* =========================================================
   ANALYTICS DELETE VOTE
   ========================================================= */

.analytics-delete-vote {
    margin-top: .8rem;
    padding: 0;

    align-self: flex-end;

    border: none;
    border-bottom: 1px solid rgba(64, 18, 22, .35);

    background: transparent;

    color: var(--palazzo-bordeaux);

    font-family: "Evolventa", sans-serif;

    font-size: .58rem;
    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;

    cursor: pointer;

    opacity: .65;

    transition:
        opacity .2s ease,
        border-color .2s ease;
}


.analytics-delete-vote:hover {
    opacity: 1;

    border-bottom-color: var(--palazzo-bordeaux);
}


.analytics-delete-description {
    margin: 0;

    font-size: .8rem;

    line-height: 1.7;
}


.analytics-delete-description strong {
    color: var(--palazzo-bordeaux);
}


.analytics-delete-confirm {
    border: 1px solid var(--palazzo-bordeaux);
    border-radius: 0;

    background: var(--palazzo-bordeaux);

    color: var(--palazzo-ivory);
}


.analytics-delete-confirm:hover {
    background: transparent;

    color: var(--palazzo-bordeaux);
}


@media (max-width: 768px) {

    .analytics-delete-vote {
        align-self: flex-start;
    }

}
/* =========================================================
   FINISHED
   ========================================================= */

.finished-page {
    min-height: calc(100vh - 88px);

    background: var(--palazzo-ivory);
}


.finished-hero {
    padding-top: 6rem;
    padding-bottom: 1rem;
}


.finished-heading {
    max-width: 900px;
}


.finished-eyebrow {
    margin-bottom: 1rem;

    color: var(--palazzo-bordeaux);

    font-family: "Evolventa", sans-serif;

    font-size: .62rem;
    font-weight: 700;

    letter-spacing: .16em;

    text-transform: uppercase;
}


.finished-title {
    margin: 0;

    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(4rem, 9vw, 8rem);
    font-weight: 500;

    line-height: .82;

    text-transform: uppercase;
}


.finished-description {
    margin-top: 2rem;

    color: var(--palazzo-graphite);

    font-size: .88rem;

    line-height: 1.7;

    opacity: .65;
}


/* RESULT */

.finished-result {
    padding-top: 2.5rem;
    padding-bottom: 7rem;
}


.finished-vote {
    padding: 3rem;

    border: 1px solid rgba(64, 18, 22, .22);

    background: rgba(216, 203, 179, .12);
}


.finished-vote-label {
    margin-bottom: 1.2rem;

    color: var(--palazzo-bordeaux);

    font-size: .58rem;
    font-weight: 700;

    letter-spacing: .16em;

    text-transform: uppercase;

    opacity: .55;
}


.finished-vote-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 3rem;
}


.finished-vote-name {
    margin: 0;

    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 600;

    line-height: .95;
}


.finished-vote-title {
    max-width: 800px;

    margin-top: 1.2rem;

    color: var(--palazzo-graphite);

    font-size: .85rem;

    line-height: 1.7;
}


.finished-vote-check {
    flex-shrink: 0;

    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--palazzo-bordeaux);

    border-radius: 50%;

    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;

    font-size: 2rem;
}


.finished-vote-meta {
    margin-top: 2.5rem;
    padding-top: 1.2rem;

    border-top: 1px solid rgba(64, 18, 22, .14);

    color: var(--palazzo-graphite);

    font-size: .62rem;

    letter-spacing: .08em;

    text-transform: uppercase;

    opacity: .55;
}


.finished-vote-meta time {
    margin-left: .4rem;

    color: var(--palazzo-bordeaux);

    font-weight: 700;
}


/* NO VOTE */

.finished-no-vote {
    padding: 3rem;

    border: 1px solid rgba(64, 18, 22, .18);
}


.finished-no-vote-label {
    margin-bottom: 1rem;

    color: var(--palazzo-bordeaux);

    font-size: .58rem;
    font-weight: 700;

    letter-spacing: .16em;

    opacity: .55;
}


.finished-no-vote-title {
    margin: 0;

    color: var(--palazzo-bordeaux);

    font-family: "Cormorant Garamond", serif;

    font-size: 3rem;
    font-weight: 500;
}


.finished-no-vote-description {
    max-width: 550px;

    margin-top: 1rem;

    font-size: .8rem;

    line-height: 1.7;

    opacity: .6;
}


/* MOBILE */

@media (max-width: 768px) {

    .finished-hero {
        padding:
            3.5rem
            1rem
            1rem;
    }


    .finished-title {
        font-size: clamp(3rem, 15vw, 4.2rem);
    }


    .finished-description {
        margin-top: 1.5rem;

        font-size: .8rem;
    }


    .finished-result {
        padding:
            1.5rem
            1rem
            4rem;
    }


    .finished-vote {
        padding:
            2rem
            1.4rem;
    }


    .finished-vote-content {
        align-items: flex-start;

        gap: 1rem;
    }


    .finished-vote-name {
        font-size: 2.5rem;
    }


    .finished-vote-title {
        font-size: .78rem;
    }


    .finished-vote-check {
        width: 48px;
        height: 48px;

        font-size: 1.5rem;
    }


    .finished-vote-meta {
        line-height: 1.7;
    }


    .finished-vote-meta time {
        display: block;

        margin-left: 0;
        margin-top: .3rem;
    }


    .finished-no-vote {
        padding:
            2rem
            1.4rem;
    }


    .finished-no-vote-title {
        font-size: 2.3rem;
    }

}