/* 1. Variaveis */
:root {
    --solum-red: #d90613;
    --solum-red-dark: #b8040f;
    --solum-bg: #f6f7f9;
    --solum-card: #ffffff;
    --solum-text: #151922;
    --solum-muted: #687082;
    --solum-border: #e7e9ee;
    --solum-green: #12a85a;
    --solum-yellow: #f5a623;
    --solum-blue: #3467d6;
    --solum-danger: #d90613;
    --solum-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    --solum-radius: 14px;
    --solum-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* 2. Reset e estrutura geral */
* {
    box-sizing: border-box;
}

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

body.solum-mobile-shell {
    background: var(--solum-bg);
    color: var(--solum-text);
    font-family: var(--solum-font);
    font-size: 15px;
    line-height: 1.45;
}

body.solum-mobile-shell a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input[type="submit"],
input[type="button"] {
    min-height: 44px;
}

input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 3px solid rgba(217, 6, 19, .22);
    outline-offset: 2px;
}

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

.app-main {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 78px 14px 92px;
}

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

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 16px;
}

.page-title h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
}

.page-title p {
    margin: 4px 0 0;
    color: var(--solum-muted);
    font-size: 14px;
}

.page-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff0f1;
    color: var(--solum-red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 22px 2px 10px;
}

.section-title h2 {
    margin: 0;
    font-size: 16px;
}

.section-title a {
    color: var(--solum-red);
    font-size: 13px;
    font-weight: 700;
}

/* 3. Cabecalho mobile */
.mobile-header {
    position: fixed;
    z-index: 30;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
    padding: 8px 14px;
    border-bottom: 0;
    background: var(--solum-red);
    color: #fff;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #fff;
    font-size: 38px;
    font-weight: 800;
}

.icon-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.icon-line {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

.mobile-header-spacer {
    display: block;
    width: 44px;
    min-height: 44px;
}

.avatar {
    display: block;
    overflow: hidden;
    border-radius: 50%;
    background: #eef0f4;
    object-fit: cover;
    object-position: center;
}

.avatar-small {
    width: 36px;
    height: 36px;
}

.avatar-large {
    width: 180px;
    height: 180px;
    border: 3px solid #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
}

/* 4. Menu lateral ou drawer */
.drawer-backdrop {
    position: fixed;
    z-index: 39;
    inset: 0;
    display: none;
    background: rgba(15, 23, 42, .38);
}

.app-drawer {
    position: fixed;
    z-index: 40;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(86vw, 340px);
    padding: 0 16px 16px;
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform .18s ease;
    border-right: 1px solid var(--solum-border);
    background: var(--solum-card);
    box-shadow: var(--solum-shadow);
}

.drawer-open .app-drawer {
    transform: translateX(0);
}

.drawer-open .drawer-backdrop {
    display: block;
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    margin: 0 -16px;
    padding: 0 18px;
    background: var(--solum-red);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.drawer-brand-img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.drawer-profile {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 28px 0 22px;
    text-align: center;
}

.drawer-name,
.drawer-role,
.drawer-meta,
.drawer-email {
    display: block;
}

.drawer-name {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.drawer-role {
    margin-top: 4px;
    color: var(--solum-red);
    font-size: 13px;
    font-weight: 800;
}

.drawer-meta,
.drawer-email {
    margin-top: 3px;
    color: var(--solum-muted);
    font-size: 12px;
}

.drawer-meta {
    width: fit-content;
    margin: 12px auto 0;
    padding: 5px 10px;
    border: 1px solid var(--solum-border);
    border-radius: 6px;
    background: #fff;
    color: var(--solum-muted);
    font-size: 11px;
    font-weight: 700;
}

.drawer-nav {
    display: grid;
    gap: 4px;
}

.drawer-link,
.active-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--solum-text);
    font-weight: 700;
}

.drawer-link:hover,
.drawer-link.is-active,
.active-menu {
    background: #fff0f1;
    color: var(--solum-red);
}

.drawer-footer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--solum-border);
}

.drawer-logout {
    color: var(--solum-danger);
}

.nav-icon {
    display: grid;
    width: 24px;
    place-items: center;
    color: currentColor;
    font-weight: 900;
}

.nav-icon-img,
.bottom-icon-img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.bottom-icon-img {
    width: 20px;
    height: 20px;
}

/* 5. Navegacao inferior */
.bottom-nav {
    position: fixed;
    z-index: 32;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 68px;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--solum-border);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--solum-muted);
    cursor: pointer;
    font-weight: 700;
}

.bottom-nav-item span {
    font-size: 18px;
    line-height: 1;
}

.bottom-nav-item small {
    font-size: 11px;
}

.bottom-nav-item.is-active {
    color: var(--solum-red);
}

/* 6. Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.solum-card {
    border: 1px solid var(--solum-border);
    border-radius: var(--solum-radius);
    background: var(--solum-card);
    box-shadow: var(--solum-shadow);
}

.summary-card {
    min-height: 118px;
    padding: 14px;
}

.summary-card-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--solum-muted);
    font-size: 12px;
    font-weight: 800;
}

.summary-card-value {
    display: block;
    margin-top: 10px;
    font-size: 22px;
    font-weight: 900;
}

.summary-card-note {
    display: block;
    margin-top: 4px;
    color: var(--solum-muted);
    font-size: 12px;
}

.summary-placeholder {
    display: block;
}

.presence-summary + .summary-placeholder,
.prize-summary + .summary-placeholder {
    display: none;
}

.dashboard-action {
    margin-top: 12px;
}

.birthdays-card {
    min-height: 126px;
}

.page-message {
    display: block;
    margin-top: 16px;
}

.feature-card {
    padding: 16px;
}

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

.commitment-card {
    padding: 12px;
}

.commitment-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff0f1;
    color: var(--solum-red);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.commitment-body {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 15px;
    align-items: center;
}

.commitment-date {
    width: 62px;
    min-height: 68px;
    padding: 0;
    overflow: hidden;
    justify-content: stretch;
    grid-template-rows: 20px 1fr 20px;
    align-items: stretch;
    border: 1px solid #f0cfd3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .08);
}

.commitment-date small:first-child {
    display: grid;
    place-items: center;
    background: var(--solum-red);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.commitment-date strong {
    display: grid;
    place-items: center;
    min-height: 30px;
    color: var(--solum-text);
    font-size: 23px;
    line-height: 1;
    background: #fff;
}

.commitment-date small:last-child {
    display: grid;
    place-items: center;
    color: var(--solum-red);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    background: #fff;
}

.commitment-date small,
.commitment-date strong {
    width: 100%;
}

.commitment-copy {
    min-width: 0;
}

.commitment-copy strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.commitment-time {
    display: block;
    color: var(--solum-text);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
}

.content-stack {
    display: grid;
    gap: 14px;
}

.content-grid {
    display: grid;
    gap: 14px;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.card-header h2,
.card-header h3 {
    margin: 0;
    font-size: 16px;
}

.card-header p {
    margin: 4px 0 0;
    color: var(--solum-muted);
    font-size: 13px;
}

.empty-card {
    color: var(--solum-muted);
    text-align: center;
}

.quick-list {
    display: grid;
    gap: 10px;
}

.quick-row {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
}

/* 7. Formularios */
.solum-mobile-shell input[type="text"],
.solum-mobile-shell input[type="password"],
.solum-mobile-shell input[type="text"],
.solum-mobile-shell input[type="email"],
.solum-mobile-shell input[type="tel"],
.solum-mobile-shell select,
.solum-mobile-shell textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d9dde6;
    border-radius: 10px;
    background: #fff;
    color: var(--solum-text);
}

.solum-mobile-shell input[type="submit"],
.solum-mobile-shell input[type="button"],
.button-primary {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--solum-red);
    border-radius: 10px;
    background: var(--solum-red);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.solum-mobile-shell input[type="file"] {
    width: 100%;
    min-height: 44px;
    padding: 0;
}

.date-control {
    min-width: 110px;
    width: 110px;
    max-width: 110px;
}

.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--solum-border);
    border-radius: 10px;
    background: #fff;
    color: var(--solum-red);
    cursor: pointer;
    font-weight: 800;
}

.button-action {
    margin-top: 20px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.troca-actions {
    margin-top: 14px;
}

.form-card {
    padding: 16px;
}

.form-grid {
    display: grid;
    gap: 12px;
}

.form-grid input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    accent-color: var(--solum-red);
}

.field-row {
    display: grid;
    gap: 6px;
}

.field-row label,
.field-label {
    color: var(--solum-text);
    font-size: 13px;
    font-weight: 800;
}

.readonly-value {
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--solum-border);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--solum-text);
}

.help-text {
    color: var(--solum-muted);
    font-size: 12px;
}

@media (min-width: 720px) {
    .atestados-form {
        grid-template-columns: repeat(2, max-content);
        justify-content: start;
        column-gap: 24px;
        row-gap: 12px;
        align-items: start;
    }

    .atestados-form .field-row {
        width: max-content;
    }

    .atestados-form .field-row:last-child {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* 8. Tabelas responsivas */
.responsive-table {
    width: 100%;
    overflow-x: auto;
}

.solum-mobile-shell table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.table-card {
    padding: 12px;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.table-modern {
    min-width: 100%;
    box-shadow: none;
}

.table-modern img {
    max-width: 28px;
    height: auto;
}

.table-inline-rows th,
.table-inline-rows td {
    text-align: center;
    vertical-align: middle;
}

.schedule-entry {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #f0d6da;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.schedule-entry + .schedule-entry {
    margin-top: 10px;
}

.schedule-calendar {
    display: grid;
    grid-template-rows: 24px 1fr 22px;
    width: 76px;
    min-height: 88px;
    border: 1px solid #f0cfd3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
    text-align: center;
}

.schedule-calendar-top {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--solum-red);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.schedule-calendar-time {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px 2px;
    color: var(--solum-text);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.schedule-calendar-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--solum-red);
    font-size: 11px;
    font-weight: 800;
    background: #fff;
}

.schedule-entry-main {
    min-width: 0;
}

.schedule-entry-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.schedule-entry-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.schedule-mini-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid #f0d6da;
    border-radius: 10px;
    background: #fff7f8;
    max-width: max-content;
    text-align: center;
    min-height: 54px;
}

.schedule-mini-card span {
    color: var(--solum-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.schedule-mini-card strong {
    color: var(--solum-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.schedule-room-card {
    background: #fff;
}

.schedule-team-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid #d8ece8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .05);
}

.schedule-team-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.schedule-table th,
.schedule-table td {
    text-align: center;
    vertical-align: middle;
}

.team-member-cell {
    display: flex;
    align-items: center;
}

.team-member-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    color: var(--solum-text);
    font-weight: 600;
    text-align: left;
}

.team-member-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 18px;
}

.solum-mobile-shell th {
    background: var(--solum-red);
    color: #fff;
    font-size: 13px;
}

.solum-mobile-shell th,
.solum-mobile-shell td {
    padding: 10px;
    border-bottom: 1px solid var(--solum-border);
}

/* 9. Badges e status */
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.badge-positive {
    background: #e8f8ef;
    color: var(--solum-green);
}

.badge-warning {
    background: #fff5df;
    color: #b86a00;
}

.badge-danger {
    background: #fff0f1;
    color: var(--solum-danger);
}

.badge-muted {
    background: #eef2f7;
    color: var(--solum-muted);
}

/* 10. Perfil */
.profile-hero {
    padding: 18px;
    text-align: center;
}

.profile-hero .avatar {
    width: 104px;
    height: 104px;
    margin: 0 auto 10px;
}

.profile-summary {
    display: block;
    align-items: center;
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.profile-summary::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -8px;
    width: 170px;
    height: 120px;
    background:
        radial-gradient(circle at 26px 34px, rgba(217, 6, 19, .12) 0 22px, transparent 23px),
        radial-gradient(circle at 86px 22px, rgba(217, 6, 19, .12) 0 20px, transparent 21px),
        radial-gradient(circle at 122px 52px, rgba(217, 6, 19, .12) 0 34px, transparent 35px),
        radial-gradient(circle at 70px 92px, rgba(217, 6, 19, .10) 0 22px, transparent 23px);
    pointer-events: none;
}

.profile-summary-main {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.profile-photo {
    width: 112px;
    height: 112px;
    margin: 0;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
    object-fit: cover;
    object-position: center;
}

.profile-name {
    margin: 0;
    font-size: 21px;
    text-align: left;
}

.profile-meta {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-top: 4px;
    padding: 2px 8px;
    border: 1px solid #f1b7bc;
    border-radius: 6px;
    background: #fff;
    color: var(--solum-red);
    font-size: 12px;
    font-weight: 800;
    text-align: left;
}

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

.profile-meta-item {
    display: grid;
    gap: 2px;
}

.profile-meta-label {
    color: var(--solum-muted);
    font-size: 13px;
}

.profile-meta-value {
    font-weight: 800;
    font-size: 14px;
}

.profile-summary-copy {
    min-width: 0;
}

/* 11. Escala */
.schedule-card {
    padding: 14px;
}

.month-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
}

.month-nav a,
.month-nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--solum-border);
    border-radius: 10px;
    background: #fff;
    font-weight: 800;
}

.month-current {
    width: 121px;
    flex: 0 0 104px;
    color: var(--solum-text);
    font-variant-numeric: tabular-nums;
    font-size: 20px;
}

.month-button {
    white-space: nowrap;
}

.month-arrow {
    width: 40px;
    flex: 0 0 40px;
    padding: 0;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
}

.month-arrow[disabled],
.month-arrow[disabled]:hover {
    opacity: .35;
    cursor: not-allowed;
    text-decoration: none;
    pointer-events: none;
}

/* 12. Presencas */
.frequency-ring {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 6px solid #dff5e9;
    border-top-color: var(--solum-green);
    border-radius: 50%;
    color: var(--solum-green);
    font-weight: 900;
}

.frequency-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
}

.frequency-value {
    display: grid;
    min-width: 96px;
    justify-items: center;
    padding: 8px 12px;
    border: 1px solid #fde0e3;
    border-radius: 12px;
    background: #fff7f8;
    color: var(--solum-red);
}

.frequency-value span {
    font-size: 12px;
    font-weight: 800;
}

.frequency-value strong {
    font-size: 24px;
    line-height: 1.1;
}

.frequency-highlight {
    min-width: 200px;
    gap: 3px;
    padding: 16px 18px 14px;
    border-color: #cfe6d6;
    border-radius: 16px;
    background: #eef7ef;
    text-align: center;
    box-shadow: none;
}

.freq-success {
    border-color: #b9e7c6;
    background: #eefcf1;
}

.freq-warning {
    border-color: #f2d59b;
    background: #fff8e8;
}

.freq-alert {
    border-color: #efc2c8;
    background: #fff0f2;
}

.frequency-highlight.freq-success .frequency-label,
.frequency-highlight.freq-success strong {
    color: #12803d;
}

.frequency-highlight.freq-warning .frequency-label,
.frequency-highlight.freq-warning strong {
    color: #b7791f;
}

.frequency-highlight.freq-alert .frequency-label,
.frequency-highlight.freq-alert strong {
    color: #c81e3a;
}

@media (max-width: 640px) {
    .frequency-card {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 12px;
    }

    .frequency-card .frequency-highlight {
        order: 1;
        width: min(100%, 200px);
        margin: 0 auto;
        align-self: center;
    }

    .frequency-card .month-nav {
        order: 2;
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
        margin: 0;
    }
}

.frequency-label {
    color: #0f7a3b;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.frequency-highlight strong {
    color: #0f7a3b;
    font-size: 55px;
    font-weight: 700;
}

.month-nav {
    flex: 0 0 auto;
    width: auto;
}

/* 13. Aniversariantes */
.aniversariantes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 10px;
    align-items: start;
}

.aniversariante {
    min-width: 0;
    text-align: center;
}

.aniversariante img {
    display: block;
    width: 68px;
    height: 68px;
    margin: 0 auto 6px;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
    object-fit: cover;
    object-position: center;
}

.aniversariante .nome,
.aniversariante .data {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aniversariante .nome {
    color: var(--solum-text);
    font-size: 12px;
    font-weight: 800;
}

.aniversariante .data {
    margin-top: 2px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--solum-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

/* 14. Manual */
.help-list {
    display: grid;
    gap: 10px;
}

.manual-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px;
}

.manual-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: #fff0f1;
    color: var(--solum-red);
    font-size: 22px;
    font-weight: 900;
}

.manual-card h2 {
    margin: 0 0 4px;
}

.manual-link {
    color: var(--solum-muted);
}

.manual-link a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--solum-red);
    font-weight: 800;
}

.action-note {
    padding: 12px;
    border: 1px solid #fde3aa;
    border-radius: 12px;
    background: #fff8e7;
    color: #735100;
    font-size: 13px;
}

.legacy-hidden {
    display: none;
}

.premio-page .action-note p {
    margin: 8px 0 0;
}

.premio-form {
    display: grid;
    gap: 12px;
}

.premio-form .div-categoria {
    display: grid;
    gap: 6px;
}

.premio-form .lbl-premio,
.premio-form label {
    color: var(--solum-text);
    font-size: 13px;
    font-weight: 800;
}

.premio-form .ddl-premio {
    width: 100%;
}

.help-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
}

/* 17. Autenticação */
.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background:
        radial-gradient(circle at 11% 14%, rgba(237, 28, 36, 0.035) 0 9%, transparent 9.2%),
        radial-gradient(circle at 91% 10%, rgba(237, 28, 36, 0.022) 0 11%, transparent 11.2%),
        radial-gradient(circle at 8% 88%, rgba(237, 28, 36, 0.018) 0 10%, transparent 10.2%),
        #f7f8fc;
    color: var(--solum-text);
}

.auth-body form {
    min-height: 100vh;
}

.auth-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 16px 0;
}

.auth-page::before,
.auth-page::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-page::before {
    width: 170px;
    height: 170px;
    left: -86px;
    top: -54px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(237, 28, 36, 0.045) 0 58%, transparent 59%);
}

.auth-page::after {
    width: 220px;
    height: 220px;
    right: -84px;
    bottom: -76px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(237, 28, 36, 0.03) 0 58%, transparent 59%);
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 1080px);
    min-height: calc(100vh - 28px);
    display: flex;
    flex-direction: column;
    justify-items: center;
    gap: 18px;
    align-items: center;
}

.auth-brand {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
    margin-top: 4px;
}

.auth-logo {
    width: 96px;
    height: auto;
    object-fit: contain;
}

.auth-brand-text h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
    color: var(--solum-text);
    letter-spacing: 0;
}

.auth-brand-main {
    color: var(--solum-text);
}

.auth-brand-accent {
    color: var(--solum-red);
}

.auth-brand-text p {
    margin: 7px 0 0;
    color: var(--solum-muted);
    font-size: 14px;
    font-weight: 500;
}

.auth-panel {
    width: min(100%, 410px);
    padding: 28px 26px 22px;
    border-radius: 24px;
    border: 1px solid rgba(244, 219, 219, 0.92);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.auth-panel__heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.auth-panel__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
    border: 1px solid rgba(237, 28, 36, 0.92);
    background: #fff;
    color: var(--solum-red);
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.auth-svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-panel__heading h2 {
    margin: 0;
    color: var(--solum-text);
    font-size: 19px;
    line-height: 1.1;
    font-weight: 800;
}

.auth-panel__heading p {
    margin: 4px 0 0;
    color: var(--solum-muted);
    font-size: 13px;
    font-weight: 500;
}

.auth-fields {
    display: grid;
    gap: 14px;
}

.auth-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--solum-text);
    font-size: 12px;
    font-weight: 800;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon,
.auth-input-eye {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--solum-red);
    font-size: 15px;
    line-height: 1;
    pointer-events: none;
}

.auth-input-icon {
    left: 12px;
    width: 16px;
    height: 16px;
}

.auth-input-eye {
    right: 12px;
    color: #8b91a3;
    width: 16px;
    height: 16px;
}

.auth-input {
    width: 100%;
    min-height: 38px;
    padding: 8px 40px 8px 40px;
    border: 1px solid #d9dde6;
    border-radius: 8px;
    background: #fff;
    color: var(--solum-text);
    font-size: 14px;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: 2px solid rgba(237, 28, 36, 0.18);
    outline-offset: 2px;
    border-color: var(--solum-red);
}

.auth-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 22px;
    margin-top: 10px;
}

.auth-links--login {
    justify-content: space-between;
}

.auth-link {
    color: var(--solum-red);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.auth-link:hover,
.auth-link:focus {
    text-decoration: underline;
}

.auth-button {
    width: 100%;
    margin-top: 14px;
    min-height: 38px;
    border: 1px solid var(--solum-red);
    border-radius: 8px;
    background: var(--solum-red);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
}

.auth-message {
    display: block;
    min-height: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.auth-footer {
    width: 100%;
    margin-top: 0;
    padding: 8px 16px 10px;
    text-align: center;
    color: rgba(17, 24, 39, 0.7);
    background: transparent;
    border-top: 1px solid rgba(237, 28, 36, 0.08);
    font-size: 12px;
    font-weight: 500;
}

@media (max-width: 640px) {
    .auth-page {
        padding: 16px 12px 0;
        align-items: flex-start;
    }

    .auth-shell {
        gap: 16px;
        min-height: calc(100vh - 16px);
    }

    .auth-brand {
        gap: 6px;
    }

    .auth-logo {
        width: 84px;
    }

    .auth-brand-text h1 {
        font-size: 28px;
    }

    .auth-brand-text p {
        font-size: 13px;
    }

    .auth-panel {
        width: 100%;
        padding: 18px 14px 16px;
        border-radius: 16px;
    }

    .auth-panel__heading {
        gap: 12px;
        margin-bottom: 14px;
    }

    .auth-panel__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 18px;
    }

    .auth-panel__heading h2 {
        font-size: 16px;
    }

    .auth-panel__heading p {
        font-size: 11px;
    }

    .auth-field label {
        font-size: 12px;
    }

    .auth-input {
        min-height: 38px;
        font-size: 14px;
    }

    .auth-button {
        min-height: 40px;
        font-size: 14px;
    }

    .auth-footer {
        padding: 7px 12px 9px;
    }
}

@media (min-width: 641px) and (max-width: 1100px) {
    .auth-shell {
        width: min(100%, 920px);
        min-height: calc(100vh - 28px);
    }

    .auth-logo {
        width: 94px;
    }

    .auth-brand-text h1 {
        font-size: 42px;
    }

    .auth-panel {
        width: min(100%, 420px);
    }

}

/* 15. Responsividade */
@media (max-width: 340px) {
    .app-main {
        padding-right: 10px;
        padding-left: 10px;
    }

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

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

    .brand-link {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    .table-scroll {
        overflow: visible;
    }

    .table-modern,
    .table-modern tbody,
    .table-modern tr,
    .table-modern td {
        display: block;
        width: 100%;
    }

    .table-modern tr:first-child {
        display: none;
    }

    .table-modern tr {
        margin-bottom: 10px;
        border: 1px solid var(--solum-border);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
        overflow: hidden;
    }

    .table-modern td {
        min-height: 40px;
        padding: 10px 12px;
        border-bottom: 1px solid var(--solum-border);
    }

    .table-modern td:last-child {
        border-bottom: 0;
    }

    .table-modern.table-inline-rows,
    .table-modern.table-inline-rows tbody {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .table-modern.table-inline-rows tr {
        display: table-row;
        margin-bottom: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .table-modern.table-inline-rows tr:first-child {
        display: table-row;
    }

    .table-modern.table-inline-rows td,
    .table-modern.table-inline-rows th {
        display: table-cell;
        min-height: 0;
        padding: 10px 8px;
        border-bottom: 1px solid var(--solum-border);
    }

    .table-modern.table-inline-rows td:last-child {
        border-bottom: 1px solid var(--solum-border);
    }

    .team-member-link {
        width: 100%;
        gap: 12px;
        white-space: normal;
    }

    .team-member-link span,
    .team-member-link label {
        display: inline;
    }

    .schedule-entry {
        grid-template-columns: 72px minmax(0, 1fr);
        padding: 10px;
    }

    .schedule-calendar {
        width: 72px;
        min-height: 84px;
    }

    .schedule-calendar-time {
        font-size: 17px;
    }

    .schedule-entry-head {
        align-items: flex-start;
    }

    .schedule-entry-info {
        align-items: flex-start;
    }

}

@media (min-width: 560px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

@media (min-width: 720px) {
    .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-summary-main {
        grid-template-columns: 124px minmax(0, 1fr);
    }

    .profile-photo {
        margin: 0;
    }

    .profile-name,
    .profile-meta {
        text-align: left;
    }
}

/* 16. Desktop */
@media (min-width: 900px) {
    .mobile-header,
    .bottom-nav,
    .drawer-backdrop {
        display: none;
    }

    .app-layout {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        padding-left: 0;
    }

    .app-drawer {
        position: sticky;
        top: 0;
        transform: none;
        width: 280px;
        height: 100vh;
        box-shadow: none;
    }

    .app-main {
        max-width: none;
        margin: 0;
        padding: 30px 24px 48px 22px;
    }

    .page-title h1 {
        font-size: 30px;
    }

    .summary-card {
        min-height: 132px;
    }
}
