/* =========================================================================
   Rio Ave FC — Revisão dos Estatutos
   ========================================================================= */

:root {
    --green-950: #002418;
    --green-900: #003b28;
    --green-800: #005438;
    --green-700: #0a6b47;
    --green-600: #0f7d55;
    --green-500: #199467;
    --green-100: #e4f1ea;
    --green-50: #f1f8f4;
    --gold: #d9b25f;
    --ink: #16241d;
    --text: #263a31;
    --muted: #66786f;
    --line: rgba(0, 59, 40, 0.13);
    --line-strong: rgba(0, 59, 40, 0.22);
    --paper: #ffffff;
    --canvas: #f2f6f3;
    --danger: #a3322f;
    --danger-soft: #fdf0ef;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 8px rgba(0, 32, 20, 0.05);
    --shadow: 0 18px 45px rgba(0, 32, 20, 0.09);
    --shadow-lg: 0 30px 70px rgba(0, 24, 15, 0.18);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(0, 32, 22, 0.88), rgba(0, 24, 16, 0.95)),
        url("/assets/fundo.jpg") center / cover no-repeat fixed;
    font-family: var(--font);
    font-size: 15.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.page-public {
    background: var(--green-950);
}

body.page-admin {
    background:
        linear-gradient(180deg, rgba(0, 30, 20, 0.93), rgba(0, 24, 16, 0.97)),
        url("/assets/fundo.jpg") center / cover no-repeat fixed;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--green-700);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--green-900);
}

h1,
h2,
h3 {
    margin: 0 0 0.5em;
    color: var(--green-900);
    line-height: 1.18;
    letter-spacing: -0.02em;
    font-weight: 750;
}

h1 {
    font-size: clamp(2rem, 3.4vw, 2.9rem);
}

h2 {
    font-size: clamp(1.35rem, 2vw, 1.7rem);
}

h3 {
    font-size: 1.12rem;
}

p {
    margin: 0 0 1em;
    color: var(--muted);
}

strong {
    color: var(--text);
}

small {
    font-size: 0.8rem;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

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

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid rgba(15, 125, 85, 0.45);
    outline-offset: 2px;
    border-radius: 6px;
}

.shell {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.icon {
    width: 18px;
    height: 18px;
    flex: none;
    vertical-align: -3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 200;
    padding: 10px 18px;
    border-radius: 8px;
    background: #fff;
    color: var(--green-900);
    font-weight: 700;
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 12px;
}

/* -------------------------------------------------------------------------
   Cabeçalho
   ---------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(0, 32, 22, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-shell {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 78px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    color: #fff;
    flex: none;
}

.brand-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.brand-logo {
    width: 42px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

.brand-slogan {
    margin-top: 3px;
    color: rgba(220, 244, 232, 0.72);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-name em {
    font-style: normal;
    color: #9fd8bd;
}

.brand-sub {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(220, 244, 232, 0.68);
}

.header-link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.header-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.header-link .icon {
    width: 16px;
    height: 16px;
}

/* Navegação de administração */

.admin-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 9px;
    color: rgba(230, 246, 238, 0.74);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease;
}

.nav-link .icon {
    width: 16px;
    height: 16px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-link.is-active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.nav-link-muted {
    color: rgba(230, 246, 238, 0.5);
}

.account {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 5px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2aa477, #0a6b47);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    flex: none;
}

.avatar-large {
    width: 46px;
    height: 46px;
    font-size: 19px;
}

.account-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.account-copy strong {
    color: #f0faf5;
    font-size: 12px;
    font-weight: 650;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-copy small {
    color: rgba(220, 244, 232, 0.6);
    font-size: 10px;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    transition: background 0.16s ease, color 0.16s ease;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

/* -------------------------------------------------------------------------
   Elementos comuns
   ---------------------------------------------------------------------- */

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--green-600);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: rgba(190, 231, 211, 0.82);
}

.tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-800);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.card {
    background: var(--paper);
    border: 1px solid rgba(0, 59, 40, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.panel {
    padding: 26px 28px;
    background: var(--paper);
    border: 1px solid rgba(0, 59, 40, 0.07);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.panel-head h2 {
    margin: 0;
    font-size: 1.2rem;
}

.panel-head .eyebrow {
    margin-bottom: 4px;
}

.soft-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--green-50);
    color: var(--green-700);
    font-size: 11.5px;
    font-weight: 650;
    white-space: nowrap;
}

.soft-badge .icon {
    width: 14px;
    height: 14px;
}

/* Botões */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: var(--green-700);
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 59, 40, 0.16);
    transition: background 0.16s ease, transform 0.16s ease,
        box-shadow 0.16s ease;
}

.button:hover {
    background: var(--green-800);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(0, 59, 40, 0.22);
}

.button:active {
    transform: translateY(0);
}

.button .icon {
    width: 17px;
    height: 17px;
}

.button.secondary {
    background: #fff;
    border-color: var(--line-strong);
    color: var(--green-800);
    box-shadow: none;
}

.button.secondary:hover {
    background: var(--green-50);
    border-color: var(--green-600);
}

.button.ghost {
    background: transparent;
    border-color: transparent;
    color: var(--green-700);
    box-shadow: none;
}

.button.ghost:hover {
    background: var(--green-50);
}

.button.danger {
    background: var(--danger);
    color: #fff;
    box-shadow: none;
}

.button.danger:hover {
    background: #862825;
}

.button.small {
    min-height: 37px;
    padding: 8px 14px;
    font-size: 12.5px;
    border-radius: 9px;
}

.button.full {
    width: 100%;
    min-height: 53px;
    margin-top: 8px;
    padding: 15px 22px;
    font-size: 15px;
}

.button.is-disabled {
    opacity: 0.38;
    pointer-events: none;
}

/* Formulários */

.field {
    margin-bottom: 20px;
}

.field[hidden],
.proposal-rest[hidden] {
    display: none;
}

.field > label,
.field > legend,
.label-row label {
    display: block;
    margin-bottom: 7px;
    color: var(--green-900);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.005em;
}

fieldset.field {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}

.field > legend {
    padding: 0;
}

.label-hint {
    margin-left: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.required {
    color: #b4433e;
}

input:not([type]),
input[type="text"],
input[type="password"],
input[type="date"],
input[type="search"],
input[type="email"],
select,
textarea {
    width: 100%;
    min-height: 47px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fbfdfc;
    color: var(--ink);
    font-size: 14.5px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease,
        background 0.15s ease;
}

textarea {
    min-height: 190px;
    padding: 14px;
    resize: vertical;
    line-height: 1.6;
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(0, 84, 56, 0.38);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--green-600);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 125, 85, 0.12);
}

input::placeholder,
textarea::placeholder {
    color: #9aa9a1;
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23005438' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--green-700);
    cursor: pointer;
}

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

.checkbox-field label {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}

.help {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.help.center {
    text-align: center;
}

.help.is-valid {
    color: var(--green-700);
    font-weight: 650;
}

.help.is-invalid {
    color: var(--danger);
    font-weight: 650;
}

.article-preview {
    margin-top: 14px;
    padding: 16px 18px 18px;
    border: 1px solid rgba(0, 84, 56, 0.12);
    border-left: 3px solid var(--green-600);
    border-radius: 14px;
    background: #f3faf6;
}

.article-preview[hidden] {
    display: none;
}

.article-preview-head {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 10px;
}

.article-preview-head .eyebrow {
    margin: 0;
}

.article-preview-head strong {
    color: var(--green-800);
    font-size: 14.5px;
    line-height: 1.35;
}

.article-preview-body {
    max-height: 280px;
    overflow: auto;
    color: #16352a;
    font-size: 13.5px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.label-row label {
    margin: 0;
}

.counter {
    color: var(--muted);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 42px;
}

/* Alertas */

.alert {
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid #bcdccb;
    border-radius: 11px;
    background: var(--green-50);
    color: var(--green-800);
    font-size: 13.5px;
    font-weight: 550;
}

.alert.error {
    border-color: #ecc3c1;
    background: var(--danger-soft);
    color: #8c2b28;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* -------------------------------------------------------------------------
   Página pública
   ---------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 36, 24, 0.2) 0%, rgba(0, 36, 24, 0.45) 46%, var(--green-950) 82%),
        url("/assets/fundo.jpg") center 32% / cover no-repeat;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(0, 34, 23, 0.9) 0%, rgba(0, 42, 28, 0.55) 46%, rgba(0, 36, 24, 0.72) 100%),
        linear-gradient(180deg, transparent 0%, transparent 34%, rgba(0, 36, 24, 0.55) 62%, var(--green-950) 86%);
    pointer-events: none;
}

.hero-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 430px;
    padding-block: 72px 128px;
}

.hero-copy {
    max-width: 690px;
}

.hero-landing .hero-overlay {
    background:
        linear-gradient(180deg, rgba(0, 28, 18, 0.42) 0%, rgba(0, 32, 22, 0.72) 42%, var(--green-950) 78%);
}

.landing-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 72px;
    min-height: 100vh;
    padding: 56px 24px 96px;
    text-align: center;
}

.landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.landing-copy {
    position: fixed;
    right: 0;
    bottom: 22px;
    left: 0;
    z-index: 2;
    margin: 0;
    color: rgba(226, 244, 235, 0.62);
    font-size: 12px;
    text-align: center;
}

.landing-crest {
    width: 86px;
    height: 100px;
    margin-bottom: 22px;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
}

.landing-kicker {
    margin: 0 0 18px;
    color: rgba(214, 236, 224, 0.78);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.landing-shell h1 {
    max-width: 12em;
    margin: 0;
    font-size: clamp(2.4rem, 5.4vw, 4.4rem);
}

.landing-consult {
    max-width: 18em;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 650;
    line-height: 1.45;
}

.landing-slogan {
    position: static;
    width: min(168px, 42vw);
    height: auto;
    margin: 0;
    object-fit: contain;
    opacity: 0.72;
    transform: none;
}

.landing-closed + .landing-slogan {
    margin-top: 8px;
}

.landing-rule {
    width: 52px;
    height: 2px;
    margin: 26px 0 22px;
    border-radius: 999px;
    background: var(--gold);
}

.landing-thanks {
    max-width: 28em;
    margin: 0;
    color: rgba(226, 244, 235, 0.82);
    font-size: 18px;
    line-height: 1.6;
}

.landing-thanks.landing-closed {
    max-width: 16em;
    margin-bottom: 72px;
    color: #f0c36a;
    font-size: clamp(1.8rem, 3.8vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
}

.landing-ended {
    display: grid;
    gap: 10px;
    max-width: min(46rem, 92vw);
    margin: 4px 0 0;
    color: #f0c36a;
}

.landing-ended strong {
    color: #f0c36a;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.05;
}

.landing-ended.is-waiting {
    max-width: none;
}

.landing-ended.is-waiting strong {
    display: block;
    font-size: min(1.35rem, calc((100vw - 64px) / 36));
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.landing-ended span {
    color: rgba(240, 195, 106, 0.82);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
}

.landing .landing-copy {
    bottom: 28px;
}

.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background:
        linear-gradient(180deg, rgba(0, 28, 18, 0.55) 0%, rgba(0, 32, 22, 0.82) 46%, var(--green-950) 82%),
        url("/assets/fundo.jpg") center 32% / cover no-repeat;
    color: #fff;
}

.success-overlay .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 28, 18, 0.2), rgba(0, 24, 16, 0.45));
}

.success-overlay .landing-shell {
    min-height: 100vh;
    padding-block: 40px;
}

.success-overlay h1,
.success-overlay .landing-kicker,
.success-overlay .landing-thanks {
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.success-overlay .landing-thanks {
    color: rgba(255, 255, 255, 0.92);
}

.success-overlay.is-leaving {
    opacity: 0;
    transition: opacity 0.4s ease;
}

body:has(.success-overlay) {
    overflow: hidden;
}

.hero-landing .alert {
    max-width: 520px;
    margin-top: 28px;
    text-align: left;
}

.hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2.3rem, 5vw, 4.1rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.hero p {
    max-width: 590px;
    margin: 0;
    color: rgba(226, 244, 235, 0.82);
    font-size: 17px;
    line-height: 1.65;
}

.hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.status-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7de0b0;
    box-shadow: 0 0 0 4px rgba(125, 224, 176, 0.16);
}

.status-pill.is-closed .dot {
    background: #e7b46a;
    box-shadow: 0 0 0 4px rgba(231, 180, 106, 0.16);
}

.hero-note {
    color: rgba(213, 238, 225, 0.6);
    font-size: 12px;
}

.public-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(280px, 370px) minmax(0, 1fr);
    align-items: start;
    gap: 26px;
    margin-top: -82px;
    margin-bottom: 60px;
}

.intro-panel {
    padding: 32px 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(160deg, rgba(0, 70, 47, 0.96), rgba(0, 45, 30, 0.97));
    color: #e8f5ee;
    box-shadow: var(--shadow-lg);
}

.intro-panel h2 {
    margin-bottom: 18px;
    color: #fff;
    font-size: 1.55rem;
    line-height: 1.22;
}

.steps {
    list-style: none;
    display: grid;
    gap: 18px;
    margin: 24px 0;
}

.steps li {
    display: flex;
    gap: 13px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    margin-top: 1px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    color: #d7f0e3;
    font-size: 12px;
    font-weight: 700;
    flex: none;
}

.steps strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
    font-size: 13.5px;
}

.steps p {
    margin: 0;
    color: rgba(216, 240, 227, 0.66);
    font-size: 12.5px;
    line-height: 1.55;
}

.intro-card {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.055);
}

.intro-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.intro-card-title .icon {
    width: 16px;
    height: 16px;
    color: #8ad7b2;
}

.checklist {
    list-style: none;
    display: grid;
    gap: 7px;
}

.checklist li {
    position: relative;
    padding-left: 18px;
    color: rgba(218, 241, 228, 0.72);
    font-size: 12.5px;
    line-height: 1.5;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #74c9a1;
}

.document-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #eaf7ef;
    text-decoration: none;
    transition: background 0.16s ease;
}

.document-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.document-link > .icon:first-child {
    width: 20px;
    height: 20px;
    color: #8ad7b2;
}

.document-link > .icon:last-child {
    width: 14px;
    height: 14px;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.45);
}

.document-link span {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.document-link strong {
    color: #fff;
    font-size: 12.5px;
    font-weight: 650;
}

.document-link small {
    color: rgba(214, 240, 226, 0.55);
    font-size: 10.5px;
}

.form-card {
    padding: clamp(26px, 4vw, 44px);
}

.form-card > h2 {
    margin-bottom: 8px;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.lead {
    max-width: 620px;
    margin-bottom: 24px;
    font-size: 14.5px;
    line-height: 1.65;
}

.proposal-form {
    margin-top: 6px;
}

.mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mode-option {
    display: block;
    position: relative;
    cursor: pointer;
}

.mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mode-body {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    height: 100%;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fbfdfc;
    transition: border-color 0.15s ease, background 0.15s ease,
        box-shadow 0.15s ease;
}

.mode-body > .icon {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    color: var(--green-600);
}

.mode-body span {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.35;
}

.mode-body strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--green-900);
}

.mode-body small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.mode-option:hover .mode-body {
    border-color: rgba(15, 125, 85, 0.5);
    background: var(--green-50);
}

.mode-option input:checked + .mode-body {
    border-color: var(--green-600);
    background: var(--green-50);
    box-shadow: inset 0 0 0 1px var(--green-600);
}

.mode-option input:focus-visible + .mode-body {
    outline: 3px solid rgba(15, 125, 85, 0.35);
    outline-offset: 2px;
}

.consent-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 8px 0 18px;
    padding: 14px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--green-50);
}

.consent-field input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex: none;
}

.consent-field label {
    margin: 0;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
}

.privacy {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

.privacy strong {
    display: block;
    margin-bottom: 4px;
    color: var(--green-900);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.privacy p {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.6;
}

.privacy a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 650;
}

.privacy a .icon {
    width: 13px;
    height: 13px;
}

.closed-state {
    margin-top: 18px;
    padding: 34px 26px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--green-50);
    text-align: center;
}

.closed-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #fff;
    color: var(--green-700);
    box-shadow: var(--shadow-sm);
}

.closed-icon .icon {
    width: 24px;
    height: 24px;
}

.closed-state h3 {
    margin-bottom: 7px;
    font-size: 1.25rem;
}

.closed-state p {
    max-width: 470px;
    margin: 0 auto 18px;
    font-size: 13.5px;
}

/* -------------------------------------------------------------------------
   Autenticação
   ---------------------------------------------------------------------- */

.auth-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 78px);
    padding: 46px 24px 70px;
}

.login-copy {
    position: fixed;
    right: 0;
    bottom: 22px;
    left: 0;
    z-index: 30;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    text-align: center;
}

body:has(.auth-wrap) .site-footer {
    display: none;
}

.auth-card {
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    width: min(960px, 100%);
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 40px 90px rgba(0, 20, 12, 0.35);
}

.auth-aside {
    position: relative;
    padding: 52px 46px;
    color: #eaf6ef;
    background:
        linear-gradient(160deg, rgba(0, 66, 44, 0.9), rgba(0, 38, 25, 0.96)),
        url("/assets/fundo.jpg") center / cover no-repeat;
}

.auth-aside h1 {
    margin: 10px 0 16px;
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.12;
}

.auth-aside > p {
    color: rgba(219, 241, 228, 0.72);
    font-size: 13.5px;
    line-height: 1.65;
}

.auth-points {
    list-style: none;
    display: grid;
    gap: 13px;
    margin: 30px 0 40px;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(229, 246, 236, 0.85);
    font-size: 12.5px;
    font-weight: 550;
}

.auth-points .icon {
    width: 17px;
    height: 17px;
    color: #8ad7b2;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(230, 247, 237, 0.75);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.auth-back:hover {
    color: #fff;
}

.auth-back .icon {
    width: 15px;
    height: 15px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 46px;
}

.auth-form h2 {
    margin-bottom: 4px;
    font-size: 1.7rem;
}

.auth-form > .muted {
    margin-bottom: 22px;
    font-size: 13px;
}

.auth-fields .field {
    margin-bottom: 17px;
}

.auth-foot {
    margin: 18px 0 0;
    color: #8a9b92;
    font-size: 11px;
    text-align: center;
}

/* -------------------------------------------------------------------------
   Administração
   ---------------------------------------------------------------------- */

.admin-main {
    padding-block: 38px 64px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 26px;
    padding: 0 2px;
}

.page-heading h1 {
    margin: 2px 0 4px;
    color: #f4fbf7;
    font-size: clamp(1.75rem, 2.7vw, 2.3rem);
}

.page-heading .muted {
    margin: 0;
    color: rgba(215, 238, 225, 0.62);
    font-size: 13px;
}

.page-heading .eyebrow {
    color: rgba(163, 216, 190, 0.78);
}

.heading-actions {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.heading-actions .button.secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ecf8f1;
}

.heading-actions .button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.heading-actions .soft-badge {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(225, 245, 235, 0.8);
}

.schedule-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.schedule-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.schedule-form input[type="date"] {
    width: 158px;
    height: 42px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: #f7fbf8;
    color: var(--ink);
    color-scheme: light;
    font-size: 13.5px;
}

.schedule-form .button {
    height: 42px;
    min-height: 42px;
    padding-inline: 16px;
}

.schedule-form .button.ghost {
    color: var(--muted);
}

.schedule-form .button.ghost:hover {
    color: var(--green-800);
    background: var(--green-50);
}

.schedule-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding: 0 12px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
}

.schedule-state .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.schedule-state.is-open {
    background: #e7f6ee;
    color: #0b6b45;
}

.schedule-state.is-open .dot {
    background: #12a36a;
}

.schedule-state.is-closed {
    background: #f4f1ea;
    color: #8a641b;
}

.schedule-state.is-closed .dot {
    background: #c4922e;
}

.schedule-to {
    height: 42px;
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

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

/* KPIs */

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

.kpi {
    position: relative;
    padding: 21px 21px 19px;
    overflow: hidden;
    border: 1px solid rgba(0, 59, 40, 0.06);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.kpi-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: var(--green-50);
    color: var(--green-700);
}

.kpi-icon .icon {
    width: 18px;
    height: 18px;
}

.kpi-label {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.kpi-value {
    display: block;
    margin: 3px 0 5px;
    color: var(--green-900);
    font-size: 2.2rem;
    font-weight: 780;
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.kpi-sub {
    display: inline-block;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.4;
}

.kpi-sub.is-up {
    color: var(--green-600);
}

.kpi-sub.is-down {
    color: var(--danger);
}

.kpi-sub.is-flat {
    color: var(--muted);
}

/* Gráfico */

.chart-panel {
    margin-bottom: 18px;
}

.chart-wrap {
    padding: 4px 2px 0;
}

.trend-chart {
    display: block;
    width: 100%;
    height: 205px;
}

.chart-axis {
    stroke: rgba(0, 59, 40, 0.15);
    stroke-width: 1;
    stroke-dasharray: 4 5;
}

.chart-bar {
    fill: #0f7d55;
    opacity: 0.86;
    transition: opacity 0.15s ease;
}

.chart-bar:hover {
    opacity: 1;
}

.chart-label {
    fill: #7e9086;
    font-family: var(--font);
    font-size: 9px;
    font-weight: 600;
}

.chart-value {
    fill: #005438;
    font-family: var(--font);
    font-size: 9px;
    font-weight: 750;
}

/* Análise */

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.rank-list,
.member-list {
    list-style: none;
    display: grid;
    gap: 14px;
}

.rank-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
}

.rank-top span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-top strong {
    color: var(--green-700);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    flex: none;
}

.rank-bar {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--green-50);
}

.rank-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green-600), #7cc9a6);
}

.w-5 { width: 5%; }
.w-10 { width: 10%; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }
.w-100 { width: 100%; }

.member-search {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.member-search-row {
    display: flex;
    gap: 8px;
}

.member-search-note {
    margin: 14px 0 0;
}

.modal-search {
    width: min(540px, 100%);
}

.modal-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.modal-toolbar h2 {
    margin-bottom: 0;
}

.modal-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: var(--green-50);
    color: var(--green-900);
}

.modal-x .icon {
    width: 16px;
    height: 16px;
}

.modal-search label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.lookup-cards {
    display: grid;
    gap: 8px;
}

.lookup-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 2px 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--green-50);
}

.lookup-card .member-badge {
    grid-row: 1 / span 2;
}

.lookup-card strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lookup-card small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 26, 17, 0.62);
}

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

.modal {
    width: min(460px, 100%);
    padding: 28px 28px 24px;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

.modal h2 {
    margin: 4px 0 12px;
    font-size: 1.35rem;
}

.modal p {
    margin: 0 0 18px;
    color: var(--text);
    line-height: 1.5;
}

.modal-figures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.modal-figures div {
    padding: 14px 12px;
    border-radius: 12px;
    background: var(--green-50);
    text-align: center;
}

.modal.is-error .modal-figures div {
    background: var(--danger-soft);
}

.modal-figures strong {
    display: block;
    color: var(--green-900);
    font-size: 1.45rem;
    line-height: 1.1;
}

.modal-figures span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.member-search label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.member-admin-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.member-admin-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.member-admin-list small {
    color: var(--muted);
    font-size: 11px;
}

.member-list li {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
}

.member-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--green-50);
    color: var(--green-700);
    font-size: 11px;
    font-weight: 750;
    flex: none;
}

.member-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-list strong {
    margin-left: auto;
    color: var(--green-700);
    font-size: 11px;
    font-weight: 650;
    flex: none;
}

/* Filtros */

.filters-panel {
    margin-bottom: 18px;
}

.link-reset {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--danger);
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
}

.link-reset .icon {
    width: 13px;
    height: 13px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.filters-grid .field {
    margin: 0;
}

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

.filters-grid .field > label {
    margin-bottom: 6px;
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 650;
}

.filters-grid input,
.filters-grid select {
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background-color: #f7fbf8;
    color: var(--ink);
    font-family: inherit;
    font-size: 13.5px;
    line-height: 1.2;
}

.filters-grid input[type="search"] {
    appearance: none;
    -webkit-appearance: none;
}

.filters-grid input[type="search"]::-webkit-search-decoration,
.filters-grid input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.filters-grid input[type="date"] {
    color-scheme: light;
}

.help[hidden] {
    display: none;
}

.filters-grid input[type="date"]::-webkit-datetime-edit {
    color: var(--ink);
    padding: 0;
}

.filters-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    padding-top: 4px;
}

.filters-actions .button {
    min-height: 42px;
    font-size: 13px;
}

/* Resultados */

.results-head {
    align-items: center;
    margin-bottom: 14px;
}

.results-head h2 {
    font-size: 1.05rem;
    color: var(--muted);
    font-weight: 600;
}

.table-wrap {
    overflow-x: auto;
    margin-inline: -6px;
    padding-inline: 6px;
}

.proposal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.proposal-table th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line-strong);
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.proposal-table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.proposal-table tbody tr:hover {
    background: rgba(241, 248, 244, 0.55);
}

.ref {
    color: var(--green-800);
    font-size: 11.5px;
    font-weight: 750;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.member-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 7px;
    background: var(--green-50);
    color: var(--green-800);
    font-size: 12px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.type-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: #e9f2ed;
    color: #1c6b4c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.type-badge.is-addition {
    background: #fbf2df;
    color: #8a641b;
}

.cell-sub {
    display: block;
    margin-top: 6px;
    max-width: 190px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.4;
}

.proposal-cell {
    min-width: 320px;
}

.proposal-text {
    color: var(--text);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.proposal-text mark,
.proposal-full mark {
    padding: 0 2px;
    border-radius: 3px;
    background: #fbecb8;
    color: inherit;
}

.proposal-details {
    margin-top: 7px;
}

.proposal-details summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--green-700);
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}

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

.proposal-details summary::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--green-50);
    font-size: 11px;
    line-height: 1;
}

.proposal-details[open] summary::after {
    content: "−";
}

.proposal-full {
    margin-top: 9px;
    padding: 12px 14px;
    border-left: 3px solid var(--green-600);
    border-radius: 0 9px 9px 0;
    background: var(--green-50);
    color: var(--text);
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.date-cell {
    color: var(--muted);
    font-size: 11.5px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.page-status {
    color: var(--muted);
    font-size: 12px;
}

.page-status strong {
    color: var(--green-800);
}

.empty-state {
    padding: 46px 24px;
    text-align: center;
}

.empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--green-50);
    color: var(--green-600);
}

.empty-icon .icon {
    width: 24px;
    height: 24px;
}

.empty-state h3 {
    margin-bottom: 6px;
}

.empty-state p {
    max-width: 420px;
    margin: 0 auto 18px;
    font-size: 13px;
}

/* -------------------------------------------------------------------------
   Utilizadores
   ---------------------------------------------------------------------- */

.users-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    align-items: start;
    gap: 18px;
}

.users-list {
    display: grid;
    gap: 13px;
}

.user-card {
    padding: 20px 22px;
    border: 1px solid rgba(0, 59, 40, 0.07);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.user-card.is-inactive {
    opacity: 0.72;
}

.user-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.user-identity {
    min-width: 0;
    flex: 1;
}

.user-identity h2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 2px;
    font-size: 1.05rem;
}

.user-identity p {
    margin: 0;
    color: var(--muted);
    font-size: 11.5px;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px !important;
}

.user-meta .icon {
    width: 12px;
    height: 12px;
}

.dot-sep {
    margin: 0 4px;
    color: #b2bdb7;
}

.you-badge {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--green-50);
    color: var(--green-700);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.is-active {
    background: #e8f6ee;
    color: #1c704e;
}

.status-badge.is-active .dot {
    background: #35a273;
}

.status-badge.is-off {
    background: #f3f4f3;
    color: #7b8781;
}

.status-badge.is-off .dot {
    background: #9aa49f;
}

.user-editor {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.user-editor > summary {
    width: fit-content;
    list-style: none;
}

.user-editor > summary::-webkit-details-marker {
    display: none;
}

.user-editor[open] > summary {
    margin-bottom: 14px;
    background: var(--green-50);
}

.user-form {
    padding: 16px;
    border-radius: 12px;
    background: var(--green-50);
}

.user-form .field {
    margin-bottom: 14px;
}

.user-form .field > label {
    font-size: 12px;
}

.user-form input {
    min-height: 42px;
    font-size: 13px;
    background: #fff;
}

.form-actions {
    display: flex;
    gap: 8px;
    padding-top: 4px;
}

.delete-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(163, 50, 47, 0.28);
}

.users-sidebar {
    display: grid;
    gap: 18px;
}

.users-sidebar .panel {
    padding: 22px;
}

.users-sidebar .user-form {
    padding: 0;
    background: transparent;
}

.users-sidebar .panel-head {
    margin-bottom: 14px;
}

.users-sidebar .panel-head h2 {
    font-size: 1.05rem;
}

.audit-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.audit-list li {
    display: grid;
    gap: 1px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--line);
}

.audit-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.audit-action {
    color: var(--green-800);
    font-size: 11.5px;
    font-weight: 700;
}

.audit-detail {
    color: var(--text);
    font-size: 11px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.audit-time {
    color: var(--muted);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------
   Rodapé
   ---------------------------------------------------------------------- */

.site-footer {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 26, 17, 0.55);
    backdrop-filter: blur(8px);
}

.footer-copy {
    margin: 0;
    padding: 18px 16px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    text-align: center;
}

.page-admin {
    padding-bottom: 58px;
}

.page-admin .site-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    margin: 0;
    background: #001a12;
}

.page-public .site-footer {
    background: #001a12;
    backdrop-filter: none;
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding-block: 26px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.footer-brand strong {
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.footer-brand span {
    color: rgba(206, 235, 220, 0.5);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a,
.footer-links span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(213, 239, 224, 0.6);
    font-size: 11px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links .icon {
    width: 11px;
    height: 11px;
}

/* -------------------------------------------------------------------------
   Página 404
   ---------------------------------------------------------------------- */

.not-found {
    padding-block: 70px;
}

.not-found .card {
    max-width: 560px;
    padding: 44px;
    text-align: center;
}

.not-found h1 {
    margin-bottom: 8px;
}

.not-found-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

/* -------------------------------------------------------------------------
   Responsivo
   ---------------------------------------------------------------------- */

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

    .users-layout {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

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

    .filters-grid .field-wide {
        grid-column: span 3;
    }
}

@media (max-width: 900px) {
    .public-grid {
        grid-template-columns: 1fr;
        margin-top: -60px;
    }

    .intro-panel {
        padding: 26px;
    }

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

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

    .analysis-grid > .panel {
        min-width: 0;
    }

    .admin-nav {
        order: 3;
        width: 100%;
        margin: 0;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        overflow-x: auto;
    }

    .header-shell {
        flex-wrap: wrap;
        padding-block: 12px;
        row-gap: 0;
    }

    .account {
        margin-left: auto;
    }

    .account-copy {
        display: none;
    }
}

@media (max-width: 760px) {
    .shell {
        width: calc(100% - 30px);
    }

    .hero-shell {
        min-height: 380px;
        padding-block: 54px 110px;
    }

    .hero p {
        font-size: 15px;
    }

    .public-grid {
        margin-top: -76px;
        gap: 16px;
        margin-bottom: 40px;
    }

    .form-card {
        padding: 24px 20px;
    }

    .mode-switch {
        grid-template-columns: 1fr;
    }

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

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

    .auth-card {
        grid-template-columns: 1fr;
        width: min(520px, 100%);
    }

    .auth-aside {
        padding: 32px 28px;
    }

    .auth-aside h1 {
        font-size: 1.65rem;
    }

    .auth-points {
        display: none;
    }

    .auth-back {
        margin-top: 8px;
    }

    .auth-form {
        padding: 32px 26px 36px;
    }

    .page-heading {
        align-items: flex-start;
    }

    .heading-actions {
        width: 100%;
    }

    .heading-actions .button {
        flex: 1;
    }

    /* Tabela em cartões */

    .proposal-table thead {
        display: none;
    }

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

    .proposal-table tr {
        margin-bottom: 12px;
        padding: 6px 14px;
        border: 1px solid var(--line);
        border-radius: 13px;
        background: #fff;
    }

    .proposal-table tr:last-child {
        margin-bottom: 0;
    }

    .proposal-table td {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 10px;
        padding: 9px 0;
        border-bottom: 1px solid var(--line);
    }

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

    .proposal-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 9.5px;
        font-weight: 750;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .proposal-table .proposal-cell {
        display: block;
        min-width: 0;
        padding-block: 11px;
    }

    .proposal-table .proposal-cell::before {
        display: block;
        margin-bottom: 7px;
    }

    .proposal-table .date-cell {
        font-size: 11px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-status {
        order: -1;
        width: 100%;
        text-align: center;
    }

    .user-head {
        flex-wrap: wrap;
    }

    .status-badge {
        margin-left: 60px;
        margin-top: -6px;
    }

    .panel {
        padding: 20px;
    }

    .panel-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .soft-badge {
        white-space: normal;
        max-width: 100%;
    }
}

@media (max-width: 540px) {
    .header-shell {
        min-height: 68px;
    }

    .brand-logo {
        width: 36px;
        height: 43px;
    }

    .brand-name {
        font-size: 14px;
    }

    .brand-sub {
        font-size: 8.5px;
        letter-spacing: 0.12em;
    }

    .header-link {
        padding: 7px 11px;
        font-size: 11px;
    }

    .header-link .icon {
        width: 14px;
        height: 14px;
    }

    .hero h1 {
        font-size: 2.05rem;
    }

    .hero-meta {
        gap: 10px;
    }

    .hero-note {
        display: none;
    }

    .intro-panel {
        padding: 22px 20px;
    }

    .intro-panel h2 {
        font-size: 1.3rem;
    }

    .kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .kpi {
        padding: 16px 15px 14px;
    }

    .kpi-icon {
        width: 31px;
        height: 31px;
        margin-bottom: 10px;
    }

    .kpi-value {
        font-size: 1.75rem;
    }

    .kpi-sub {
        font-size: 9.5px;
    }

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

    .filters-grid .field-wide {
        grid-column: auto;
    }

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

    .trend-chart {
        min-width: 520px;
    }

    .user-card {
        padding: 16px;
    }

    .user-form {
        padding: 13px;
    }

    .footer-shell {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-links {
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}
