* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'SurgeNA';
    src: url('../assets/fonts/Kangge.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    color-scheme: light dark;

    /* Fontes - ajuste aqui para alterar globalmente */
    --fontFamily: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --fontSize: 15px;

    /* Cores Profissionais */
    --primary: #0052cc;
    --primaryLight: #0066ff;
    --success: #00a854;
    --accentB: #1900f8;
    --white: #ffffff;
    --text: #1a1a1a;
    --textMuted: #666666;
    --textLight: #999999;
    --border: #e5e7eb;
    --borderLight: #f0f2f5;
    --bgLight: #f9fafb;

    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadowSoft: 0 2px 8px rgba(0, 0, 0, 0.06);
    --radiusLg: 12px;
    --radiusMd: 10px;
    --radiusSm: 8px;
    --ring: 0 0 0 3px rgba(0, 82, 204, 0.1);

    /* Superfícies "glass" (evita o efeito prata no dark/system) */
    --glassTopbarBg: rgba(255,255,255,0.65);
    --glassCardBg: rgba(255,255,255,0.72);
    --glassInputBg: rgba(255,255,255,0.92);
    --glassBorder: rgba(0,0,0,0.08);
    --surfaceSoft: rgba(0,0,0,0.04);
}

:root[data-theme="light"] {
    color-scheme: light;
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --primary: #3b82f6;
    --primaryLight: #60a5fa;
    --success: #22c55e;
    --accentB: #7c3aed;

    /* Dark explícito (mais preto e contraste maior) */
    --white: #060912;
    --text: rgba(255,255,255,0.92);
    --textMuted: rgba(255,255,255,0.72);
    --textLight: rgba(255,255,255,0.52);
    --border: rgba(148, 163, 184, 0.20);
    --borderLight: rgba(148, 163, 184, 0.14);
    --bgLight: #050712;

    --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadowSoft: 0 2px 12px rgba(0, 0, 0, 0.35);
    --ring: 0 0 0 3px rgba(96, 165, 250, 0.18);

    --glassTopbarBg: rgba(2, 6, 23, 0.70);
    --glassCardBg: rgba(2, 6, 23, 0.62);
    --glassInputBg: rgba(15, 23, 42, 0.72);
    --glassBorder: rgba(148, 163, 184, 0.18);
    --surfaceSoft: rgba(255,255,255,0.06);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;

        --primary: #3b82f6;
        --primaryLight: #60a5fa;
        --success: #22c55e;
        --accentB: #7c3aed;

        --white: #0b1220;
        --text: #e5e7eb;
        --textMuted: rgba(229, 231, 235, 0.72);
        --textLight: rgba(229, 231, 235, 0.52);
        --border: rgba(148, 163, 184, 0.18);
        --borderLight: rgba(148, 163, 184, 0.12);
        --bgLight: #0f172a;

        --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
        --shadowSoft: 0 2px 12px rgba(0, 0, 0, 0.35);
        --ring: 0 0 0 3px rgba(96, 165, 250, 0.18);

        --glassTopbarBg: rgba(2, 6, 23, 0.62);
        --glassCardBg: rgba(2, 6, 23, 0.55);
        --glassInputBg: rgba(15, 23, 42, 0.68);
        --glassBorder: rgba(148, 163, 184, 0.18);
        --surfaceSoft: rgba(255,255,255,0.06);
    }
}

html, body {
    height: 100%;
}

body {
    font-family: var(--fontFamily);
    font-size: var(--fontSize);
    line-height: 1.35;
    color: var(--text);
    background: var(--white);
}

/* =========================
   Professor (diferenciação)
   ========================= */

.is-professor .userCard__avatar,
.is-professor .netflixAvatar,
.is-professor .projectChat__avatar {
    font-family: 'SurgeNA', var(--fontFamily);
    font-weight: 700;
    letter-spacing: 0.6px;
}

.appBody.is-mobile-drawer-open {
    overflow: hidden;
}

.mobileNav {
    display: none;
    align-items: center;
    gap: 8px;
}

.mobileOverlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, visibility 160ms ease;
    z-index: 40;
}

.appBody.is-mobile-drawer-open .mobileOverlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.btn.btn--sm {
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.btn.btn--ghost.btn--sm {
    background: transparent;
}

/* =========================
   Workspace (estilo Discord)
   ========================= */

html {
    overflow-x: hidden;
}

.appBody {
    min-height: 100vh;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bgLight);
}

.app {
    min-height: 100vh;
    height: auto;
    display: grid;
    grid-template-columns: 320px 1fr;
}

.sidebar {
    border-right: 1px solid var(--border);
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.sidebar__top {
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--borderLight);
}

.sidebar__brand {
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--accentB);
}

.sidebar__hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--textMuted);
}

.channels {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: auto;
}

.channel {
    width: 100%;
    display: grid;
    grid-template-columns: 18px 1fr 22px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: background 120ms ease, border-color 120ms ease;
}

.channel__hash {
    color: var(--textLight);
}

.channel__name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel.is-active {
    background: rgba(0, 82, 204, 0.08);
    border-color: rgba(0, 82, 204, 0.18);
}

.channel:hover {
    background: var(--bgLight);
}

.channel.is-locked {
    opacity: 0.55;
    cursor: not-allowed;
}

.channel:disabled {
    pointer-events: none;
}

.channel__lock {
    text-align: right;
    font-size: 14px;
}

.sidebar__footer {
    padding: 12px 14px;
    border-top: 1px solid var(--borderLight);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.userCard {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
}

.userCardLink {
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    display: block;
}

.userCardLink:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.userCardLink.is-from-profile {
    animation: userCardPop 520ms ease;
}

@keyframes userCardPop {
    0% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-2px) scale(1.03); }
    100% { transform: translateY(0) scale(1); }
}

.userCard__avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(25, 0, 248, 0.10);
    color: var(--accentB);
    display: grid;
    place-items: center;
    font-weight: 800;
    border: 1px solid rgba(25, 0, 248, 0.18);
}

/* =========================
   Perfil (avatar estilo Netflix)
   ========================= */

.profileBody {
    background: var(--bgLight);
}

.profilePage {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    position: relative;
    overflow: hidden;
}

.profileBackdrop {
    position: absolute;
    inset: -120px;
    background:
        radial-gradient(600px 420px at 18% 20%, rgba(0, 102, 255, 0.22), transparent 60%),
        radial-gradient(560px 420px at 70% 30%, rgba(25, 0, 248, 0.18), transparent 62%),
        radial-gradient(520px 380px at 44% 80%, rgba(0, 168, 84, 0.16), transparent 58%);
    filter: blur(36px);
    opacity: 0.95;
    pointer-events: none;
    z-index: 0;
}

.profileTopbar {
    padding: 18px 18px;
    border-bottom: 1px solid var(--glassBorder);
    background: var(--glassTopbarBg);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.profileTopbar__title {
    font-weight: 900;
    letter-spacing: 0.02em;
    color: var(--text);
    font-size: 18px;
}

.profileTopbar__subtitle {
    margin-top: 6px;
    color: var(--textMuted);
    font-size: 13px;
}

.profileTopbar__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.profileGrid {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    position: relative;
    z-index: 1;
}

@media (max-width: 980px) {
    .profileGrid {
        grid-template-columns: 1fr;
    }
}

.profileCard {
    background: var(--glassCardBg);
    border: 1px solid var(--glassBorder);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.10);
    padding: 16px;
    color: var(--text);
    backdrop-filter: blur(10px);
}

.profileCard--featured {
    grid-column: 1 / -1;
}

.profileCard__header {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    align-items: center;
}

@media (max-width: 520px) {
    .profileCard__header {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

.profileCard__name {
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 0.02em;
}

.profileCard__meta {
    margin-top: 6px;
    color: var(--textMuted);
    font-size: 13px;
}

.profileCard__actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.profileSectionHeader {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.profileSectionHeader__title {
    font-weight: 900;
    font-size: 14px;
}

.profileSectionHeader__hint {
    font-size: 12px;
    color: var(--textMuted);
}

.profileForm .field__label {
    color: var(--text);
}

.profileForm .field__hint {
    color: var(--textMuted);
}

.profileForm input[type="text"],
.profileForm input[type="url"],
.profileForm input[type="hidden"] {
    background: var(--glassInputBg);
    border: 1px solid var(--glassBorder);
    color: var(--text);
}

.profileForm input[type="text"]:disabled,
.profileForm input[type="url"]:disabled,
.profileForm input[type="hidden"]:disabled,
.profileForm select:disabled,
.profileLinksInput:disabled {
    opacity: 1;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}

.netflixAvatar {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #E50914;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 14px 34px rgba(0,0,0,0.35);
    color: #fff;
    font-weight: 900;
    font-size: 54px;
    letter-spacing: 0.02em;
    user-select: none;
}

.netflixAvatar--large {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    font-size: 64px;
}

.netflixAvatarBtn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 14px;
    transition: transform 120ms ease;
}

.netflixAvatarBtn:hover {
    transform: scale(1.04);
}

.netflixAvatarBtn:active {
    transform: scale(0.98);
}

.netflixAvatarBtn--large {
    border-radius: 16px;
}

.netflixAvatarBtn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.profilePublic {
    display: grid;
    gap: 20px;
}

.profilePublic__preview {
    --pcBorder: rgba(255,255,255,0.10);
    --pcShadow: 0 22px 48px rgba(2, 6, 23, 0.22);
    --pcPlate: rgba(2, 6, 23, 0.62);
    --pcText: rgba(255,255,255,0.92);
    --pcMuted: rgba(255,255,255,0.70);

    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 16px;
    align-items: end;
    padding: 18px;
    min-height: 170px;
    position: relative;
    overflow: hidden;
    background: var(--bannerBg, linear-gradient(135deg, var(--bannerA, #2563eb), var(--bannerB, #111827)));
    border-radius: 16px;
    border: 1px solid var(--pcBorder);
    box-shadow: var(--pcShadow);
    /* Menos futurista: sem recortes/notches */
    clip-path: none;
}

/* Esconde versões antigas (HTML em cache) do pill de banner */
.profileBannerBtn,
.profileBanner__hint{
    display: none !important;
}

/* O único "banner" é o fundo do card (clicável) */
.profilePublic__preview[role="button"]{
    cursor: pointer;
}

.profilePublic__preview[role="button"]:hover{
	filter: brightness(1.03) saturate(1.02);
}

.profilePublic__preview[role="button"]:focus-visible{
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Texturas/efeitos (sem imagens) para um feel mais "player card" */
.profilePublic__preview::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        var(--frameArt, none),
        radial-gradient(900px 240px at 8% 12%, rgba(255,255,255,0.16), transparent 55%),
        radial-gradient(560px 220px at 70% 8%, rgba(0,0,0,0.22), transparent 60%),
        linear-gradient(90deg, rgba(0,0,0,0.08), transparent 55%, rgba(255,255,255,0.05) 78%, transparent),
        linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.35));
    pointer-events: none;
}

/* Placa inferior (onde fica nome/curso) */
.profilePublic__preview::after{
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    height: 92px;
    background: var(--plateArt, none), var(--plateBg, var(--pcPlate));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.25);
    pointer-events: none;
}

/* Menos futurista: desliga rótulos/pills do card */
.profilePublic__avatarWrap::before,
.profilePublic__meta::before{
    content: none !important;
}

.profilePublic__preview > *{
    position: relative;
    z-index: 1;
}

.profilePublic__avatarWrap {
    display: inline-block;
    cursor: default;
    align-self: end;
    transform: translateY(6px);
}

.profilePublic__avatarWrap .netflixAvatar {
    cursor: default;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
    position: relative;
}

.profilePublic__avatarWrap .netflixAvatar::after{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.14), transparent 55%);
    pointer-events: none;
}

/* Avatar do card "Seu Perfil" nunca deve ser clicável */
.profileCard--featured .profilePublic__avatarWrap {
    pointer-events: none;
}

/* Compat com HTML antigo em cache (quando era netflixAvatarBtn) */
.profileCard--featured .netflixAvatarBtn {
    pointer-events: none;
    cursor: default;
}

.profileCard--featured .netflixAvatarBtn:hover,
.profileCard--featured .netflixAvatarBtn:active {
    transform: none;
}

.profilePublic__meta {
    display: grid;
    gap: 6px;
	padding: 10px 10px;
	margin-bottom: 6px;
}

.profilePublic__name {
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: var(--pcText);
    text-shadow: 0 10px 24px rgba(2, 6, 23, 0.55);
}

.profilePublic__info {
	font-size: 12px;
	color: var(--pcMuted);
}

.profilePublic__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.profilePublic__linksEmpty {
    color: var(--textMuted);
    font-size: 12px;
}

.profileSocialIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
	gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(0, 82, 204, 0.12);
    border: 1px solid rgba(0, 82, 204, 0.18);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 120ms ease;
    white-space: nowrap;
}

.profileSocialIcon__img {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: cover;
    flex: 0 0 auto;
}

.profileSocialIcon:hover {
    background: rgba(0, 82, 204, 0.22);
    transform: translateY(-2px);
}

.profileLeagueLogo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 14px;
    background: transparent;
    border: none;
    text-decoration: none;
    transition: all 120ms ease;
    margin-left: auto;
    order: 999;
}

.profileLeagueLogo__img {
    height: 38px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
    filter:
        grayscale(1)
        saturate(0)
        contrast(1.14)
        brightness(1.06)
        drop-shadow(0 0 0.9px rgba(0,0,0,0.70));
    transform-origin: 50% 90%;
    animation: leagueLogoLeafSpin 3.8s linear infinite;
    transition: filter 220ms ease;
    will-change: transform, filter;
}

.profileLeagueLogo:hover {
    transform: translateY(-2px);
}

.profileLeagueLogo:hover .profileLeagueLogo__img {
    filter:
    grayscale(0)
    saturate(1)
    contrast(1.05)
    brightness(1.02)
    drop-shadow(0 0 0.9px rgba(0,0,0,0.60));
}

@keyframes leagueLogoLeafSpin {
    0% {
        transform: translateY(-2px) rotateZ(-1deg);
    }
    25% {
        transform: translateY(0px) rotateZ(0.5deg);
    }
    50% {
        transform: translateY(2px) rotateZ(1deg);
    }
    75% {
        transform: translateY(0px) rotateZ(0.5deg);
    }
    100% {
        transform: translateY(-2px) rotateZ(-1deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .profileLeagueLogo__img,
    .profileLeagueLogo:hover .profileLeagueLogo__img {
        transition: none;
        transform: none;
        animation: none;
    }
}

/* =========================
   Modal: Visualizar perfil (menções)
   ========================= */

.mentionProfileCard {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glassBorder);
    background: var(--glassCardBg);
    box-shadow: 0 18px 44px rgba(0,0,0,0.10);
}

.mentionProfileCard__banner {
    height: 110px;
    background: linear-gradient(135deg, rgba(0,0,0,0.25), rgba(0,0,0,0.55)),
        linear-gradient(135deg, var(--bannerA, #2563eb), var(--bannerB, #111827));
    display: grid;
    place-items: center;
}

.mentionProfileCard__bannerText {
    color: rgba(255,255,255,0.88);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(8px);
}

.mentionProfileCard__content {
    margin-top: -34px;
    padding: 0 14px 12px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    align-items: end;
}

.mentionProfileCard__avatarWrap {
    display: inline-block;
}

.mentionProfileCard__meta {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.mentionProfileCard__name {
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mentionProfileCard__info {
    font-size: 12px;
    color: var(--textMuted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mentionProfileCard__email {
    margin-top: 2px;
}

.mentionProfileCard__links {
    padding: 0 14px 14px;
}

@media (max-width: 520px) {
    .mentionProfileCard__content {
        grid-template-columns: 96px 1fr;
    }
    .mentionProfileCard__banner {
        height: 96px;
    }
    .mentionProfileCard__content {
        margin-top: -28px;
    }
    .mentionProfileCard__avatarWrap .netflixAvatar {
        width: 96px;
        height: 96px;
        font-size: 44px;
    }
}

.profileFormSection {
    display: grid;
    gap: 10px;
    padding: 16px;
    background: var(--surfaceSoft);
    border: 1px solid var(--glassBorder);
    border-radius: 12px;
}

.profileFormSection + .profileFormSection {
    margin-top: 0;
}

.profileFormSection__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.profileFormSection__title {
    font-weight: 900;
    font-size: 14px;
}

.profileFormSection__hint {
    font-size: 12px;
    color: var(--textMuted);
}

.profileFormSection__body {
    display: grid;
    gap: 10px;
}

.profileFormSection__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}

.profileLinksInput {
    font-family: var(--fontFamily);
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 12px;
    border: 1px solid var(--glassBorder);
    border-radius: 10px;
    background: var(--glassInputBg);
    color: var(--text);
    resize: vertical;
}

.profileLinksInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring);
}

.letterSelectorBody {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.letterGrid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    max-width: 460px;
}

.letterBtn {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    border: 1px solid rgba(2, 6, 23, 0.16);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
    color: rgba(2, 6, 23, 0.92);
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, filter 120ms ease;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.10);
    position: relative;
    overflow: hidden;
}

.letterBtn::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(70px 30px at 20% 15%, rgba(255,255,255,0.34), transparent 60%),
        repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0, rgba(0,0,0,0.04) 1px, transparent 1px, transparent 5px);
    opacity: 0.28;
    pointer-events: none;
}

.letterBtn:hover {
    border-color: rgba(0, 82, 204, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(2, 6, 23, 0.14);
}

.letterBtn.is-selected {
    border-color: rgba(0, 82, 204, 0.55);
    background: linear-gradient(135deg, rgba(0,82,204,0.92), rgba(0, 153, 255, 0.72));
    color: rgba(255,255,255,0.96);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 34px rgba(0, 82, 204, 0.22);
}

.letterBtn.is-selected::before{
    opacity: 0.22;
}

.colorChip {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.16);
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0,0,0,0.22);
    transition: all 150ms ease;
}

.colorChip:hover {
    transform: scale(1.15) translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.28);
}

.colorChip.is-active {
    outline: none;
    border: 2px solid rgba(0,0,0,0.3);
}

.profileLinks {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--glassBorder);
}

.profileLinks__title {
    font-size: 12px;
    color: var(--textMuted);
    margin-bottom: 10px;
}

.profileLinks__desc {
    font-size: 12px;
    color: var(--textMuted);
    margin-bottom: 10px;
}

.profileLinks__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profileLink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--glassBorder);
    background: var(--glassCardBg);
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
}

.profileLink:hover {
    background: rgba(0, 102, 255, 0.08);
}

.profileFooter {
    padding: 16px 18px;
    border-top: 1px solid var(--glassBorder);
    color: var(--textMuted);
    position: relative;
    z-index: 1;
}

/* Autocomplete de e-mails (workspace) */
.emailSuggest {
    position: absolute;
    z-index: 9999;
    min-width: 240px;
    max-width: 520px;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
    overflow: hidden;
}

.emailSuggest__item {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.emailSuggest__item:hover,
.emailSuggest__item.is-active {
    background: rgba(255, 255, 255, 0.06);
}

.emailSuggest__email {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
}

.emailSuggest__meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.profileProjects__empty {
    color: var(--textMuted);
    font-size: 13px;
}

.profileProjects__list {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.profileProject {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(255,255,255,0.75);
    color: var(--text);
    text-decoration: none;
}

.profileProject:hover {
    background: rgba(0, 102, 255, 0.08);
}

.profileProject__title {
    font-weight: 800;
    font-size: 13px;
}

.profileProject__meta {
    font-size: 12px;
    color: var(--textMuted);
}

/* Animações simples (entrada/saída) */

.profileBody.is-entering .profileCard {
    transform: translateY(10px);
    opacity: 0.01;
}

.profileCard {
    transition: transform 220ms ease, opacity 220ms ease;
}

/* Evita flash do avatar padrão no refresh do perfil */
.profileBody.is-profile-loading .profileGrid {
    opacity: 0.01;
    transform: translateY(6px);
}

.profileGrid {
    transition: opacity 220ms ease, transform 220ms ease;
}

.profileBody.is-leaving .profileCard {
    transform: translateY(10px) scale(0.985);
    opacity: 0.01;
}

.userCard__name {
    font-weight: 700;
    font-size: 13px;
}

.userCard__sub {
    margin-top: 2px;
    font-size: 12px;
    color: var(--textMuted);
}

.main {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
}

.topbar {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.topbar__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* =========================
   Notification Bell & Panel
   ========================= */

.notificationBell {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notificationBellBtn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 150ms ease;
    position: relative;
}

.notificationBellBtn:hover {
    border-color: rgba(0, 82, 204, 0.28);
    background: rgba(0, 82, 204, 0.06);
}

.notificationBellBtn:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.notificationBellIcon {
    width: 18px;
    height: 18px;
    color: var(--text);
    stroke: none;
    fill: currentColor;
}

.notificationBadge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: #ff4757;
    color: white;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid var(--white);
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.24);
}

.notificationPanel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 360px;
    max-height: 480px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: all 200ms ease;
    z-index: 1000;
}

.notificationPanel[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.notificationPanel__header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--borderLight);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notificationPanel__title {
    font-weight: 800;
    font-size: 13px;
    color: var(--text);
}

.notificationPanel__clear {
    padding: 4px 8px;
    border: none;
    background: transparent;
    color: var(--textMuted);
    cursor: pointer;
    font-size: 12px;
    border-radius: 6px;
    transition: all 150ms ease;
}

.notificationPanel__clear:hover {
    background: var(--bgLight);
    color: var(--text);
}

.notificationPanel__list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.notificationPanel__empty {
    padding: 24px 14px;
    text-align: center;
    color: var(--textMuted);
    font-size: 13px;
}

.notificationItem {
    padding: 12px 14px;
    border-bottom: 1px solid var(--borderLight);
    cursor: pointer;
    transition: background 150ms ease;
    position: relative;
    display: flex;
    gap: 10px;
}

.notificationItem:last-child {
    border-bottom: none;
}

.notificationItem:hover {
    background: var(--bgLight);
}

.notificationItem__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0052cc;
    margin-top: 6px;
    flex-shrink: 0;
}

.notificationItem.is-read .notificationItem__dot {
    background: transparent;
}

.notificationItem__content {
    flex: 1;
    min-width: 0;
}

.notificationItem__type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--textMuted);
    font-weight: 600;
}

.notificationItem__message {
    font-size: 13px;
    color: var(--text);
    margin-top: 3px;
    line-height: 1.4;
}

.notificationItem__time {
    font-size: 11px;
    color: var(--textMuted);
    margin-top: 4px;
}

.notificationItem__close {
    padding: 4px;
    border: none;
    background: transparent;
    color: var(--textMuted);
    cursor: pointer;
    opacity: 0;
    transition: all 150ms ease;
    border-radius: 4px;
}

.notificationItem:hover .notificationItem__close {
    opacity: 1;
}

.notificationItem__close:hover {
    background: var(--borderLight);
    color: var(--text);
}

@media (max-width: 540px) {
    .notificationPanel {
        min-width: auto;
        max-width: calc(100vw - 28px);
        left: 14px;
        right: auto;
    }
}

.workspaceContent {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 14px;
    padding: 14px;
    overflow: visible;
}

/* Notebook / Tablet: evita sidebar muito larga e melhora aproveitamento */
@media (max-width: 1200px) {
    .workspaceContent {
        grid-template-columns: 320px 1fr;
    }
}

@media (max-width: 1024px) {
    .app {
        grid-template-columns: 280px 1fr;
    }
    .workspaceContent {
        grid-template-columns: 300px 1fr;
        padding: 12px;
    }
}

.projectsPane {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadowSoft);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.projectsPane__header {
    padding: 14px 14px 10px;
    border-bottom: 1px solid var(--borderLight);
}

.projectsPane__title {
    font-weight: 800;
    font-size: 14px;
}

.projectsPane__hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--textMuted);
}

.projectsList {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
}

.projectCard {
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    text-align: left;
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
    position: relative;
    overflow: hidden;
}

.projectCard--league-chronokairo::after,
.projectCard--league-latij::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 10px;
    border-radius: 0 14px 14px 0;
    opacity: 0.95;
    box-shadow: inset 1px 0 0 rgba(0,0,0,0.18);
    pointer-events: none;
}

/* Chronokairo: traços branco + preto */
.projectCard--league-chronokairo::after {
    background: linear-gradient(90deg, rgba(0,0,0,0.88) 0 50%, rgba(255,255,255,0.96) 50% 100%);
}

/* LATIJ: traços azul + branco */
.projectCard--league-latij::after {
    background: linear-gradient(90deg, rgba(0, 82, 204, 0.98) 0 55%, rgba(255,255,255,0.96) 55% 100%);
}

/* Cor do projeto por faixa de nota (professor) */

.projectCard--tone-good,
.projectCard--tone-good.projectCard--detailed {
    background: rgba(16, 185, 129, 0.16);
}

.projectCard--tone-warn,
.projectCard--tone-warn.projectCard--detailed {
    background: rgba(245, 158, 11, 0.16);
}

.projectCard--tone-bad,
.projectCard--tone-bad.projectCard--detailed {
    background: rgba(239, 68, 68, 0.14);
}

.projectCard:hover {
    border-color: rgba(0, 82, 204, 0.28);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.08);
    transform: translateY(-1px);
}

.projectCard.is-active {
    border-color: rgba(25, 0, 248, 0.42);
    box-shadow: 0 0 0 3px rgba(25, 0, 248, 0.10);
}

.projectCard.is-locked {
    opacity: 0.58;
    cursor: not-allowed;
}

.projectCard--detailed{
    border-color: var(--border);
    background: var(--white);
    box-shadow: none;
}

.projectCard--detailed:hover{
    border-color: rgba(0, 82, 204, 0.28);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.08);
}

.projectCard__titleRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.projectCard__right{
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;

}

.projectLeagueMark{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
    background: transparent;
    border: none;
    overflow: visible;
    margin-left: 10px;
    cursor: pointer;
}

.projectLeagueMark__img{
    height: 26px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter:
        grayscale(1)
        saturate(0)
        contrast(1.14)
        brightness(1.06)
        drop-shadow(0 0 0.9px rgba(0,0,0,0.70));
    transform: perspective(700px) rotateX(6deg);
    transform-origin: center;
    transition: transform 160ms ease, filter 160ms ease;
    will-change: transform, filter;
}

.projectLeagueMark:hover .projectLeagueMark__img{
    transform: perspective(700px) rotateX(0deg) translateY(-1px) scale(1.03);
    filter:
        grayscale(0)
        saturate(1)
        contrast(1.05)
        brightness(1.02)
        drop-shadow(0 0 0.9px rgba(0,0,0,0.60));
}

.projectLeagueMark:focus-visible,
.profileLeagueLogo:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.leagueInfoCard {
    display: grid;
    gap: 14px;
}

.leagueInfoHeader {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leagueInfoHeader__logo {
    height: 56px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter:
        grayscale(0)
        saturate(1)
        drop-shadow(0 0 0.9px rgba(0,0,0,0.55));
}

.leagueInfoHeader__title {
    font-weight: 900;
    font-size: 16px;
}

.leagueInfoQas {
    display: grid;
    gap: 10px;
}

.leagueInfoQas details {
    border: 1px solid var(--glassBorder);
    border-radius: 12px;
    background: var(--surfaceSoft);
    padding: 10px 12px;
}

.leagueInfoQas summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--text);
}

.leagueInfoQas p {
    margin-top: 8px;
    color: var(--textMuted);
    font-size: 13px;
    line-height: 1.45;
}

.projectChatBadge{
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    background: #ff4757;
    color: rgba(255,255,255,.98);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.22);
}

.projectCard__title {
    font-weight: 800;
    font-size: 13px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.projectCard__lock {
    font-size: 14px;
}

.projectCard__meta {
    margin-top: 6px;
    font-size: 12px;
    color: var(--textMuted);
}

.projectPane {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.projectView {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadowSoft);
    padding: 16px;
    flex: 1;
    min-height: 0;
    overflow: visible;
}


.emptyState {
    border: 1px dashed var(--border);
    background: var(--bgLight);
    border-radius: 14px;
    padding: 16px;
    color: var(--textMuted);
}

.emptyState__title {
    font-weight: 800;
    color: var(--text);
}

.emptyState__desc {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
}

.projectHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.projectHeader__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.projectHeader__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.projectHeader__title {
    font-weight: 900;
    font-size: 18px;
    color: var(--accentB);
}

.projectHeader__meta {
    margin-top: 6px;
    font-size: 12px;
    color: var(--textMuted);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid var(--borderLight);
    background: var(--bgLight);
    color: var(--text);
}

.projectTimeline {
    margin-top: 14px;
    border: 1px solid var(--borderLight);
    border-radius: 14px;
    padding: 12px;
    background: var(--bgLight);
}

.timelineTracksHeader{
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--textMuted);
    margin-bottom: 10px;
}

.timelineTracks{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timelineTrack{
    display: grid;
    /* Dá mais espaço para a faixa de etapas (centro) */
    grid-template-columns: minmax(140px, 0.55fr) 1.9fr minmax(170px, 0.55fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--borderLight);
    background: var(--white);
}

@media (max-width: 900px){
    .timelineTrack{
        grid-template-columns: 1fr;
        align-items: start;
    }
}

.timelineTrack__left{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timelineTrack__place{
    font-weight: 900;
    font-size: 12px;
    color: var(--text);
}

.timelineTrack__start{
    font-weight: 800;
    font-size: 12px;
    color: var(--textMuted);
}

.timelineRow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}

.timelinePoint {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timelinePoint__label {
    font-size: 11px;
    color: var(--textLight);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.timelinePoint__labelRow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.timelinePoint__date {
    font-weight: 800;
    font-size: 13px;
}

.timelinePoint__room {
    font-size: 12px;
    color: var(--textMuted);
}

.timelinePoint__resetBtn {
    position: static;
    background: #ff6b6b;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    transition: all 0.2s ease;
}

.timelinePoint__resetBtn:hover {
    background: #ff5252;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.extensionHistory {
    margin-top: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.extensionHistory__title {
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 8px;
}

.extensionHistory__item {
    padding: 8px;
    font-size: 12px;
    color: var(--textMuted);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.extensionHistory__item:last-child {
    border-bottom: none;
}

.extensionHistory__date {
    font-weight: 600;
    color: var(--primary);
}

.extensionHistory__reason {
    font-style: italic;
    color: var(--textMuted);
    margin-top: 4px;
}

.changeValue {
    margin-top: 6px;
    margin-bottom: 6px;
    font-style: normal;
    color: var(--text);
}

.timelineBar {
    margin-top: 12px;
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 82, 204, 0.10);
    overflow: hidden;
    border: 1px solid rgba(0, 82, 204, 0.10);
}

.timelineBar__fill {
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, #a8d8ff 0%, #0066ff 50%, #00a854 100%);
    transition: background 0.3s ease;
}

.timelineBar__fill--delayed {
    background: linear-gradient(90deg, #ffb3b3 0%, #ff6666 50%, #cc0000 100%);
}

.timelinePoint__double{
    margin-top: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-items: end;
}

.timelinePoint__doubleItem{
    min-width: 0;
}

.timelinePoint__subLabel{
    font-size: 11px;
    color: var(--textMuted);
    margin-bottom: 2px;
}

.timelinePoint__destSelect{
    margin-top: 6px;
    width: 100%;
    max-width: 220px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--borderLight);
    background: var(--white);
    color: var(--text);
}

.timelineSquares{
    margin-top: 10px;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    flex: 1;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}

.timelineSquares--track{
    margin-top: 0;
	/* Entregas por destino: agora pode ter saídas extras; permite scroll */
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 6px;
	align-items: stretch;
}

/* No track (entregas por destino), deixa os cards mais compactos pra caber */
.timelineSquares--track .timelineSquare{
    width: 100%;
	min-width: 74px;
	max-width: 90px;
    min-height: 72px;
    padding: 8px 6px;
    font-size: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.timelineSquare--output{
	background: var(--outputColor, #111827);
	color: rgba(255,255,255,0.98);
}

.timelineSquare--outputDone{
    opacity: 0.88;
    filter: saturate(0.9);
}

.timelineSquare--output .timelineSquare__date{
	color: rgba(255,255,255,0.86);
}

@media (max-width: 720px){
    .timelineSquares--track{
        gap: 6px;
    }
    .timelineSquares--track .timelineSquare{
        min-height: 62px;
        padding: 8px 4px;
        font-size: 9px;
    }
    .timelineSquares--track .timelineSquare__badge{
        font-size: 11px;
    }
}

/* Data em 2 linhas no track (dd/mm + aaaa) */
.timelineSquares--track .timelineSquare__date{
	display: grid;
	gap: 2px;
	line-height: 1.05;
}

.timelineSquares--track .timelineSquare__dateTop{
	font-size: 10px;
	font-weight: 800;
}

.timelineSquares--track .timelineSquare__dateBottom{
	font-size: 9px;
	font-weight: 700;
	opacity: 0.85;
}

@media (max-width: 900px){
    .timelineSquares{
        gap: 6px;
    }
}

.timelineSquare{
    min-height: 60px;
    width: max-content;
    min-width: 80px;
    border-radius: 8px;
    border: none;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: .2px;
    font-size: 11px;
    padding: 8px 10px;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.10);
    flex-shrink: 0;
}

.timelineSquare--stage{
    /* Etapas (PLA/DEF/...) usam só 1 cor: a escolhida pelo usuário */
    background: var(--stageColor, #111827);
    color: #fff;
    border: 1.5px solid #312e81;
}

.timelineSquare--stage .timelineSquare__date{
    color: #e0e7ff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

.timelineSquare__date{
    font-weight: 700;
    font-size: 10px;
    line-height: 1.1;
    color: var(--textMuted, #666666);
    white-space: nowrap;
    text-align: center;
    text-shadow: 0 1px 2px rgba(255,255,255,0.25), 0 0px 1px rgba(0,0,0,0.10);
}

.timelineSquare__badge{
    font-weight: 950;
    font-size: 12px;
    letter-spacing: .15px;
    line-height: 1;
    white-space: nowrap;
}

/* Cores fixas das etapas */
.timelineSquare--pending{
    background: var(--borderLight, #f0f2f5);
    color: var(--text, #1a1a1a);
    border: 1.5px solid var(--border, #e5e7eb);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.timelineSquare--done{
    background: #2563eb;
    color: #fff;
    border: 1.5px solid #1e40af;
}

.timelineSquares--risk .timelineSquare--pending{
    background: #f97316;
    color: #fff;
    border: 1.5px solid #ea580c;
}

.timelineSquares--delayed .timelineSquare--pending,
.timelineSquares--delayed .timelineSquare--current{
    background: #ef4444;
    color: #fff;
    border: 1.5px solid #b91c1c;
}

/* Override: force uniform stage/output visuals and ignore user-chosen colors.
   Light theme: white background, dark text/details.
   Dark theme: inverted (dark background, light text). */

:root[data-theme="light"] .timelineSquare,
:root[data-theme="light"] .timelineSquare--stage,
:root[data-theme="light"] .timelineSquare--pending,
:root[data-theme="light"] .timelineSquare--done {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid var(--border, #e5e7eb) !important;
    box-shadow: none !important;
}

:root[data-theme="light"] .timelineSquare__date,
:root[data-theme="light"] .timelineSquare__badge {
    color: #111827 !important;
    text-shadow: none !important;
}

:root[data-theme="dark"] .timelineSquare,
:root[data-theme="dark"] .timelineSquare--stage,
:root[data-theme="dark"] .timelineSquare--pending,
:root[data-theme="dark"] .timelineSquare--done {
    background: var(--white, #060912) !important;
    color: var(--text, rgba(255,255,255,0.92)) !important;
    border: 1px solid var(--glassBorder, rgba(148,163,184,0.18)) !important;
    box-shadow: none !important;
}

:root[data-theme="dark"] .timelineSquare__date,
:root[data-theme="dark"] .timelineSquare__badge {
    color: var(--text, rgba(255,255,255,0.92)) !important;
    text-shadow: none !important;
}

/* Specific colored states (override generic white/dark backgrounds) */
/* Light theme: near -> orange, delayed -> red, done -> blue */
:root[data-theme="light"] .timelineSquares--risk .timelineSquare--pending {
    background: #f97316 !important;
    color: #fff !important;
    border: 1.5px solid #ea580c !important;
}
:root[data-theme="light"] .timelineSquares--delayed .timelineSquare--pending,
:root[data-theme="light"] .timelineSquares--delayed .timelineSquare--current {
    background: #ef4444 !important;
    color: #fff !important;
    border: 1.5px solid #b91c1c !important;
}
:root[data-theme="light"] .timelineSquare--done {
    background: #2563eb !important;
    color: #fff !important;
    border: 1.5px solid #1e40af !important;
}

/* Also apply state colors to output squares (they use .timelineSquare--output) */
:root[data-theme="light"] .timelineSquares--risk .timelineSquare--output {
    background: #f97316 !important;
    color: #fff !important;
    border: 1.5px solid #ea580c !important;
}
:root[data-theme="light"] .timelineSquares--delayed .timelineSquare--output,
:root[data-theme="light"] .timelineSquares--delayed .timelineSquare--outputDone {
    background: #ef4444 !important;
    color: #fff !important;
    border: 1.5px solid #b91c1c !important;
}
:root[data-theme="light"] .timelineSquare--outputDone {
    background: #2563eb !important;
    color: #fff !important;
    border: 1.5px solid #1e40af !important;
}

/* Per-output risk class (individual outputs near deadline) */
:root[data-theme="light"] .timelineSquare--atRisk,
:root[data-theme="light"] .timelineSquare--outputAtRisk {
    background: #f97316 !important;
    color: #fff !important;
    border: 1.5px solid #ea580c !important;
}

/* Dark theme: keep colored states visible with white text for contrast */
:root[data-theme="dark"] .timelineSquares--risk .timelineSquare--pending {
    background: #f97316 !important;
    color: #fff !important;
    border: 1.5px solid #ea580c !important;
}
:root[data-theme="dark"] .timelineSquares--delayed .timelineSquare--pending,
:root[data-theme="dark"] .timelineSquares--delayed .timelineSquare--current {
    background: #ef4444 !important;
    color: #fff !important;
    border: 1.5px solid #b91c1c !important;
}
:root[data-theme="dark"] .timelineSquare--done {
    background: #2563eb !important;
    color: #fff !important;
    border: 1.5px solid #1e40af !important;
}

/* Dark theme: outputs state colors */
:root[data-theme="dark"] .timelineSquares--risk .timelineSquare--output {
    background: #f97316 !important;
    color: #fff !important;
    border: 1.5px solid #ea580c !important;
}
:root[data-theme="dark"] .timelineSquares--delayed .timelineSquare--output,
:root[data-theme="dark"] .timelineSquares--delayed .timelineSquare--outputDone {
    background: #ef4444 !important;
    color: #fff !important;
    border: 1.5px solid #b91c1c !important;
}
:root[data-theme="dark"] .timelineSquare--outputDone {
    background: #2563eb !important;
    color: #fff !important;
    border: 1.5px solid #1e40af !important;
}

/* Dark theme: per-output risk */
:root[data-theme="dark"] .timelineSquare--atRisk,
:root[data-theme="dark"] .timelineSquare--outputAtRisk {
    background: #f97316 !important;
    color: #fff !important;
    border: 1.5px solid #ea580c !important;
}

.timelineSquare--done .timelineSquare__date,
.timelineSquares--risk .timelineSquare--pending .timelineSquare__date,
.timelineSquares--delayed .timelineSquare__date{
    color: rgba(255,255,255,0.92);
}

/* Garante que estados (pending/done/current) não sobrescrevam a cor da etapa */
.timelineSquare--stage.timelineSquare--pending,
.timelineSquare--stage.timelineSquare--current,
.timelineSquare--stage.timelineSquare--done{
    background: var(--stageColor, #111827);
}

.timelineSquare--stage.timelineSquare--done{
    opacity: 0.88;
    filter: saturate(0.95);
}

/* Legenda */
.timelineLegend{
    margin-top: 12px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--borderLight);
    background: var(--white);
}

.timelineLegend__title{
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--textMuted);
}

.timelineLegend__items{
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    color: var(--text);
    font-size: 12px;
}

@media (max-width: 900px){
    .timelineLegend__items{
        grid-template-columns: 1fr;
    }
}

.timelineLegend__item{
    display: flex;
    align-items: center;
    gap: 8px;
}

.timelineLegend__swatch{
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(17, 24, 39, 0.18);
    background: #ffffff;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.timelineLegend__swatch--pending{ background:#fff; border-color: rgba(17,24,39,.18); }
.timelineLegend__swatch--done{ background: #2563eb; border-color: rgba(37, 99, 235, 0.70); }
.timelineLegend__swatch--risk{ background: #f97316; border-color: rgba(249, 115, 22, 0.75); }
.timelineLegend__swatch--delayed{ background: #ef4444; border-color: rgba(239, 68, 68, 0.75); }

.timelineLegend__note{
    margin-top: 10px;
    font-size: 12px;
    color: var(--textMuted);
    line-height: 1.35;
}

.timelineSquare:hover{
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

.timelineSquare--current{
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.10);
}

.timelineSquares--alert .timelineSquare--pending{
    background: #ef4444;
    color: rgba(255,255,255,0.98);
}

.projectSections {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.sectionCard {
    border: 1px solid var(--borderLight);
    border-radius: 14px;
    padding: 12px;
}

.sectionCard__title {
    font-weight: 800;
    font-size: 13px;
}

.sectionCard__body {
    margin-top: 8px;
    font-size: 13px;
    color: var(--textMuted);
    line-height: 1.5;
    white-space: pre-line;
}

.linksList {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.linksList a {
    color: var(--primary);
    text-decoration: none;
    word-break: break-word;
}

.linksList a.linkItem {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(0, 82, 204, 0.08);
    border: 1px solid rgba(0, 82, 204, 0.14);
}

.linksList a.linkItem:hover {
    background: rgba(0, 82, 204, 0.14);
}

.linkItem__icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
    flex: 0 0 auto;
}

.linkItem__text {
    min-width: 0;
}

.teamRow {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--borderLight);
    background: var(--bgLight);
    font-size: 12px;
    color: var(--text);
}

.simpleForm__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

/* Novo design para o formulário de projeto */
.projectForm {
    display: grid;
    gap: 16px;
}

.projectForm__section {
    border: 1px solid var(--borderLight);
    border-radius: 14px;
    padding: 14px;
    background: var(--bgLight);
    transition: all 120ms ease;
}

.projectForm__section:hover {
    border-color: rgba(0, 82, 204, 0.18);
    background: var(--white);
}

.projectForm__sectionHeader {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.projectForm__sectionIcon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    background: rgba(59, 130, 246, 0.14);
    color: var(--primary);
}

.projectFormHelp{
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--borderLight);
    background: var(--bgLight);
}

.projectFormHelp__summary{
    cursor: pointer;
    font-weight: 800;
    font-size: 12px;
    color: var(--text);
    letter-spacing: 0.02em;
    list-style: none;
}

.projectFormHelp__summary::-webkit-details-marker{
    display: none;
}

.projectFormHelp__dot{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    margin-right: 6px;
    background: rgba(59, 130, 246, 0.14);
    color: var(--primary);
    font-weight: 950;
}

.projectFormHelp__body{
    margin-top: 10px;
    font-size: 12px;
    color: var(--textMuted);
    line-height: 1.35;
}

.projectForm__sectionTitle {
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
    letter-spacing: 0.04em;
}

.projectForm__sectionDesc {
    margin-top: 4px;
    font-size: 11px;
    color: var(--textMuted);
    letter-spacing: 0.02em;
}

.projectForm__sectionBody {
    display: grid;
    gap: 12px;
}

/* Strong fallback: garantir que qualquer output marcado como atRisk fique laranja
   (regra colocada por último para sobrescrever eventuais overrides de tema). */
.timelineSquare.timelineSquare--atRisk,
.timelineSquare.timelineSquare--outputAtRisk {
    background: #f97316 !important;
    color: #fff !important;
    border: 1.5px solid #ea580c !important;
}

/* DEBUG: contorno temporário para facilitar identificação de tiles em risco */
.timelineSquare.timelineSquare--atRisk {
    outline: 3px dashed magenta !important;
    outline-offset: 3px !important;
}

/* Even more specific selectors to outrank generic theme overrides */
:root[data-theme="light"] .timelineSquares--track .timelineSquare.timelineSquare--atRisk,
:root[data-theme="light"] .timelineSquares--track .timelineSquare.timelineSquare--outputAtRisk,
:root[data-theme="light"] .timelineSquares--track.timelineSquares--risk .timelineSquare.timelineSquare--atRisk {
    background: #f97316 !important;
    color: #fff !important;
    border: 1.5px solid #ea580c !important;
}

:root[data-theme="dark"] .timelineSquares--track .timelineSquare.timelineSquare--atRisk,
:root[data-theme="dark"] .timelineSquares--track .timelineSquare.timelineSquare--outputAtRisk,
:root[data-theme="dark"] .timelineSquares--track.timelineSquares--risk .timelineSquare.timelineSquare--atRisk {
    background: #f97316 !important;
    color: #fff !important;
    border: 1.5px solid #ea580c !important;
}
/* Strongest fallback: force orange for any output tile marked at-risk
   (covers class combos and data attribute; placed last to outrank other rules) */
.timelineSquares .timelineSquare.timelineSquare--output.timelineSquare--atRisk,
.timelineSquares .timelineSquare.timelineSquare--output.timelineSquare--pending.timelineSquare--atRisk,
.timelineSquares .timelineSquare.timelineSquare--output[data-at-risk="1"],
.timelineSquares--track .timelineSquare[data-at-risk="1"],
.timelineSquares .timelineSquare[data-at-risk="1"] {
    background: #f97316 !important;
    color: #fff !important;
    border: 1.5px solid #ea580c !important;
}

/* Also target any output-specific atRisk class name variants */
.timelineSquare.timelineSquare--outputAtRisk,
.timelineSquare.timelineSquare--output-at-risk {
    background: #f97316 !important;
    color: #fff !important;
    border: 1.5px solid #ea580c !important;
}

.projectForm__sectionBody .field:last-child {
    margin-bottom: 0;
}

.projectForm__actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--borderLight);
}

.projectForm__actions .btn {
    flex: 1;
}

@media (min-width: 560px) {
    .projectForm__actions {
        justify-content: flex-end;
    }

    .projectForm__actions .btn {
        flex: none;
        width: auto;
        min-width: 120px;
    }
}

.is-hidden {
    display: none !important;
}

.topbar__title {
    font-weight: 800;
    font-size: 16px;
}

.topbar__subtitle {
    margin-top: 4px;
    color: var(--textMuted);
    font-size: 12px;
}

.board {
    padding: 16px;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 14px;
}

.boardCol {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadowSoft);
    display: flex;
    flex-direction: column;
    min-height: 240px;
}

.boardCol__head {
    padding: 12px 12px 10px;
    border-bottom: 1px solid var(--borderLight);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.boardCol__title {
    font-weight: 800;
    font-size: 13px;
}

.boardCol__count {
    font-size: 12px;
    color: var(--textMuted);
    background: var(--bgLight);
    border: 1px solid var(--borderLight);
    padding: 4px 8px;
    border-radius: 999px;
}

.boardCol__list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cardItem {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 10px 8px;
    background: var(--white);
}

.cardItem__title {
    font-weight: 800;
    font-size: 13px;
}

.cardItem__desc {
    margin-top: 6px;
    font-size: 12px;
    color: var(--textMuted);
    white-space: pre-line;
}

.boardEmpty {
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed var(--border);
    background: var(--bgLight);
    color: var(--textLight);
    font-size: 12px;
    text-align: center;
}

.choiceGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.choiceCard {
    text-align: left;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.choiceCard:hover {
    border-color: rgba(0, 82, 204, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.10);
    transform: translateY(-1px);
}

.choiceCard__title {
    font-weight: 800;
    font-size: 14px;
    color: var(--text);
}

.choiceCard__desc {
    margin-top: 6px;
    font-size: 12px;
    color: var(--textMuted);
    line-height: 1.4;
}

@media (max-width: 520px) {
    .choiceGrid {
        grid-template-columns: 1fr;
    }
}

.cardItem__footer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cardItem__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 82, 204, 0.08);
    border: 1px solid rgba(0, 82, 204, 0.16);
    color: var(--primary);
}

.cardItem__actions {
    display: flex;
    gap: 6px;
}

.miniBtn {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bgLight);
    cursor: pointer;
    transition: all 120ms ease;
}

.miniBtn:hover {
    background: var(--white);
    border-color: rgba(0, 82, 204, 0.25);
}

@media (max-width: 920px) {
    .app {
        grid-template-columns: 1fr;
    }
    .sidebar {
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .board {
        grid-template-columns: 1fr;
    }

    .workspaceContent {
        grid-template-columns: 1fr;
        padding: 12px;
    }
}

/* Mobile: layout tipo Discord (drawers off-canvas) */
@media (max-width: 720px) {
    .mobileNav {
        display: inline-flex;
    }

    .topbar {
        padding: 12px 12px;
        gap: 10px;
    }

    .topbar__subtitle {
        display: none;
    }

    .topbar__actions {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    #addCardBtn {
        flex: 1;
        max-width: none;
    }

    /* Sidebar vira drawer */
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(86vw, 360px);
        z-index: 45;
        transform: translateX(-105%);
        transition: transform 180ms ease;
        border-right: 1px solid var(--border);
        border-bottom: none;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    }

    .appBody.is-mobile-channels-open .sidebar {
        transform: translateX(0);
    }

    .sidebar__top {
        padding: 14px 14px 12px;
    }

    .channels {
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .channel {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    /* ProjectsPane vira drawer */
    .workspaceContent {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 10px;
    }

    .projectsPane {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        width: min(92vw, 420px);
        z-index: 45;
        transform: translateX(105%);
        transition: transform 180ms ease;
        border-radius: 0;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    }

    .appBody.is-mobile-projects-open .projectsPane {
        transform: translateX(0);
    }

    .projectsList {
        max-height: none;
    }

    .projectView {
        padding: 12px;
    }
}

@media (max-width: 540px) {
    .workspaceContent {
        padding: 10px;
        gap: 10px;
    }

    /* Cards da lista (toque) */
    .projectCard{
        padding: 10px;
    }
    .projectCard__right{ gap: 6px; }
    .projectCard__meta{ font-size: 11px; }
    .projectGradeBadge{ padding: 3px 8px; font-size: 11px; }
    .projectChatBadge{ height: 18px; min-width: 18px; }

    /* Modais mais compactos no mobile */
    .modal__header{ padding: 14px 14px; }
    .modal__body{ padding: 12px 14px; }
    .modal__title{ font-size: 16px; }
    .modal__close{ width: 34px; height: 34px; }

    /* Entregas por destino: 8 etapas sem scroll, mas legível */
    .timelineTrack{ padding: 8px; gap: 8px; }
    .timelineSquares--track{ gap: 4px; }
    .timelineSquares--track .timelineSquare{
        min-height: 60px;
        padding: 6px 3px;
        border-radius: 10px;
    }
    .timelineSquares--track .timelineSquare__badge{ font-size: 10px; }
    .timelineSquares--track .timelineSquare__dateTop{ font-size: 9px; }
    .timelineSquares--track .timelineSquare__dateBottom{ font-size: 8px; }
}

a {
    color: inherit;
}

.link {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 82, 204, 0.2);
    padding-bottom: 2px;
    transition: all 120ms ease;
}

.link:hover {
    color: var(--primaryLight);
    border-bottom-color: rgba(0, 82, 204, 0.4);
}

.muted {
    color: var(--textLight);
}

/* ===== Animações PRODAM ===== */
@keyframes prodamFadeInSmooth {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes prodamFadeOutSmooth {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.98);
    }
}

.auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
    position: relative;
    overflow: hidden;
}

.auth__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 500px at 15% 75%, rgba(0, 168, 84, 0.08), transparent 50%),
        radial-gradient(700px 600px at 85% 20%, rgba(0, 82, 204, 0.06), transparent 50%);
    pointer-events: none;
}

.auth__shell {
    width: min(1080px, 100%);
    position: relative;
    z-index: 1;
}

/* ===== Carrossel PRODAM ===== */
.prodam-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.prodam-carousel__item {
    position: absolute;
    opacity: 0;
}

.prodam-carousel__item.is-visible {
    animation: prodamFadeInSmooth 2s ease-in-out forwards;
}

.prodam-carousel__item.is-hiding {
    animation: prodamFadeOutSmooth 2s ease-in-out forwards;
}

.prodam-carousel__img {
    width: min(750px, 82vw);
    height: min(750px, 82vw);
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    opacity: 0.9;
}

/* Posições dos PRODAMs */
/* Laterais do login (esquerda/direita, parte média da tela) */
.prodam-carousel__item--tl {
    top: 18%;
    left: 65%;
}

.prodam-carousel__item--tr {
    top: 18%;
    right: 65%;
}

.prodam-carousel__item--bl {
    bottom: 18%;
    left: 65%;
}

.prodam-carousel__item--br {
    bottom: 18%;
    right: 65%;
}

/* Responsivo */
@media (max-width: 1024px) {
    .prodam-carousel__img {
        width: 500px;
        height: 500px;
    }

    .prodam-carousel__item--tl {
        top: 16%;
        left: 15%;
    }

    .prodam-carousel__item--tr {
        top: 16%;
        right: 15%;
    }

    .prodam-carousel__item--bl {
        bottom: 16%;
        left: 15%;
    }

    .prodam-carousel__item--br {
        bottom: 16%;
        right: 15%;
    }
}

@media (max-width: 768px) {
    .prodam-carousel__img {
        width: 300px;
        height: 300px;
    }

    .prodam-carousel__item--tl {
        top: 14%;
        left: 12%;
    }

    .prodam-carousel__item--tr {
        top: 14%;
        right: 12%;
    }

    .prodam-carousel__item--bl {
        bottom: 14%;
        left: 12%;
    }

    .prodam-carousel__item--br {
        bottom: 14%;
        right: 12%;
    }
}

.auth__brand {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.brand {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand__container {
    display: flex;
    gap: 4px;
}

.brand__char {
    font-family: 'SurgeNA', sans-serif;
    letter-spacing: 0.08em;
    font-weight: 800;
    font-size: 72px;
    color: var(--accentB);
    opacity: 0;
    margin: 0;
    padding: 16px 0;
    text-align: center;
    position: relative;
    transition: none;
    min-width: 48px;
    line-height: 1;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.brand__char.show {
    opacity: 0.92;
}

.brand__char.hide-out {
    animation: lightOff 300ms ease-in forwards;
}

.brand__char.show-in {
    animation: lightOn 300ms ease-out forwards;
}

@keyframes lightOff {
    0% {
        opacity: 0.92;
        filter: brightness(1.2);
    }
    50% {
        opacity: 0.5;
        filter: brightness(0.8);
    }
    100% {
        opacity: 0;
        filter: brightness(0.2);
    }
}

@keyframes lightOn {
    0% {
        opacity: 0;
        filter: brightness(0.2);
    }
    50% {
        opacity: 0.5;
        filter: brightness(0.8);
    }
    100% {
        opacity: 0.92;
        filter: brightness(1.2);
    }
}

.brand__char.color-blue {
    color: var(--accentB);
    transition: color 300ms ease;
}

.auth__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.card {
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: var(--radiusLg);
    box-shadow: var(--shadow);
    padding: 32px;
}

.card__header {
    margin-bottom: 18px;
}

.card__title {
    font-size: 32px;
    letter-spacing: -0.02em;
    color: var(--accentB);
}

.card__subtitle {
    margin-top: 8px;
    color: var(--textMuted);
}

.form {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 8px;
}

.field--grid2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.field__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.field__label {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--textMuted);
}

.field__hint {
    font-size: 12px;
    color: var(--textLight);
}


/* ===== Projetos Detalhados ===== */
.multiSelect{
    width:100%;
    min-height:46px;
    padding:10px 12px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.14);
    background:#ffffff;
    color:#111827;
    outline:none;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
}

.multiSelect:focus{
    border-color:rgba(99,102,241,.55);
    box-shadow:0 0 0 3px rgba(99,102,241,.15), 0 10px 30px rgba(0,0,0,.12);
}

.multiSelect option{
    color:#111827;
    background:#ffffff;
}

.multiSelect option:hover{
    background:#e5e7eb;
}

.multiSelect option:checked{
    background:#c7d2fe;
}

.destDates{
    margin-top:10px;
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
}

.destDateCard{
    padding:12px;
    border-radius:14px;
    border: 1px solid var(--borderLight);
    background: var(--bgLight);
}

.destDateCard__head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.destDateCard__titleRow{
    min-width: 0;
}

.destDateCard__title{
    font-weight:700;
    font-size:13px;
    letter-spacing:.2px;
    margin-bottom:2px;
    color: var(--text);
}

.destDateCard__sub{
    font-size: 11px;
    color: var(--textMuted);
}

.destOutputs{
    display: grid;
    gap: 10px;
}

.destOutputRow{
    display: grid;
    grid-template-columns: minmax(120px, 1.2fr) minmax(120px, 1fr) 40px 36px;
    gap: 8px;
    align-items: center;
}

@media (max-width: 520px){
    .destOutputRow{
        grid-template-columns: 1fr 1fr 40px 36px;
    }
}

.destOutputRow input[type="text"],
.destOutputRow input[type="date"]{
    width: 100%;
}

.destOutputRow input[type="color"]{
    width: 40px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--borderLight);
    border-radius: 10px;
    background: transparent;
}

.destOutputRow__remove{
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid var(--borderLight);
    background: var(--white);
    color: var(--text);
    font-weight: 900;
    cursor: pointer;
}

.destOutputRow__remove:hover{
    border-color: rgba(239, 68, 68, 0.35);
}

.destDateCard__add{
    border-radius: 999px;
    padding: 6px 10px;
    border: 1px solid var(--borderLight);
    background: var(--white);
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.destDateCard__add:hover{
    border-color: rgba(59, 130, 246, 0.35);
}

.chips{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:8px;
}

.chip{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 10px;
    border-radius:999px;
    border: 1px solid var(--borderLight);
    background: var(--bgLight);
    font-size:12px;
    color: var(--text);
}

.detailStages{
    margin-top:10px;
    display:grid;
    grid-template-columns:repeat(8, minmax(0, 1fr));
    gap:10px;
}

@media (max-width: 900px){
    .detailStages{
        grid-template-columns:repeat(4, minmax(0, 1fr));
    }
}

.stageSquare{
    border-radius:14px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.03);
    padding:12px;
    min-height:84px;
    position:relative;
}

.stageSquare__badge{
    position:absolute;
    top:10px;
    right:10px;
    width:26px;
    height:26px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    font-weight:800;
    font-size:12px;
    letter-spacing:.3px;
    border:1px solid rgba(255,255,255,.16);
    background:rgba(255,255,255,.06);
}

.stageSquare--done .stageSquare__badge{
    background:linear-gradient(135deg, rgba(33,212,106,.25), rgba(33,212,106,.08));
    border-color:rgba(33,212,106,.35);
}

.stageSquare--pending .stageSquare__badge{
    background:linear-gradient(135deg, rgba(99,102,241,.25), rgba(99,102,241,.08));
    border-color:rgba(99,102,241,.35);
}

.stageSquare--late .stageSquare__badge{
    background:linear-gradient(135deg, rgba(239,68,68,.25), rgba(239,68,68,.08));
    border-color:rgba(239,68,68,.35);
}

.stageSquare__title{
    font-weight:800;
    font-size:13px;
    color:rgba(255,255,255,.92);
    margin:0 0 6px;
}

.stageSquare__meta{
    font-size:12px;
    color:rgba(255,255,255,.7);
}
.field__control {
    position: relative;
}

.field__control--withAction input {
    padding-right: 44px;
}

select {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radiusSm);
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text);
    outline: none;
    transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
    font-size: 15px;
    appearance: none;
}

select:focus {
    border-color: var(--primary);
    box-shadow: var(--ring);
}

input {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radiusSm);
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text);
    outline: none;
    transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
    font-size: 15px;
}

input::placeholder {
    color: var(--textLight);
}

input:focus {
    border-color: var(--primary);
    box-shadow: var(--ring);
}

input[aria-invalid="true"] {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radiusSm);
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text);
    outline: none;
    transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
    font-size: 14px;
    font-family: var(--fontFamily);
    resize: vertical;
    line-height: 1.5;
}

textarea::placeholder {
    color: var(--textLight);
}

textarea:focus {
    border-color: var(--primary);
    box-shadow: var(--ring);
}

.iconBtn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bgLight);
    color: var(--textMuted);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 120ms ease;
}

.iconBtn:hover {
    background: var(--white);
    color: var(--primary);
}

.icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.check input {
    width: 1px;
    height: 1px;
    position: absolute;
    opacity: 0;
}

.check__box {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--white);
    position: relative;
    transition: all 120ms ease;
}

.check input:focus-visible + .check__box {
    box-shadow: var(--ring);
}

.check input:checked + .check__box {
    border-color: var(--primary);
    background: var(--primary);
}

.check input:checked + .check__box::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 12px;
}

.check__text {
    font-size: 13px;
    color: var(--textMuted);
}

.alert {
    padding: 12px 14px;
    border-radius: var(--radiusMd);
    border: 1px solid #f87171;
    background: #fee2e2;
    color: #991b1b;
    font-size: 13px;
}

.alert.alert--success {
    border-color: rgba(0, 168, 84, 0.35);
    background: rgba(0, 168, 84, 0.10);
    color: #065f46;
}

.alert.alert--info {
	border-color: rgba(59, 130, 246, 0.35);
	background: rgba(59, 130, 246, 0.10);
	color: #1e3a8a;
}

.emojiPicker {
    display: grid;
    gap: 12px;
}

.emojiPicker__preview {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bgLight);
    display: grid;
    place-items: center;
    font-size: 28px;
}

.emojiPicker__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.emojiBtn {
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 120ms ease;
}

.emojiBtn:hover {
    border-color: rgba(0, 82, 204, 0.25);
    background: var(--bgLight);
}

.emojiBtn.is-selected {
    border-color: rgba(25, 0, 248, 0.55);
    box-shadow: 0 0 0 3px rgba(25, 0, 248, 0.10);
}

.btn {
    width: 100%;
    border: 1px solid transparent;
    border-radius: var(--radiusMd);
    padding: 11px 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 120ms ease;
    background: var(--bgLight);
    color: var(--text);
    text-decoration: none;
}

.bannerGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bannerCollections {
    display: grid;
    gap: 14px;
}

.bannerCollection__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 2px;
}

.bannerCollection__title {
    font-weight: 900;
    letter-spacing: 0.02em;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0.90;
}

.bannerCollection__badge {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--glassBorder);
    background: var(--glassCardBg);
    color: var(--text);
    opacity: 0.88;
}

.bannerCollection__badge--locked {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(2, 6, 23, 0.30);
    color: rgba(255, 255, 255, 0.92);
}

.bannerCollection__indent {
    padding-left: 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.10);
}

.bannerTile {
    height: 96px;
    border-radius: 16px;
    border: 1px solid rgba(2, 6, 23, 0.12);
    background: var(--tileBg, linear-gradient(135deg, var(--bannerA, #2563eb), var(--bannerB, #111827)));
    position: relative;
    overflow: hidden;
    padding: 12px 12px;
    text-align: left;
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.16);
    transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
    clip-path: none;
}

.bannerTile::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(420px 160px at 14% 12%, rgba(255,255,255,0.14), transparent 55%),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 4px),
        linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.38));
    pointer-events: none;
}

.bannerTile::after{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.12), transparent 55%),
        linear-gradient(0deg, transparent 0 62%, rgba(2, 6, 23, 0.22));
    opacity: 0.55;
    pointer-events: none;
}

.bannerTile:hover{
    transform: translateY(-2px);
    filter: brightness(1.04) saturate(1.02);
    box-shadow: 0 24px 46px rgba(2, 6, 23, 0.22);
}

.bannerTile__label {
    position: relative;
    z-index: 1;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
}

.bannerTile.is-active {
	box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.22), 0 24px 46px rgba(2, 6, 23, 0.22);
	border-color: rgba(0, 102, 255, 0.45);
}

.bannerTile.is-locked {
    opacity: 0.70;
    filter: grayscale(1) saturate(0) contrast(1.05);
    cursor: not-allowed;
}

.bannerTile.is-locked::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.10);
    backdrop-filter: none;
}

.bannerTile.is-locked:hover{
	transform: none;
	filter: grayscale(1) saturate(0) contrast(1.05);
	box-shadow: 0 18px 36px rgba(2, 6, 23, 0.16);
}

.bannerTile__soon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
    background: transparent;
    z-index: 1;
}

.btn:hover {
    background: var(--borderLight);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.is-saving {
    position: relative;
    pointer-events: none;
}

.btn.is-saving::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.55);
    border-top-color: rgba(255,255,255,1);
    display: inline-block;
    margin-left: 10px;
    animation: actvSpin 0.75s linear infinite;
}

.btn.is-saved {
    animation: actvSavedPulse 0.55s ease-out 1;
}

@keyframes actvSpin {
    to { transform: rotate(360deg); }
}

@keyframes actvSavedPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadowSoft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn--primary:hover {
    background: var(--primaryLight);
    box-shadow: var(--shadow);
}

.btn--ghost {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn--ghost:hover {
    background: rgba(0, 82, 204, 0.05);
}

.btn--google {
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.btn--google:hover {
    background: var(--bgLight);
    border-color: rgba(0,0,0,0.10);
}

.btn__icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 18px;
}

.btn--danger {
    background: rgba(232, 55, 72, 0.10);
    border: 1.5px solid rgba(232, 55, 72, 0.35);
    color: #b42330;
}

.btn--danger:hover {
    background: rgba(232, 55, 72, 0.16);
}

.btn__spinner {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: rgba(255, 255, 255, 0.95);
    display: none;
    animation: spin 0.9s linear infinite;
}

.btn.is-loading .btn__spinner {
    display: inline-block;
}

.btn.is-loading .btn__label {
    opacity: 0.92;
}

.divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.divider__line {
    height: 1px;
    background: var(--border);
}

.divider__text {
    color: var(--textLight);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fineprint {
    color: var(--textLight);
    font-size: 12px;
    line-height: 1.5;
}

.signup {
    color: var(--textMuted);
    font-size: 13px;
    text-align: center;
    margin-top: 8px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
}

.modal.is-open {
    display: block;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

.modal__dialog {
    position: relative;
    width: min(720px, calc(100% - 32px));
    max-height: 90vh;
    margin: 5vh auto 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radiusLg);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--white) 0%, var(--bgLight) 100%);
}

.modal__title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--accentB);
}

.modal__close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--textMuted);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 22px;
    line-height: 1;
    transition: all 120ms ease;
}

.modal__close:hover {
    color: var(--primary);
    border-color: rgba(0, 82, 204, 0.25);
}

.modal__body {
    padding: 16px 18px;
    color: var(--text);
    overflow-y: auto;
    flex: 1;
}

.modal__intro {
    color: var(--textMuted) !important;
    margin-bottom: 10px;
}

.modal__intro--spaced {
    margin-top: 12px;
}

.modal__intro--spacedLg {
    margin-top: 16px;
}

.modal__intro .authLink {
    color: var(--primary) !important;
    text-decoration: none;
    font-weight: 500;
}

/* =========================
   MODAIS (Perfil) — estética “player card” / COD-like
   Escopo: somente seletor de letra + seletor de banner
   ========================= */

#letterSelectorModal .modal__dialog::before,
#bannerSelectorModal .modal__dialog::before{
    content: none !important;
}

/* Mantém um toque "tático" só no backdrop, sem cyber/futurismo */
#letterSelectorModal .modal__backdrop,
#bannerSelectorModal .modal__backdrop{
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(3px);
}

/* Volta para um modal clean (coerente com o resto do app) */
#letterSelectorModal .modal__dialog,
#bannerSelectorModal .modal__dialog{
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radiusLg);
    box-shadow: var(--shadow);
    clip-path: none;
}

.modal__intro .authLink:hover {
    color: var(--primaryLight) !important;
    text-decoration: underline;
}

.modal__h3 {
    margin: 14px 0 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--textMuted);
}

.modal__list--bullets {
    list-style: disc;
}

.faqList {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.faqItem {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bgLight);
    padding: 10px 12px;
}

.faqItem__summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
    list-style: none;
}

.faqItem__summary::-webkit-details-marker {
    display: none;
}

.faqItem__body {
    margin-top: 8px;
    color: var(--textMuted);
    line-height: 1.45;
}

.modal__list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: var(--text);
}

.modal__footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: var(--bgLight);
    display: flex;
    justify-content: flex-end;
}

.auth__footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 6px 0;
    font-size: 12px;
}

/* Mobile: login/cadastro mais limpo e utilizável */
@media (max-width: 560px) {
    .auth {
        padding: 18px 12px;
        place-items: stretch;
    }

    .prodam-carousel {
        display: none;
    }

    .auth__shell {
        width: 100%;
    }

    .auth__brand {
        margin-bottom: 10px;
    }

    .brand__char {
        font-size: 44px;
        min-width: 28px;
        height: 70px;
        padding: 10px 0;
    }

    .card {
        padding: 18px;
        border-radius: 18px;
    }

    .card__title {
        font-size: 24px;
    }

    .field__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .auth__footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }
}

/* Mobile: fluxo de professor */
@media (max-width: 480px) {
    .authContainer {
        padding: 14px;
    }

    .authCard {
        padding: 20px;
        border-radius: 18px;
    }

    .authHeader {
        margin-bottom: 18px;
    }

    .authTitle {
        font-size: 20px;
    }
}

@media (min-width: 920px) {
    .auth {
        padding: 40px 24px;
    }

    .auth__grid {
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: start;
    }
}

@media (min-width: 560px) {
    .field--grid2 {
        grid-template-columns: 1fr 1fr;
    }

    .projectForm__actions {
        justify-content: flex-end;
    }

    .projectForm__actions .btn {
        flex: none;
        width: auto;
        min-width: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

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

@keyframes projectCreating {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.92);
    }
    15% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
        transform: translateY(10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes projectTitleSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    60% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes projectMetaSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    70% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes loadingBarFill {
    0% {
        width: 0%;
        opacity: 0;
    }
    30% {
        opacity: 0;
        width: 0%;
    }
    60% {
        opacity: 1;
        width: 85%;
    }
    100% {
        opacity: 1;
        width: 100%;
    }
}

@keyframes projectLockSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(20deg);
    }
    70% {
        opacity: 0;
        transform: scale(0.5) rotate(20deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.projectCard--creating {
    animation: projectCreating 1.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.projectCard--creating .projectCard__title {
    animation: projectTitleSlideIn 1.8s ease-out;
}

.projectCard--creating .projectCard__meta {
    animation: projectMetaSlideIn 1.8s ease-out;
}

.projectCard--creating .projectCard__lock {
    animation: projectLockSlideIn 1.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.projectCard--appearing {
    animation: projectAppear 0.4s ease-out;
}

/* Testes (modo sofisticado) */
.testsPro__summary{
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px 12px;
    font-size: 12px;
    color: var(--text);
}

@media (max-width: 900px){
    .testsPro__summary{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.testsPro__list{
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.testRow{
    border: 1px solid var(--borderLight);
    border-radius: 14px;
    padding: 10px;
    background: var(--bgLight);
}

.testRow__head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.testRow__title{
    font-weight: 900;
    font-size: 13px;
    color: var(--text);
}

.testRow__meta{
    margin-top: 6px;
    font-size: 12px;
    color: var(--textMuted);
}

.testBadge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.testBadge--pending{ background: #ffffff; color: var(--text); border-color: rgba(17,24,39,.12); }
.testBadge--pass{ background: #2563eb; color: rgba(255,255,255,.98); border-color: rgba(37,99,235,.55); }
.testBadge--fail{ background: #ef4444; color: rgba(255,255,255,.98); border-color: rgba(239,68,68,.55); }

.testsPro__runs{
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.testsPro__run{
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--borderLight);
}

.testsPro__runTop{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.testsPro__runWhen{ font-weight: 900; font-size: 12px; color: var(--text); }
.testsPro__runWho{ font-size: 12px; color: var(--textMuted); }

.testsPro__runLine{
    margin-top: 6px;
    font-size: 12px;
    color: var(--text);
}

.testsPro__empty{
    margin-top: 10px;
    font-size: 12px;
    color: var(--textMuted);
}

.testRow__edit{ margin-top: 10px; }
.testRow__edit summary{ cursor: pointer; font-weight: 800; color: var(--primary); }
.testRow__form{ margin-top: 10px; }

/* Chat do projeto */
.projectChat__list{
    margin-top: 10px;
    border: 1px solid var(--borderLight);
    border-radius: 14px;
    background: var(--bgLight);
    padding: 10px;
    max-height: 240px;
    overflow: auto;
}

.projectChat__msg{
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--borderLight);
    background: var(--white);
}

.projectChat__msg + .projectChat__msg{ margin-top: 8px; }

.projectChat__meta{
    font-size: 11px;
    color: var(--textMuted);
    margin-bottom: 4px;
}

.projectChat__text{
    font-size: 13px;
    color: var(--text);
	}

/* Mensagem de professor: efeito sutil */
.projectChat__msg.projectChat__msg--professor {
    background: rgba(140, 92, 255, 0.10);
    border-color: rgba(140, 92, 255, 0.28);
}
.projectChat__msg.projectChat__msg--professor .projectChat__meta {
    color: rgba(255,255,255,0.82);
}

/* Professor: não cria projeto (sem flash) */
html.is-professor #addCardBtn,
body.is-professor #addCardBtn {
    display: none !important;
}

/* Perfil: professor não configura dados acadêmicos */
html.is-professor #profileAcademicSection,
body.is-professor #profileAcademicSection {
    display: none !important;
}

/* Botões do perfil (estilo Discord) */
.btn.btn--discord {
    background: rgba(49, 51, 56, 0.92);
    border: 1px solid rgba(78, 80, 88, 0.55);
    color: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    transition: transform 120ms ease, background 160ms ease, border-color 160ms ease;
}
.btn.btn--discord:hover {
    background: rgba(54, 57, 63, 0.96);
    border-color: rgba(88, 101, 242, 0.55);
    transform: translateY(-1px);
}
.btn.btn--discord:active {
    transform: translateY(0);
}

/* Perfil (tema claro): garantir contraste dos botões do topo */
html[data-theme="light"] .profileTopbar__actions .btn.btn--discord,
html[data-theme="light"] .profileTopbar__actions .btn.btn--discord:hover,
html[data-theme="light"] .profileTopbar__actions .btn.btn--discord:active {
    background: transparent;
    border-color: rgba(17, 24, 39, 0.28);
    color: #111827;
}
html[data-theme="light"] .profileTopbar__actions .btn.btn--discord:hover {
    background: rgba(17, 24, 39, 0.06);
}

/* Badge/Pill de nota */
.projectGradeBadge,
.pill--grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    min-width: 44px;
    letter-spacing: 0.2px;
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.32);
    color: var(--text);
	box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.projectGradeBadge--good,
.pill--grade--good{
	background: rgba(16, 185, 129, 0.26);
	border-color: rgba(16, 185, 129, 0.62);
	color: #064e3b;
}

.projectGradeBadge--warn,
.pill--grade--warn{
	background: rgba(245, 158, 11, 0.26);
	border-color: rgba(245, 158, 11, 0.66);
	color: #78350f;
}

.projectGradeBadge--bad,
.pill--grade--bad{
	background: rgba(239, 68, 68, 0.26);
	border-color: rgba(239, 68, 68, 0.66);
	color: #7f1d1d;
}

/* Medidor de força de senha */
.passwordStrength{
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--borderLight);
    background: var(--white);
    --ps-color: rgba(17, 24, 39, 0.78);
    --ps-border: var(--borderLight);
    --ps-bg: var(--white);
}

.passwordStrength.is-weak{
    --ps-color: #ef4444;
    --ps-border: rgba(239, 68, 68, 0.55);
    --ps-bg: rgba(239, 68, 68, 0.06);
}

.passwordStrength.is-medium{
    --ps-color: #f59e0b;
    --ps-border: rgba(245, 158, 11, 0.55);
    --ps-bg: rgba(245, 158, 11, 0.06);
}

.passwordStrength.is-strong{
    --ps-color: #10b981;
    --ps-border: rgba(16, 185, 129, 0.55);
    --ps-bg: rgba(16, 185, 129, 0.06);
}

.passwordStrength.is-weak,
.passwordStrength.is-medium,
.passwordStrength.is-strong{
    border-color: var(--ps-border);
    background: var(--ps-bg);
}

.passwordStrength__top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.passwordStrength__label{
    font-size: 12px;
    font-weight: 900;
}

.passwordStrength__value{
    font-size: 12px;
    font-weight: 900;
	color: var(--ps-color);
}

.passwordStrength__bar{
    margin-top: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    overflow: hidden;
}

.passwordStrength__fill{
    height: 100%;
    width: 0%;
    background: var(--ps-color);
    transition: width 160ms ease, background 160ms ease;
}

.passwordStrength__hint{
    margin-top: 8px;
    font-size: 12px;
    color: rgba(17, 24, 39, 0.72);
}

.passwordStrength__reqs{
    margin: 10px 0 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.passwordStrength__req{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(17, 24, 39, 0.72);
}

.passwordStrength__reqIcon{
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    border: 1px solid rgba(148, 163, 184, 0.55);
    color: rgba(17, 24, 39, 0.62);
    background: rgba(148, 163, 184, 0.14);
}

.passwordStrength__req.is-ok{
    color: rgba(17, 24, 39, 0.78);
}

.passwordStrength__req.is-ok .passwordStrength__reqIcon{
    border-color: rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}


    white-space: pre-wrap;
}

.mention{
    display: inline;
    padding: 1px 6px;
    border-radius: 10px;
    border: 1px solid rgba(0, 82, 204, 0.18);
    background: rgba(0, 82, 204, 0.08);
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
    font: inherit;
    line-height: inherit;
}

.mention:hover{ background: rgba(0, 82, 204, 0.14); }
.mention:focus-visible{ outline: none; box-shadow: var(--ring); }

.mentionMenu{
    position: fixed;
    z-index: 60;
    min-width: 220px;
    max-width: 280px;
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    left: -9999px;
    top: -9999px;
}

.mentionMenu[aria-hidden="true"]{ display: none; }

.mentionMenu__email{
    font-size: 12px;
    color: var(--textMuted);
    padding: 6px 8px;
    border-bottom: 1px solid var(--borderLight);
    margin: -2px -2px 6px;
}

.mentionMenu__card{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 10px;
    border-bottom: 1px solid var(--borderLight);
    margin: 0 0 6px;
}

.mentionMenu__avatar{
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    border: 1px solid rgba(0,0,0,.08);
    flex: 0 0 auto;
}

.mentionMenu__name{ font-weight: 900; font-size: 13px; color: var(--text); line-height: 1.2; }
.mentionMenu__meta{ font-size: 12px; color: var(--textMuted); margin-top: 2px; }

.mentionMenu__links{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 8px 10px;
    border-bottom: 1px solid var(--borderLight);
    margin: 0 0 6px;
}

.mentionMenu__link{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 82, 204, 0.14);
    background: rgba(0, 82, 204, 0.06);
    color: var(--primary);
    font-weight: 800;
    font-size: 12px;
    text-decoration: none;
}

.mentionMenu__link:hover{ background: rgba(0, 82, 204, 0.10); }

.mentionMenu__item{
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    padding: 10px 10px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    color: var(--text);
    font-weight: 700;
}

.mentionMenu__item:hover{ background: var(--bgLight); }
.mentionMenu__item--danger{ color: #b91c1c; }

/* Avaliação do professor (layout moderno) */
.actvEval{
    padding: 14px;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.12), rgba(124, 58, 237, 0.02));
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-left: 6px solid rgba(124, 58, 237, 0.65);
}

.actvEval__header{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.actvEval__subtitle{
    font-size: 12px;
    color: var(--textMuted);
    margin-top: 2px;
}

.actvEval__meta{
    font-size: 12px;
    color: var(--textMuted);
    margin-top: 6px;
}

.actvEval__score{
    flex: 0 0 auto;
    min-width: 62px;
    text-align: right;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: -0.6px;
    color: var(--text);
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--borderLight);
}

.actvEval__score--good{ border-color: rgba(16, 185, 129, 0.32); background: rgba(16, 185, 129, 0.08); }
.actvEval__score--warn{ border-color: rgba(245, 158, 11, 0.34); background: rgba(245, 158, 11, 0.08); }
.actvEval__score--bad{ border-color: rgba(239, 68, 68, 0.34); background: rgba(239, 68, 68, 0.08); }

.actvEval__grid{
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 12px;
    margin-top: 12px;
}

@media (max-width: 860px){
    .actvEval__grid{ grid-template-columns: 1fr; }
    .actvEval__score{ font-size: 24px; }
}

.actvEval__panel{
    border: 1px solid var(--borderLight);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    padding: 12px;
}

.actvEval__panelTitle{
    font-weight: 900;
    color: var(--text);
    font-size: 13px;
    margin-bottom: 10px;
}

.actvEval__label{
    display: block;
    font-size: 12px;
    color: var(--textMuted);
    font-weight: 800;
    margin-bottom: 6px;
}

.actvEval__scoreRow{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: center;
}

.actvEval__select{
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--borderLight);
    background: var(--white);
    font: inherit;
    font-weight: 800;
    color: var(--text);
}

.actvEval__select--sm{
    padding: 9px 10px;
    font-weight: 900;
}

.actvEval__hint{
    margin-top: 6px;
    font-size: 12px;
    color: var(--textMuted);
}

.actvEval__textarea{
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--borderLight);
    background: var(--white);
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    min-height: 86px;
}

.actvEval__footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--borderLight);
}

.actvEval__actions{ flex: 0 0 auto; }

.actvEvalMembers{
    display: grid;
    gap: 10px;
}

.actvEvalMember{
    padding: 10px;
    border: 1px solid var(--borderLight);
    border-radius: 14px;
    background: var(--bgLight);
}

.actvEvalMember__who{
    font-weight: 900;
    font-size: 13px;
    color: var(--text);
    word-break: break-word;
}

.actvEvalMember__row{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.actvEval__note{
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--borderLight);
    background: var(--white);
    font: inherit;
    font-size: 13px;
}

.actvEval--readonly .actvEval__grid,
.actvEval--readonly .actvEval__footer{ display: none; }

.actvEval__readText{
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.72);
    border: 1px solid var(--borderLight);
    color: var(--text);
    white-space: pre-wrap;
}

.kvList{
    display: grid;
    gap: 10px;
}

.kv{
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    align-items: baseline;
    padding: 10px 12px;
    border: 1px solid var(--borderLight);
    border-radius: 14px;
    background: var(--bgLight);
}

.kv__k{ font-size: 12px; color: var(--textMuted); font-weight: 800; }
.kv__v{ font-size: 13px; color: var(--text); word-break: break-word; }

.projectChat__empty{
    font-size: 12px;
    color: var(--textMuted);
}

.projectChat__form{ margin-top: 10px; }
.projectChat__row{ display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.projectChat__input{
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--borderLight);
    background: var(--white);
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    min-height: 80px;
}

/* =========================
   Professor Signup
   ========================= */

.authContainer {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.authBackdrop {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(600px 420px at 18% 20%, rgba(142, 68, 173, 0.22), transparent 60%),
        radial-gradient(560px 420px at 70% 30%, rgba(25, 0, 248, 0.18), transparent 62%),
        radial-gradient(520px 380px at 44% 80%, rgba(0, 82, 204, 0.16), transparent 58%);
    filter: blur(36px);
    opacity: 0.95;
    pointer-events: none;
    z-index: 0;
}

.authStep {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 400ms ease;
}

.authStep.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: relative;
}

.authCard {
    width: min(420px, 100%);
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.authBack {
    position: absolute;
    top: 16px;
    left: 16px;
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 120ms ease;
}

.authBack:hover {
    background: rgba(0, 82, 204, 0.1);
}

.authBackBtn {
    flex-shrink: 0;
    height: 36px;
    padding: 0 12px;
    background: transparent;
    border: 1px solid rgba(0, 82, 204, 0.18);
    border-radius: 999px;
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    transition: all 120ms ease;
}

.authBackBtn::before {
	content: none;
	display: none;
}

.authBackBtn:hover {
    background: rgba(0, 82, 204, 0.08);
    border-color: rgba(0, 82, 204, 0.32);
    transform: translateX(-1px);
}

.authBackBtn:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.authHeader {
    text-align: center;
    margin-bottom: 30px;
}

.authHeader__flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.authHeader--success {
    margin-bottom: 24px;
}

.authSuccessIcon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(32, 192, 92, 0.1);
    color: #20c05c;
    display: grid;
    place-items: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

.authTitle {
    font-weight: 900;
    font-size: 24px;
    color: var(--text);
    margin-bottom: 8px;
}

.authSubtitle {
    color: var(--textMuted);
    font-size: 14px;
}

.authForm {
    display: grid;
    gap: 16px;
}

.authSelectedProfessor {
    padding: 14px;
    background: rgba(142, 68, 173, 0.1);
    border: 1px solid rgba(142, 68, 173, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.authSelectedProfessor__name {
    font-weight: 700;
    color: var(--text);
    font-size: 16px;
}

.authNote {
    padding: 12px;
    background: rgba(0, 82, 204, 0.08);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

.authNote small {
    display: block;
    color: var(--textMuted);
    margin-top: 4px;
}

.authHelper {
    text-align: center;
    font-size: 13px;
    color: var(--textMuted);
    margin-top: 12px;
}

.authFooter {
    text-align: center;
    margin-top: 24px;
    color: var(--textMuted);
    font-size: 13px;
}

.authLink {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 120ms ease;
}

.authLink:hover {
    text-decoration: underline;
}

.btn--block {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    margin-top: 8px;
}

.field__input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 120ms ease;
}

.field__input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring);
}

.field__input::placeholder {
    color: var(--textLight);
}


.projectChat__hint{ margin-top: 6px; font-size: 12px; color: var(--textMuted); }

/* VFT3 - overlays e link de report */
.reportLink{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.88;
    color: var(--textMuted);
    text-decoration: none;
}

.reportLink:hover{
    opacity: 1;
    text-decoration: underline;
}

.centerNotice{
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, 0.70);
    backdrop-filter: blur(12px);
    z-index: 10000;
}

.centerNotice.is-closing{
    opacity: 0;
    transition: opacity 200ms ease;
}

.centerNotice__card{
    width: min(620px, 100%);
    border-radius: 18px;
    border: 1px solid var(--glassBorder);
    background: var(--glassCardBg);
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.42);
    padding: 18px 18px;
}

.centerNotice__title{
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: var(--text);
}

.centerNotice__body{
    margin-top: 10px;
    color: var(--text);
    line-height: 1.55;
}

.centerNotice__body p{ margin: 0 0 10px 0; }

.centerNotice__body a{
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
}

.centerNotice__body a:hover{ text-decoration: underline; }

.centerNotice__foot{
    margin-top: 10px;
    color: var(--textMuted);
    font-size: 12px;
}
