.support-access-generator {
    width: min(880px, 100%);
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    gap: 17px;
    margin: 18px auto 24px;
    padding: 18px 20px;
    border: 1px solid rgba(126, 0, 245, .18);
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(139, 0, 255, .065), var(--surface));
    box-shadow: 0 10px 32px rgba(91, 0, 170, .045);
}

.support-access-generator-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: var(--brand);
}

.support-access-generator-copy h2 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 18px;
}

.support-access-generator-copy p {
    margin: 0;
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.55;
}

.support-security-note,
.feedback-not-support {
    width: fit-content;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 11px;
    padding: 9px 11px;
    border: 1px solid #f1cf83;
    border-radius: 10px;
    color: #805300;
    background: #fff8df;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.45;
    box-sizing: border-box;
}

.support-security-note i,
.feedback-not-support i {
    margin-top: 2px;
    color: #e48a00;
}

html[data-theme='dark'] .support-security-note,
html[data-theme='dark'] .feedback-not-support {
    border-color: rgba(246, 178, 55, .42);
    color: #f7d58a;
    background: rgba(123, 80, 5, .22);
    box-shadow: inset 0 0 0 1px rgba(255, 208, 111, .035);
}

html[data-theme='dark'] .support-security-note i,
html[data-theme='dark'] .feedback-not-support i {
    color: #ffb52e;
}

.support-access-generator button {
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--button);
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.support-access-generator button:disabled {
    cursor: not-allowed;
    opacity: .58;
    box-shadow: none;
}

.support-access-code {
    width: min(880px, 100%);
    margin: -8px auto 24px;
    padding: 20px;
    border: 1px solid #b8e4ca;
    border-radius: 16px;
    color: #174c2d;
    background: #f1fbf5;
    text-align: center;
}

.support-access-code span,
.support-access-code small {
    display: block;
}

.support-access-code strong {
    display: block;
    margin: 8px 0;
    font-size: clamp(30px, 5vw, 42px);
    letter-spacing: .18em;
}

.support-access-code small {
    font-size: 12px;
}

.support-access-code small span {
    display: inline;
    font-weight: 850;
}

.support-access-code-used {
    color: #5f5867;
    border-color: var(--border-2);
    background: var(--surface);
}

.support-access-error {
    width: min(880px, 100%);
    margin: -8px auto 24px;
    padding: 14px 17px;
    border: 1px solid #f2c4c4;
    border-radius: 13px;
    color: #932525;
    background: #fff4f4;
    font-size: 13px;
}

.support-access-active {
    width: min(880px, 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px auto 24px;
    padding: 14px 17px;
    border: 1px solid #b8e4ca;
    border-radius: 14px;
    color: #174c2d;
    background: #f1fbf5;
    font-size: 13px;
    font-weight: 750;
}

.support-access-banner {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 7px 16px;
    color: #fff;
    background: #251038;
    font-size: 12px;
}

.support-access-banner-message {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.support-access-banner-copy {
    display: inline;
}

.support-access-banner-copy-mobile {
    display: none;
}

.support-access-banner form {
    margin: 0;
}

.support-access-banner button {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .09);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

html body.mail-app.support-impersonating .topbar {
    top: 42px !important;
}

.support-impersonating .mail-shell,
.support-impersonating .settings-shell {
    padding-top: calc(var(--topbar-h) + 42px) !important;
}

.support-impersonating .main-nav {
    top: calc(var(--topbar-h) + 42px) !important;
}

.support-impersonating .mail-list-header,
.support-impersonating .reader-toolbar {
    top: calc(var(--topbar-h) + 42px) !important;
}

.support-impersonating .nav-backdrop {
    inset: calc(var(--topbar-h) + 42px) 0 0 !important;
}

@media (max-width: 700px) {
    .support-access-generator {
        grid-template-columns: 46px minmax(0, 1fr);
        padding: 16px;
    }

    .support-access-generator button {
        width: 100%;
    }

    .support-access-generator form {
        grid-column: 1 / -1;
    }

    .support-access-banner {
        height: 86px;
        min-height: 86px;
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
        padding: 7px 12px;
        box-sizing: border-box;
        text-align: center;
    }

    .support-access-banner-message {
        min-height: 30px;
        justify-content: center;
        gap: 7px;
        line-height: 1.25;
    }

    .support-access-banner-copy-desktop {
        display: none;
    }

    .support-access-banner-copy-mobile {
        display: inline;
    }

    .support-access-banner button {
        width: 100%;
        justify-content: center;
    }

    html body.mail-app.support-impersonating .topbar {
        top: 86px !important;
    }

    .support-impersonating .mail-shell,
    .support-impersonating .settings-shell {
        padding-top: calc(var(--topbar-h) + 86px) !important;
    }

    .support-impersonating .main-nav,
    .support-impersonating .mail-list-header,
    .support-impersonating .reader-toolbar {
        top: calc(var(--topbar-h) + 86px) !important;
    }

    .support-impersonating .nav-backdrop {
        inset: calc(var(--topbar-h) + 86px) 0 0 !important;
    }
}

/* Central de relatos */
.support-primary-grid {
    grid-template-columns: 1fr;
}

.support-primary-grid .support-card {
    min-height: 230px;
}

.support-page-alert,
.feedback-history {
    width: min(880px, 100%);
    margin-right: auto;
    margin-left: auto;
}

.support-page-alert {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 13px;
    font-size: 13px;
}

.support-page-alert-success {
    color: #17663d;
    border: 1px solid #bfe9d3;
    background: #f0fbf5;
}

.support-page-alert-error {
    color: #9e2424;
    border: 1px solid #ffd2d2;
    background: #fff5f5;
}

.support-feedback-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--button);
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.support-feedback-button:disabled {
    color: var(--text-3);
    background: var(--surface-2);
    cursor: not-allowed;
}

.feedback-history {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 12px 38px rgba(25, 20, 35, .035);
}

.feedback-history > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
}

.feedback-history h2 {
    margin: 5px 0 0;
    color: var(--text);
    font-size: 20px;
}

.feedback-history-list details + details {
    border-top: 1px solid var(--border);
}

.feedback-history-list summary {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 22px;
    cursor: pointer;
    list-style: none;
}

.feedback-history-list summary::-webkit-details-marker {
    display: none;
}

.feedback-history-list summary > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.feedback-history-list summary > div span {
    color: var(--brand);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.feedback-history-list summary strong {
    color: var(--text);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.feedback-history-date {
    display: flex;
    align-items: center;
    gap: 9px;
}

.feedback-history-date > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.feedback-history-date > span i {
    font-size: 8px;
    transition: transform .18s ease;
}

.feedback-history-list details[open] .feedback-history-date > span i {
    transform: rotate(180deg);
}

.feedback-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 10px;
    border-radius: 999px;
    color: #8a5700;
    background: #fff1c7;
    font-size: 10px;
    font-weight: 850;
}

.feedback-status.is-completed {
    color: #17663d;
    background: #e6f7ed;
}

.feedback-history-content {
    padding: 0 22px 20px;
    color: var(--text-2);
    font-size: 12px;
    line-height: 1.65;
}

.feedback-history-content > p {
    margin: 0 0 13px;
}

.feedback-history-content > small {
    color: var(--text-3);
}

.feedback-view-image {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    padding: 0 12px;
    border: 1px solid var(--border-2);
    border-radius: 9px;
    color: var(--brand);
    background: var(--surface);
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.feedback-admin-response {
    margin-top: 5px;
    padding: 14px 16px;
    border-left: 3px solid var(--brand);
    border-radius: 0 11px 11px 0;
    background: rgba(var(--brand-rgb), .06);
}

.feedback-admin-response span {
    color: var(--brand);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.feedback-admin-response p {
    margin: 6px 0 0;
    color: var(--text);
}

.feedback-form-modal[hidden],
.feedback-image-modal[hidden] {
    display: none;
}

.feedback-form-modal,
.feedback-image-modal {
    position: fixed;
    z-index: 170;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
}

.feedback-modal-backdrop,
.feedback-image-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(18, 14, 24, .52);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.feedback-form-modal > section,
.feedback-image-modal > section {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 22px 70px rgba(18, 12, 25, .25);
}

.feedback-form-modal > section {
    padding: 22px;
}

.feedback-form-modal header,
.feedback-image-modal header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.feedback-form-modal header {
    margin-bottom: 18px;
}

.feedback-form-modal h2,
.feedback-image-modal h2 {
    margin: 5px 0 0;
    color: var(--text);
    font-size: 21px;
}

.feedback-form-modal header > button,
.feedback-image-modal header > button {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 9px;
    color: var(--text-2);
    background: var(--surface-2);
    cursor: pointer;
}

.feedback-form-modal form,
.feedback-form-modal label {
    display: grid;
}

.feedback-form-modal form {
    gap: 13px;
}

.feedback-form-modal label {
    gap: 6px;
}

.feedback-form-modal label > span:first-child {
    color: var(--text);
    font-size: 11px;
    font-weight: 850;
}

.feedback-form-modal input[type='text'],
.feedback-form-modal select,
.feedback-form-modal textarea {
    width: 100%;
    border: 1px solid var(--border-2);
    border-radius: 10px;
    color: var(--text);
    background: var(--surface);
    font: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.feedback-form-modal input[type='text'],
.feedback-form-modal select {
    height: 44px;
    padding: 0 12px;
}

.feedback-form-modal textarea {
    min-height: 120px;
    padding: 11px 12px;
    resize: vertical;
}

.feedback-file-field input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.feedback-file-button {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed rgba(var(--brand-rgb), .38);
    border-radius: 10px;
    color: var(--brand) !important;
    background: rgba(var(--brand-rgb), .045);
    cursor: pointer;
}

.feedback-file-field.is-selected .feedback-file-button {
    color: #17663d !important;
    border-color: #8bd4ac;
    background: #eefaf3;
}

.feedback-file-selection {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 9px 8px 12px;
    border: 1px solid #ccebd9;
    border-radius: 9px;
    color: #17663d;
    background: #f5fcf8;
    box-sizing: border-box;
}

.feedback-file-selection[hidden] {
    display: none;
}

.feedback-file-selection strong {
    min-width: 0;
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.feedback-file-selection button {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #8b3a3a;
    background: #fff;
    cursor: pointer;
}

.feedback-form-modal form > button {
    min-height: 46px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--button);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

/* Histórico compacto integrado ao bloco Sobre a plataforma */
.support-about-copy .feedback-history {
    width: 100%;
    margin: 18px 0 4px;
    border-radius: 13px;
    box-shadow: none;
}

.support-about-card {
    display: block;
}

.support-about-copy .support-about-icon {
    margin-bottom: 20px;
}

.feedback-not-support {
    margin-top: 16px;
}

.feedback-history-toggle {
    min-height: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 14px;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text);
    list-style: none;
    cursor: pointer;
}

.feedback-history-toggle::-webkit-details-marker {
    display: none;
}

.feedback-history-toggle > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 850;
}

.feedback-history-toggle > small {
    color: var(--text-3);
    font-size: 10px;
}

.feedback-history-toggle > i {
    color: var(--text-3);
    font-size: 10px;
    transition: transform .18s ease;
}

.feedback-history[open] > .feedback-history-toggle {
    border-bottom: 1px solid var(--border);
}

.feedback-history[open] > .feedback-history-toggle > i {
    transform: rotate(180deg);
}

.feedback-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 13px;
    border-top: 1px solid var(--border);
}

.feedback-pagination a {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-2);
    border-radius: 8px;
    color: var(--text-2);
    background: var(--surface);
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
}

.feedback-pagination a.active {
    color: #fff;
    border-color: var(--brand);
    background: var(--brand);
}

.support-about-copy .feedback-history > header {
    padding: 14px 16px;
}

.support-about-copy .feedback-history h3 {
    margin: 3px 0 0;
    color: var(--text);
    font-size: 15px;
}

.feedback-status.is-planned {
    color: #5b3bb0;
    background: #eee8ff;
}

.feedback-status.is-pending {
    color: #9a4b00;
    background: #ffead1;
}

.feedback-status.is-not-planned {
    color: #8b3a3a;
    background: #fdeaea;
}

.feedback-status.is-implemented,
.feedback-status.is-completed {
    color: #17663d;
    background: #e6f7ed;
}

.feedback-update-timeline {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.feedback-admin-response {
    margin-top: 0;
}

.feedback-admin-response header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.feedback-admin-response time,
.feedback-admin-response small {
    color: var(--text-3);
    font-size: 9px;
}

@media (max-width: 700px) {
    .support-security-note {
        grid-column: 1 / -1;
    }

    .feedback-history-toggle {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .feedback-history-toggle > i {
        display: none;
    }

    .feedback-admin-response header {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .feedback-history-date {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

.feedback-image-modal > section {
    width: min(480px, 100%);
    padding: 14px;
}

.feedback-image-modal header {
    align-items: center;
    padding: 2px 2px 12px;
}

.feedback-image-modal h2 {
    margin: 0;
    font-size: 15px;
}

.feedback-image-modal img {
    width: 100%;
    max-height: min(42vh, 380px);
    display: block;
    border-radius: 11px;
    object-fit: contain;
    background: #f4f3f7;
}

.support-modal-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .feedback-image-modal {
        padding: 14px;
    }

    .feedback-image-modal > section {
        width: min(360px, 100%);
    }

    .feedback-image-modal img {
        max-height: 36vh;
    }

    .support-about-footer,
    .support-feedback-button {
        width: 100%;
    }

    .feedback-history > header,
    .feedback-history-list summary {
        padding-right: 16px;
        padding-left: 16px;
    }

    .feedback-history-content {
        padding-right: 16px;
        padding-left: 16px;
    }

    .feedback-form-modal {
        align-items: end;
        padding: 0;
    }

    .feedback-form-modal > section {
        width: 100%;
        max-height: 92vh;
        padding: 19px 16px;
        border-radius: 18px 18px 0 0;
    }
}
