﻿:root {
    --sidebar-bg: #0f172a;
    --sidebar-border: #1e293b;
    --sidebar-text: #f8fafc;
    --sidebar-muted: rgba(148, 163, 184, 0.85);
    --sidebar-accent: #34d399;
    --sidebar-nav-bg: rgba(15, 118, 110, 0.18);
    --sidebar-nav-hover-bg: rgba(5, 150, 105, 0.35);
    --sidebar-nav-icon: rgba(226, 232, 240, 0.95);
    --sidebar-nav-hover-icon: #bbf7d0;
    --sidebar-nav-active-bg: #047857;
    --sidebar-nav-active-color: #ecfdf5;
    --sidebar-nav-active-icon: #f0fdf4;
    --sidebar-width: 16rem;
    --sidebar-collapsed-width: 4.5rem;
    --layout-gutter: 1.5rem;
    --surface: #ffffff;
    --page-bg: #f3f6fa;
    --text-strong: #172033;
    --text-muted: #64748b;
    --border-soft: #dfe7f1;
    --brand: #0f766e;
    --brand-strong: #115e59;
    --shadow-card: 0 16px 42px -32px rgba(15, 23, 42, 0.45);
}

html {
    background: var(--page-bg);
}

body {
    min-width: 320px;
    background:
        radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.07), transparent 28rem),
        var(--page-bg);
    color: var(--text-strong);
}

.auth-login-page {
    background:
        radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.08), transparent 28rem),
        #eef3f9;
}

.auth-recovery-page {
    background:
        radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.08), transparent 26rem),
        #eef3f9;
}

.auth-recovery-card {
    max-width: 28rem;
    border-color: rgba(148, 163, 184, 0.22);
}

.auth-recovery-card__inner {
    padding: 2rem 1.75rem;
}

.auth-recovery-card__brand {
    margin-bottom: 1.5rem;
}

.auth-recovery-card__eyebrow {
    margin-top: 0.9rem;
    color: var(--company-primary, #0f766e);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-login-page .cookie-banner {
    left: 50%;
    right: auto;
    bottom: 24px;
    transform: translateX(-50%);
}

.legal-page__shell {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.legal-page__container {
    max-width: 54rem;
}

.legal-page__top {
    margin-bottom: 1rem;
}

.legal-page__logo {
    height: 3rem;
}

.legal-page__card {
    padding: 1.2rem;
}

.legal-page__header {
    margin-bottom: 1rem;
}

.legal-page__header h1 {
    font-size: 1.8rem;
    line-height: 1.1;
}

.legal-page__footer {
    margin-top: 0.95rem;
}

.legal-page--consent {
    background: linear-gradient(135deg, #f3f8ff 0%, #e6eef8 100%);
}

.legal-page--consent .legal-page__shell {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.legal-page--consent .legal-page__container {
    max-width: 54rem;
}

.legal-page__consent-top {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.legal-page__logo--consent {
    height: 3rem;
}

.privacy-consent {
    max-width: 54rem;
    margin: 0 auto;
}

.privacy-consent__card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 18px 50px rgba(35, 52, 77, 0.12);
    overflow: hidden;
}

.privacy-consent__topo {
    background: linear-gradient(135deg, #0e5aa7 0%, #1fa0d7 100%);
    color: #ffffff;
    padding: 1.75rem 1.75rem 1.4rem;
}

.privacy-consent__topo h1 {
    font-size: 1.75rem;
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 0.55rem;
}

.privacy-consent__topo p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.96);
}

.privacy-consent__corpo {
    padding: 1.75rem;
}

.privacy-consent__box {
    background: #f6f9fc;
    border: 1px solid #d9e4f0;
    border-radius: 0.95rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1.1rem;
    color: #23344d;
}

.privacy-consent__box strong {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 1rem;
    color: #16355f;
}

.privacy-consent__box p {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.65;
}

.privacy-consent__box p + p {
    margin-top: 0.75rem;
}

.privacy-consent__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.2rem;
    margin-bottom: 1rem;
}

.privacy-consent__links a {
    color: #0f6fd1;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
}

.privacy-consent__links a:hover,
.privacy-consent__links a:focus-visible {
    text-decoration: underline;
    outline: none;
}

.privacy-consent__check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #23344d;
    font-size: 0.98rem;
    line-height: 1.7;
}

.privacy-consent__check input {
    margin-top: 0.25rem;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.privacy-consent__acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.privacy-consent__botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 48px;
    padding: 0.8rem 1.2rem;
    border-radius: 0.85rem;
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.privacy-consent__botao:hover {
    transform: translateY(-1px);
}

.privacy-consent__botao--primario {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #0e6efd 0%, #0f6ad8 100%);
    box-shadow: 0 14px 28px -20px rgba(14, 110, 253, 0.85);
}

.privacy-consent__botao--secundario {
    border: 1px solid #cbd5e1;
    color: #475569;
    background: #ffffff;
}

.auth-login-card {
    max-width: 57.5rem;
}

.auth-login-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(18.5rem, 0.9fr);
}

.auth-login-visual {
    position: relative;
    min-height: 36.8rem;
    overflow: hidden;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.1), transparent 24rem),
        #101b2f;
}

.auth-login-visual-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.auth-login-panel {
    min-width: 0;
}

.auth-login-logo {
    height: 4.8rem;
}

.auth-login-legal {
    max-width: 18.5rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7fd 100%);
    border: 1px solid #dbe7f4;
}

.auth-login-legal-copy {
    margin-bottom: 0.7rem;
    color: #35527a;
    font-size: 0.78rem;
    line-height: 1.6;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    font-size: 0.82rem;
}

.legal-links--login {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 0.8rem;
}

.legal-links__item {
    color: #475569;
    font-weight: 600;
    transition: color 140ms ease;
}

.legal-links__item--compact {
    font-size: 0.78rem;
    line-height: 1.3;
}

.legal-links__item:hover,
.legal-links__item:focus-visible {
    color: var(--brand);
    outline: none;
}

.legal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin-top: 1.25rem;
    color: #64748b;
    font-size: 0.8rem;
}

.legal-footer--app {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    padding: 0.95rem 1.5rem 1.35rem;
    background: rgba(255, 255, 255, 0.78);
}

.legal-footer__brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.cookie-banner {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 2000;
    pointer-events: none;
}

.cookie-banner__content {
    width: min(430px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(15, 23, 37, 0.96);
    color: #ffffff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.cookie-banner__text {
    width: 100%;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-banner__text strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.2;
}

.cookie-banner__text p {
    margin: 0;
    color: inherit;
}

.cookie-banner__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 10px;
}

.cookie-banner__link {
    color: #9fd7ff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
}

.cookie-banner__button {
    min-width: 96px;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    transition: transform 150ms ease, background-color 150ms ease, color 150ms ease, border-color 150ms ease;
    white-space: nowrap;
}

.cookie-banner__button:hover {
    transform: translateY(-1px);
}

.cookie-banner__button--ghost {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.cookie-banner__button--primary {
    border: 0;
    color: #ffffff;
    background: #1f9d55;
}

@media (max-width: 900px) {
    .legal-footer,
    .legal-footer--app {
        justify-content: center;
        text-align: center;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .auth-login-page .cookie-banner {
        left: 12px;
        right: 12px;
        transform: none;
    }

    .cookie-banner__content {
        width: 100%;
        padding: 14px 15px;
    }

    .cookie-banner__actions {
        justify-content: stretch;
    }

    .cookie-banner__button {
        flex: 1 1 140px;
    }
}

@media (max-width: 1023px) {
    .auth-login-card {
        max-width: 34rem;
    }

    .auth-login-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .auth-recovery-card__inner {
        padding: 1.25rem 1rem;
    }

    .legal-page__header h1 {
        font-size: 1.5rem;
    }

    .legal-page__card {
        padding: 0.9rem;
    }

    .privacy-consent__topo,
    .privacy-consent__corpo {
        padding: 20px;
    }

    .privacy-consent__topo h1 {
        font-size: 1.5rem;
    }

    .privacy-consent__links {
        gap: 0.65rem 1rem;
    }

    .privacy-consent__acoes {
        flex-direction: column;
    }

    .privacy-consent__botao {
        width: 100%;
    }
}

.app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
    padding-left: var(--sidebar-width);
    overflow: hidden;
    transition: padding-left 220ms ease;
}

.app-shell__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    overflow-y: auto;
    z-index: 30;
    transition: width 220ms ease;
}

.app-shell__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    width: 100%;
}

.app-shell__header {
    position: sticky;
    top: 0;
    z-index: 25;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 6px 18px -12px rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(10px);
    min-height: 4.45rem;
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.app-shell__content {
    flex: 1;
    min-height: auto;
    overflow: visible;
    padding: 1.5rem;
}

.sidebar {
    background:
        radial-gradient(circle at 50% -10%, rgba(52, 211, 153, 0.16), transparent 18rem),
        var(--sidebar-bg, #0f172a);
    color: var(--sidebar-text, #f8fafc);
    border-right: 1px solid var(--sidebar-border, #1e293b);
    box-shadow: inset -1px 0 0 rgba(15, 23, 42, 0.6);
}

.sidebar__header {
    border-bottom: 1px solid var(--sidebar-border, #1e293b);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 11.6rem;
    overflow: hidden;
    position: relative;
}

.sidebar__header-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    position: relative;
    z-index: 1;
    width: 100%;
}
.sidebar-toggle {
    border: none;
    background: transparent;
    color: var(--sidebar-text, #f8fafc);
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 160ms ease;
}
.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
    background-color: rgba(148, 163, 184, 0.25);
}
.sidebar-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.55);
}
.sidebar-toggle__icon {
    display: inline-flex;
    transition: transform 180ms ease;
}
.sidebar-toggle__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.sidebar__title {
    color: var(--sidebar-text, #f8fafc);
    letter-spacing: -0.035em;
}

.sidebar__eyebrow {
    color: rgba(167, 243, 208, 0.75);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sidebar__subtitle {
    color: var(--sidebar-accent, #34d399);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.sidebar__section-label {
    color: var(--sidebar-muted, rgba(148, 163, 184, 0.85));
}

.sidebar__user {
    color: var(--sidebar-muted, rgba(148, 163, 184, 0.85));
}

.sidebar__footer {
    border-top: 1px solid var(--sidebar-border, #1e293b);
    color: var(--sidebar-muted, rgba(148, 163, 184, 0.7));
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.app-shell__backdrop,
.mobile-menu-toggle {
    display: none;
}

.app-shell__header-start,
.app-shell__header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.app-shell__breadcrumb {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-shell__title-block {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.app-shell__title-block .app-shell__breadcrumb {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
}

.app-shell__title-block h2 {
    margin: 0;
    color: #1e293b;
    font-size: 1.18rem;
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.18;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-shell__title-block p {
    margin: 0.1rem 0 0;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.3;
}

.header-quick-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.65rem;
    padding: 0.55rem 1rem;
    border-radius: 0.8rem;
    background: var(--brand);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: 0 12px 24px -16px rgba(15, 118, 110, 0.8);
    transition: background 150ms ease, transform 150ms ease;
}

.header-quick-action:hover {
    background: var(--brand-strong);
    color: #fff;
    transform: translateY(-1px);
}

.header-quick-action--secondary {
    border: 1px solid rgba(15, 118, 110, 0.22);
    background: #ffffff;
    color: var(--brand);
    box-shadow: 0 10px 22px -18px rgba(15, 23, 42, 0.5);
}

.header-quick-action--secondary:hover {
    background: #ecfdf5;
    color: var(--brand-strong);
}

.user-menu {
    position: relative;
}

.user-menu__trigger {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.8rem;
    padding: 0.35rem 0.55rem 0.35rem 0.35rem;
    border: 1px solid var(--border-soft);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-strong);
}

.user-menu__trigger > svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    color: #94a3b8;
}

.user-menu__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #0f766e, #0891b2);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.user-menu__identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.user-menu__identity strong {
    max-width: 10rem;
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu__identity small {
    color: var(--text-muted);
    font-size: 0.68rem;
}

.user-menu__panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    z-index: 80;
    width: 15rem;
    padding: 0.45rem;
    border: 1px solid var(--border-soft);
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 24px 60px -25px rgba(15, 23, 42, 0.45);
}

.user-menu__panel a,
.user-menu__panel button {
    display: flex;
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 0;
    border-radius: 0.65rem;
    background: transparent;
    color: #334155;
    font-size: 0.85rem;
    text-align: left;
}

.user-menu__panel a:hover,
.user-menu__panel button:hover {
    background: #f1f5f9;
}

.user-menu__summary {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.35rem;
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid #eef2f7;
}

.user-menu__summary span {
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-overflow: ellipsis;
}

.system-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid;
    border-radius: 0.85rem;
    font-size: 0.88rem;
    box-shadow: var(--shadow-card);
}

.system-alert__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.system-alert--success { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.system-alert--success .system-alert__icon { background: #10b981; color: #fff; }
.system-alert--danger { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.system-alert--danger .system-alert__icon { background: #ef4444; color: #fff; }
.system-alert--info { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.system-alert--info .system-alert__icon { background: #3b82f6; color: #fff; }

.app-shell__content > .rounded-xl,
.app-shell__content > .rounded-2xl,
.app-shell__content .rounded-xl.bg-white,
.app-shell__content .rounded-2xl.bg-white {
    border-color: var(--border-soft);
    box-shadow: var(--shadow-card);
}

.app-shell__content input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
.app-shell__content select,
.app-shell__content textarea {
    min-height: 2.65rem;
    border-color: #d8e1ec;
    background-color: #fff;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.app-shell__content input:focus,
.app-shell__content select:focus,
.app-shell__content textarea:focus {
    border-color: #0f766e !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

.app-shell__content table thead {
    background: #f7f9fc;
}

.app-shell__content table tbody tr {
    transition: background-color 120ms ease;
}

.app-shell__content table tbody tr:hover {
    background: #f8fafc;
}

.sidebar-nav .btn-nav__label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kanban-grid {
    gap: var(--layout-gutter, 1.5rem);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.kanban-grid::-webkit-scrollbar {
    height: 8px;
}

.kanban-grid::-webkit-scrollbar-thumb {
    background-color: rgba(15, 23, 42, 0.2);
    border-radius: 999px;
}

.kanban-grid::-webkit-scrollbar-track {
    background: transparent;
}
[contenteditable="true"]:focus {
    outline: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 0.375rem;
    padding: 0 0.25rem;
}

.kanban-column {
    border-top: 5px solid var(--stage-color, #0ea5e9);
}

.kanban-overview__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.kanban-overview__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kanban-overview__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.kanban-overview__value--muted {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.kanban-column-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.18));
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kanban-column-meta {
    display: inline-block;
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.stage-color::-webkit-color-swatch,
.stage-color::-webkit-color-swatch-wrapper {
    border: none;
    padding: 0;
}

.stage-color::-moz-color-swatch {
    border: none;
}

.kanban-column .kanban-card {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.kanban-card-placeholder {
    border: 2px dashed rgba(16, 185, 129, 0.35);
    border-radius: 0.75rem;
    background: rgba(16, 185, 129, 0.05);
}

.kanban-card.dragging {
    opacity: 0.65;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.75rem;
    background-color: #059669;
    color: #ffffff;
    font-weight: 600;
    transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
    box-shadow: 0 18px 35px -25px rgba(15, 118, 110, 0.65);
    cursor: pointer;
}

.auth-submit:hover {
    background-color: #10b981;
    color: #ffffff;
}

.auth-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.35);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.75rem;
    background-color: #10b981;
    color: #ffffff;
    font-weight: 600;
    transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.login-submit:hover {
    background-color: #059669;
    color: #ffffff;
}

.login-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}

body.sidebar-collapsed .app-shell {
    padding-left: var(--sidebar-collapsed-width);
}
body.sidebar-collapsed .app-shell__sidebar,
body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}
body.sidebar-collapsed .sidebar__header {
    align-items: center;
    justify-content: center;
    min-height: 5.5rem;
}
body.sidebar-collapsed .sidebar__header-body {
    display: flex;
    justify-content: center;
}
body.sidebar-collapsed .sidebar-nav {
    padding-left: 0;
    padding-right: 0;
}
body.sidebar-collapsed .sidebar-nav .sidebar__section-label {
    display: none;
}
body.sidebar-collapsed .sidebar-nav .btn-nav {
    justify-content: center;
    gap: 0;
}
body.sidebar-collapsed .sidebar-nav .btn-nav__label {
    display: none;
}
body.sidebar-collapsed .sidebar-nav .btn-nav__icon {
    width: 100%;
    justify-content: center;
}
body.sidebar-collapsed .sidebar-toggle__icon {
    transform: rotate(180deg);
}
body.sidebar-collapsed .sidebar__footer {
    display: none;
}

@media (max-width: 900px) {
    .app-shell {
        padding-left: 0;
    }

    .app-shell__sidebar {
        width: min(19rem, 88vw);
        transform: translateX(-105%);
        transition: transform 220ms ease;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    body.mobile-menu-open .app-shell__sidebar {
        transform: translateX(0);
    }

    .app-shell__backdrop {
        position: fixed;
        inset: 0;
        z-index: 29;
        border: 0;
        background: rgba(15, 23, 42, 0.58);
        backdrop-filter: blur(2px);
    }

    body.mobile-menu-open .app-shell__backdrop {
        display: block;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 2.7rem;
        height: 2.7rem;
        border: 1px solid var(--border-soft);
        border-radius: 0.8rem;
        background: #fff;
        color: #334155;
    }

    .mobile-menu-toggle svg {
        width: 1.35rem;
    }

    body.sidebar-collapsed .app-shell {
        padding-left: 0;
    }

    body.sidebar-collapsed .app-shell__sidebar,
    body.sidebar-collapsed .sidebar {
        width: min(19rem, 88vw);
    }

    body.sidebar-collapsed .sidebar__header-body {
        display: flex;
    }

    body.sidebar-collapsed .sidebar-nav .sidebar__section-label {
        display: list-item;
    }

    body.sidebar-collapsed .sidebar-nav .btn-nav {
        justify-content: flex-start;
        gap: 0.75rem;
    }

    body.sidebar-collapsed .sidebar-nav .btn-nav__label {
        display: inline;
    }

    body.sidebar-collapsed .sidebar__footer {
        display: flex;
    }

    .sidebar-toggle {
        display: none;
    }

    .app-shell__content {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .app-shell__header {
        min-height: 4rem;
        padding: 0.55rem 0.85rem;
    }

    .app-shell__breadcrumb,
    .app-shell__header-start p,
    .user-menu__identity,
    .header-quick-action span:last-child {
        display: none;
    }

    .header-quick-action {
        width: 2.7rem;
        min-width: 2.7rem;
        padding: 0;
        justify-content: center;
        font-size: 1.2rem;
    }

    .user-menu__trigger {
        padding-right: 0.35rem;
    }

    .user-menu__trigger > svg {
        display: none;
    }

    .app-shell__header h2 {
        font-size: 1.05rem;
    }
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 90% 10%, rgba(45, 212, 191, 0.22), transparent 15rem),
        linear-gradient(125deg, #0f172a 0%, #15344a 58%, #0f766e 140%);
    color: #fff;
    box-shadow: 0 28px 55px -35px rgba(15, 23, 42, 0.75);
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    right: -4rem;
    bottom: -7rem;
    width: 18rem;
    height: 18rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
}

.dashboard-hero__eyebrow,
.dashboard-panel__eyebrow {
    color: #5eead4;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dashboard-hero h3 {
    max-width: 42rem;
    margin-top: 0.55rem;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.dashboard-hero p {
    max-width: 38rem;
    margin-top: 0.75rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.dashboard-hero__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 auto;
    gap: 0.65rem;
}

.dashboard-hero__primary {
    box-shadow: 0 16px 34px rgba(15, 118, 110, 0.28);
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.metric-card,
.dashboard-panel {
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.metric-card {
    display: flex;
    flex-direction: column;
    min-height: 12rem;
    padding: 1.25rem;
}

.metric-card--primary {
    border-color: #99f6e4;
    background: linear-gradient(145deg, #f0fdfa, #fff 70%);
}

.metric-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-card__label {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.metric-card__icon,
.dashboard-actions__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.6rem;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 0.65rem;
    font-weight: 800;
}

.metric-card > strong {
    margin-top: 1rem;
    color: #0f172a;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.metric-card > strong.metric-card__text-value {
    overflow: hidden;
    font-size: 1.25rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric-card p {
    margin-top: 0.3rem;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.45;
}

.metric-card a {
    margin-top: auto;
    padding-top: 0.85rem;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(18rem, 0.8fr);
    gap: 1rem;
}

.dashboard-panel {
    padding: 1.4rem;
}

.dashboard-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #edf2f7;
}

.dashboard-panel__eyebrow {
    color: #0f766e;
}

.dashboard-panel__header h3 {
    margin-top: 0.25rem;
    color: #172033;
    font-size: 1.05rem;
    font-weight: 750;
}

.dashboard-panel__total {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
}

.funnel-list {
    display: grid;
    gap: 1.1rem;
    padding-top: 1.2rem;
}

.funnel-row__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #334155;
    font-size: 0.82rem;
}

.funnel-row__track {
    overflow: hidden;
    height: 0.5rem;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: #edf2f7;
}

.funnel-row__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e, #22c55e);
}

.funnel-row small {
    display: block;
    margin-top: 0.3rem;
    color: #94a3b8;
    font-size: 0.68rem;
}

.dashboard-actions {
    display: flex;
    flex-direction: column;
}

.dashboard-actions > a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 0.2rem;
    border-bottom: 1px solid #edf2f7;
    color: #334155;
}

.dashboard-actions > a:last-child {
    border-bottom: 0;
}

.dashboard-actions > a:hover strong {
    color: #0f766e;
}

.dashboard-actions > a > span:last-child {
    display: flex;
    flex-direction: column;
}

.dashboard-actions strong {
    font-size: 0.82rem;
}

.dashboard-actions small {
    margin-top: 0.12rem;
    color: #94a3b8;
    font-size: 0.68rem;
}

.dashboard-empty {
    padding: 2rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.8rem;
    color: #64748b;
    text-align: center;
}

.dashboard-empty p {
    margin-top: 0.35rem;
    font-size: 0.8rem;
}

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

@media (max-width: 760px) {
    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.4rem;
    }

    .dashboard-hero__actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

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

    .dashboard-hero__actions .btn {
        flex: 1;
    }
}

.dashboard-executive {
    --dash-ink: #102033;
    --dash-muted: #64748b;
    --dash-line: #dbe5ee;
}

.dashboard-hero--executive {
    align-items: center;
    min-height: 13.5rem;
    background:
        radial-gradient(circle at 12% 15%, rgba(14, 165, 233, 0.22), transparent 16rem),
        radial-gradient(circle at 88% 10%, rgba(212, 175, 55, 0.24), transparent 15rem),
        linear-gradient(135deg, #081827 0%, #0e3441 56%, #0f766e 140%);
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-kpi {
    position: relative;
    overflow: hidden;
    min-height: 9.25rem;
    padding: 1.2rem;
    border: 1px solid var(--dash-line);
    border-radius: 1.15rem;
    background: linear-gradient(145deg, #fff, #f8fafc);
    box-shadow: var(--shadow-card);
}

.dashboard-kpi::after {
    content: "";
    position: absolute;
    right: -2.5rem;
    top: -2.5rem;
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.07);
}

.dashboard-kpi--brand {
    border-color: rgba(20, 184, 166, 0.42);
    background: linear-gradient(145deg, #ecfdf5, #fff);
}

.dashboard-kpi--warning {
    border-color: rgba(212, 175, 55, 0.45);
    background: linear-gradient(145deg, #fffbeb, #fff);
}

.dashboard-kpi span,
.dashboard-kpi small {
    display: block;
    color: var(--dash-muted);
}

.dashboard-kpi span {
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-kpi strong {
    display: block;
    margin-top: 0.8rem;
    color: var(--dash-ink);
    font-size: clamp(1.6rem, 2.4vw, 2.35rem);
    font-weight: 850;
    letter-spacing: -0.055em;
}

.dashboard-kpi small {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    line-height: 1.35;
}

.dashboard-health-grid,
.dashboard-rank-grid {
    display: grid;
    gap: 1rem;
}

.dashboard-health-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.6fr);
}

.dashboard-rank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-grid--executive {
    grid-template-columns: minmax(0, 1.35fr) minmax(22rem, 0.75fr);
}

.conversion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    padding-top: 1.1rem;
}

.conversion-card {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.95rem;
    background: #f8fafc;
}

.conversion-card strong,
.focus-stage strong {
    display: block;
    color: var(--dash-ink);
    font-size: 1.55rem;
    font-weight: 850;
    letter-spacing: -0.045em;
}

.conversion-card span,
.focus-stage span,
.focus-stage p {
    display: block;
    color: var(--dash-muted);
    font-size: 0.75rem;
}

.conversion-card div {
    overflow: hidden;
    height: 0.45rem;
    margin-top: 0.85rem;
    border-radius: 999px;
    background: #e2e8f0;
}

.conversion-card div span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e, #0ea5e9);
}

.focus-stage {
    padding-top: 1.1rem;
}

.focus-stage strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.focus-stage p {
    margin-top: 1rem;
    padding: 0.85rem;
    border-radius: 0.85rem;
    background: #f8fafc;
    line-height: 1.45;
}

.mini-chart {
    display: grid;
    grid-template-columns: repeat(6, minmax(2.5rem, 1fr));
    gap: 0.7rem;
    min-height: 15rem;
    padding-top: 1.2rem;
    align-items: end;
}

.mini-chart > div {
    display: grid;
    align-items: end;
    justify-items: center;
    min-height: 12.5rem;
    gap: 0.35rem;
}

.mini-chart > div > span {
    display: block;
    width: 100%;
    max-width: 2.4rem;
    border-radius: 999px 999px 0.45rem 0.45rem;
    background: linear-gradient(180deg, #0ea5e9, #0f766e);
}

.mini-chart strong {
    color: var(--dash-ink);
    font-size: 0.75rem;
}

.mini-chart small {
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 800;
}

.rank-list {
    display: grid;
    gap: 0.85rem;
    padding-top: 1rem;
}

.rank-list > div {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid #edf2f7;
    border-radius: 0.9rem;
    background: #fff;
}

.rank-list span,
.rank-list strong {
    position: relative;
    z-index: 1;
}

.rank-list span {
    overflow: hidden;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-list strong {
    color: #0f766e;
    font-size: 0.82rem;
}

.rank-list em {
    position: absolute;
    inset: auto auto 0 0;
    height: 0.18rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f766e, #d4af37);
}

.dashboard-panel__link {
    color: #0f766e;
    font-size: 0.74rem;
    font-weight: 800;
}

.dashboard-table-list {
    display: grid;
    gap: 0.65rem;
    padding-top: 1rem;
}

.dashboard-table-list > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem;
    border: 1px solid #edf2f7;
    border-radius: 0.9rem;
    background: #fff;
    color: #334155;
}

.dashboard-table-list > a:hover {
    border-color: rgba(15, 118, 110, 0.3);
    background: #f8fafc;
}

.dashboard-table-list strong,
.dashboard-table-list small {
    display: block;
}

.dashboard-table-list strong {
    font-size: 0.8rem;
}

.dashboard-table-list small {
    margin-top: 0.15rem;
    color: #94a3b8;
    font-size: 0.68rem;
}

.dashboard-table-list em {
    flex: 0 0 auto;
    color: #0f766e;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
}

.dashboard-actions--horizontal {
    gap: 0;
}

.dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    padding-top: 1rem;
}

.dashboard-action-grid a {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.95rem;
    border: 1px solid #edf2f7;
    border-radius: 0.95rem;
    color: #334155;
}

.dashboard-action-grid a:hover {
    border-color: rgba(15, 118, 110, 0.28);
    background: #f8fafc;
}

.dashboard-action-grid strong,
.dashboard-action-grid small {
    display: block;
}

.dashboard-action-grid strong {
    font-size: 0.8rem;
}

.dashboard-action-grid small {
    margin-top: 0.12rem;
    color: #94a3b8;
    font-size: 0.68rem;
}

@media (max-width: 1280px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-rank-grid,
    .dashboard-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .dashboard-health-grid,
    .dashboard-grid--executive,
    .dashboard-rank-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .dashboard-kpi-grid,
    .conversion-grid,
    .dashboard-action-grid {
        grid-template-columns: 1fr;
    }

    .mini-chart {
        overflow-x: auto;
        grid-template-columns: repeat(6, minmax(4rem, 1fr));
    }
}

.professional-modal {
    box-shadow: 0 35px 90px -35px rgba(15, 23, 42, 0.65);
}

.proposal-institution-manager-toggle {
    position: fixed;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.proposal-institution-manager-toggle:checked + .proposal-institution-manager-modal {
    display: flex !important;
    z-index: 9999;
}

/* Área de trabalho única: nenhuma tela anterior fica visível ou interativa. */
body.crm-workspace-active .app-shell {
    pointer-events: none;
    user-select: none;
}

.crm-workspace-modal:not(.hidden) {
    z-index: 10000 !important;
    padding: clamp(1rem, 3vh, 2rem) clamp(1rem, 3vw, 3rem) !important;
    background: #f8fafc !important;
}

.crm-workspace-modal:not(.hidden)::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: block;
    background: #f8fafc;
    content: '';
}

.professional-modal__header {
    margin: -1.5rem -1.5rem 0;
    padding: 1.4rem 1.5rem 1.2rem;
    border-bottom: 1px solid #e7edf4;
    background: linear-gradient(135deg, #f8fafc, #fff);
}

.professional-modal__eyebrow,
.settings-intro__eyebrow,
.catalog-overview > div:first-child > span,
.course-create-panel__header span {
    display: block;
    margin-bottom: 0.3rem;
    color: #0f766e;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.settings-nav {
    position: sticky;
    top: 5.25rem;
    z-index: 10;
    display: flex;
    gap: 0.45rem;
    margin: 1.25rem -0.25rem 0;
    padding: 0.5rem;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: rgba(248, 250, 252, 0.94);
    backdrop-filter: blur(12px);
}

.settings-nav a {
    flex: 0 0 auto;
    padding: 0.55rem 0.8rem;
    border-radius: 0.65rem;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
}

.settings-nav a:hover {
    background: #fff;
    color: #0f766e;
    box-shadow: 0 5px 15px -10px rgba(15, 23, 42, 0.5);
}

.settings-section {
    scroll-margin-top: 10rem;
    background: #fff;
}

.settings-section__heading {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.settings-section__heading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 0.7rem;
    font-weight: 800;
}

.settings-section__heading h4 {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 750;
}

.settings-section__heading p {
    margin-top: 0.15rem;
    color: #94a3b8;
    font-size: 0.72rem;
}

.settings-subsection {
    scroll-margin-top: 10rem;
    padding: 1rem;
    border: 1px solid #ccfbf1;
    border-radius: 0.8rem;
    background: #f0fdfa;
}

.courses-workspace {
    --courses-accent: #0f766e;
    --courses-accent-strong: #115e59;
    --courses-blue: #2563eb;
    --courses-border: #dbe4ee;
    --courses-panel: #ffffff;
    --courses-muted: #64748b;
}

.catalog-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--courses-border);
    border-radius: 0.85rem;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
        radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.12), transparent 13rem);
    box-shadow: 0 14px 34px -30px rgba(15, 23, 42, 0.5);
}

.catalog-overview__intro {
    min-width: 0;
}

.catalog-overview h3 {
    color: #172033;
    font-size: 1.2rem;
    font-weight: 750;
}

.catalog-overview p {
    max-width: 36rem;
    margin-top: 0.25rem;
    color: var(--courses-muted);
    font-size: 0.82rem;
}

.catalog-overview__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(7rem, 1fr));
    gap: 0.55rem;
}

.catalog-overview__metrics article {
    min-width: 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid #e5edf6;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.88);
}

.catalog-overview__metrics strong,
.catalog-overview__metrics small {
    display: block;
}

.catalog-overview__metrics strong {
    color: var(--courses-accent);
    font-size: 1.2rem;
    line-height: 1;
}

.catalog-overview__metrics small {
    margin-top: 0.35rem;
    color: var(--courses-muted);
    font-size: 0.65rem;
}

.courses-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1rem;
    padding: 0.9rem;
    border: 1px solid var(--courses-border);
    border-radius: 0.85rem;
    background: var(--courses-panel);
    box-shadow: 0 14px 34px -32px rgba(15, 23, 42, 0.52);
}

.courses-filter {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) minmax(12rem, 0.28fr) auto;
    align-items: end;
    gap: 0.75rem;
    min-width: 0;
}

.courses-filter__search,
.courses-filter__category {
    min-width: 0;
}

.courses-filter__actions,
.courses-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.courses-toolbar__actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.courses-toolbar__actions .btn {
    white-space: nowrap;
}

.courses-list-header {
    display: grid;
    grid-template-columns: minmax(14rem, 0.8fr) minmax(24rem, 1.4fr) auto;
    align-items: center;
    gap: 1rem;
}

.courses-list-filters {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) minmax(11rem, 0.55fr) auto auto;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.courses-list-filters__search,
.courses-list-filters__category {
    min-width: 0;
}

.courses-list-filters .btn {
    white-space: nowrap;
}

.course-list-name,
.course-list-price,
.course-list-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-list-name {
    color: #111827;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: help;
}

.course-list-price {
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 750;
}

.course-list-text {
    color: #334155;
    font-size: 0.86rem;
}

.course-list-text--center {
    text-align: center;
}

.course-list-text.is-muted {
    color: #94a3b8;
}

.course-list-badge {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    min-height: 1.85rem;
    padding: 0.3rem 0.65rem;
    overflow: hidden;
    border: 1px solid #ccfbf1;
    border-radius: 999px;
    background: #f0fdfa;
    color: #115e59;
    font-size: 0.78rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.courses-workspace[data-courses-view="professional"] .courses-list-header h3,
.courses-workspace[data-courses-view="technical"] .courses-list-header h3 {
    color: #0f766e;
}

.courses-workspace[data-courses-view="professional"] .course-col--categoria {
    display: none;
}

.courses-workspace[data-courses-view="professional"] .course-col--nome {
    width: 28%;
}

.courses-workspace[data-courses-view="professional"] .course-col--modalidade {
    width: 13%;
}

.courses-workspace[data-courses-view="professional"] .course-col--instituicao {
    width: 18%;
}

.courses-workspace[data-courses-view="professional"] .course-col--semestres {
    width: 8%;
}

.courses-workspace[data-courses-view="professional"] .course-col--valor {
    width: 10%;
}

.courses-workspace[data-courses-view="professional"] .course-col--oferta {
    width: 16%;
}

.courses-workspace[data-courses-view="professional"] .course-col--acoes {
    width: 10%;
    text-align: center;
}

.courses-workspace[data-courses-view="professional"] .course-col--acoes .btn {
    display: inline-flex;
    margin: 0 auto;
}

.course-list-price--offer {
    color: #0f766e;
}

.course-professional-value-note {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.3rem;
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.2;
    white-space: nowrap;
}

.course-professional-value-note span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-installment-inline {
    margin-left: 0.45rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.course-grid-table--special .course-list-price--offer {
    display: inline;
}

.course-admin-modal {
    overflow-y: auto;
}

.course-admin-modal__dialog {
    width: min(58rem, 100%);
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 30px 80px -38px rgba(15, 23, 42, 0.7);
}

.course-admin-modal__dialog--sm {
    width: min(34rem, 100%);
}

.course-admin-modal__dialog--categories {
    width: min(48rem, 100%);
}

.course-admin-modal__dialog--institutions {
    width: min(56rem, 100%);
}

.course-admin-modal__dialog--professional {
    width: min(60rem, calc(100vw - 1.25rem));
    overflow-x: hidden;
}

.course-admin-modal[data-course-modal-variant-key="profissionalizante"] .course-admin-modal__dialog--professional {
    width: min(52rem, calc(100vw - 1.25rem));
}

#courseProfessionalModal .course-admin-modal__dialog--professional,
#courseTechnicalModal .course-admin-modal__dialog--professional {
    width: min(64rem, calc(100vw - 1.25rem));
}

#courseProfessionalModal .course-admin-modal__header,
#courseTechnicalModal .course-admin-modal__header {
    padding: 0.95rem 1rem;
}

#courseProfessionalModal .course-modal-form--professional,
#courseTechnicalModal .course-modal-form--professional {
    padding: 0.95rem 1rem 1rem;
}

.course-admin-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid #e7edf4;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.course-admin-modal__header > div {
    min-width: 0;
    flex: 1 1 auto;
}

.course-admin-modal__header p {
    margin: 0 0 0.25rem;
    color: var(--courses-accent);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.course-admin-modal__header h2,
.course-admin-modal__title-field {
    display: inline-block;
    vertical-align: top;
    margin: 0;
    width: auto;
    max-width: min(16rem, 100%);
    min-width: 9rem;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.9rem;
    background: #ffffff;
    color: #000000;
    font-size: 1.08rem;
    font-weight: 750;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 8px 18px -18px rgba(15, 23, 42, 0.55);
    cursor: help;
}

.course-admin-modal__title-field {
    box-sizing: border-box;
}

.course-admin-modal__header span {
    display: block;
    margin-top: 0.25rem;
    color: var(--courses-muted);
    font-size: 0.8rem;
}

.course-modal-variant-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 0.45rem;
    padding: 0.36rem 0.7rem;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--brand-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 10px 22px -18px rgba(15, 118, 110, 0.55);
}

.course-admin-modal[data-course-modal-variant-key="profissionalizante"] .course-admin-modal__header h2::after,
.course-admin-modal[data-course-modal-variant-key="tecnico"] .course-admin-modal__header h2::after,
.course-admin-modal[data-course-modal-variant-key="graduacao"] .course-admin-modal__header h2::after,
.course-admin-modal[data-course-modal-variant-key="graduacao_cruzeiro"] .course-admin-modal__header h2::after,
.course-admin-modal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] .course-admin-modal__header h2::after,
.course-admin-modal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] .course-admin-modal__header h2::after {
    display: inline-flex;
    align-items: center;
    margin-left: 0.6rem;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    vertical-align: middle;
}

.course-admin-modal[data-course-modal-variant-key="profissionalizante"] .course-admin-modal__header h2::after {
    content: "Profissionalizante";
    border: 1px solid rgba(15, 118, 110, 0.18);
    background: rgba(15, 118, 110, 0.08);
    color: var(--brand-strong);
}

.course-admin-modal[data-course-modal-variant-key="tecnico"] .course-admin-modal__header h2::after {
    content: "Técnico";
    border: 1px solid rgba(14, 116, 144, 0.2);
    background: rgba(14, 116, 144, 0.08);
    color: #0f766e;
}

.course-admin-modal[data-course-modal-variant-key="graduacao"] .course-admin-modal__header h2::after {
    content: "Graduação";
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
}

.course-admin-modal[data-course-modal-variant-key="graduacao_cruzeiro"] .course-admin-modal__header h2::after {
    content: "Graduação - Cruzeiro";
    border: 1px solid rgba(14, 116, 144, 0.2);
    background: rgba(14, 116, 144, 0.08);
    color: #0f766e;
}

.course-admin-modal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] .course-admin-modal__header h2::after,
.course-admin-modal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] .course-admin-modal__header h2::after {
    content: "Pós-graduação";
    border: 1px solid rgba(168, 85, 247, 0.2);
    background: rgba(168, 85, 247, 0.08);
    color: #7c3aed;
}

.course-modal-variant-note {
    margin: 0 0 0.85rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.course-modal-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 1.25rem;
}

.course-modal-section {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
    padding-top: 0.35rem;
    margin-top: 0.1rem;
    border-top: 1px solid #e8eef5;
}

.course-modal-section__header {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.course-modal-section__header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.course-modal-section__header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.course-modal-form__field {
    grid-column: span 2;
    min-width: 0;
}

.course-modal-form__field--wide,
.course-modal-form__field--institution {
    grid-column: span 3;
}

.course-modal-form__field--small {
    grid-column: span 1;
}

.course-modal-form__check {
    grid-column: span 2;
    align-self: end;
    padding-bottom: 0.65rem;
}

#courseActionsModal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] .course-admin-modal__dialog {
    width: min(72rem, calc(100vw - 1.25rem));
}

#courseActionsModal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] .course-modal-form {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
}

#courseActionsModal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] [data-course-modal-academic-section] {
    display: contents;
}

#courseActionsModal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] [data-course-modal-academic-section] > .course-modal-section__header {
    display: none;
}

#courseActionsModal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] [data-course-modal-academic-section] > [data-course-modal-institution-wrap] {
    display: none !important;
}

#courseActionsModal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] [data-course-modal-actions-section] {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.75rem;
    padding-top: 0.85rem;
}

#courseActionsModal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] [data-course-modal-name-wrap] {
    grid-column: 1 / 5;
}

#courseActionsModal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] [data-course-modal-modality-wrap] {
    grid-column: 5 / 7;
}

#courseActionsModal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] [data-course-modal-duration-field-wrap] {
    grid-column: 7 / 9;
}

#courseActionsModal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] [data-course-modal-institution-wrap] {
    grid-column: 1 / 5;
}

#courseActionsModal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] [data-course-modal-special-duration-field-wrap] {
    grid-column: 5 / 8;
}

#courseActionsModal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] [data-course-modal-value-wrap] {
    grid-column: 9 / 11;
}

#courseActionsModal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] [data-course-modal-offer-main-wrap] {
    grid-column: 11 / 13;
}

#courseActionsModal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] [data-course-modal-actions-section] > .course-modal-section__header {
    grid-column: 1 / -1;
}

#courseActionsModal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] [data-course-modal-parcelas-wrap] {
    grid-column: 1 / 4;
}

#courseActionsModal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] [data-course-modal-preview-wrap] {
    grid-column: 4 / -1;
}

#courseActionsModal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] [data-course-modal-special-section] [data-course-modal-institution-wrap] {
    display: block;
    grid-column: 1 / 5;
}

#courseActionsModal[data-course-modal-variant-key="pos_graduacao_cruzeiro"][data-course-modal-profile-key^="pos_graduacao_cruzeiro:"] [data-course-modal-offer-special-wrap] {
    display: none !important;
}

#courseCreateModal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] .course-admin-modal__dialog--professional {
    width: min(72rem, calc(100vw - 1.25rem));
}

#courseCreateModal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] .course-modal-form {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
}

#courseCreateModal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] [data-course-create-general-section] {
    display: contents;
}

#courseCreateModal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] [data-course-create-general-section] > .course-modal-section__header {
    display: none;
}

#courseCreateModal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] [data-course-create-general-section] > [data-course-create-institution-wrap] {
    display: none !important;
}

#courseCreateModal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] [data-course-create-actions-section] {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.75rem;
    padding-top: 0.85rem;
}

#courseCreateModal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] [data-course-create-name-wrap] {
    grid-column: 1 / 5;
}

#courseCreateModal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] [data-course-create-value-wrap] {
    grid-column: 9 / 11;
}

#courseCreateModal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] [data-course-create-offer-main-wrap] {
    grid-column: 11 / 13;
}

#courseCreateModal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] [data-course-create-category-wrap] {
    grid-column: 1 / -1;
}

#courseCreateModal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] [data-course-create-duration-wrap] {
    grid-column: 7 / 9;
}

#courseCreateModal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] [data-course-create-modality-wrap] {
    grid-column: 5 / 7;
}

#courseCreateModal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] [data-course-create-institution-wrap] {
    display: block;
    grid-column: 1 / 5;
}

#courseCreateModal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] [data-course-create-special-duration-wrap] {
    grid-column: 5 / 8;
}

#courseCreateModal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] [data-course-create-actions-section] > .course-modal-section__header {
    grid-column: 1 / -1;
}

#courseCreateModal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] [data-course-create-parcelas-wrap] {
    grid-column: 1 / 4;
}

#courseCreateModal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] [data-course-create-preview-wrap] {
    grid-column: 4 / -1;
}

#courseCreateModal[data-course-modal-variant-key="pos_graduacao"][data-course-modal-profile-key^="pos_graduacao:"] [data-course-create-offer-special-wrap] {
    display: none !important;
}

/* Graduação usa semestres como única duração e concentra os dados comerciais em três linhas. */
#courseCreateModal[data-course-modal-variant-key="graduacao"] .course-admin-modal__dialog--professional,
#courseCreateModal[data-course-modal-variant-key="graduacao_cruzeiro"] .course-admin-modal__dialog--professional,
#courseActionsModal[data-course-modal-variant-key="graduacao"] .course-admin-modal__dialog,
#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] .course-admin-modal__dialog {
    width: min(82rem, calc(100vw - 1.25rem));
}

#courseCreateModal[data-course-modal-variant-key="graduacao"] .course-modal-form,
#courseCreateModal[data-course-modal-variant-key="graduacao_cruzeiro"] .course-modal-form,
#courseActionsModal[data-course-modal-variant-key="graduacao"] .course-modal-form,
#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] .course-modal-form {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
}

#courseCreateModal[data-course-modal-variant-key="graduacao"] [data-course-create-general-section],
#courseCreateModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-create-general-section],
#courseActionsModal[data-course-modal-variant-key="graduacao"] [data-course-modal-academic-section],
#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-modal-academic-section],
#courseCreateModal[data-course-modal-variant-key="graduacao"] [data-course-create-actions-section],
#courseCreateModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-create-actions-section],
#courseActionsModal[data-course-modal-variant-key="graduacao"] [data-course-modal-actions-section],
#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-modal-actions-section] {
    display: contents;
}

#courseCreateModal[data-course-modal-variant-key="graduacao"] .course-modal-section__header,
#courseCreateModal[data-course-modal-variant-key="graduacao_cruzeiro"] .course-modal-section__header,
#courseActionsModal[data-course-modal-variant-key="graduacao"] .course-modal-section__header,
#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] .course-modal-section__header {
    display: none;
}

#courseCreateModal[data-course-modal-variant-key="graduacao"] [data-course-create-name-wrap],
#courseCreateModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-create-name-wrap],
#courseActionsModal[data-course-modal-variant-key="graduacao"] [data-course-modal-name-wrap],
#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-modal-name-wrap] {
    grid-column: 1 / 7;
}

#courseCreateModal[data-course-modal-variant-key="graduacao"] [data-course-create-value-wrap],
#courseCreateModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-create-value-wrap],
#courseActionsModal[data-course-modal-variant-key="graduacao"] [data-course-modal-value-wrap],
#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-modal-value-wrap] {
    grid-column: 7 / 9;
}

#courseCreateModal[data-course-modal-variant-key="graduacao"] [data-course-create-category-wrap],
#courseCreateModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-create-category-wrap],
#courseActionsModal[data-course-modal-variant-key="graduacao"] [data-course-modal-category-wrap],
#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-modal-category-wrap] {
    grid-column: 9 / 11;
}

#courseCreateModal[data-course-modal-variant-key="graduacao"] [data-course-create-duration-wrap],
#courseCreateModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-create-duration-wrap],
#courseActionsModal[data-course-modal-variant-key="graduacao"] [data-course-modal-duration-field-wrap],
#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-modal-duration-field-wrap] {
    grid-column: 11 / 13;
}

#courseCreateModal[data-course-modal-variant-key="graduacao"] [data-course-create-modality-wrap],
#courseCreateModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-create-modality-wrap],
#courseActionsModal[data-course-modal-variant-key="graduacao"] [data-course-modal-modality-wrap],
#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-modal-modality-wrap] {
    grid-column: 1 / 3;
}

#courseCreateModal[data-course-modal-variant-key="graduacao"] [data-course-create-institution-wrap],
#courseCreateModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-create-institution-wrap],
#courseActionsModal[data-course-modal-variant-key="graduacao"] [data-course-modal-institution-wrap],
#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-modal-institution-wrap] {
    grid-column: 3 / 6;
}

#courseCreateModal[data-course-modal-variant-key="graduacao"] [data-course-create-parcelas-wrap],
#courseCreateModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-create-parcelas-wrap],
#courseActionsModal[data-course-modal-variant-key="graduacao"] [data-course-modal-parcelas-wrap],
#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-modal-parcelas-wrap] {
    grid-column: 6 / 8;
}

#courseCreateModal[data-course-modal-variant-key="graduacao"] [data-course-create-offer-special-wrap],
#courseCreateModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-create-offer-special-wrap],
#courseActionsModal[data-course-modal-variant-key="graduacao"] [data-course-modal-offer-special-wrap],
#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-modal-offer-special-wrap] {
    grid-column: 8 / 10;
}

#courseCreateModal[data-course-modal-variant-key="graduacao"] [data-course-create-preview-wrap],
#courseCreateModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-create-preview-wrap],
#courseActionsModal[data-course-modal-variant-key="graduacao"] [data-course-modal-preview-wrap],
#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-modal-preview-wrap] {
    grid-column: 10 / 13;
}

#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-modal-modality-wrap] {
    grid-column: 1 / 3;
    grid-row: 2;
}

#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-modal-institution-wrap] {
    grid-column: 3 / 6;
    grid-row: 2;
}

#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-modal-offer-special-wrap] {
    grid-column: 6 / 8;
    grid-row: 2;
}

#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-modal-parcelas-wrap] {
    grid-column: 8 / 10;
    grid-row: 2;
}

#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-modal-preview-wrap] {
    grid-column: 10 / 13;
    grid-row: 2;
}

#courseCreateModal[data-course-modal-variant-key="graduacao"] .course-create-import-tools,
#courseCreateModal[data-course-modal-variant-key="graduacao_cruzeiro"] .course-create-import-tools,
#courseActionsModal[data-course-modal-variant-key="graduacao"] .course-create-import-tools,
#courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] .course-create-import-tools {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    #courseCreateModal[data-course-modal-variant-key="graduacao"] .course-modal-form,
    #courseCreateModal[data-course-modal-variant-key="graduacao_cruzeiro"] .course-modal-form,
    #courseActionsModal[data-course-modal-variant-key="graduacao"] .course-modal-form,
    #courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] .course-modal-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #courseCreateModal[data-course-modal-variant-key="graduacao"] .course-modal-form__field,
    #courseCreateModal[data-course-modal-variant-key="graduacao_cruzeiro"] .course-modal-form__field,
    #courseActionsModal[data-course-modal-variant-key="graduacao"] .course-modal-form__field,
    #courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] .course-modal-form__field {
        grid-column: auto;
    }

    #courseCreateModal[data-course-modal-variant-key="graduacao"] [data-course-create-name-wrap],
    #courseCreateModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-create-name-wrap],
    #courseActionsModal[data-course-modal-variant-key="graduacao"] [data-course-modal-name-wrap],
    #courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] [data-course-modal-name-wrap],
    #courseCreateModal[data-course-modal-variant-key="graduacao"] .course-create-import-tools,
    #courseCreateModal[data-course-modal-variant-key="graduacao_cruzeiro"] .course-create-import-tools,
    #courseActionsModal[data-course-modal-variant-key="graduacao"] .course-create-import-tools,
    #courseActionsModal[data-course-modal-variant-key="graduacao_cruzeiro"] .course-create-import-tools {
        grid-column: 1 / -1;
    }
}

.course-modal-form--professional {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 1.05rem 1.1rem 1.1rem;
}

.course-professional-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: end;
}

#courseProfessionalModal .course-modal-form--professional,
#courseTechnicalModal .course-modal-form--professional {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
}

#courseProfessionalModal .course-professional-grid {
    grid-column: 1 / -1;
    grid-template-columns: minmax(17rem, 2fr) minmax(8rem, 0.9fr) minmax(10rem, 1fr) minmax(6.5rem, 0.72fr) minmax(7.5rem, 0.78fr) minmax(7.5rem, 0.78fr);
    gap: 0.6rem;
}

#courseProfessionalModal .course-professional-grid__field {
    grid-column: auto !important;
    width: 100%;
}

#courseProfessionalModal .course-admin-modal__footer {
    grid-column: 1 / -1;
    margin-top: 0.15rem;
    padding-top: 0.85rem;
    border-top: 1px solid #edf2f7;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

#courseProfessionalModal .course-admin-modal__footer-stack {
    width: min(100%, 30rem);
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(9rem, 0.9fr) minmax(11rem, 1.1fr);
    grid-template-areas:
        "title title"
        "parcelas preview";
    gap: 0.6rem 0.7rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid #dbe4ef;
    border-radius: 0.9rem;
    background: #f8fbff;
}

#courseProfessionalModal .course-admin-modal__footer-title {
    grid-area: title;
    color: var(--courses-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#courseProfessionalModal .course-admin-modal__footer-actions--stacked {
    width: auto;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
}

#courseProfessionalModal .course-admin-modal__footer-actions--stacked .btn {
    width: auto;
}

#courseProfessionalModal .course-admin-modal__footer-stack .course-professional-grid__field--parcelas,
#courseProfessionalModal .course-admin-modal__footer-stack .course-professional-preview {
    width: 100%;
    min-width: 0;
}

#courseProfessionalModal .course-professional-grid__field--parcelas {
    grid-area: parcelas;
}

#courseProfessionalModal .course-professional-preview {
    grid-area: preview;
    min-height: auto;
}

#coursePostgraduateModal .course-admin-modal__dialog--professional {
    width: min(72rem, calc(100vw - 1.25rem));
    border: 3px solid rgba(37, 99, 235, 0.92);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.85) inset,
        0 28px 80px -38px rgba(15, 23, 42, 0.62),
        0 0 0 6px rgba(37, 99, 235, 0.14);
}

#coursePostgraduateModal .course-modal-form--professional {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
}

#coursePostgraduateModal .course-professional-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(15, minmax(0, 1fr));
    gap: 0.55rem;
}

#coursePostgraduateModal .course-professional-grid__field--name {
    grid-column: span 5;
}

#coursePostgraduateModal .course-professional-grid__field--institution-display {
    grid-column: span 2;
}

#coursePostgraduateModal .course-professional-grid__field--charge-hours {
    grid-column: span 2;
}

#coursePostgraduateModal .course-professional-grid__field--duration {
    grid-column: span 2;
}

#coursePostgraduateModal .course-professional-grid__field--price {
    grid-column: span 2;
}

#coursePostgraduateModal .course-admin-modal__footer {
    grid-column: 1 / -1;
    margin-top: 0.15rem;
    padding-top: 0.85rem;
    border-top: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.9rem;
}

#coursePostgraduateModal .course-admin-modal__footer-stack {
    width: 100%;
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: minmax(10rem, 0.95fr) minmax(12rem, 1.35fr) minmax(8rem, 0.75fr) minmax(14rem, 1.25fr);
    grid-template-areas:
        "title title title title"
        "type institution parcelas preview";
    gap: 0.6rem 0.7rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid #dbe4ef;
    border-radius: 0.9rem;
    background: #f8fbff;
}

#coursePostgraduateModal .course-admin-modal__footer-title {
    grid-area: title;
    color: var(--courses-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#coursePostgraduateModal .course-postgraduate-footer__type {
    grid-area: type;
    width: 100%;
}

#coursePostgraduateModal .course-postgraduate-footer__institution {
    grid-area: institution;
    width: 100%;
}

#coursePostgraduateModal .course-professional-grid__field--parcelas {
    grid-area: parcelas;
}

#coursePostgraduateModal .course-professional-preview {
    grid-area: preview;
    min-height: auto;
}

#courseTechnicalModal .course-admin-modal__dialog--professional {
    width: min(72rem, calc(100vw - 1.25rem));
    border: 3px solid rgba(37, 99, 235, 0.92);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.85) inset,
        0 28px 80px -38px rgba(15, 23, 42, 0.62),
        0 0 0 6px rgba(37, 99, 235, 0.14);
}

#courseTechnicalModal .course-modal-form--professional {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
}

#courseTechnicalModal .course-professional-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(15, minmax(0, 1fr));
    gap: 0.55rem;
}

#courseTechnicalModal .course-professional-grid__field--name {
    grid-column: span 5;
}

#courseTechnicalModal .course-professional-grid__field--institution-display {
    grid-column: span 2;
}

#courseTechnicalModal .course-professional-grid__field--charge-hours {
    grid-column: span 2;
}

#courseTechnicalModal .course-professional-grid__field--duration {
    grid-column: span 2;
}

#courseTechnicalModal .course-professional-grid__field--price {
    grid-column: span 2;
}

#courseTechnicalModal .course-admin-modal__footer {
    grid-column: 1 / -1;
    margin-top: 0.15rem;
    padding-top: 0.85rem;
    border-top: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.9rem;
}

#courseTechnicalModal .course-admin-modal__footer-stack {
    width: 100%;
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: minmax(10rem, 0.95fr) minmax(12rem, 1.35fr) minmax(8rem, 0.75fr) minmax(14rem, 1.25fr);
    grid-template-areas:
        "title title title title"
        "modality institution parcelas preview";
    gap: 0.6rem 0.7rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid #dbe4ef;
    border-radius: 0.9rem;
    background: #f8fbff;
}

#courseTechnicalModal .course-admin-modal__footer-title {
    grid-area: title;
    color: var(--courses-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#courseTechnicalModal .course-technical-footer__modality {
    grid-area: modality;
    width: 100%;
}

#courseTechnicalModal .course-technical-footer__institution {
    grid-area: institution;
    width: 100%;
}

#courseTechnicalModal .course-professional-grid__field--parcelas {
    grid-area: parcelas;
}

#courseTechnicalModal .course-professional-preview {
    grid-area: preview;
    min-height: auto;
}

#coursePostgraduateModal .course-admin-modal__footer-actions--stacked,
#courseTechnicalModal .course-admin-modal__footer-actions--stacked {
    width: 100%;
    flex: 0 0 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
}

#coursePostgraduateModal .course-admin-modal__footer-actions--stacked .btn,
#courseTechnicalModal .course-admin-modal__footer-actions--stacked .btn {
    width: auto;
}

.course-professional-grid__field {
    min-width: 0;
}

.course-professional-grid__field--name {
    grid-column: span 5;
}

.course-admin-modal[data-course-modal-variant-key="profissionalizante"] .course-professional-grid__field--name {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
    max-width: none;
}

.course-admin-modal[data-course-modal-variant-key="profissionalizante"] .course-professional-grid__field--name input {
    width: 100%;
}

.course-professional-grid__field--modality {
    grid-column: span 2;
}

.course-admin-modal[data-course-modal-variant-key="profissionalizante"] .course-professional-grid__field--modality {
    grid-column: span 2;
}

.course-professional-grid__field--institution {
    grid-column: span 3;
}

.course-admin-modal[data-course-modal-variant-key="profissionalizante"] .course-professional-grid__field--institution {
    grid-column: span 3;
}

.course-professional-grid__field--tempo {
    grid-column: span 2;
}

.course-admin-modal[data-course-modal-variant-key="profissionalizante"] .course-professional-grid__field--tempo {
    grid-column: auto;
}

.course-professional-grid__field--price {
    grid-column: span 3;
}

.course-professional-grid__field--parcelas {
    grid-column: span 2;
}

.course-professional-grid__field--summary {
    grid-column: span 4;
    display: flex;
    align-items: stretch;
}

.course-professional-preview {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    border: 1px solid #dbe4ef;
    border-radius: 0.85rem;
    background: #f8fbff;
}

.course-professional-preview span {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.course-professional-preview strong {
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
}

.course-professional-preview small {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.25;
}

.course-create-import-tools {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.9fr) auto;
    align-items: end;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.course-create-import-tools__header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.course-create-import-tools__header > span {
    color: #475569;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.course-create-import-tools__header small {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.3;
}

.course-create-import-tools__category {
    min-width: 0;
}

.course-create-import-tools__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}

.course-admin-modal__footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid #edf2f7;
}

.course-admin-modal__footer--split {
    justify-content: space-between;
}

.course-admin-modal__footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
}

.course-category-modal__body,
.course-institution-modal__body {
    padding: 1.25rem;
}

.course-category-modal__body + .course-admin-modal__footer,
.course-institution-modal__body + .course-admin-modal__footer {
    margin-top: 0;
    padding: 1rem 1.25rem 1.25rem;
}

.course-category-create-box,
.course-institution-create-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid #dbe4ee;
    border-radius: 0.8rem;
    background: #f8fafc;
}

.course-category-create-box__fields {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(12rem, 0.8fr);
    gap: 0.75rem;
    align-items: end;
}

.course-institution-create-box__fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    align-items: end;
}

.course-category-manager,
.course-institution-manager {
    margin-top: 1rem;
}

.course-category-manager__header,
.course-institution-manager__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.course-category-manager__header span,
.course-institution-manager__header span {
    color: #172033;
    font-size: 0.84rem;
    font-weight: 800;
}

.course-category-manager__header small,
.course-institution-manager__header small,
.course-category-manager__empty,
.course-institution-manager__empty {
    color: #94a3b8;
    font-size: 0.75rem;
}

.course-category-manager__list,
.course-institution-manager__list {
    display: grid;
    gap: 0.55rem;
    max-height: 20rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.course-category-row,
.course-institution-row {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #ffffff;
}

.course-category-row__view,
.course-category-row__edit,
.course-institution-row__view,
.course-institution-row__edit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
}

.course-category-row__view strong,
.course-institution-row__view strong {
    display: block;
    color: #172033;
    font-size: 0.9rem;
    font-weight: 750;
}

.course-category-row__view span,
.course-institution-row__view span {
    display: block;
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.73rem;
}

.course-category-row__flow {
    display: inline-flex;
    margin-top: 0.45rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid #ccfbf1;
    border-radius: 999px;
    background: #f0fdfa;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Mantém as informações dos níveis compactas, sem alterar a listagem de categorias. */
.course-level-row__details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    min-width: 0;
}

.course-level-row__details strong,
.course-level-row__details span,
.course-level-row__details .course-category-row__flow {
    display: inline-flex;
    align-items: center;
    margin-top: 0;
    white-space: nowrap;
}

.course-category-row__actions,
.course-institution-row__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.course-category-row__edit,
.course-institution-row__edit {
    grid-template-columns: minmax(0, 1fr) minmax(11rem, auto) auto auto;
}

.course-category-row__edit.hidden,
.course-institution-row__edit.hidden {
    display: none;
}

.course-create-panel {
    padding: 1rem;
    border: 1px solid var(--courses-border);
    border-radius: 0.85rem;
    background: var(--courses-panel);
    box-shadow: 0 14px 34px -32px rgba(15, 23, 42, 0.52);
}

.course-create-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #edf2f7;
}

.course-create-panel__header h3 {
    color: #172033;
    font-size: 1rem;
    font-weight: 750;
}

.course-create-panel__header p {
    margin-top: 0.15rem;
    color: var(--courses-muted);
    font-size: 0.78rem;
}

.course-create-form {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 0.8rem;
    margin-top: 1rem;
}

.course-create-form__field {
    grid-column: span 2;
    min-width: 0;
}

.course-create-form__field--wide {
    grid-column: span 3;
}

.course-create-form__field--institution {
    grid-column: span 2;
}

.course-create-form__field--small {
    grid-column: span 1;
}

.course-create-form__check,
.course-create-form__submit {
    min-width: 0;
}

.course-create-form__check {
    grid-column: span 2;
    padding-bottom: 0.7rem;
}

.course-create-form__submit {
    grid-column: span 2;
    display: flex;
    justify-content: flex-end;
}

.course-category-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #edf2f7;
}

.course-category-tools__item {
    display: grid;
    grid-template-columns: minmax(5.5rem, 0.22fr) minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem 0.75rem;
    min-width: 0;
}

.course-category-tools__control {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.course-category-tools__item > span {
    grid-column: 2;
}

@media (max-width: 850px) {
    .catalog-overview {
        grid-template-columns: 1fr;
    }

    .catalog-overview__metrics {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .settings-nav {
        top: 4.6rem;
    }
}

@media (max-width: 1180px) {
    .courses-toolbar,
    .courses-filter {
        grid-template-columns: 1fr;
    }

    .courses-list-header {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .courses-list-filters {
        grid-template-columns: minmax(12rem, 1fr) minmax(11rem, 0.7fr) auto auto;
    }

    .courses-filter__actions,
    .courses-toolbar__actions {
        justify-content: flex-start;
    }

    .course-create-form {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .course-create-form__field,
    .course-create-form__field--institution {
        grid-column: span 2;
    }

    .course-create-form__field--wide {
        grid-column: span 3;
    }

    .course-create-form__field--small {
        grid-column: span 1;
    }

    .course-category-tools {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .catalog-overview__metrics {
        grid-template-columns: 1fr;
    }

    .courses-filter__actions,
    .courses-toolbar__actions,
    .course-category-tools__control {
        align-items: stretch;
        flex-direction: column;
    }

    .courses-list-filters {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .course-create-import-tools,
    .course-create-import-tools__actions {
        align-items: stretch;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .course-category-create-box,
    .course-institution-create-box,
    .course-category-row__view,
    .course-category-row__edit,
    .course-institution-row__view,
    .course-institution-row__edit {
        grid-template-columns: 1fr;
    }

    .course-category-row__actions,
    .course-institution-row__actions {
        justify-content: flex-start;
    }

    .course-category-create-box__fields {
        grid-template-columns: 1fr;
    }

    .course-create-form {
        grid-template-columns: 1fr;
    }

    .course-create-form__field,
    .course-create-form__field--wide,
    .course-create-form__field--institution,
    .course-create-form__field--small,
    .course-create-form__check,
    .course-create-form__submit {
        grid-column: 1;
    }

    .course-create-form__submit,
    .courses-toolbar__actions .btn {
        width: 100%;
    }

    .course-admin-modal__header,
    .course-admin-modal__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .course-admin-modal__footer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .course-modal-form {
        grid-template-columns: 1fr;
    }

    .course-modal-section {
        grid-template-columns: 1fr;
    }

    .course-modal-section__header,
    .course-modal-form__field,
    .course-modal-form__field--wide,
    .course-modal-form__field--institution,
    .course-modal-form__field--small,
    .course-modal-form__check {
        grid-column: 1;
    }

    .course-category-tools__item {
        grid-template-columns: 1fr;
    }

    .course-category-tools__item > span {
        grid-column: 1;
    }

    .course-institution-create-box__fields {
        grid-template-columns: 1fr;
    }
}

.users-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #edf2f7;
}

.users-page-header > div > span {
    color: #0f766e;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Centro profissional de configurações */
.settings-workspace {
    --brand-primary: #0f766e;
    --brand-accent: #0ea5e9;
    color: #172033;
}

.sidebar__brand {
    display: grid;
    gap: 0.36rem;
    min-width: 0;
    margin: 0 auto;
    justify-items: center;
    width: 100%;
}

.sidebar__brand-link {
    display: grid;
    gap: 0.36rem;
    justify-items: center;
    min-width: 0;
    width: 100%;
    text-decoration: none;
}

.sidebar__brand-link:focus-visible {
    border-radius: 0.5rem;
    outline: 2px solid rgba(14, 165, 233, 0.75);
    outline-offset: 0.35rem;
}

.sidebar__brand-logo {
    display: grid;
    width: min(7.85rem, 100%);
    place-items: center;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
}

.sidebar__brand-logo::after {
    content: none;
}

.sidebar__brand img {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 2.8rem;
    justify-self: center;
    object-fit: contain;
}

.sidebar__brand .sidebar__title {
    min-width: 0;
    overflow: hidden;
    max-width: min(7.85rem, 100%);
    width: min(7.85rem, 100%);
    color: #d4af37;
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.015em;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    padding-left: 0.1rem;
}

body.sidebar-collapsed .sidebar__brand-logo,
body.sidebar-collapsed .sidebar__brand .sidebar__title {
    display: none;
}

.app-shell__section-label {
    color: var(--company-primary, #0f766e);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.btn--primary {
    background: var(--company-primary, #0f766e);
}

.btn--primary:hover {
    background: color-mix(in srgb, var(--company-primary, #0f766e) 88%, #000);
}

.settings-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1.8rem;
    overflow: hidden;
    border: 1px solid #dbe5ee;
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--brand-accent) 18%, transparent), transparent 30%),
        linear-gradient(135deg, #fff 0%, #f7fafc 100%);
    box-shadow: 0 18px 45px -36px rgba(15, 23, 42, 0.65);
}

.settings-hero__eyebrow,
.settings-panel__header > div:nth-child(2) > span {
    color: var(--brand-primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.settings-hero h2 {
    margin-top: 0.35rem;
    color: #142033;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 750;
    letter-spacing: -0.04em;
}

.settings-hero p {
    max-width: 48rem;
    margin-top: 0.45rem;
    color: #64748b;
    font-size: 0.9rem;
}

.settings-health {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 0.45rem;
}

.settings-health span,
.settings-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 750;
    white-space: nowrap;
}

.settings-health span::before,
.settings-status::before {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #cbd5e1;
    content: "";
}

.settings-health span.is-ready,
.settings-status.is-ready {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.settings-health span.is-ready::before,
.settings-status.is-ready::before {
    background: #22c55e;
    box-shadow: 0 0 0 3px #dcfce7;
}

.settings-layout {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.settings-directory {
    position: sticky;
    top: 6.4rem;
    display: grid;
    gap: 0.35rem;
    padding: 0.55rem;
    border: 1px solid #dbe5ee;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 35px -30px rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(14px);
}

.settings-directory a {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0 0.65rem;
    padding: 0.8rem;
    border-radius: 0.75rem;
    color: #64748b;
    transition: 160ms ease;
}

.settings-directory a:hover {
    background: #f1f5f9;
    color: var(--brand-primary);
}

.settings-directory a > span {
    grid-row: 1 / span 2;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 0.62rem;
    background: color-mix(in srgb, var(--brand-primary) 9%, white);
    color: var(--brand-primary);
    font-size: 0.65rem;
    font-weight: 850;
}

.settings-directory strong {
    font-size: 0.78rem;
}

.settings-directory small {
    margin-top: 0.12rem;
    color: #94a3b8;
    font-size: 0.65rem;
}

.settings-content {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.settings-panel {
    scroll-margin-top: 7rem;
    overflow: hidden;
    border: 1px solid #dbe5ee;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 20px 50px -44px rgba(15, 23, 42, 0.7);
}

.settings-panel__header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: start;
    padding: 1.35rem 1.45rem;
    border-bottom: 1px solid #edf2f7;
    background: linear-gradient(135deg, #fff, #fbfdff);
}

.settings-panel__number {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--brand-primary) 10%, white);
    color: var(--brand-primary);
    font-size: 0.72rem;
    font-weight: 850;
}

.settings-panel__header h3 {
    margin-top: 0.1rem;
    color: #1e293b;
    font-size: 1.05rem;
    font-weight: 750;
}

.settings-panel__header p {
    max-width: 48rem;
    margin-top: 0.2rem;
    color: #7b8ba1;
    font-size: 0.76rem;
}

.settings-form {
    display: grid;
    gap: 1.3rem;
    padding: 1.45rem;
}

.settings-grid {
    display: grid;
    gap: 1rem;
}

.settings-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
    display: grid;
    align-content: start;
    gap: 0.38rem;
    min-width: 0;
}

.field > span {
    color: #334155;
    font-size: 0.72rem;
    font-weight: 750;
}

.field input,
.field select {
    width: 100%;
    min-height: 2.8rem;
    border: 1px solid #d9e2ec;
    border-radius: 0.72rem;
    background: #fff;
    padding: 0.68rem 0.8rem;
    color: #1e293b;
    font-size: 0.82rem;
    transition: 150ms ease;
}

.field input:focus,
.field select:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent) 14%, transparent);
    outline: 0;
}

.field small,
.upload-control small,
.upload-card__body small {
    color: #94a3b8;
    font-size: 0.65rem;
    line-height: 1.4;
}

.field--full {
    grid-column: 1 / -1;
}

.field--color > div {
    display: flex;
    align-items: center;
    min-height: 2.8rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid #d9e2ec;
    border-radius: 0.72rem;
}

.field--color input {
    width: 2.3rem;
    min-height: 2.1rem;
    padding: 0;
    border: 0;
}

.field--color output {
    margin-left: 0.6rem;
    color: #475569;
    font-family: monospace;
    font-size: 0.75rem;
}

.settings-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #edf2f7;
}

.settings-actions > span {
    color: #94a3b8;
    font-size: 0.68rem;
}

.brand-preview-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1rem;
}

.login-preview,
.shell-preview {
    min-height: 16rem;
    overflow: hidden;
    border: 1px solid #dbe5ee;
    border-radius: 1rem;
    background: #f8fafc;
}

.login-preview {
    display: grid;
    grid-template-columns: 58% 42%;
}

.login-preview__visual {
    display: grid;
    min-height: 16rem;
    place-items: center;
    background-color: #122036;
    background-position: center;
    background-size: cover;
    color: #94a3b8;
    font-size: 0.72rem;
}

.login-preview__form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.2rem;
    background: #fff;
}

.login-preview__logo {
    display: grid;
    min-height: 3rem;
    place-items: center;
    margin-bottom: 0.4rem;
}

.login-preview__logo img {
    max-width: 100%;
    max-height: 3.8rem;
    object-fit: contain;
}

.login-preview__form i {
    display: block;
    height: 1.65rem;
    border: 1px solid #dbe5ee;
    border-radius: 0.45rem;
    background: #f8fafc;
}

.login-preview__form button {
    height: 1.8rem;
    border-radius: 0.45rem;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 750;
}

.shell-preview {
    display: grid;
    grid-template-columns: 38% 62%;
}

.shell-preview__sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.1rem;
    background: #0f1c30;
    color: #fff;
}

.shell-preview__sidebar > div {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    overflow: hidden;
    border-radius: 0.7rem;
    background: #fff;
    color: var(--brand-primary);
}

.shell-preview__sidebar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shell-preview__sidebar span {
    font-size: 0.68rem;
    font-weight: 750;
}

.shell-preview__sidebar i {
    display: block;
    height: 1.35rem;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.09);
}

.shell-preview__page {
    display: grid;
    align-content: start;
    gap: 0.8rem;
    padding: 1rem;
}

.shell-preview__page b {
    width: 55%;
    height: 1rem;
    border-radius: 0.35rem;
    background: #dbe5ee;
}

.shell-preview__page i {
    height: 3.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    background: #fff;
}

.brand-assets {
    align-items: stretch;
}

.upload-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid #dbe5ee;
    border-radius: 0.9rem;
    background: #fbfdff;
}

.upload-card__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.upload-card__heading strong {
    color: #334155;
    font-size: 0.78rem;
}

.upload-card__heading span {
    color: #94a3b8;
    font-size: 0.62rem;
}

.upload-card__body {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.upload-card__body > div:last-child {
    display: grid;
    gap: 0.15rem;
}

.upload-card__body b {
    color: #475569;
    font-size: 0.72rem;
}

.upload-card__thumb {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dbe5ee;
    border-radius: 0.65rem;
    background: #fff;
    color: #94a3b8;
    font-size: 0.58rem;
}

.upload-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.upload-card__thumb--wide {
    width: 7.6rem;
    height: 3.7rem;
}

.upload-card__thumb--square {
    width: 3.8rem;
    height: 3.8rem;
}

.upload-card__thumb--portrait {
    width: 3.8rem;
    height: 5rem;
}

.upload-card__thumb--portrait img {
    object-fit: cover;
}

.upload-card__thumb--favicon {
    width: 3.4rem;
    height: 3.4rem;
}

.upload-control {
    display: grid;
    gap: 0.22rem;
    padding: 0.75rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.7rem;
    background: #fff;
    cursor: pointer;
}

.upload-control:hover {
    border-color: var(--brand-accent);
    background: color-mix(in srgb, var(--brand-accent) 4%, white);
}

.upload-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.upload-control > span {
    color: var(--brand-primary);
    font-size: 0.72rem;
    font-weight: 750;
}

.asset-remove {
    align-self: flex-start;
    color: #b91c1c;
    font-size: 0.68rem;
    font-weight: 700;
}

.asset-remove:disabled {
    color: #94a3b8;
}

.integration-card {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #dbe5ee;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #f8fafc, #fff);
}

.integration-card > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.18rem 0.65rem;
    align-items: center;
}

.integration-card__signal {
    grid-row: 1 / span 2;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px #dcfce7;
}

.integration-card strong {
    color: #334155;
    font-size: 0.78rem;
}

.integration-card small {
    color: #94a3b8;
    font-size: 0.66rem;
}

.payment-accounts {
    display: grid;
    gap: 1rem;
}

.payment-account {
    overflow: hidden;
    border: 1px solid #dbe5ee;
    border-radius: 0.95rem;
}

.payment-account__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e8eef4;
    background: #f8fafc;
}

.payment-account__header > div {
    display: grid;
}

.payment-account__header span {
    color: var(--brand-primary);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.payment-account__header strong {
    color: #334155;
    font-size: 0.8rem;
}

.payment-account > .settings-grid {
    padding: 1rem;
}

.add-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    border: 1px dashed #b9c8d8;
    border-radius: 0.8rem;
    color: var(--brand-primary);
    font-size: 0.75rem;
    font-weight: 750;
}

.add-account span {
    font-size: 1.2rem;
}

@media (max-width: 1100px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-directory {
        position: static;
        grid-template-columns: repeat(4, minmax(10rem, 1fr));
        overflow-x: auto;
    }
}

@media (max-width: 760px) {
    .settings-hero,
    .settings-actions,
    .settings-panel__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-panel__header {
        display: flex;
    }

    .settings-status {
        margin-left: 3.2rem;
    }

    .settings-grid--2,
    .settings-grid--3,
    .brand-preview-grid,
    .integration-card {
        grid-template-columns: 1fr;
    }

    .login-preview {
        grid-template-columns: 52% 48%;
    }

    .settings-health {
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-actions .btn {
        width: 100%;
    }
}

.users-page-header h3 {
    margin-top: 0.25rem;
    color: #172033;
    font-size: 1.3rem;
    font-weight: 750;
}

.users-page-header p {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.8rem;
}

.users-filter {
    display: grid;
    grid-template-columns: minmax(14rem, 22rem) auto 1fr;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.2rem;
}

.users-filter > span {
    justify-self: end;
    color: #94a3b8;
    font-size: 0.72rem;
}

.user-identity-cell {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.user-identity-cell > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.7rem;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 0.68rem;
    font-weight: 800;
}

.user-identity-cell strong {
    color: #334155;
    font-size: 0.82rem;
}

.role-badge {
    display: inline-flex;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 750;
}

.role-badge--admin {
    background: #eff6ff;
    color: #1d4ed8;
}

.role-badge--user {
    background: #ecfdf5;
    color: #047857;
}

@media (max-width: 700px) {
    .users-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .users-filter {
        grid-template-columns: 1fr auto;
    }

    .users-filter > span {
        display: none;
    }
}

#paymentModal > div {
    width: min(1180px, calc(100vw - 5rem));
    max-width: min(1180px, calc(100vw - 5rem));
}

.payment-modal__result {
    margin: 0 1.25rem 0.75rem;
}

.payment-modal__billet-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
}

.payment-modal__billet-meta > div,
.payment-modal__billet-layout > .grid > div {
    box-shadow: 0 10px 28px -24px rgba(15, 23, 42, 0.35);
}

.payment-modal__billet-qr img {
    width: 8.75rem;
    height: 8.75rem;
}

.payment-modal__footer {
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.payment-modal__status {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem 1rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 0.95rem;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.payment-modal__status > p {
    margin: 0;
    grid-column: 1;
}

.payment-modal__status-main {
    grid-column: 1;
    display: grid;
    gap: 0.65rem;
    min-width: 0;
}

.payment-modal__status [data-payment-link] {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
}

.payment-modal__edit-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.payment-modal__edit-toolbar.hidden {
    display: none !important;
}

.payment-editor-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.6);
}

.payment-editor-modal.is-open {
    display: flex !important;
}

.payment-editor-modal__dialog {
    width: min(42rem, 100%);
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    box-shadow: 0 30px 80px -36px rgba(15, 23, 42, 0.55);
}

.payment-editor-modal__header {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 13rem),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.payment-editor-modal__eyebrow {
    margin: 0;
    color: #2563eb;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.payment-modal__editor {
    display: grid;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid #dbe7ff;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 16px 30px -28px rgba(37, 99, 235, 0.45);
}

.payment-modal__editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.payment-modal__editor-head strong {
    display: block;
    color: #1e3a8a;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.payment-modal__editor-head p {
    margin: 0.22rem 0 0;
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.5;
}

.payment-modal__editor-warning {
    margin: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid #fed7aa;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
    color: #9a3412;
    font-size: 0.76rem;
    line-height: 1.6;
}

.payment-modal__editor-warning-highlight {
    display: block;
    margin-bottom: 0.35rem;
    color: #b91c1c;
    font-weight: 700;
}

.payment-modal__editor-warning.hidden,
.payment-modal__editor-field.hidden {
    display: none !important;
}

.payment-modal__editor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.payment-modal__editor[data-mode="due"] .payment-modal__editor-grid {
    grid-template-columns: minmax(0, 1fr);
}

.payment-modal__editor[data-mode="amount"] .payment-modal__editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-modal__editor-field {
    display: grid;
    gap: 0.36rem;
    min-width: 0;
}

.payment-modal__editor-field span {
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
}

.payment-modal__editor-field input {
    width: 100%;
    min-height: 2.6rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid #d6e1f0;
    border-radius: 0.85rem;
    background: #fff;
    color: #172033;
    font-size: 0.82rem;
}

.payment-modal__editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
}

.payment-modal__status.is-existing {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border-color: #bfdbfe;
    box-shadow: 0 14px 34px -26px rgba(37, 99, 235, 0.45);
}

.payment-modal__status.is-existing [data-payment-footer-note] {
    color: #1e3a8a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.payment-modal__actions {
    justify-content: flex-start;
}

@media (min-width: 980px) {
    .payment-modal__editor {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 0.85rem;
    }

    .payment-modal__editor-head {
        align-items: center;
    }

    .payment-modal__editor-warning {
        padding: 0.7rem 0.85rem;
        font-size: 0.74rem;
    }

    .payment-modal__editor-actions {
        justify-content: flex-end;
    }
}

@media (min-width: 1100px) {
    #paymentModal > div {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        grid-template-columns: minmax(640px, 1.08fr) minmax(640px, 0.92fr);
    }

    #paymentModal > div > :first-child {
        grid-column: 1 / -1;
    }

    .payment-modal__body {
        max-height: none;
        overflow-y: visible;
        padding-right: 0.6rem;
    }

    .payment-modal__result {
        grid-column: 2;
        grid-row: 2;
        margin: 0.85rem 1rem 0.6rem 0;
        max-height: none;
        overflow-y: visible;
    }

    .payment-modal__footer {
        grid-column: 1 / -1;
    }

    .payment-modal__actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (min-width: 1100px) and (max-height: 820px) {
    .payment-modal__body {
        max-height: none;
    }

    .payment-modal__result {
        max-height: none;
    }

    .payment-modal__billet-qr img {
        width: 8.5rem;
        height: 8.5rem;
    }
}

@media (max-width: 1099px) {
    .payment-modal__result {
        margin: 0 1.25rem 0.75rem;
    }

    .payment-modal__footer {
        flex-wrap: wrap;
    }

    .payment-modal__status {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .payment-modal__status [data-payment-link] {
        grid-column: 1;
        grid-row: auto;
        justify-self: flex-start;
    }

    .payment-editor-modal__dialog {
        max-width: 42rem;
    }

    .payment-modal__editor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .payment-editor-modal {
        padding: 0.85rem;
        align-items: flex-end;
    }

    .payment-editor-modal__dialog {
        max-height: calc(100vh - 1.5rem);
        border-radius: 1.4rem;
    }

    .payment-modal__result {
        margin: 0 1rem 0.75rem;
    }

    .payment-modal__footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .payment-modal__status {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment-modal__editor-head,
    .payment-modal__editor-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .payment-modal__editor-grid {
        grid-template-columns: 1fr;
    }

    .payment-modal__actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }
}
