/*
    Correção segura para o fundo do SCDU público
    Quando .wkws não envolve a página inteira, o fundo não aparece.
    Aqui o fundo fica preso no body, atrás de tudo.
*/

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #e8eef6;
    background: #0b1220;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-color: #0b1220;
    background-image:
        radial-gradient(1200px 700px at 50% 45%, rgba(0,0,0,0.12), rgba(0,0,0,0.62)),
        linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.28)),
        url('/tools/m/assets/img/background.png');

    background-repeat: no-repeat;
    background-position: center;
    background-size: cover, cover, cover;
    filter: brightness(0.90) saturate(1.10);
}

.scdu-main {
    flex: 1 0 auto;
    display: block;
}

.scdu-footer {
    margin-top: auto;
}

.wkws {
    position: relative;
    min-height: 100vh;
}

.wkws::before {
    content: none;
}



.scdu-main {
    flex: 1 0 auto;
}

.scdu-footer {
    margin-top: auto;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
   
    color: #e8eef6;
    
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

.scdu-main {
    display: block;
}

.scdu-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.scdu-skip {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.scdu-skip:focus {
    position: fixed;
    left: 12px;
    top: 12px;
    width: auto;
    height: auto;
    padding: 10px 12px;
    background: rgba(17, 24, 39, 0.95);
    color: rgba(229, 231, 235, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    z-index: 10000;
    text-decoration: none;
}

.scdu-header {
    position: sticky;
    top: 0;
    z-index: 50;


    background: linear-gradient(1deg,  #558dbb, #091426);

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
    
    
    
    
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: saturate(140%) blur(10px);
}

.scdu-header__row {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.scdu-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: rgba(229, 231, 235, 0.96);
    text-decoration: none;
}

.scdu-brand__logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
    flex: 0 0 auto;
}

.scdu-brand__logo--fallback {
    display: inline-block;
    background: linear-gradient(135deg, rgba(85, 141, 187, .85), rgba(46, 46, 46, .65));
}

.scdu-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.scdu-brand__title {
    font-size: 18px;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scdu-brand__sub {
    font-size: 12px;
    color: rgba(156, 163, 175, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scdu-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.scdu-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(229, 231, 235, 0.96);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.scdu-nav__link:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.scdu-nav__link.is-active {
    border-color: rgba(85, 141, 187, 0.40);
    background: rgba(85, 141, 187, 0.10);
}

.scdu-header__burger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    padding: 10px;
}

.scdu-header__burger span {
    display: block;
    height: 2px;
    background: rgba(229, 231, 235, 0.92);
    border-radius: 2px;
}

.scdu-header__burger span + span {
    margin-top: 6px;
}

.scdu-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 15, 26, 0.82);
    padding: 14px 0;
    color: rgba(156, 163, 175, 0.92);
}

.scdu-footer__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.scdu-footer__left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scdu-footer__copy {
    font-size: 12px;
    letter-spacing: .2px;
    color: rgba(156, 163, 175, 0.92);
}

.scdu-footer__address {
    font-size: 11px;
    color: rgba(107, 114, 128, 0.92);
}

.scdu-footer__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.scdu-footer__nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.scdu-footer__link,
.scdu-footer__button {
    font-size: 12px;
    color: rgba(229, 231, 235, 0.92);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 8px;
    border-radius: 10px;
    background: transparent;
}

.scdu-footer__button {
    cursor: pointer;
}

.scdu-footer__link:hover,
.scdu-footer__button:hover {
    background: rgba(255, 255, 255, 0.04);
}

.scdu-cookie,
.scdu-cookie * {
    box-sizing: border-box;
}

.scdu-cookie[hidden] {
    display: none !important;
}

.scdu-cookie {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 18px 14px;
}

.scdu-cookie__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes scduCookieIn {
    from { transform: translateY(18px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.scdu-cookie__dialog {
    position: relative;
    width: min(880px, 100%);
    max-height: calc(100vh - 36px);
    background: #D8E8F5;
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.10);
    animation: scduCookieIn 260ms ease-out;
}

.scdu-cookie__inner {
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 20px 22px 16px 22px;
}

.scdu-cookie__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.scdu-cookie__title {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
}

.scdu-cookie__x {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(15, 23, 42, 0.04);
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.scdu-cookie__text {
    margin: 0 0 14px;
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(15, 23, 42, 0.78);
}

.scdu-cookie__anchor {
    color: rgba(15, 23, 42, 0.92);
    text-decoration: underline;
    font-weight: 700;
}

.scdu-cookie__list {
    margin-top: 6px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.scdu-cookie__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.scdu-cookie__copy {
    min-width: 0;
}

.scdu-cookie__label {
    display: block;
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 6px;
}

.scdu-cookie__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(15, 23, 42, 0.70);
}

.scdu-cookie__badge {
    flex: 0 0 auto;
    margin-top: 2px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    border: 1px solid rgba(59, 130, 246, 0.20);
    background: rgba(59, 130, 246, 0.10);
    color: rgba(30, 64, 175, 0.95);
}

.scdu-switch {
    position: relative;
    width: 46px;
    height: 26px;
    flex: 0 0 auto;
    margin-top: 2px;
}

.scdu-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.scdu-switch__track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(15, 23, 42, 0.12);
    transition: background 120ms ease, border-color 120ms ease;
}

.scdu-switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    transition: transform 140ms ease;
}

.scdu-switch input:checked + .scdu-switch__track {
    background: #3b82f6;
    border-color: rgba(59, 130, 246, 0.25);
}

.scdu-switch input:checked + .scdu-switch__track .scdu-switch__thumb {
    transform: translateX(20px);
}

.scdu-cookie__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    flex-wrap: wrap;
}

.scdu-cookie__button {
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid rgba(59, 130, 246, 0.30);
    background: rgba(59, 130, 246, 0.12);
    color: rgba(30, 64, 175, 0.95);
}

.scdu-cookie__button:hover {
    background: rgba(59, 130, 246, 0.18);
}

@media (max-width: 760px) {
    .scdu-header__burger {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
    }

    .scdu-nav {
        position: absolute;
        top: 64px;
        right: 16px;
        width: 240px;
        max-width: calc(100vw - 32px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(17, 24, 39, 0.98);
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    }

    .scdu-header.is-open .scdu-nav {
        display: flex;
    }

    .scdu-nav__link {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 560px) {
    .scdu-cookie__inner {
        padding: 16px;
    }

    .scdu-cookie__item {
        gap: 10px;
    }

    .scdu-cookie__actions {
        justify-content: stretch;
    }

    .scdu-cookie__button {
        width: 100%;
    }
}