:root {
    --ink: #180f12;
    --paper: #fff0c6;
    --sun: #ffd21f;
    --tomato: #f03b25;
    --teal: #007f79;
    --night: #0f1215;
    --white: #fffaf0;
    --display-font: Impact, "Arial Black", Haettenschweiler, "Arial Narrow Bold", sans-serif;
    --text-font: "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(24, 15, 18, 0.06) 1px, transparent 1px),
        var(--paper);
    background-size: 28px 28px, auto;
    font-family: var(--text-font);
}

body.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        linear-gradient(90deg, rgba(24, 15, 18, 0.72), rgba(24, 15, 18, 0.42)),
        linear-gradient(135deg, var(--night), var(--teal));
}

a {
    color: inherit;
    font-weight: 800;
}

.login-shell {
    width: min(100%, 520px);
    padding: 22px;
}

.login-panel {
    padding: clamp(24px, 6vw, 42px);
    background: var(--white);
    border: 5px solid var(--ink);
    box-shadow: 12px 12px 0 var(--sun), 20px 20px 0 rgba(0, 0, 0, 0.32);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.login-brand span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: var(--ink);
    background: var(--sun);
    border: 3px solid var(--ink);
    box-shadow: 5px 5px 0 var(--tomato);
    font-family: var(--display-font);
}

.login-brand p {
    margin: 0;
    font-family: var(--display-font);
    font-size: 1.35rem;
    text-transform: uppercase;
}

.login-copy h1 {
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(3rem, 12vw, 5.4rem);
    font-weight: 400;
    line-height: 0.9;
    text-transform: uppercase;
}

.login-copy p {
    margin: 16px 0 24px;
    color: #352126;
    font-weight: 800;
    line-height: 1.55;
}

.login-form label {
    display: block;
    margin: 18px 0 8px;
    font-family: var(--display-font);
    text-transform: uppercase;
}

.login-form input {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fffdf5;
    border: 3px solid var(--ink);
    font: inherit;
    font-weight: 800;
}

.login-form input:focus {
    outline: 3px solid var(--sun);
    outline-offset: 2px;
    box-shadow: 4px 4px 0 var(--tomato);
}

.login-button {
    width: 100%;
    margin-top: 24px;
}

.login-help-actions {
    margin-top: 16px;
}

.login-help-actions .admin-link-button {
    width: 100%;
}

.login-step-note {
    margin: 0 0 18px;
    color: #352126;
    font-weight: 800;
    line-height: 1.5;
}

.login-step-note strong {
    font-weight: 900;
}

.login-code-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.login-code-actions .login-button {
    flex: 1 1 220px;
    margin-top: 18px;
}

.login-code-actions .admin-link-button {
    flex: 0 0 auto;
    margin-top: 18px;
}

.admin-shell {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: clamp(22px, 5vw, 58px);
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px;
    color: var(--white);
    background: var(--night);
    border-right: 5px solid var(--ink);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.admin-logo-label-group {
    display: grid;
    gap: 4px;
    min-width: 0;
    margin-inline: auto;
    justify-items: center;
    text-align: center;
}

.admin-logo {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
}

.admin-logo span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--ink);
    background: var(--sun);
    border: 2px solid var(--white);
    box-shadow: 3px 3px 0 var(--tomato);
    font-family: var(--display-font);
    font-size: 0.9rem;
}

.admin-logo-label {
    font-family: var(--display-font);
    font-size: 1.35rem;
    line-height: 1;
    text-transform: uppercase;
}

.admin-logo-label {
    color: var(--white);
}

.admin-logo-label-role {
    color: #fff7d9;
    font-family: var(--display-font);
    font-size: 0.76rem;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-menu-toggle {
    margin-left: auto;
    text-transform: uppercase;
}

.admin-menu-toggle {
    display: none;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    color: var(--ink);
    background: var(--sun);
    border: 3px solid var(--white);
    box-shadow: 4px 4px 0 var(--tomato);
    cursor: pointer;
    font-family: var(--display-font);
    font-size: 1.05rem;
    line-height: 1;
    text-transform: uppercase;
}

.admin-menu-toggle-icon {
    display: none;
}

.admin-menu-toggle-icon span,
.admin-menu-toggle-icon::before,
.admin-menu-toggle-icon::after {
    display: block;
    width: 22px;
    height: 3px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 160ms ease, opacity 160ms ease;
    content: "";
}

.admin-menu-toggle-icon span {
    margin: 0;
}

.admin-menu-toggle-icon::before {
    margin-bottom: 5px;
}

.admin-menu-toggle-icon::after {
    margin-top: 5px;
}

.admin-menu {
    display: grid;
    gap: 10px;
}

.admin-menu a,
.admin-menu-action {
    padding: 12px 14px;
    color: var(--white);
    background: transparent;
    border: 3px solid rgba(255, 210, 31, 0.18);
    font-family: var(--display-font);
    font-size: inherit;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

.admin-menu a:hover,
.admin-menu a.is-active,
.admin-menu-action:hover,
.admin-menu-action:focus-visible {
    color: var(--ink);
    background: var(--sun);
    border-color: var(--sun);
}

.admin-main {
    min-width: 0;
    padding: clamp(22px, 4vw, 48px);
}

.admin-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 24px;
    margin-bottom: 22px;
    padding: 20px 22px;
    color: var(--white);
    background: var(--night);
    border: 5px solid var(--ink);
    box-shadow: 10px 10px 0 var(--tomato);
}

.admin-topbar h1 {
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(2.1rem, 4.6vw, 3rem);
    font-weight: 400;
    line-height: 0.9;
    text-transform: uppercase;
}

.admin-topbar-title-compact {
    font-size: clamp(1.45rem, 2.4vw, 2.1rem) !important;
}

.admin-topbar-main {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.admin-topbar-main-inline {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.admin-topbar-main-inline h1 {
    margin-left: 0;
    text-align: right;
}

.admin-topbar-side {
    display: grid;
    justify-items: end;
    min-width: 0;
}

.admin-topbar p {
    grid-column: 1 / -1;
    max-width: 760px;
    margin: 12px 0 0;
    color: #fff7d9;
    font-weight: 700;
    line-height: 1.35;
}

.admin-user {
    display: grid;
    gap: 12px;
    justify-items: end;
    min-width: 240px;
}

.admin-user-meta {
    display: grid;
    gap: 6px;
    justify-items: end;
    text-align: right;
}

.admin-user span {
    font-family: var(--display-font);
    font-size: 1.15rem;
    text-transform: uppercase;
}

.admin-user small {
    color: #fff7d9;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-user-logout {
    min-height: 44px;
    padding: 8px 14px;
    margin-top: 0;
    justify-self: end;
    box-shadow: 5px 5px 0 var(--tomato);
}

.admin-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding: 20px 22px;
    color: var(--white);
    background: var(--night);
    border: 5px solid var(--ink);
    box-shadow: 10px 10px 0 var(--tomato);
}

.admin-kicker {
    display: inline-block;
    margin-bottom: 8px;
    padding: 6px 10px;
    color: var(--ink);
    background: var(--sun);
    border: 3px solid var(--ink);
    font-family: var(--display-font);
    text-transform: uppercase;
}

.admin-header h1,
.admin-empty h2 {
    margin: 0;
    font-family: var(--display-font);
    font-weight: 400;
    line-height: 0.9;
    text-transform: uppercase;
}

.admin-header h1 {
    font-size: clamp(2rem, 4.8vw, 4.2rem);
}

.admin-header p {
    max-width: 760px;
    margin: 12px 0 0;
    color: #fff7d9;
    font-weight: 700;
    line-height: 1.35;
}

.admin-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    color: var(--ink);
    background: var(--sun);
    border: 3px solid var(--ink);
    box-shadow: 6px 6px 0 var(--tomato);
    font-family: var(--display-font);
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.7);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
}

.admin-form-actions form {
    margin: 0;
}

.admin-card,
.admin-empty,
.admin-alert {
    background: var(--white);
    border: 5px solid var(--ink);
    box-shadow: 10px 10px 0 var(--teal);
}

.admin-placeholder-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 960px;
    padding: clamp(28px, 4vw, 40px);
}

.admin-placeholder-card h2 {
    margin: 0;
    max-width: 14ch;
    font-family: var(--display-font);
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    line-height: 0.9;
    text-transform: uppercase;
}

.chat-launch-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.chat-launch-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    color: var(--white);
    background: var(--tomato);
    border: 4px solid var(--ink);
    box-shadow: 6px 6px 0 var(--teal);
    font-family: var(--display-font);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    text-transform: uppercase;
}

.chat-launch-copy {
    max-width: 48rem;
    font-size: clamp(1.7rem, 2.6vw, 2.1rem);
    font-weight: 800;
}

.chat-launch-note {
    display: grid;
    gap: 6px;
    max-width: 60rem;
    padding: 20px 22px;
    background: #fff6d8;
    border: 4px solid rgba(24, 15, 18, 0.16);
}

.chat-launch-note strong {
    font-family: var(--display-font);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.chat-launch-note p {
    margin: 0;
    font-weight: 800;
}

.chat-intro-card,
.chat-rooms-card,
.chat-thread-card,
.chat-compose-card {
    display: grid;
    gap: 14px;
}

.chat-intro-card {
    padding: 16px 18px;
    background: rgba(255, 249, 232, 0.96);
    border: 3px solid rgba(24, 15, 18, 0.12);
}

.chat-intro-header,
.chat-thread-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.chat-intro-header h2,
.chat-thread-header h2 {
    margin: 6px 0 0;
    font-family: var(--display-font);
    font-size: clamp(1.35rem, 2.3vw, 2.15rem);
    line-height: 0.92;
    text-transform: uppercase;
}

.chat-intro-header p,
.chat-thread-header p {
    margin: 8px 0 0;
    max-width: 58rem;
    font-weight: 800;
    line-height: 1.45;
}

.chat-intro-badge,
.chat-thread-pill,
.chat-room-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    color: var(--ink);
    background: var(--sun);
    border: 3px solid var(--ink);
    box-shadow: 4px 4px 0 rgba(24, 15, 18, 0.08);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

.chat-thread-pill-soft {
    background: rgba(255, 255, 255, 0.7);
}

.chat-room-item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chat-intro-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.chat-intro-stats article {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    background: #fffaf0;
    border: 3px solid rgba(24, 15, 18, 0.12);
}

.chat-intro-stats strong {
    font-family: var(--display-font);
    font-size: clamp(1.2rem, 1.8vw, 1.7rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.chat-intro-stats span {
    font-weight: 800;
    line-height: 1.35;
}

.chat-layout {
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.chat-rooms-card {
    padding: 16px 18px;
    align-content: start;
    min-width: 0;
}

.chat-rooms-card .dashboard-section-heading {
    align-items: flex-start;
    margin-bottom: 10px;
}

.chat-rooms-card .dashboard-section-heading h2 {
    max-width: none;
    font-size: clamp(1.15rem, 1.7vw, 1.7rem);
    line-height: 0.92;
}

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

.chat-room-item {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    color: var(--ink);
    text-decoration: none;
    background: #fff7df;
    border: 3px solid rgba(24, 15, 18, 0.12);
    box-shadow: 4px 4px 0 rgba(24, 15, 18, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.chat-room-item:hover,
.chat-room-item:focus-visible,
.chat-room-item.is-active {
    background: #fff1c0;
    box-shadow: 6px 6px 0 rgba(24, 15, 18, 0.12);
    transform: translateY(-1px);
}

.chat-room-item strong {
    font-family: var(--display-font);
    font-size: clamp(1rem, 1.45vw, 1.25rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.chat-room-item small {
    color: #352126;
    font-weight: 800;
    line-height: 1.35;
}

.chat-room-unread,
.chat-thread-pill-unread {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    color: var(--white);
    background: var(--tomato);
    border: 2px solid var(--ink);
    font-family: var(--display-font);
    font-size: 0.92rem;
    line-height: 1;
    text-transform: uppercase;
}

.chat-thread-card {
    padding: 16px 18px;
    min-height: 0;
    min-width: 0;
}

.chat-thread-card .chat-thread-header h2 {
    max-width: none;
    font-size: clamp(1.9rem, 3vw, 3rem);
}

.chat-message-list {
    display: grid;
    gap: 10px;
    padding: 4px 2px 2px;
    max-height: clamp(280px, 42vh, 520px);
    overflow: auto;
}

.chat-participants-card {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    background: #fff7df;
    border: 3px solid rgba(24, 15, 18, 0.12);
}

.chat-participants-card strong {
    font-family: var(--display-font);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1;
    text-transform: uppercase;
}

.chat-participants-card p {
    margin: 0;
    font-weight: 800;
    line-height: 1.35;
}

.chat-empty-state {
    display: grid;
    gap: 8px;
    padding: 22px;
    background: #fff7df;
    border: 3px dashed rgba(24, 15, 18, 0.16);
}

.chat-empty-state strong {
    font-family: var(--display-font);
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.chat-empty-state p {
    margin: 0;
    font-weight: 800;
    line-height: 1.45;
}

.chat-message {
    display: grid;
    gap: 4px;
    width: min(100%, 720px);
    padding: 10px 10px;
    background: #fffaf0;
    border: 2px solid rgba(24, 15, 18, 0.12);
}

.chat-message.is-own {
    justify-self: end;
    background: #fff1c4;
    border-color: rgba(24, 15, 18, 0.2);
}

.chat-message.is-system {
    width: 100%;
    background: #dff7f7;
}

.chat-message-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
}

.chat-message-head strong {
    font-family: var(--display-font);
    font-size: clamp(1rem, 1.45vw, 1.25rem);
    line-height: 0.95;
    text-transform: uppercase;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-message-separator {
    color: rgba(53, 33, 42, 0.7);
    font-weight: 800;
    flex: 0 0 auto;
}

.chat-message-head span,
.chat-message small {
    color: #352126;
    font-weight: 800;
    line-height: 1.35;
}

.chat-message p {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-weight: 800;
    line-height: 1.45;
}

.chat-compose-card {
    padding: 14px 16px;
    background: #fff8e4;
    border: 3px solid rgba(24, 15, 18, 0.12);
}

.chat-compose-card label {
    font-family: var(--display-font);
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    line-height: 1;
    text-transform: uppercase;
}

.chat-compose-card textarea {
    width: 100%;
    min-height: 52px;
    padding: 10px 10px;
    color: var(--ink);
    background: #fffdf5;
    border: 3px solid var(--ink);
    font: inherit;
    font-weight: 800;
    resize: vertical;
}

.chat-compose-card textarea:focus {
    outline: 3px solid var(--sun);
    outline-offset: 2px;
    box-shadow: 4px 4px 0 var(--tomato);
}

.chat-compose-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.chat-compose-actions small {
    font-weight: 800;
    line-height: 1.35;
}

.chat-validation-alert {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.chat-validation-alert ul {
    margin: 0;
    padding-left: 20px;
}

.contract-timeline-card {
    display: grid;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.contract-timeline-card .dashboard-section-heading h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
}

.budget-create-trigger {
    min-height: 44px;
    padding: 10px 14px;
    align-self: start;
    white-space: nowrap;
}

.contract-timeline-list {
    display: grid;
    gap: 12px;
}

.contract-timeline-item {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    background: #fffaf0;
    border: 3px solid rgba(24, 15, 18, 0.12);
}

.contract-timeline-item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.contract-timeline-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    color: var(--ink);
    background: var(--sun);
    border: 2px solid var(--ink);
    font-family: var(--display-font);
    font-size: 0.95rem;
    line-height: 1;
    text-transform: uppercase;
}

.contract-timeline-item strong {
    font-family: var(--display-font);
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1;
    text-transform: uppercase;
}

.contract-timeline-item p,
.contract-timeline-item small {
    margin: 0;
    font-weight: 800;
    line-height: 1.4;
}

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

    .chat-intro-stats {
        grid-template-columns: 1fr;
    }

    .chat-message-list {
        max-height: none;
    }
}

.communication-intro-card {
    display: grid;
    gap: 10px;
    padding: 14px 16px 15px;
    background: linear-gradient(180deg, #fff9e4, #fff4d0);
    border: 4px solid rgba(24, 15, 18, 0.12);
}

.communication-intro-card .chat-launch-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.communication-intro-card h2 {
    max-width: none;
    margin: 0;
    font-size: clamp(0.95rem, 1.35vw, 1.1rem);
    line-height: 0.98;
}

.communication-intro-card .communication-intro-copy {
    margin: 0;
    max-width: 62rem;
    font-size: clamp(0.88rem, 1.05vw, 0.98rem);
    line-height: 1.25;
    font-weight: 800;
}

.communication-context-card {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    background: #fffef7;
    border: 3px solid rgba(24, 15, 18, 0.12);
}

.communication-context-card strong {
    font-family: var(--display-font);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1;
    text-transform: uppercase;
}

.communication-context-card p {
    margin: 0;
    font-weight: 800;
    line-height: 1.35;
}

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

.admin-help-text {
    display: block;
    margin-top: 10px;
    color: rgba(24, 15, 18, 0.78);
    font-weight: 800;
    line-height: 1.35;
}

.communication-compose-card {
    display: grid;
    gap: 10px;
    padding: clamp(14px, 2.4vw, 18px);
}

.communication-compose-card .dashboard-section-heading {
    margin-bottom: 6px;
}

.communication-compose-card .dashboard-section-heading h2 {
    font-size: clamp(1.1rem, 1.8vw, 1.6rem);
}

.communication-form {
    display: grid;
    gap: 6px;
}

.communication-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 12px;
    align-items: stretch;
}

/* Coluna esquerda em coluna flexível: o conteúdo cresce até a base do card de Público. */
.communication-form-grid .communication-form-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.communication-message-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-height: 0;
}

.communication-message-field textarea {
    flex: 1 1 auto;
    min-height: 260px;
    resize: vertical;
}

/* Linha inferior: canal de envio + ações lado a lado, abaixo dos cards de cima. */
.communication-bottom-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
    gap: 12px;
    align-items: stretch;
    margin-top: 12px;
}

.communication-channel-card .communication-channel-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.communication-bottom-row .communication-form-actions {
    display: grid;
    align-content: center;
    gap: 10px;
    margin: 0;
}

.communication-bottom-row .communication-form-actions > button {
    height: 57px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 720px) {
    .communication-bottom-row {
        grid-template-columns: 1fr;
    }

    .communication-channel-card .communication-channel-list {
        grid-template-columns: 1fr;
    }
}

.communication-form-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-width: 0;
    align-content: start;
}

.communication-form-side {
    display: grid;
    gap: 12px;
    align-content: start;
}

.communication-chooser-card {
    display: grid;
    gap: 6px;
    padding: 11px 12px 10px;
    background: #fbfbfb;
    border: 4px solid rgba(24, 15, 18, 0.14);
}

.communication-chooser-card .admin-kicker {
    margin-bottom: 0;
}

.communication-choice-title {
    font-family: var(--display-font);
    font-size: clamp(0.98rem, 1.35vw, 1.2rem);
    line-height: 1;
    text-transform: uppercase;
}

.communication-choice-list,
.communication-channel-list {
    display: grid;
    gap: 8px;
}

.communication-choice-item,
.communication-channel-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 8px 9px;
    color: var(--ink);
    background: #fff7df;
    border: 3px solid rgba(24, 15, 18, 0.12);
    box-shadow: 4px 4px 0 rgba(24, 15, 18, 0.08);
    cursor: pointer;
}

.communication-choice-item input,
.communication-channel-item input {
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: var(--tomato);
}

.communication-choice-item span,
.communication-channel-item span {
    display: grid;
    gap: 3px;
}

.communication-choice-item strong,
.communication-channel-item strong {
    font-family: var(--display-font);
    font-size: clamp(0.92rem, 1.25vw, 1.08rem);
    line-height: 0.96;
    text-transform: uppercase;
}

.communication-choice-item small,
.communication-channel-item small {
    color: #352126;
    font-weight: 800;
    line-height: 1.25;
}

.communication-side-panel {
    display: grid;
    gap: 2px;
    padding: 8px 10px 7px;
    background: #fff7df;
    border: 4px solid rgba(24, 15, 18, 0.12);
    width: 100%;
    max-width: none;
    justify-self: stretch;
    height: 12em;
}

.communication-side-panel-inline {
    grid-column: 1 / -1;
    margin-top: 0;
}

.communication-side-panel .admin-kicker {
    margin-bottom: 2px;
}

.communication-side-panel strong {
    font-family: var(--display-font);
    font-size: clamp(0.82rem, 1vw, 0.98rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.communication-side-panel p {
    margin: 0;
    color: #352126;
    font-weight: 800;
    font-size: 0.76rem;
    line-height: 1.1;
}

.communication-side-points {
    margin: 0;
    padding-left: 16px;
    color: #352126;
    font-weight: 800;
    font-size: 0.76rem;
    line-height: 1.08;
}

.communication-side-points li + li {
    margin-top: 2px;
}

.communication-sidebar-card,
.communication-grid-footer {
    display: none;
}

.communication-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    width: 100%;
    justify-self: end;
    align-self: start;
}

.communication-form-actions .admin-button,
.communication-form-actions .admin-link-button {
    width: 100%;
    justify-content: center;
    min-height: 46px;
}

@media (max-width: 1100px) {
    .communication-form-grid,
    .communication-form-main,
    .communication-form-side {
        grid-template-columns: 1fr;
    }

    .communication-form-actions {
        width: 100%;
        justify-self: stretch;
    }
}

.communication-form .admin-field label {
    margin-bottom: 6px;
    font-size: 0.92rem;
    line-height: 1;
}

.communication-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.communication-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff6d8;
    border: 4px solid var(--ink);
    box-shadow: 6px 6px 0 rgba(24, 15, 18, 0.12);
    font-family: var(--display-font);
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    line-height: 1;
    text-transform: uppercase;
}

.communication-chip input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--tomato);
}

.communication-chip span {
    line-height: 1;
}

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

.communication-hint-card {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    background: #fff6d8;
    border: 4px solid rgba(24, 15, 18, 0.14);
}

.communication-hint-card strong {
    font-family: var(--display-font);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.communication-hint-card p {
    margin: 0;
    color: #352126;
    font-weight: 800;
    line-height: 1.35;
}

.communication-audience-grid {
    display: grid;
    gap: 12px;
}

.communication-audience-card {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    background: #fffaf0;
    border: 4px solid rgba(24, 15, 18, 0.15);
}

.communication-audience-card > span {
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    color: var(--ink);
    background: var(--sun);
    border: 4px solid var(--ink);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

.communication-audience-card h3 {
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(1.2rem, 1.7vw, 1.65rem);
    line-height: 0.92;
    text-transform: uppercase;
}

.communication-audience-card p {
    margin: 0;
    color: #352126;
    font-weight: 800;
    line-height: 1.35;
}

.communication-rules-card {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    background: #fff3c4;
    border: 4px solid rgba(24, 15, 18, 0.16);
}

.communication-rules-card strong {
    font-family: var(--display-font);
    font-size: clamp(1.15rem, 1.8vw, 1.6rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.communication-rules-card ul {
    margin: 0;
    padding-left: 20px;
    color: #352126;
    font-weight: 800;
    line-height: 1.45;
}

.communication-grid-footer {
    display: none;
}

.communication-type-card {
    display: grid;
    gap: 10px;
    min-height: 170px;
    padding: 16px 18px;
}

.communication-type-card h2 {
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(1.15rem, 1.8vw, 1.65rem);
    line-height: 0.92;
    text-transform: uppercase;
}

.communication-type-card p {
    margin: 0;
    color: #352126;
    font-weight: 800;
    line-height: 1.4;
}

.communication-result-card {
    display: grid;
    gap: 12px;
    padding: clamp(18px, 3vw, 22px);
}

.communication-result-card.admin-alert-success {
    background: #d8ffe3;
    color: var(--ink);
}

.communication-result-card.admin-alert-error {
    background: #ffe1dd;
    color: var(--ink);
}

.communication-result-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.communication-result-header h2 {
    margin: 8px 0 0;
    font-family: var(--display-font);
    font-size: clamp(1.35rem, 2.2vw, 2.2rem);
    line-height: 0.92;
    text-transform: uppercase;
}

.communication-result-summary-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.communication-result-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--ink);
    background: var(--sun);
    border: 3px solid var(--ink);
    font-family: var(--display-font);
    font-size: 1.2rem;
    line-height: 1;
    text-transform: uppercase;
}

.communication-result-pill-soft {
    background: rgba(255, 255, 255, 0.64);
}

.communication-result-notes {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 3px solid rgba(24, 15, 18, 0.12);
}

.communication-result-notes strong {
    font-family: var(--display-font);
    font-size: clamp(1.1rem, 1.6vw, 1.45rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.communication-result-notes ul {
    margin: 0;
    padding-left: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.communication-result-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.communication-result-stat {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    background: #fffaf0;
    border: 3px solid rgba(24, 15, 18, 0.12);
}

.communication-result-stat span,
.communication-result-audience-head strong {
    font-family: var(--display-font);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 0.92;
    text-transform: uppercase;
}

.communication-result-stat strong {
    font-family: var(--display-font);
    font-size: clamp(1.15rem, 1.7vw, 1.65rem);
    line-height: 0.9;
    text-transform: uppercase;
}

.communication-result-stat small {
    font-weight: 800;
    line-height: 1.35;
}

.communication-result-audiences {
    display: grid;
    gap: 12px;
}

.communication-result-audience {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    background: #fff7dd;
    border: 3px solid rgba(24, 15, 18, 0.12);
}

.communication-result-audience-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.communication-result-audience-head strong {
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
}

.communication-result-audience-message {
    margin: 0;
    font-weight: 800;
    line-height: 1.35;
}

.communication-validation-alert {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.communication-validation-alert ul {
    margin: 0;
    padding-left: 20px;
}

.communication-preview-message {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    background: #fff7df;
    border: 3px solid rgba(24, 15, 18, 0.18);
}

.communication-preview-message strong {
    font-family: var(--display-font);
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.communication-preview-message p {
    margin: 0;
    color: #352126;
    font-weight: 800;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 320px;
    overflow: auto;
}

.communication-preview-counts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.communication-preview-count {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    background: #fff6d8;
    border: 3px solid rgba(24, 15, 18, 0.14);
}

.communication-preview-count span {
    font-family: var(--display-font);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.communication-preview-count strong {
    font-family: var(--display-font);
    font-size: clamp(1.4rem, 2.2vw, 1.95rem);
    line-height: 0.9;
    text-transform: uppercase;
}

.communication-preview-count small {
    font-weight: 800;
    line-height: 1.35;
}

.communication-preview-audiences {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.communication-preview-audience {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    background: #fffdf3;
    border: 3px solid rgba(24, 15, 18, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.communication-preview-audience.is-selected {
    background: #fff4d1;
    box-shadow: 4px 4px 0 rgba(24, 15, 18, 0.12);
    transform: translateY(-1px);
}

.communication-preview-audience strong {
    font-family: var(--display-font);
    font-size: clamp(1.1rem, 1.7vw, 1.45rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.communication-preview-audience p,
.communication-preview-audience small {
    margin: 0;
    font-weight: 800;
    line-height: 1.35;
}

.communication-preview-audience p span {
    font-family: var(--display-font);
}

.communication-preview-audience small {
    color: rgba(24, 15, 18, 0.8);
}

.communication-preview-warnings {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    background: #ffe9d7;
    border: 3px solid rgba(24, 15, 18, 0.12);
}

.communication-preview-warnings strong {
    font-family: var(--display-font);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.communication-preview-warnings ul {
    margin: 0;
    padding-left: 20px;
    font-weight: 800;
    line-height: 1.45;
}

.profile-summary-list {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    background: #fffaf0;
    border: 3px solid rgba(24, 15, 18, 0.12);
    font-weight: 800;
    line-height: 1.4;
}

.profile-summary-list strong {
    font-family: var(--display-font);
    text-transform: uppercase;
}

.admin-empty,
.admin-alert {
    padding: 28px;
}

.admin-empty h2 {
    margin-bottom: 12px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.admin-empty p,
.admin-alert {
    font-weight: 800;
}

.admin-alert-error {
    color: var(--white);
    background: var(--tomato);
}

.admin-alert-success {
    background: #8df4a8;
}

.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 18, 21, 0.72);
    backdrop-filter: blur(6px);
    overflow-y: auto;
}

.admin-modal-backdrop[hidden] {
    display: none !important;
}

.admin-modal {
    position: relative;
    width: min(100%, 760px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: clamp(24px, 4vw, 34px);
    color: var(--ink);
    background: var(--white);
    border: 5px solid var(--ink);
    box-shadow: 12px 12px 0 var(--tomato), 20px 20px 0 rgba(24, 15, 18, 0.82);
    overscroll-behavior: contain;
}

.admin-modal h2 {
    margin: 0 0 16px;
    font-family: var(--display-font);
    font-size: clamp(2.2rem, 4.8vw, 4rem);
    font-weight: 400;
    line-height: 0.9;
    text-transform: uppercase;
}

.admin-modal-copy {
    margin: 0 0 24px;
    color: #352126;
    font-weight: 800;
    line-height: 1.55;
}

.admin-modal-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 28px;
}

.admin-modal-summary div {
    min-width: 0;
    padding: 16px;
    background: #fff7df;
    border: 3px solid rgba(24, 15, 18, 0.18);
}

.admin-modal-summary dt {
    margin: 0 0 8px;
    color: rgba(24, 15, 18, 0.72);
    font-family: var(--display-font);
    text-transform: uppercase;
}

.admin-modal-summary dd {
    margin: 0;
    color: #352126;
    font-weight: 900;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.admin-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
}

.admin-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

.admin-modal-close-link {
    position: absolute;
    top: 12px;
    right: 14px;
    color: var(--ink);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.summary-card {
    min-height: 190px;
    padding: 22px;
    color: var(--ink);
    background: var(--white);
    border: 5px solid var(--ink);
    box-shadow: 8px 8px 0 var(--teal);
}

.summary-card-link {
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.summary-card-link:hover,
.summary-card-link:focus-visible {
    background: #fff7df;
    box-shadow: 10px 10px 0 var(--tomato);
    transform: translate(-2px, -2px);
}

.summary-card span {
    display: inline-block;
    margin-bottom: 22px;
    padding: 7px 10px;
    color: var(--white);
    background: var(--tomato);
    border: 3px solid var(--ink);
    font-family: var(--display-font);
    text-transform: uppercase;
}

.summary-card strong {
    display: block;
    margin-bottom: 10px;
    font-family: var(--display-font);
    font-size: 2em;
    line-height: 1;
}

.summary-card p {
    margin: 0;
    font-weight: 800;
    line-height: 1.4;
}

.dashboard-alert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.dashboard-alert,
.checklist-card {
    min-width: 0;
    padding: 20px 20px 18px;
    background: var(--white);
    border: 5px solid var(--ink);
    box-shadow: 8px 8px 0 var(--teal);
}

.dashboard-alert span,
.checklist-card span {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 10px;
    color: var(--ink);
    background: var(--sun);
    border: 3px solid var(--ink);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

.dashboard-alert h2,
.checklist-card h2 {
    margin: 0 0 10px;
    font-family: var(--display-font);
    font-size: clamp(1.15rem, 1.7vw, 1.5rem);
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
}

.dashboard-alert p,
.checklist-card p {
    margin: 0;
    color: #352126;
    font-weight: 800;
    line-height: 1.5;
}

.dashboard-alert a {
    display: inline-flex;
    margin-top: 16px;
    color: var(--ink);
    font-family: var(--display-font);
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.dashboard-alert-erro,
.checklist-card-erro {
    box-shadow: 8px 8px 0 var(--tomato);
}

.dashboard-alert-erro span,
.checklist-card-erro span {
    color: var(--white);
    background: var(--tomato);
}

.dashboard-alert-atencao,
.checklist-card-atencao {
    box-shadow: 8px 8px 0 var(--sun);
}

.checklist-card-ok span {
    background: #8df4a8;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 238px), 1fr));
    gap: 18px;
}

.checklist-card-action {
    display: inline-flex;
    width: fit-content;
    margin-top: 14px;
    padding: 9px 12px;
    color: var(--ink);
    background: var(--sun);
    border: 3px solid var(--ink);
    box-shadow: 4px 4px 0 var(--tomato);
    font-family: var(--display-font);
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.checklist-card-action:hover,
.checklist-card-action:focus-visible {
    color: var(--ink);
    background: #ffe56b;
    box-shadow: 2px 2px 0 var(--tomato);
    transform: translate(1px, 1px);
}

.dashboard-section {
    padding: 22px 24px;
}

.dashboard-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-section-heading h2 {
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    font-weight: 400;
    line-height: 0.9;
    text-transform: uppercase;
}

.dashboard-show-list {
    display: grid;
    gap: 14px;
}

.dashboard-show-list article {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) minmax(180px, 0.75fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: #fff7df;
    border: 3px solid rgba(24, 15, 18, 0.2);
}

.dashboard-show-list time {
    display: inline-block;
    width: fit-content;
    padding: 8px 10px;
    color: var(--white);
    background: var(--teal);
    border: 3px solid var(--ink);
    font-family: var(--display-font);
}

.dashboard-show-list h3 {
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
}

.dashboard-show-list p,
.admin-muted {
    margin: 0;
    color: #352126;
    font-weight: 800;
}

.admin-form-card,
.shows-list-card {
    padding: 28px;
    margin-bottom: 30px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 20px;
}

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

.admin-field-wide {
    grid-column: span 2;
}

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

.admin-field label {
    display: block;
    margin: 0;
    font-family: var(--display-font);
    text-transform: uppercase;
}

.admin-field input,
.admin-field select,
.admin-field textarea,
.actions-cell select {
    width: 100%;
    min-height: 48px;
    padding: 11px 12px;
    color: var(--ink);
    background: #fffdf5;
    border: 3px solid var(--ink);
    font: inherit;
    font-weight: 800;
}

.admin-field textarea {
    resize: vertical;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus,
.actions-cell select:focus {
    outline: 3px solid var(--sun);
    outline-offset: 2px;
    box-shadow: 4px 4px 0 var(--tomato);
}

.admin-field small {
    display: block;
    margin-top: -1px;
    color: #8d170e;
    font-weight: 900;
}

.settings-stack {
    display: grid;
    gap: 30px;
}

.settings-stack .admin-form-card {
    margin-bottom: 0;
}

.settings-section .dashboard-section-heading {
    padding-bottom: 18px;
    border-bottom: 4px solid rgba(24, 15, 18, 0.16);
}

.settings-section-description {
    max-width: 72ch;
    margin: 10px 0 0;
    color: #352126;
    font-weight: 900;
    line-height: 1.5;
}

.settings-logo-grid {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.settings-logo-preview {
    display: grid;
    min-height: 220px;
    place-items: center;
    padding: 22px;
    background:
        linear-gradient(45deg, rgba(24, 15, 18, 0.07) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(24, 15, 18, 0.07) 25%, transparent 25%),
        #fff7df;
    background-size: 22px 22px;
    border: 4px solid var(--ink);
    box-shadow: 6px 6px 0 var(--teal);
}

.settings-logo-actions {
    margin-top: 18px;
    justify-content: flex-end;
}

.settings-logo-preview img {
    max-width: 100%;
    max-height: 170px;
    object-fit: contain;
}

.settings-logo-placeholder {
    display: grid;
    width: 100%;
    min-height: 120px;
    place-items: center;
    padding: 18px;
    color: var(--ink);
    background: var(--sun);
    border: 4px dashed var(--ink);
    font-family: var(--display-font);
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    text-transform: uppercase;
}

.settings-test-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 18px;
    align-items: end;
}

.settings-test-form .admin-field {
    margin-bottom: 0;
}

.settings-inline-action {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 18px;
}

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

.settings-form-grid .admin-field-wide {
    grid-column: 1 / -1;
}

.settings-form-grid .admin-actions {
    grid-column: 1 / -1;
}

.admin-field-help {
    display: block;
    margin-top: 8px;
    color: #5c4a50;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.4;
    text-transform: none;
}

.admin-field-error {
    display: block;
    margin-top: 8px;
    color: #a1170a;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.4;
    text-transform: none;
}

.settings-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 238px), 1fr));
    gap: 18px;
}

.settings-hub-card {
    display: grid;
    min-height: 0;
    align-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    color: var(--ink);
    text-decoration: none;
    background: #fffaf0;
    border: 6px solid var(--ink);
    box-shadow: 10px 10px 0 var(--teal);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.settings-hub-card:hover,
.settings-hub-card:focus-visible {
    color: var(--ink);
    background: #fff3c4;
    box-shadow: 12px 12px 0 var(--tomato);
    transform: translate(-3px, -3px);
}

.settings-hub-card span,
.settings-tabs a {
    display: inline-flex;
    width: fit-content;
    padding: 9px 12px;
    color: var(--ink);
    background: var(--sun);
    border: 4px solid var(--ink);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

.settings-hub-card h2 {
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(1.25rem, 1.9vw, 1.6rem);
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
}

.settings-hub-card p {
    max-width: 34rem;
    margin: 0;
    color: #352126;
    font-weight: 900;
    line-height: 1.35;
}

.settings-cache-card {
    margin-top: 28px;
    padding: clamp(24px, 3vw, 32px);
}

.settings-cache-copy {
    max-width: 72ch;
    margin: 0;
    color: #352126;
    font-weight: 900;
    line-height: 1.55;
}

.finance-reserve-wallet-card {
    margin-top: 28px;
}

.finance-reserve-balance {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 16px;
    margin-top: 18px;
    padding: 18px 20px;
    color: var(--ink);
    background: #fef6d9;
    border: 4px solid rgba(53, 33, 42, 0.18);
    box-shadow: 6px 6px 0 rgba(15, 149, 138, 0.26);
}

.finance-reserve-balance span {
    font-family: var(--display-font);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.finance-reserve-balance strong {
    font-family: var(--display-font);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.finance-reserve-withdraw-form {
    margin-top: 20px;
}

.finance-reserve-history {
    margin-top: 24px;
}

.finance-reserve-history h3 {
    margin: 0 0 16px;
    font-family: var(--display-font);
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 400;
    line-height: 0.94;
    text-transform: uppercase;
}

.finance-reserve-movements {
    display: grid;
    gap: 12px;
}

.finance-reserve-movement {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: #fffaf0;
    border: 4px solid rgba(53, 33, 42, 0.16);
    box-shadow: 6px 6px 0 rgba(53, 33, 42, 0.1);
}

.finance-reserve-movement strong,
.finance-reserve-movement p,
.finance-reserve-movement small {
    display: block;
    margin: 0;
}

.finance-reserve-movement strong {
    font-family: var(--display-font);
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
}

.finance-reserve-movement p {
    color: #352126;
    font-weight: 900;
    line-height: 1.35;
}

.finance-reserve-movement-side {
    text-align: right;
}

.finance-reserve-movement-side strong {
    font-size: 1.15rem;
}

.settings-cache-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 16px;
    color: rgba(53, 33, 42, 0.88);
    font-weight: 900;
}

.settings-cache-meta strong {
    color: var(--ink);
}

.settings-cache-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 18px;
}

.settings-back-actions {
    justify-content: flex-start;
    margin: 0 0 26px;
}

.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.settings-tabs a {
    text-decoration: none;
    box-shadow: 5px 5px 0 var(--tomato);
}

.settings-tabs a:hover,
.settings-tabs a:focus-visible,
.settings-tabs a.is-active {
    color: var(--white);
    background: var(--tomato);
    box-shadow: 5px 5px 0 var(--sun);
}

.status-pill {
    display: inline-block;
    padding: 7px 10px;
    color: var(--white);
    background: var(--night);
    border: 3px solid var(--ink);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

.status-publicado {
    color: var(--ink);
    background: #8df4a8;
}

.status-cancelado {
    background: var(--tomato);
}

.status-rascunho {
    color: var(--ink);
    background: var(--sun);
}

.actions-cell {
    min-width: 300px;
}

.actions-cell form {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto;
    gap: 8px;
    margin-top: 10px;
}

.actions-cell .inline-action-form {
    display: inline-flex;
    margin: 0 0 0 8px;
    vertical-align: top;
}

.show-actions-quick,
.show-actions-status,
.show-actions-send {
    display: grid;
    gap: 10px;
}

.show-actions-quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.show-actions-quick .inline-action-form {
    display: flex;
    margin: 0;
}

.show-actions-quick .admin-link-button,
.show-actions-quick button,
.show-actions-status .admin-link-button,
.show-actions-send .admin-link-button {
    width: 100%;
}

.show-actions-status,
.show-actions-send {
    grid-template-columns: minmax(150px, 1fr) auto;
    margin-top: 10px;
}

.shows-filter-form {
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(220px, 1.35fr) auto;
    margin-bottom: 24px;
}

.admin-link-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: var(--ink);
    background: var(--sun);
    border: 3px solid var(--ink);
    box-shadow: 4px 4px 0 var(--tomato);
    font-family: var(--display-font);
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.admin-link-button:disabled {
    opacity: 0.52;
    cursor: not-allowed;
    filter: grayscale(0.8);
}

.admin-link-danger {
    color: var(--white);
    background: var(--tomato);
}

.admin-tile {
    display: block;
    min-height: 220px;
    padding: 24px;
    color: var(--ink);
    background: var(--white);
    border: 5px solid var(--ink);
    box-shadow: 9px 9px 0 var(--teal);
    text-decoration: none;
}

.admin-tile span {
    display: inline-block;
    margin-bottom: 28px;
    padding: 7px 10px;
    color: var(--white);
    background: var(--tomato);
    border: 3px solid var(--ink);
    font-family: var(--display-font);
    text-transform: uppercase;
}

.admin-tile h2 {
    margin: 0 0 14px;
    font-family: var(--display-font);
    font-size: clamp(2.3rem, 4vw, 3.4rem);
    font-weight: 400;
    line-height: 0.9;
    text-transform: uppercase;
}

.admin-tile p {
    margin: 0;
    font-weight: 800;
    line-height: 1.45;
}

.table-wrap {
    overflow-x: auto;
}

.table-wrap table {
    min-width: 100%;
}

.admin-table {
    width: 100%;
    min-width: 1280px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    border-bottom: 3px solid rgba(24, 15, 18, 0.16);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--white);
    background: var(--night);
    font-family: var(--display-font);
    font-weight: 400;
    text-transform: uppercase;
}

.admin-table tbody tr:nth-child(even) {
    background: #fff7df;
}

.show-origin {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.origin-chip {
    display: inline-block;
    padding: 5px 8px;
    color: var(--ink);
    background: var(--sun);
    border: 2px solid var(--ink);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

.show-origin a {
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.show-formation-chip {
    display: inline-block;
    padding: 5px 8px;
    color: var(--white);
    background: var(--teal);
    border: 2px solid var(--ink);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

.message-cell {
    max-width: 360px;
    line-height: 1.45;
}

.admin-checkbox {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    background: #fffdf5;
    border: 3px solid var(--ink);
    font-family: var(--text-font);
    font-weight: 900;
    text-transform: none;
}

.admin-checkbox input {
    width: 20px;
    height: 20px;
    min-height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    accent-color: var(--tomato);
}

.user-active-field .admin-checkbox {
    margin-top: 0;
}

.user-form-card.is-hidden .admin-form {
    display: none;
}

.admin-note-box {
    padding: 16px 18px;
    background: #fff7df;
    border: 3px solid rgba(24, 15, 18, 0.18);
}

.admin-note-box strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--display-font);
    font-size: 1.8rem;
    text-transform: uppercase;
}

.admin-note-box p {
    margin: 0;
    color: rgba(24, 15, 18, 0.88);
    font-weight: 700;
    line-height: 1.55;
}

.user-table-card {
    display: grid;
    gap: 18px;
}

.user-table {
    min-width: 1100px;
}

.user-table td strong {
    display: block;
    line-height: 1.25;
}

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

.table-actions form {
    margin: 0;
}

.permissions-info-card {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.permissions-page .admin-topbar h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.permissions-page .dashboard-section-heading h2 {
    font-size: clamp(1.55rem, 2.8vw, 2.2rem);
}

.permissions-board {
    display: grid;
    gap: 24px;
}

.permissions-tabs {
    margin-bottom: 22px;
}

.permissions-tab-panel {
    display: none;
    gap: 18px;
}

.permissions-tab-panel.is-active {
    display: grid;
}

.permission-profile-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
}

.permission-profile-header h2 {
    margin: 2px 0 8px;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    text-transform: uppercase;
}

.permission-profile-header p {
    max-width: 68ch;
    margin: 0;
    color: rgba(24, 15, 18, 0.82);
    font-size: 1.55rem;
    line-height: 1.5;
    font-weight: 700;
}

.permission-profile-header strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 72px;
    padding: 10px 16px;
    color: var(--ink);
    background: var(--sun);
    border: 4px solid var(--ink);
    box-shadow: 6px 6px 0 var(--tomato);
    font-family: var(--display-font);
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    line-height: 0.9;
    text-align: center;
    text-transform: uppercase;
}

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

.permission-group-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: rgba(255, 247, 223, 0.75);
    border: 4px solid rgba(24, 15, 18, 0.18);
}

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

.permission-group-head h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.permission-group-head span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 8px;
    color: var(--white);
    background: var(--ink);
    border: 2px solid var(--ink);
    font-family: var(--display-font);
    font-size: 1rem;
    text-transform: uppercase;
}

.permission-list {
    display: grid;
    gap: 14px;
}

.permission-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 12px 14px;
    background: #fff7df;
    border: 3px solid rgba(24, 15, 18, 0.18);
}

.permission-option input {
    width: 20px;
    height: 20px;
    margin-top: 4px;
    accent-color: var(--tomato);
}

.permission-option span {
    display: grid;
    gap: 4px;
}

.permission-option strong {
    color: var(--ink);
    font-size: clamp(1.45rem, 2.2vw, 1.7rem);
    line-height: 1.08;
}

.permission-option small {
    color: rgba(24, 15, 18, 0.78);
    font-size: 1.2rem;
    line-height: 1.35;
    font-weight: 700;
}

.permission-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.permission-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    color: var(--ink);
    background: var(--sun);
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--tomato);
    font-family: var(--display-font);
    font-size: 1.2rem;
    text-transform: uppercase;
}

.media-upload-card {
    overflow: hidden;
}

.hero-overlay-field {
    align-self: start;
}

.hero-overlay-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hero-overlay-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 4px 10px;
    color: var(--ink);
    background: var(--sun);
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--tomato);
    font-size: 0.9rem;
}

.hero-overlay-field input[type="range"] {
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    accent-color: var(--tomato);
}

.media-guidelines {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}

.media-guidelines span {
    padding: 12px;
    color: var(--ink);
    background: var(--sun);
    border: 3px solid var(--ink);
    box-shadow: 4px 4px 0 var(--tomato);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

.media-filter-form {
    grid-template-columns: minmax(220px, 360px) auto;
    justify-content: start;
}

.media-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 24px;
}

.files-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
    gap: 18px;
}

.files-filter-form {
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 220px) minmax(180px, 220px) auto;
    align-items: end;
    margin-top: 18px;
}

.media-card {
    min-width: 0;
    overflow: hidden;
    display: grid;
    align-content: start;
    background: var(--white);
    border: 5px solid var(--ink);
    box-shadow: 8px 8px 0 var(--teal);
}

.media-preview {
    position: relative;
    aspect-ratio: 4 / 3;
    margin: 0;
    background:
        linear-gradient(45deg, rgba(24, 15, 18, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(24, 15, 18, 0.1) 25%, transparent 25%),
        #fff7df;
    background-size: 20px 20px;
    border-bottom: 5px solid var(--ink);
}

.media-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.file-card .file-preview {
    aspect-ratio: 1 / 1;
}

.file-card .media-card-body {
    gap: 10px;
    padding: 16px;
    align-content: start;
}

.file-card-title {
    margin: 0;
    font-family: var(--display-font);
    font-size: 0.9rem !important;
    font-weight: 400;
    line-height: 0.9;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.file-card .media-card-heading {
    gap: 8px;
}

.file-card .media-type-pill,
.file-card .media-overlay-pill {
    padding: 6px 8px;
    font-size: 0.88rem;
}

.media-card-body {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.media-card-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.media-type-pill {
    display: inline-block;
    padding: 7px 10px;
    color: var(--white);
    background: var(--teal);
    border: 3px solid var(--ink);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

.media-overlay-pill {
    display: inline-flex;
    padding: 7px 10px;
    color: var(--ink);
    background: var(--sun);
    border: 3px solid var(--ink);
    box-shadow: 3px 3px 0 var(--tomato);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

.media-card h2 {
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 0.92;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.media-card p,
.media-card time {
    margin: 0;
    color: #352126;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
    font-size: 0.8rem !important;
}

.file-usage-note {
    padding: 10px 12px;
    color: #352126;
    background: rgba(255, 210, 31, 0.16);
    border: 3px solid rgba(24, 15, 18, 0.12);
}

.file-usage-free {
    background: rgba(141, 244, 168, 0.16);
}

.media-card time {
    color: rgba(24, 15, 18, 0.72);
}

.media-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    padding: 0 20px 20px;
}

.file-card .media-card-actions {
    gap: 10px;
    padding: 0 16px 16px;
}

.file-card .media-card-actions .admin-link-button,
.file-card .media-card-actions .admin-button {
    min-height: 44px;
    padding: 8px 12px;
}

.file-card .media-card-actions form {
    width: auto;
}

.media-card-actions form {
    margin: 0;
}

.file-card .media-card-actions {
    justify-content: flex-start;
    align-items: flex-start;
}

@media (max-width: 1500px) {
    .files-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

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

.admin-button-danger {
    color: var(--white);
    background: var(--tomato);
    box-shadow: 6px 6px 0 #9e1f10;
}

.admin-button-danger:hover,
.admin-button-danger:focus-visible {
    color: var(--white);
    background: #ff6a55;
}

.musico-guidelines {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}

.musico-guidelines span {
    padding: 12px;
    color: var(--ink);
    background: var(--sun);
    border: 3px solid var(--ink);
    box-shadow: 4px 4px 0 var(--tomato);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

.musico-checkbox-stack {
    display: grid;
    gap: 12px;
}

.musico-photo-manager {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 4px solid rgba(24, 15, 18, 0.16);
}

.musico-photo-grid,
.musico-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 24px;
    justify-items: center;
}

.musico-photo-card,
.musico-card {
    min-width: 0;
    display: grid;
    width: min(100%, 400px);
    background: var(--white);
    border: 5px solid var(--ink);
    box-shadow: 8px 8px 0 var(--teal);
}

.musico-photo-card img,
.musico-card-preview img {
    width: 100%;
    height: 100%;
    max-width: 500px;
    max-height: 500px;
    display: block;
    object-fit: cover;
    margin: 0 auto;
}

.musico-photo-card img {
    aspect-ratio: 4 / 3;
    border-bottom: 5px solid var(--ink);
}

.musico-photo-card-body,
.musico-card-body {
    display: grid;
    gap: 8px;
    padding: 16px 16px 14px;
}

.musico-photo-card-body strong {
    font-family: var(--display-font);
    font-size: 1.4rem;
    line-height: 1;
    text-transform: uppercase;
}

.musico-photo-card-body span {
    color: rgba(24, 15, 18, 0.72);
    font-weight: 800;
}

.musico-photo-card form {
    padding: 0 20px 20px;
}

.musico-photo-card form .admin-link-button {
    width: 100%;
}

.musico-card {
    overflow: hidden;
}

.musico-card-preview {
    position: relative;
 /*   aspect-ratio: 4 / 3; */
    margin: 0;
    background:
        linear-gradient(45deg, rgba(24, 15, 18, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(24, 15, 18, 0.1) 25%, transparent 25%),
        #fff7df;
    background-size: 20px 20px;
    border-bottom: 5px solid var(--ink);
}

.musico-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(3.2rem, 8vw, 5rem);
    text-transform: uppercase;
}

.musico-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 3px solid rgba(24, 15, 18, 0.12);
}

.musico-card-header h2 {
    margin: 8px 0 0;
    font-family: var(--display-font);
    font-size: clamp(1.05rem, 1.8vw, 1.45rem);
    font-weight: 400;
    line-height: 0.9;
    text-transform: uppercase;
}

.musico-card-header time {
    color: #352126;
    font-weight: 900;
    text-align: right;
    line-height: 1.2;
    font-size: 0.9rem;
}

.musico-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0;
    padding-top: 6px;
    border-top: 3px solid rgba(24, 15, 18, 0.12);
}

.musico-card-meta div {
    min-width: 0;
    display: grid;
    gap: 3px;
    padding: 0;
    background: transparent;
    border: 0;
}

.musico-card-meta dt {
    margin: 0;
    color: rgba(24, 15, 18, 0.72);
    font-family: var(--display-font);
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.musico-card-meta dd {
    margin: 0;
    color: #352126;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
}

.musico-card-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 0 16px 14px;
    align-items: stretch;
}

.musico-card-actions form {
    margin: 0;
    width: 100%;
}

.musico-card-actions .admin-link-button,
.musico-card-actions button {
    width: 100%;
    height: 100%;
    min-height: 44px;
    padding: 8px 8px;
    font-size: 0.74rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.budget-list-card {
    padding: clamp(14px, 2.2vw, 22px);
}

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

.budget-row {
    overflow: hidden;
    background: var(--white);
    border: 0;
    border-bottom: 3px solid rgba(24, 15, 18, 0.16);
    box-shadow: none;
}

.budget-row-details {
    display: grid;
    min-height: 0;
}

.budget-row-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 14px 2px 14px 2px;
    cursor: pointer;
}

.budget-row-summary-main,
.budget-row-summary-side {
    min-width: 0;
}

.budget-row-summary-main h2 {
    margin: 4px 0 0;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
}

.budget-row-summary-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    color: #352126;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.budget-row-summary-line strong {
    color: var(--ink);
    font-family: var(--display-font);
    font-size: 0.98rem;
    font-weight: 400;
    text-transform: uppercase;
    min-width: 0;
}

.budget-row-line {
    margin: 8px 0 0;
    color: #352126;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.budget-row-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.budget-row-meta span {
    min-width: 0;
}

.budget-row-summary-side {
    display: grid;
    gap: 8px;
    justify-items: end;
    text-align: right;
}

.budget-row-summary-side-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.budget-row-summary-side time {
    max-width: 180px;
    color: #352126;
    font-weight: 900;
    line-height: 1.25;
}

.budget-row-summary-side strong {
    color: #352126;
    font-family: var(--display-font);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
}

.budget-row-details[open] .budget-row-summary {
    border-bottom: 4px solid rgba(24, 15, 18, 0.16);
}

.budget-row-body {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 14px;
    padding: 0 2px 14px;
}

.budget-row .budget-card-block {
    margin-top: 14px;
}

.budget-row .budget-negotiation-block {
    margin: 0 2px 14px;
}

.budget-row .budget-card-action {
    margin: 0 2px 14px;
}

.budget-row .budget-modal-payload {
    display: none;
}

.finance-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.finance-summary-grid .summary-card {
    display: grid;
    align-content: start;
    min-height: 0;
    gap: 3px;
    padding: 12px 14px;
    box-shadow: 5px 5px 0 var(--teal);
}

.finance-summary-grid .summary-card span {
    margin-bottom: 8px;
    padding: 4px 7px;
    font-size: 0.7rem;
}

.finance-summary-grid .summary-card strong {
    margin-bottom: 2px;
    font-size: 1.55em;
    line-height: 1.05;
}

.finance-summary-grid .summary-card p {
    font-size: 0.78rem;
    line-height: 1.2;
}

@media (max-width: 1100px) {
    .finance-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Caixas de reserva (padrão + caixa reserva) lado a lado e mais compactas. */
.finance-reserve-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.95fr) minmax(0, 1.3fr);
    gap: 14px;
    align-items: stretch;
    margin-bottom: 16px;
}

/* Coluna 1 (estreita): modo, valor e botão empilhados. */
.finance-reserve-row .finance-reserve-default-form {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
}

.finance-reserve-row .finance-reserve-default-actions {
    display: block;
}

.finance-reserve-row .finance-reserve-default-actions .admin-button {
    width: 100%;
}

/* Coluna 2 (Caixa reserva): valor, observação e botão empilhados. */
.finance-reserve-row .finance-reserve-withdraw-form {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    margin-top: 12px;
}

.finance-reserve-row .finance-reserve-withdraw-form .finance-reserve-default-actions .admin-button {
    width: 100%;
}

.finance-reserve-row .settings-cache-card {
    margin-top: 0;
    padding: clamp(14px, 2vw, 18px);
}

/* Saldo atual mais discreto. */
.finance-reserve-row .finance-reserve-balance {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: 12px;
    padding: 10px 12px;
}

.finance-reserve-row .finance-reserve-balance strong {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    line-height: 1.05;
}

/* Card 3 (Movimentos): cada item compacto. */
.finance-reserve-history-card .finance-reserve-movements {
    display: grid;
    gap: 8px;
}

.finance-reserve-row .dashboard-section-heading {
    margin-bottom: 6px;
}

.finance-reserve-row .dashboard-section-heading h2 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1;
    margin: 4px 0 0;
}

.finance-reserve-row .settings-cache-copy {
    font-size: 0.82rem;
    line-height: 1.3;
}

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

.finance-list-card {
    padding: clamp(14px, 2.2vw, 22px);
}

.finance-list-heading {
    margin-bottom: 18px;
}

.finance-hint {
    color: #352126;
    font-weight: 800;
    line-height: 1.35;
}

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

.finance-event-row {
    overflow: hidden;
    background: var(--white);
    border-bottom: 3px solid rgba(24, 15, 18, 0.16);
}

.finance-event-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 10px 2px;
    cursor: pointer;
}

.finance-event-summary-main,
.finance-event-summary-side {
    min-width: 0;
}

.finance-event-summary-main h2 {
    margin: 2px 0 0;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(1.2rem, 1.8vw, 1.65rem);
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finance-event-meta {
    margin: 4px 0 0;
    color: #352126;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finance-event-summary-side {
    display: grid;
    gap: 6px;
    justify-items: end;
    text-align: right;
}

.finance-event-summary-side strong {
    color: #352126;
    font-family: var(--display-font);
    font-size: clamp(1.1rem, 1.7vw, 1.5rem);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.finance-event-summary-side small {
    color: #352126;
    font-weight: 800;
    line-height: 1.2;
}

.finance-event-row[open] .finance-event-summary {
    border-bottom: 4px solid rgba(24, 15, 18, 0.16);
}

.finance-event-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    padding: 0 2px 10px;
}

.finance-event-indicators {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    grid-column: 1 / -1;
    margin: 10px 0 0;
}

.finance-event-indicator {
    display: grid;
    gap: 6px;
    min-height: 110px;
    padding: 14px 16px;
    background: #fff7dd;
    border: 3px solid rgba(24, 15, 18, 0.14);
}

.finance-event-indicator span {
    display: inline-flex;
    width: fit-content;
    padding: 6px 8px;
    color: var(--ink);
    background: var(--sun);
    border: 3px solid var(--ink);
    font-family: var(--display-font);
    font-size: 0.8rem;
    line-height: 1;
    text-transform: uppercase;
}

.finance-event-indicator strong {
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 400;
    line-height: 0.92;
    text-transform: uppercase;
}

.finance-event-indicator small {
    color: #352126;
    font-weight: 800;
    line-height: 1.35;
}

.finance-panel {
    margin-top: 10px;
}

.finance-inline-form {
    display: grid;
    gap: 10px;
}

.finance-launch-edit {
    display: grid;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    background: #fff7e4;
    border: 3px solid rgba(24, 15, 18, 0.14);
}

.finance-launch-edit .dashboard-section-heading {
    margin-bottom: 0;
}

.finance-actions-inline {
    display: flex;
    justify-content: flex-start;
}

.finance-subheading {
    margin-bottom: 8px;
}

.finance-payment-box,
.finance-reserve-box {
    display: grid;
    gap: 10px;
    padding: 8px 12px 10px;
    background: #fffaf0;
    border: 3px solid rgba(24, 15, 18, 0.14);
}

.finance-payment-box .dashboard-section-heading {
    margin-bottom: 0;
}

.finance-reserve-note {
    margin: 0;
}

.finance-payment-box h4 {
    margin: 2px 0 0;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(0.95rem, 1.35vw, 1.15rem);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.finance-payment-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.finance-reserve-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.finance-payment-status-field {
    min-width: 0;
}

.finance-reserve-mode-field,
.finance-reserve-value-field {
    min-width: 0;
}

.finance-payment-status-field select {
    min-height: 42px;
    padding: 8px 10px;
}

.finance-reserve-mode-field select {
    min-height: 42px;
    padding: 8px 10px;
}

.finance-payment-save {
    display: flex;
    align-items: end;
}

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

.finance-payment-grid .admin-field {
    min-width: 0;
}

.finance-payment-box .admin-field-full textarea {
    min-height: 46px;
}

.finance-reserve-default-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.finance-reserve-default-form .admin-button {
    min-height: 46px;
}

.finance-reserve-default-actions {
    display: flex;
    align-items: end;
}

.finance-repass-list,
.finance-launch-list {
    display: grid;
    gap: 8px;
}

.finance-repass-item,
.finance-launch-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
    background: #fffaf0;
    border: 3px solid rgba(24, 15, 18, 0.14);
}

.finance-repass-item strong,
.finance-launch-item strong {
    display: block;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: 0.95rem;
    line-height: 1;
    text-transform: uppercase;
}

.finance-repass-item p,
.finance-launch-item p {
    margin: 4px 0 0;
    color: #352126;
    font-weight: 800;
    line-height: 1.25;
}

.finance-repass-values,
.finance-launch-side {
    display: grid;
    justify-items: end;
    text-align: right;
    gap: 3px;
}

.finance-launch-side .admin-link-button {
    justify-self: end;
}

.finance-repass-side {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.finance-repass-payment {
    display: grid;
    gap: 4px;
    justify-items: end;
    min-width: 170px;
}

.finance-repass-payment label {
    font-size: 0.72rem;
}

.finance-repass-payment select {
    min-height: 42px;
    padding: 8px 10px;
}

.finance-repass-payment .admin-link-button {
    padding: 7px 10px;
    min-height: 36px;
}

.finance-launch-receita {
    box-shadow: inset 4px 0 0 var(--teal);
}

.finance-launch-despesa {
    box-shadow: inset 4px 0 0 var(--tomato);
}

.budget-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.budget-card {
    max-width: none;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
    align-self: stretch;
    padding: clamp(18px, 2.4vw, 24px);
    background: #fffaf0;
    border: 5px solid var(--ink);
    box-shadow: 8px 8px 0 var(--teal);
}

.budget-card-compact {
    padding: 0;
    overflow: hidden;
}

.budget-card-details {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 100%;
}

.budget-card-details summary {
    list-style: none;
}

.budget-card-details summary::-webkit-details-marker {
    display: none;
}

.budget-card-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: clamp(20px, 3vw, 28px);
    min-height: 220px;
    cursor: pointer;
}

.budget-card-summary-main,
.budget-card-summary-side {
    min-width: 0;
}

.budget-card-summary-side {
    display: grid;
    gap: 12px;
    justify-items: end;
    text-align: right;
}

.budget-card-summary-side strong {
    color: #352126;
    font-family: var(--display-font);
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
}

.budget-summary-line {
    margin: 10px 0 0;
    color: #352126;
    font-weight: 800;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.budget-card-summary-main .budget-summary-line:first-of-type {
    -webkit-line-clamp: 2;
}

.budget-card-summary-main .budget-summary-line:last-of-type {
    -webkit-line-clamp: 2;
}

.budget-card-details[open] .budget-card-summary {
    border-bottom: 4px solid rgba(24, 15, 18, 0.16);
}

.budget-create-panel {
    display: grid;
    gap: 18px;
    margin: 0 0 18px;
    padding: clamp(18px, 2.4vw, 24px);
    background: #fffaf0;
    border: 5px solid var(--ink);
    box-shadow: 8px 8px 0 var(--teal);
}

.budget-create-panel[hidden] {
    display: none;
}

.budget-create-body {
    display: grid;
    gap: 18px;
}

.budget-create-body-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.budget-create-body-head .admin-muted {
    flex: 1;
    min-width: 0;
}

.budget-create-close {
    flex: 0 0 auto;
    margin-top: 0;
    white-space: nowrap;
}

.budget-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 4px solid rgba(24, 15, 18, 0.16);
}

.budget-card-label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 9px;
    color: var(--white);
    background: var(--tomato);
    border: 3px solid var(--ink);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

.budget-card h2 {
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(1.9rem, 3vw, 2.9rem);
    font-weight: 400;
    line-height: 0.92;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.budget-card time {
    flex: 0 0 auto;
    max-width: 150px;
    color: #352126;
    font-weight: 900;
    text-align: right;
    line-height: 1.3;
}

.budget-card-body {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
}

.budget-card-block {
    min-width: 0;
    padding: 18px;
    background: #fff7df;
    border: 3px solid rgba(24, 15, 18, 0.18);
}

.budget-card-block h3 {
    margin: 0 0 12px;
    font-family: var(--display-font);
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.budget-card-block p,
.budget-card-block dd {
    margin: 0;
    color: #352126;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.budget-card-block p + p {
    margin-top: 8px;
}

.budget-card-block a {
    overflow-wrap: anywhere;
}

.budget-event-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.budget-event-list div {
    display: grid;
    gap: 2px;
}

.budget-event-list dt {
    color: rgba(24, 15, 18, 0.7);
    font-family: var(--display-font);
    text-transform: uppercase;
}

.budget-message-block {
    grid-column: 1 / -1;
}

.budget-message-block p {
    white-space: normal;
    word-break: normal;
}

.budget-admin-form {
    display: grid;
    gap: 22px;
}

.budget-negotiation-block {
    display: grid;
    gap: 18px;
}

.budget-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.budget-current-status {
    display: inline-block;
    width: fit-content;
    padding: 8px 11px;
    color: var(--ink);
    background: var(--sun);
    border: 3px solid var(--ink);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

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

.budget-negotiation-grid .admin-field {
    margin-bottom: 0;
}

.budget-card-action {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr);
    gap: 14px;
    align-items: center;
    padding-top: 18px;
    border-top: 4px solid rgba(24, 15, 18, 0.16);
}

.budget-status-pill {
    display: inline-block;
    width: fit-content;
    padding: 8px 11px;
    color: var(--ink);
    background: var(--sun);
    border: 3px solid var(--ink);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

.budget-status-em_contato {
    color: var(--white);
    background: var(--teal);
}

.budget-status-fechado {
    background: #8df4a8;
}

.budget-status-perdido {
    color: var(--white);
    background: var(--tomato);
}

.budget-status-form {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.budget-status-form select,
.budget-negotiation-grid input,
.budget-negotiation-grid textarea {
    width: 100%;
    min-height: 44px;
    padding: 9px 10px;
    color: var(--ink);
    background: #fffdf5;
    border: 3px solid var(--ink);
    font: inherit;
    font-weight: 800;
}

.budget-negotiation-grid textarea {
    min-height: 120px;
    resize: vertical;
}

.budget-status-form select:focus,
.budget-negotiation-grid input:focus,
.budget-negotiation-grid textarea:focus {
    outline: 3px solid var(--sun);
    outline-offset: 2px;
    box-shadow: 4px 4px 0 var(--tomato);
}

.budget-status-form .admin-link-button {
    width: 100%;
}

.budget-filter-form {
    grid-template-columns: minmax(180px, 220px) minmax(240px, 1fr) auto;
}

.notification-filter-card {
    padding: clamp(18px, 3vw, 28px);
    margin-bottom: 28px;
}

.notification-filter-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 18px;
    align-items: end;
}

.notification-filter-form .admin-field {
    margin-bottom: 0;
}

.notification-filter-actions {
    display: flex;
    gap: 10px;
}

.lead-top-actions {
    margin: 20px 0 28px;
}

.lead-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

/* Indicadores mais baixos e compactos na página de leads */
.lead-summary-grid .summary-card {
    min-height: 0;
    padding: 15px 17px;
}

.lead-summary-grid .summary-card span {
    margin-bottom: 10px;
}

.lead-summary-grid .summary-card strong {
    margin-bottom: 5px;
    font-size: 1.7em;
}

.lead-summary-grid .summary-card p {
    font-size: 0.88rem;
    line-height: 1.3;
}

/* Card de busca mais enxuto */
.lead-filter-card {
    padding: 16px 18px;
    margin-bottom: 18px;
}

.lead-filter-form {
    gap: 14px;
}

.lead-filter-form .admin-field input,
.lead-filter-form .admin-field select {
    min-height: 42px;
    padding: 9px 12px;
}

/* Título da tabela de leads menor */
.lead-table-card .notification-table-head h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.lead-form-card {
    margin-bottom: 28px;
}

.lead-form-grid .admin-field {
    margin-bottom: 0;
}

.lead-form-grid .admin-field small {
    margin-top: 8px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display-font);
    text-transform: uppercase;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
    accent-color: var(--sun);
}

.lead-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lead-list-card,
.lead-template-card {
    padding: 28px;
    margin-bottom: 28px;
}

.lead-test-card {
    padding: 28px;
    margin-bottom: 28px;
}

.lead-test-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
}

.lead-test-form .admin-field {
    margin-bottom: 0;
}

.lead-test-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lead-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 22px;
}

.lead-card {
    min-width: 0;
    padding: 22px;
    background: #fffaf0;
    border: 5px solid var(--ink);
    box-shadow: 8px 8px 0 var(--teal);
}

.lead-card-active {
    box-shadow: 8px 8px 0 var(--teal);
}

.lead-card-inactive {
    box-shadow: 8px 8px 0 var(--tomato);
    opacity: 0.94;
}

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

.lead-card-header-copy {
    min-width: 0;
}

.lead-card-badge,
.lead-status {
    display: inline-flex;
    width: fit-content;
    padding: 7px 10px;
    background: var(--sun);
    border: 3px solid var(--ink);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

.lead-card-badge {
    margin-bottom: 14px;
}

.lead-card h3 {
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 0.92;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.lead-card-status-wrap {
    display: grid;
    gap: 10px;
    justify-items: end;
    text-align: right;
}

.lead-card-status-wrap time {
    font-family: var(--display-font);
    font-size: 1rem;
    line-height: 1;
    text-transform: uppercase;
}

.lead-status-active {
    color: var(--ink);
    background: #8df4a8;
}

.lead-status-inactive {
    color: var(--white);
    background: var(--tomato);
}

.lead-status-pendente {
    color: var(--ink);
    background: var(--sun);
}

.lead-card-meta {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    color: #352126;
    font-weight: 800;
}

.lead-card-meta p {
    margin: 0;
    overflow-wrap: anywhere;
}

.lead-card-actions {
    display: grid;
    grid-template-columns: auto auto;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.lead-card-actions form {
    margin: 0;
}

.lead-toggle-button {
    min-width: 146px;
}

.lead-toggle-button-off {
    color: var(--white);
    background: var(--tomato);
    box-shadow: 6px 6px 0 var(--sun);
}

.lead-toggle-button-on {
    background: #8df4a8;
    box-shadow: 6px 6px 0 var(--teal);
}

.lead-template-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
    gap: 22px;
    align-items: start;
}

.lead-template-form {
    gap: 18px;
}

.lead-template-form .admin-field {
    margin-bottom: 0;
}

.lead-template-preview {
    display: grid;
    gap: 14px;
    padding: 20px;
    background: #fff7df;
    border: 4px solid rgba(24, 15, 18, 0.18);
}

.lead-template-preview span {
    display: inline-block;
    width: fit-content;
    padding: 7px 10px;
    color: var(--ink);
    background: var(--sun);
    border: 3px solid var(--ink);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

.lead-template-preview img {
    display: block;
    width: 100%;
    height: auto;
    border: 3px solid var(--ink);
}

.lead-template-preview-empty {
    display: grid;
    place-items: center;
    min-height: 200px;
    padding: 24px;
    color: #352126;
    background: #fffaf0;
    border: 3px dashed rgba(24, 15, 18, 0.3);
    font-weight: 800;
    text-align: center;
}

.lead-template-preview h3 {
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.92;
    text-transform: uppercase;
}

.lead-template-preview p {
    margin: 0;
    color: #352126;
    font-weight: 800;
    line-height: 1.55;
}

.lead-template-preview strong {
    color: #352126;
    font-family: var(--display-font);
    font-size: 1.2rem;
    text-transform: uppercase;
}

.lead-template-ready strong {
    color: var(--teal);
}

.notification-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
    gap: 24px;
}

.notification-table-card {
    padding: 28px;
    margin-bottom: 28px;
}

.notification-table-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.notification-table-head h2 {
    margin: 10px 0 0;
    font-family: var(--display-font);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 0.92;
    text-transform: uppercase;
}

.notification-table-head p {
    margin: 0;
    color: #352126;
    font-weight: 900;
}

.notification-table-wrap {
    overflow-x: auto;
}

.notification-table {
    width: 100%;
    border-collapse: collapse;
}

.notification-table th,
.notification-table td {
    padding: 14px 12px;
    vertical-align: top;
    border-bottom: 3px solid rgba(24, 15, 18, 0.1);
    text-align: left;
}

.notification-table th {
    color: var(--white);
    background: var(--ink);
    font-family: var(--display-font);
    font-size: 1rem;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.notification-row:hover {
    background: rgba(255, 210, 31, 0.16);
}

.notification-row-erro {
    background: rgba(240, 59, 37, 0.06);
}

.notification-row-enviado {
    background: rgba(141, 244, 168, 0.12);
}

.notification-message-cell {
    max-width: 360px;
    color: #352126;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.notification-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.notification-table-subline {
    margin-top: 6px;
    color: #57414a;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 4px solid rgba(24, 15, 18, 0.14);
}

.pagination-bar span {
    font-family: var(--display-font);
    text-transform: uppercase;
}

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

.notification-day-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}

.notification-day-divider::after {
    content: "";
    flex: 1;
    height: 4px;
    background: rgba(24, 15, 18, 0.16);
}

.notification-day-divider span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 14px;
    color: var(--ink);
    background: var(--sun);
    border: 3px solid var(--ink);
    box-shadow: 5px 5px 0 var(--tomato);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

.notification-card {
    max-width: 760px;
    display: grid;
    gap: 20px;
    padding: clamp(20px, 3vw, 28px);
    background: var(--white);
    border: 5px solid var(--ink);
    box-shadow: 8px 8px 0 var(--teal);
}

.notification-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 4px solid rgba(24, 15, 18, 0.16);
}

.notification-card h2 {
    margin: 12px 0 0;
    font-family: var(--display-font);
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.notification-card time {
    flex: 0 0 auto;
    color: #352126;
    font-weight: 900;
    text-align: right;
    line-height: 1.3;
}

.notification-status {
    display: inline-block;
    padding: 8px 11px;
    color: var(--white);
    background: var(--night);
    border: 3px solid var(--ink);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

.notification-status-enviado {
    color: var(--ink);
    background: #8df4a8;
}

.notification-status-erro {
    background: var(--tomato);
}

.notification-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.notification-meta div,
.notification-message {
    min-width: 0;
    padding: 16px;
    background: #fff7df;
    border: 3px solid rgba(24, 15, 18, 0.18);
}

.notification-meta dt,
.notification-message h3 {
    margin: 0 0 8px;
    color: rgba(24, 15, 18, 0.72);
    font-family: var(--display-font);
    text-transform: uppercase;
}

.notification-meta dd,
.notification-message p {
    margin: 0;
    color: #352126;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.notification-show-link {
    color: var(--ink);
    font-weight: 900;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.notification-show-link:hover,
.notification-show-link:focus-visible {
    color: var(--tomato);
}

.notification-show-summary {
    display: grid;
    gap: 10px;
    padding: 16px;
    background: #fff7df;
    border: 3px solid rgba(24, 15, 18, 0.18);
}

.notification-show-summary h3 {
    margin: 0;
    color: rgba(24, 15, 18, 0.72);
    font-family: var(--display-font);
    text-transform: uppercase;
}

.notification-show-summary p {
    margin: 0;
    color: #352126;
    font-weight: 800;
    line-height: 1.5;
}

.notification-show-status {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 12px;
    border: 3px solid var(--ink);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

.notification-show-status-publicado {
    background: #8df4a8;
}

.notification-show-status-rascunho {
    background: var(--sun);
}

.notification-show-status-cancelado {
    color: var(--white);
    background: var(--tomato);
}

.notification-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 4px;
}

.notification-resend-form {
    margin: 0;
}

.notification-open-show-button,
.notification-resend-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    color: var(--ink);
    background: #fff7df;
    border: 3px solid var(--ink);
    box-shadow: 4px 4px 0 rgba(24, 15, 18, 0.24);
    cursor: pointer;
    font: inherit;
    font-family: var(--display-font);
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.notification-open-show-button:hover,
.notification-open-show-button:focus-visible,
.notification-resend-button:hover,
.notification-resend-button:focus-visible {
    background: var(--sun);
    box-shadow: 6px 6px 0 var(--tomato);
    transform: translate(-2px, -2px);
}

@media (max-width: 760px) {
    .budget-card-grid {
        grid-template-columns: 1fr;
    }

    .budget-row-summary {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .budget-row-summary-side {
        justify-items: start;
        text-align: left;
    }

    .budget-row-summary-side-row {
        justify-content: flex-start;
    }

    .budget-row-meta {
        flex-wrap: wrap;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .budget-row-summary-line {
        flex-wrap: wrap;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .budget-row-body {
        grid-template-columns: 1fr;
    }

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

    .finance-event-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .finance-event-summary-side {
        justify-items: start;
        text-align: left;
    }

    .finance-event-meta {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .finance-event-body {
        grid-template-columns: 1fr;
    }

    .finance-event-indicators {
        grid-template-columns: 1fr;
    }

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

    .finance-repass-item,
    .finance-launch-item {
        grid-template-columns: 1fr;
    }

    .finance-repass-side {
        justify-items: start;
    }

    .finance-repass-payment {
        justify-items: start;
        min-width: 0;
        width: 100%;
    }

    .finance-repass-values,
    .finance-launch-side {
        justify-items: start;
        text-align: left;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
        padding: 14px 16px;
        border-right: 0;
        border-bottom: 5px solid var(--ink);
    }

    .admin-sidebar-header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        margin-bottom: 0;
    }

    .admin-logo-label-group {
        margin-inline: 0;
        justify-items: center;
        text-align: center;
    }

    .admin-logo {
        margin: 0;
    }

    .admin-logo-label {
        display: block;
        text-align: center;
        justify-self: center;
        font-size: 2rem;
    }

    .admin-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        min-width: 52px;
        min-height: 52px;
        margin: 0;
        padding: 0;
        box-shadow: 4px 4px 0 var(--tomato);
        justify-self: end;
        align-self: center;
        margin-left: 0;
    }

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

    .admin-menu-toggle-icon {
        display: grid;
    }

    .admin-sidebar.is-open .admin-menu-toggle-icon span {
        opacity: 0;
    }

    .admin-sidebar.is-open .admin-menu-toggle-icon::before {
        transform: translateY(8px) rotate(45deg);
    }

    .admin-sidebar.is-open .admin-menu-toggle-icon::after {
        transform: translateY(-8px) rotate(-45deg);
    }

    .admin-sidebar .admin-menu {
        display: none;
        margin-top: 14px;
    }

    .admin-sidebar.is-open .admin-menu {
        display: grid;
    }

    .admin-main {
        padding: 22px;
    }

    .admin-topbar,
    .admin-header {
        display: block;
    }

    .admin-topbar h1 {
        font-size: clamp(2.4rem, 12vw, 4rem);
    }

    .admin-button,
    .admin-actions {
        width: 100%;
       /* margin-top: 24px; */
    }

    .admin-actions .admin-button {
        margin-top: 0;
    }

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

    .admin-table,
    .user-table {
        min-width: 0;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody tr {
        display: grid;
        gap: 10px;
        margin-bottom: 16px;
        padding: 14px;
        background: var(--white);
        border: 4px solid rgba(24, 15, 18, 0.18);
        box-shadow: 6px 6px 0 var(--teal);
    }

    .admin-table tbody td {
        display: block;
        width: 100%;
        padding: 0;
        border-bottom: 0;
    }

    .admin-table tbody td::before {
        display: block;
        margin-bottom: 4px;
        color: rgba(24, 15, 18, 0.7);
        font-family: var(--display-font);
        text-transform: uppercase;
        content: attr(data-label);
    }

    .admin-table tbody td:last-child {
        margin-top: 4px;
        padding-top: 10px;
        border-top: 3px solid rgba(24, 15, 18, 0.12);
    }

    .actions-cell {
        min-width: 0;
    }

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

    .admin-modal-summary {
        grid-template-columns: 1fr;
    }

    .summary-card-link:hover,
    .summary-card-link:focus-visible {
        transform: none;
    }

    .admin-user {
        justify-items: start;
        margin-top: 22px;
    }

    .admin-user-meta {
        justify-items: start;
        text-align: left;
    }

    .admin-user-logout {
        justify-self: start;
    }

    .dashboard-section-heading {
        display: block;
    }

    .dashboard-section-heading .admin-button {
        margin-top: 18px;
    }

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

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

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

    .settings-test-form {
        grid-template-columns: 1fr;
    }

    .settings-hub-grid,
    .communication-layout,
    .lead-summary-grid {
        grid-template-columns: 1fr;
    }

    .permissions-tab-panel,
    .permission-profile-header,
    .permission-groups-grid {
        grid-template-columns: 1fr;
    }

    .settings-hub-card {
        min-height: 220px;
    }

    .communication-hints,
    .communication-grid-footer,
    .communication-result-stats {
        grid-template-columns: 1fr;
    }

    .communication-form,
    .communication-form-main {
        grid-template-columns: 1fr;
    }

    .communication-intro-card h2 {
        white-space: normal;
    }

    .communication-preview-counts,
    .communication-preview-audiences {
        grid-template-columns: 1fr;
    }

    .communication-result-header {
        flex-direction: column;
    }

    .communication-result-summary-meta {
        justify-content: flex-start;
    }

    .communication-preview-message {
        padding: 16px 18px;
    }

    .settings-tabs {
        display: grid;
    }

    .permissions-tabs a {
        width: 100%;
        justify-content: center;
    }

    .settings-tabs a,
    .settings-back-actions .admin-link-button {
        width: 100%;
        justify-content: center;
    }

    .settings-logo-grid {
        grid-template-columns: 1fr;
    }

    .media-guidelines,
    .media-filter-form {
        grid-template-columns: 1fr;
    }

    .admin-field-wide,
    .admin-field-full {
        grid-column: auto;
    }

    .actions-cell form {
        grid-template-columns: 1fr;
    }

    .actions-cell .inline-action-form {
        display: flex;
        margin: 10px 0 0;
    }

    .show-actions-quick {
        grid-template-columns: 1fr;
    }

    .show-actions-quick,
    .show-actions-status,
    .show-actions-send,
    .shows-filter-form {
        grid-template-columns: 1fr;
    }

    .budget-card-header,
    .budget-card-action,
    .budget-card-body,
    .budget-status-form,
    .budget-negotiation-grid,
    .budget-card-summary,
    .user-card-header,
    .user-card-actions {
        grid-template-columns: 1fr;
    }

    .budget-card-header,
    .user-card-header,
    .budget-section-heading,
    .budget-card-summary-side {
        display: grid;
    }

    .budget-card time,
    .user-card time {
        max-width: none;
        text-align: left;
    }

    .budget-card-summary-side {
        justify-items: start;
        text-align: left;
    }

    .user-card-actions,
    .user-card-actions .admin-link-button,
    .user-card-actions form,
    .media-card-actions,
    .media-card-actions .admin-link-button,
    .media-card-actions form,
    .file-card-actions,
    .file-card-actions .admin-link-button,
    .file-card-actions form {
        width: 100%;
    }

    .notification-filter-form,
    .notification-meta,
    .notification-card-header {
        grid-template-columns: 1fr;
    }

    .notification-card-header {
        display: grid;
    }

    .notification-card time {
        text-align: left;
    }

    .notification-filter-actions {
        display: grid;
    }

    .notification-table-head,
    .pagination-bar {
        display: grid;
    }

    .notification-table th,
    .notification-table td {
        display: block;
        width: 100%;
        padding: 10px 12px;
    }

    .notification-table thead {
        display: none;
    }

    .notification-table tbody tr {
        display: grid;
        gap: 8px;
        margin-bottom: 16px;
        padding: 12px;
        background: var(--white);
        border: 3px solid rgba(24, 15, 18, 0.18);
        box-shadow: 5px 5px 0 var(--teal);
    }

    .notification-table tbody td {
        border-bottom: 0;
        padding: 0;
    }

    .notification-table tbody td::before {
        display: block;
        margin-bottom: 4px;
        color: rgba(24, 15, 18, 0.7);
        font-family: var(--display-font);
        text-transform: uppercase;
        content: attr(data-label);
    }

    .notification-row-actions {
        width: 100%;
    }

    .notification-row-actions .notification-resend-form,
    .notification-row-actions .notification-open-show-button {
        width: 100%;
    }

    .lead-card-actions .admin-button,
    .lead-card-actions form,
    .lead-form-actions .admin-button,
    .lead-form-actions .admin-link-button {
        width: 100%;
    }

    .budget-filter-form {
        grid-template-columns: 1fr;
    }

    .lead-template-layout,
    .lead-card-head,
    .lead-card-actions {
        grid-template-columns: 1fr;
    }

    .lead-card-head {
        display: grid;
    }

    .lead-card-status-wrap {
        justify-items: start;
        text-align: left;
    }

    .lead-card-actions {
        display: grid;
    }

    .lead-test-form {
        grid-template-columns: 1fr;
    }

    .lead-test-actions .admin-button,
    .lead-test-actions .admin-link-button {
        width: 100%;
    }

    .musico-guidelines,
    .musico-card-meta {
        grid-template-columns: 1fr;
    }

    .musico-card-header {
        display: grid;
    }

    .musico-card-header time {
        text-align: left;
    }

    .notification-card-actions,
    .notification-open-show-button,
    .notification-resend-button {
        width: 100%;
    }

    .table-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .table-actions .admin-link-button,
    .table-actions form,
    .table-actions button {
        width: 100%;
    }

    .admin-modal-actions,
    .admin-form-actions {
        display: grid;
    }
}

.profile-empty-card,
.profile-section-card,
.profile-hero-card {
    margin-bottom: 28px;
}

.profile-musician-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.profile-musician-stack .profile-section-card {
    margin-bottom: 0;
}

.profile-dashboard-card,
.profile-chat-card {
    grid-column: auto;
}

.profile-musician-profile-card,
.profile-password-card,
.profile-push-card {
    grid-column: 1 / -1;
}

.profile-musician-stack .profile-password-card,
.profile-musician-stack .profile-push-card {
    grid-column: auto;
}

.profile-musician-stack .profile-password-card + .profile-push-card {
    grid-column: auto;
}

/* Linha compacta de 3 colunas: Próximos shows | Senha | Push */
.profile-trio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin-bottom: 28px;
}

.profile-trio-grid > .admin-card {
    margin-bottom: 0;
    height: 100%;
}

/* Anula o span full-width global desses cards para ficarem lado a lado */
.profile-trio-grid .profile-dashboard-card,
.profile-trio-grid .profile-password-card,
.profile-trio-grid .profile-push-card {
    grid-column: auto;
}

.profile-trio-grid .profile-push-card {
    align-content: start;
}

/* Em coluna estreita, senha fica empilhada (uma por linha) */
.profile-trio-grid .profile-password-card .admin-form-grid {
    grid-template-columns: 1fr;
}

/* Formulário do perfil mais compacto e bem distribuído */
.profile-musician-form.admin-form-grid {
    gap: 14px 18px;
}

.profile-musician-form .admin-field:not(.admin-field-wide):not(.admin-field-full) {
    grid-column: span 2;
}

.profile-top-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin-bottom: 28px;
}

.profile-top-grid .profile-hero-card,
.profile-top-grid .profile-password-card {
    margin-bottom: 0;
}

.profile-top-grid > .admin-card {
    height: 100%;
    min-height: 320px;
}

.profile-section-card {
    padding: clamp(16px, 2vw, 22px);
}

.profile-desktop-userbar {
    display: block;
    margin-bottom: 28px;
}

.profile-empty-card h2,
.profile-hero-card h2 {
    margin: 12px 0 14px;
    font-family: var(--display-font);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    line-height: 0.9;
    text-transform: uppercase;
}

.profile-empty-card p,
.profile-hero-card p {
    max-width: 820px;
    margin: 0;
    color: #352126;
    font-weight: 900;
    line-height: 1.45;
}

.profile-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.profile-musician-profile-card {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
}

.profile-hero-media {
    display: grid;
    gap: 10px;
    align-content: start;
}

.profile-photo-preview {
    display: grid;
    width: min(100%, 500px);
    max-width: 500px;
    aspect-ratio: 1 / 1.05;
    min-height: 360px;
    margin-inline: auto;
    margin: 0;
    place-items: center;
    overflow: hidden;
    background: var(--sun);
    border: 5px solid var(--ink);
    box-shadow: 8px 8px 0 var(--teal);
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;
    max-width: 500px;
    max-height: 500px;
    display: block;
    min-height: 100%;
    object-fit: cover;
}

.profile-photo-preview div {
    font-family: var(--display-font);
    font-size: clamp(4.8rem, 12vw, 8.4rem);
    line-height: 1;
}

.profile-hero-copy {
    display: grid;
    align-content: start;
    gap: 12px;
}

.profile-musician-profile-card .profile-hero-copy {
    gap: 7px;
    align-content: start;
}

.profile-hero-copy .admin-kicker {
    width: fit-content;
}

.profile-hero-copy h2 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.profile-musician-profile-card .profile-hero-copy h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 0.92;
}

.profile-musician-role {
    color: #352126;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.15;
    text-transform: uppercase;
}

.profile-hero-bio {
    display: grid;
    align-items: center;
    min-height: 150px;
    padding: 18px 18px 20px;
    background: #fff7df;
    border: 4px solid rgba(24, 15, 18, 0.18);
}

.profile-hero-bio p {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.3;
}

.profile-photo-tools {
    display: grid;
    gap: 12px;
}

.profile-photo-upload-field {
    margin-bottom: 0;
}

.profile-photo-upload-field small {
    display: block;
    margin-top: 8px;
}

.profile-photo-remove-current {
    width: fit-content;
    justify-self: center;
    margin-top: 2px;
}

.profile-musician-profile-card .profile-photo-preview {
    width: min(100%, 196px);
    min-height: 168px;
    aspect-ratio: 1 / 1;
    justify-self: center;
}

.profile-musician-profile-card .profile-photo-preview img {
    min-height: 168px;
}

.profile-musician-profile-card .profile-hero-copy .profile-musician-note {
    max-width: 780px;
    margin: 0;
    color: #352126;
    font-weight: 900;
    line-height: 1.45;
}

.profile-musician-form {
    margin-top: 4px;
}

.profile-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 150px));
    justify-content: start;
    gap: 14px;
    margin-top: 24px;
}

.profile-photo-grid article {
    display: grid;
    gap: 10px;
    padding: 10px;
    background: #fff7df;
    border: 4px solid rgba(24, 15, 18, 0.18);
}

.profile-photo-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 130px;
    object-fit: cover;
    border: 3px solid var(--ink);
}

.profile-photo-grid form,
.profile-photo-grid button {
    width: 100%;
}

.profile-push-card {
    display: grid;
    gap: 14px;
}

.profile-dashboard-card,
.profile-chat-card,
.profile-musician-profile-card {
    margin-bottom: 0;
}

.profile-dashboard-card .dashboard-section-heading h2,
.profile-chat-card .dashboard-section-heading h2,
.profile-musician-profile-card .dashboard-section-heading h2,
.profile-push-card .dashboard-section-heading h2,
.profile-password-card .dashboard-section-heading h2 {
    font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.profile-musician-show-list {
    display: grid;
    gap: 12px;
}

.profile-musician-show-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    background: #fff7df;
    border: 3px solid rgba(24, 15, 18, 0.12);
}

.profile-musician-show-item strong {
    font-family: var(--display-font);
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.profile-musician-show-item small {
    color: #352126;
    font-weight: 800;
    line-height: 1.35;
}

.profile-chat-card .chat-message-list {
    max-height: clamp(240px, 34vh, 420px);
}

.profile-chat-card .chat-compose-card {
    margin-top: 12px;
}

.profile-musician-empty {
    margin: 0;
    color: #352126;
    font-weight: 900;
    line-height: 1.45;
}

.profile-push-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin-bottom: 28px;
}

.community-dashboard-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
}

.community-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.community-quick-actions .admin-button {
    min-width: 140px;
    justify-content: center;
}

.profile-push-grid .profile-push-card {
    margin-bottom: 0;
    height: 100%;
}

.profile-password-card {
    display: flex;
    flex-direction: column;
}

.profile-password-card .admin-form-grid {
    flex: 1;
    align-content: start;
}

.profile-password-card .admin-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-password-card .admin-field:nth-child(2),
.profile-password-card .admin-field:nth-child(3) {
    margin-bottom: 0;
}

.profile-password-card .admin-form-actions {
    justify-content: center;
}

.profile-push-copy {
    max-width: 780px;
    margin: 0;
    color: #352126;
    font-weight: 900;
    line-height: 1.45;
}

.profile-push-summary {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    background: #fff7df;
    border: 4px solid rgba(24, 15, 18, 0.18);
}

.profile-push-summary strong {
    font-family: var(--display-font);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
}

.profile-push-summary span,
.profile-push-status {
    color: #352126;
    font-weight: 900;
    line-height: 1.45;
}

.profile-push-button {
    width: fit-content;
    cursor: pointer;
    transform: translate(0, 0) scale(1);
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.profile-push-button:active {
    transform: translate(5px, 5px) scale(0.96);
    box-shadow: 1px 1px 0 var(--tomato);
    filter: brightness(0.96);
}

.profile-push-status {
    display: inline-flex;
    width: fit-content;
    margin-top: -6px;
    padding: 0 2px;
}

.profile-notification-list {
    display: grid;
    gap: 12px;
}

.profile-notification-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 8px 12px;
    background: #fff7df;
    border: 4px solid rgba(24, 15, 18, 0.18);
}

.profile-notification-item > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
}

.profile-notification-item span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0;
    padding: 7px 10px;
    color: var(--ink);
    background: #8df4a8;
    border: 3px solid var(--ink);
    font-family: var(--display-font);
    line-height: 1;
    text-transform: uppercase;
}

.profile-notification-erro span {
    color: var(--white);
    background: var(--tomato);
}

.profile-notification-item h3 {
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    font-weight: 400;
    line-height: 1.02;
    text-transform: uppercase;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.profile-notification-item p,
.profile-notification-item time {
    margin: 0;
    color: #352126;
    font-weight: 900;
}

.profile-notification-item p {
    flex: 1 1 100%;
    min-width: 0;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    font-weight: 800;
    font-size: 0.92rem;
    line-height: 1.18;
}

.profile-notification-item time {
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .profile-trio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .files-card-grid {
        grid-template-columns: 1fr;
    }

    .profile-top-grid {
        grid-template-columns: 1fr;
    }

    .profile-desktop-userbar {
        display: none;
    }

    .profile-musician-stack {
        grid-template-columns: 1fr;
    }

    .profile-musician-stack .profile-password-card,
    .profile-musician-stack .profile-push-card {
        grid-column: 1 / -1;
    }

    .profile-hero-card {
        grid-template-columns: 1fr;
    }

    .profile-hero-card,
    .profile-notification-item {
        grid-template-columns: 1fr;
    }

    .profile-notification-item > div {
        display: grid;
        gap: 8px;
        flex-wrap: wrap;
    }

    .profile-notification-item p {
        white-space: normal;
        text-overflow: clip;
    }

    .profile-photo-grid {
        grid-template-columns: 1fr;
    }

    .profile-photo-tools {
        width: 100%;
    }

    .profile-photo-preview {
        min-height: 180px;
    }

    .profile-photo-preview img {
        min-height: 180px;
    }

    .profile-push-grid {
        grid-template-columns: 1fr;
    }

    .profile-musician-profile-card {
        grid-template-columns: 1fr;
    }

    .profile-musician-profile-card .profile-photo-preview {
        min-height: 168px;
    }

    .profile-musician-profile-card .profile-photo-preview img {
        min-height: 168px;
    }

    .profile-hero-bio {
        min-height: 0;
    }

    .profile-password-card .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-push-button {
        width: 100%;
    }

.profile-notification-item time {
    text-align: left;
    white-space: normal;
}
}

@media (min-width: 761px) {
    .admin-menu-toggle {
        display: none !important;
    }

    .admin-sidebar .admin-menu {
        display: grid !important;
    }
}
