/* Importando uma fonte moderna */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Variáveis de Cor */
/* Variáveis de Cor (Tema Claro - Padrão) */
:root {
    --color-primary: #588157;
    --color-primary-dark: #3A5A40;
    --color-secondary: #A3B18A;
    --color-accent: #DAD7CD;

    --bg-color: #DAD7CD;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-color: #344E41;
    --text-light: #FBFBFB;
    --input-bg: #fff;
    --input-border: #ddd;

    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.3);

    --color-record: #CB4335;
}

/* TEMA ESCURO */
body.dark-mode {
    --color-primary: #6a9c69;
    /* Um pouco mais claro para contraste */
    --color-primary-dark: #8ab689;
    --color-secondary: #4a5d4a;
    --color-accent: #1a1a1a;

    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --text-light: #e0e0e0;
    --input-bg: #2d2d2d;
    --input-border: #444;

    --shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.7);
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;

    /* Fundo com Imagem Limpa */
    background-color: var(--bg-color);
    background-image: url('../img/fundo.jpg');
    /* Manter ou remover no dark? */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-image: none;
    /* Remove imagem de fundo no dark mode para leitura */
}

.container {
    max-width: 900px;
    margin: 1.5rem auto;
    padding: 0 1rem 1.5rem 1rem;
    position: relative;
    z-index: 2;
}

/* --- HEADER --- */
.app-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-text-light);
    padding: 1.5rem;
    box-shadow: var(--shadow-heavy);
    margin-bottom: 2rem;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1200;
    backdrop-filter: blur(10px);
}

.app-logo {
    width: 100%;
    max-width: 180px;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* --- CARDS --- */
.card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 6px solid var(--color-primary);
    transition: background-color 0.3s;
}

.card h2 {
    color: var(--color-primary-dark);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 0.5rem;
}

.home-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.home-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    background: rgba(88, 129, 87, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    margin-bottom: 0.6rem;
}

.home-subtitle {
    color: #5b665f;
    max-width: 560px;
}

.home-chip {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(88, 129, 87, 0.18);
}

.home-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
}

.home-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.home-summary-list,
.home-records-preview {
    display: grid;
    gap: 0.75rem;
}

.asset-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.asset-actions .btn {
    width: auto;
    padding: 0.8rem 1rem;
}

.feedback-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.feedback-choice.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    border-color: transparent;
}

.home-record-item {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #f8faf7;
    border: 1px solid #e4ebe0;
    overflow: hidden;
}

.home-record-item > div {
    min-width: 0;
    flex: 1;
}

.home-record-item strong {
    display: block;
    color: var(--color-primary-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-record-item small {
    color: #67746b;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-close-section {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    z-index: 10;
}

.btn-close-section:hover {
    color: #333;
}

/* Botão Flutuante (FAB) - Reposicionado */
.fab-button {
    position: fixed;
    bottom: 90px;
    /* Acima do menu de rodapé */
    right: 2rem;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s, box-shadow 0.3s;
}

.fab-button:active {
    transform: scale(0.90);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.fab-button .material-icons {
    font-size: 36px;
}

/* Perfil no Modal de Configurações */
.profile-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--input-border);
}

.profile-card {
    background: var(--bg-color);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
}

.profile-avatar {
    margin-bottom: 1rem;
}

.profile-avatar .material-icons {
    font-size: 4rem;
    color: var(--color-primary);
}

.profile-info {
    margin-bottom: 1.5rem;
}

.profile-info-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.profile-info-item:last-child {
    border-bottom: none;
}

.profile-info-item strong {
    color: var(--color-primary-dark);
    font-size: 0.9rem;
}

.profile-info-item span {
    color: #666;
    font-size: 0.9rem;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- MODAL (FORMULÁRIO) --- */
.modal {
    display: none;
    /* Escondido por padrão */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    overflow-y: auto;
    /* Permite rolar */
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    /* Margem superior */
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    color: var(--text-color);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

/* --- ESTILOS DO FORMULÁRIO --- */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-family: inherit;
    background-color: var(--input-bg);
    color: var(--text-color);
}

/* Caixa de Destaque (GPS) */
.highlight-box {
    background-color: #f0f7f0;
    padding: 1rem;
    border-radius: 8px;
    border: 1px dashed var(--color-primary);
}

body.dark-mode .highlight-box {
    background-color: var(--card-bg);
}

body.dark-mode .highlight-box .btn-secondary {
    background-color: var(--input-bg);
    color: var(--text-color);
    border-color: var(--input-border);
}

/* --- SELETOR DE TIPO DE MÍDIA (Radio Buttons) --- */
.media-type-selector {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    justify-content: space-between;
}

.media-type-selector label {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    text-align: center;
    flex: 1;
    transition: all 0.2s;
}

.media-type-selector label:hover {
    background: #f0f0f0;
}

.media-type-selector input {
    display: none;
}

/* Classe para destacar a aba ativa (adicionada via JS) */
.media-active {
    background-color: var(--color-primary) !important;
    color: white !important;
    border-color: var(--color-primary-dark) !important;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* --- CONTROLES DE CAPTURA E PREVIEW --- */
.capture-controls {
    margin-top: 15px;
    padding: 10px;
    background: var(--bg-color);
    border-radius: 10px;
    border: 1px solid var(--input-border);
}

/* Botões grandes de captura */
.capture-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    padding: 0.8rem;
    margin: 0 !important;
    width: 100%;
    cursor: pointer;
    background-color: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-color);
    transition: all 0.2s;
}

.capture-btn:hover {
    background-color: var(--bg-color);
}

.capture-btn.btn-primary {
    /* Estilo específico se tiver a classe btn-primary */
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border: none;
}

.preview-box {
    margin-top: 15px;
    text-align: center;
    background: #fff;
    border: 2px dashed #ddd;
    padding: 10px;
    border-radius: 8px;
}

.preview-media {
    max-width: 100%;
    max-height: 200px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


/* --- BOTÕES GERAIS --- */
.btn {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-text-light);
    box-shadow: 0 4px 10px rgba(88, 129, 87, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--color-primary-dark);
    border: 2px solid var(--color-primary-dark);
}

.btn-primary.recording {
    background: linear-gradient(135deg, var(--color-record), #a03429);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(203, 67, 53, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(203, 67, 53, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(203, 67, 53, 0);
    }
}

/* --- LOGIN --- */
#login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 24%),
        linear-gradient(135deg, rgba(58, 90, 64, 0.2), rgba(218, 215, 205, 0.9)),
        url('../img/fundo.jpg');
    background-size: cover;
    background-position: center;
}

.login-shell {
    width: min(1160px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
    gap: 18px;
    align-items: stretch;
    position: relative;
}

.login-editorial-panel {
    background: linear-gradient(145deg, rgba(43, 66, 32, 0.95), rgba(56, 78, 40, 0.92));
    color: #f7f3e8;
    border-radius: 32px;
    padding: 28px 30px;
    box-shadow: 0 24px 48px rgba(34, 48, 26, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.login-editorial-panel::after {
    content: "";
    position: absolute;
    inset: auto -80px -80px auto;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
    pointer-events: none;
}

.login-editorial-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.1rem;
    position: relative;
    z-index: 1;
}

.login-editorial-seal {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.login-editorial-seal img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.login-editorial-overline {
    color: #ff8d3a;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-editorial-system {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.login-editorial-kicker,
.login-card-kicker {
    color: #ff8d3a;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-editorial-title,
.login-card h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    line-height: 1;
}

.login-editorial-title {
    font-size: clamp(2.18rem, 2.65vw, 2.95rem);
    margin: 0.35rem 0 0.72rem;
    max-width: 10ch;
    position: relative;
    z-index: 1;
}

.login-editorial-copy {
    font-size: 0.98rem;
    line-height: 1.56;
    max-width: 39ch;
    color: rgba(247, 243, 232, 0.88);
    position: relative;
    z-index: 1;
}

.login-editorial-notes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    position: relative;
    z-index: 1;
}

.login-editorial-notes article {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 12px 14px 13px;
}

.login-editorial-notes article h3 {
    margin-bottom: 0.35rem;
    color: #ff8d3a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.login-editorial-notes article p {
    color: rgba(247, 243, 232, 0.88);
    font-size: 0.88rem;
    line-height: 1.38;
}

.login-card {
    width: 100%;
    background: rgba(250, 246, 238, 0.97);
    border-radius: 32px;
    box-shadow: 0 24px 48px rgba(74, 57, 36, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.42);
    overflow: hidden;
}

.login-card-desktop {
    padding: 22px;
}

.login-card-topbar {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.login-pill-btn {
    width: auto;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
}

.login-card-header {
    padding: 0.15rem 0 0.7rem;
}

.login-card h2 {
    font-size: clamp(1.9rem, 2.08vw, 2.38rem);
    margin: 0.28rem 0 0.45rem;
    color: #2c2118;
}

.login-card-intro {
    color: #6c645d;
    font-size: 0.9rem;
    line-height: 1.44;
    max-width: 42ch;
}

.login-form-panel {
    background: linear-gradient(180deg, rgba(240, 229, 205, 0.72), rgba(240, 229, 205, 0.52));
    border-radius: 26px;
    border: 1px solid rgba(176, 157, 131, 0.28);
    padding: 18px 18px 16px;
}

.login-password-wrap {
    position: relative;
}

.login-pass-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.login-recover-link,
.login-inline-link {
    color: var(--color-primary-dark);
    font-weight: 600;
}

.login-inline-help {
    display: block;
    color: #6f675e;
    margin-top: 6px;
}

.login-terms-group {
    margin-top: 1rem;
}

.login-terms-copy {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #333;
}

.button-group-login,
.login-desktop-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.85rem;
}

.button-group-login {
    flex-direction: column;
}

.login-mobile-actions {
    display: flex;
}

.login-desktop-actions {
    display: none;
}

.login-submit-btn {
    flex: 1;
}

@media (min-width: 600px) {
    .button-group-login {
        flex-direction: row;
    }
}

@media (min-width: 980px) {
    #login-section {
        min-height: 100vh;
        padding: 24px;
        align-items: center;
    }

    .login-shell {
        height: min(720px, calc(100vh - 48px));
        max-height: min(720px, calc(100vh - 48px));
        grid-template-columns: minmax(0, 1.03fr) minmax(405px, 470px);
    }

    .login-editorial-panel {
        display: block;
        height: 100%;
        padding: 30px 32px;
    }

    .login-card-topbar {
        display: flex;
        margin-bottom: 0.8rem;
    }

    .login-card {
        height: 100%;
    }

    .login-card-desktop {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .login-form-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 0.8rem;
    }

    .login-card-desktop .form-group {
        margin-bottom: 0;
    }

    .login-card-desktop input {
        padding-top: 0.95rem;
        padding-bottom: 0.95rem;
    }

    .login-terms-group {
        margin-top: 0.45rem;
    }

    .login-card-topbar .login-pill-btn {
        padding: 0.8rem 1.12rem;
    }

    .login-mobile-actions {
        display: none;
    }

    .button-group-login {
        display: none;
    }

    .login-desktop-actions {
        display: flex;
    }
}

@media (max-width: 979px) {
    .login-editorial-panel {
        display: none;
    }

    .login-editorial-notes {
        grid-template-columns: 1fr;
    }

    .login-shell {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .login-card {
        background: var(--card-bg);
        border-radius: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        border: none;
    }

    .login-card-desktop {
        padding: 0;
    }

    .login-card-topbar {
        display: none;
    }

    .login-card-header {
        padding: 0;
    }

    .login-card h2 {
        font-family: 'Poppins', sans-serif;
        font-size: 1.6rem;
        color: var(--color-primary-dark);
        margin-bottom: 0.75rem;
    }

    .login-card-kicker {
        color: var(--color-primary-dark);
        letter-spacing: 0.08em;
    }

    .login-card-intro {
        color: #666;
        font-size: 0.95rem;
    }

    .login-form-panel {
        background: transparent;
        border: none;
        padding: 0;
    }

    .login-mobile-actions {
        display: flex;
    }
}

@media (max-width: 720px) {
    #login-section {
        padding: 1rem;
    }

    .home-hero {
        flex-direction: column;
    }

    .home-chip {
        width: 100%;
        text-align: center;
    }
}

.login-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.login-status.error {
    background-color: #ffebee;
    color: #c62828;
}

.login-status.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.login-status.neutral {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.custom-alert-content {
    max-width: 360px;
    text-align: center;
    border: none;
    border-top: 6px solid var(--color-primary);
    padding: 2rem 1.5rem 1.5rem;
}

.custom-alert-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    background: linear-gradient(135deg, rgba(88, 129, 87, 0.16), rgba(58, 90, 64, 0.1));
}

.custom-alert-title {
    margin-bottom: 0.6rem;
    color: var(--color-primary-dark);
}

.custom-alert-message {
    margin-bottom: 1.2rem;
    color: var(--text-color);
}

#custom-alert-modal.alert-success .custom-alert-content {
    border-top-color: #2e7d32;
}

#custom-alert-modal.alert-success .custom-alert-icon {
    color: #2e7d32;
    background: radial-gradient(circle at top, rgba(76, 175, 80, 0.18), rgba(46, 125, 50, 0.08));
}

#custom-alert-modal.alert-error .custom-alert-content {
    border-top-color: #c62828;
}

#custom-alert-modal.alert-error .custom-alert-icon {
    color: #c62828;
    background: radial-gradient(circle at top, rgba(244, 67, 54, 0.18), rgba(198, 40, 40, 0.08));
}

#custom-alert-modal.alert-info .custom-alert-icon {
    color: var(--color-primary-dark);
}

/* --- MAPA E LISTA --- */
#map {
    height: 350px;
    width: 100%;
    border-radius: 10px;
    z-index: 1;
    border: 2px solid #fff;
    overflow: hidden;
}

#map-section {
    overflow: hidden;
}

#map .leaflet-container,
#map.leaflet-container {
    height: 100%;
    width: 100%;
    border-radius: inherit;
}

.coleta-item {
    padding: 1rem;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--input-border);
    border-radius: 10px;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-color);
}

.coleta-main {
    flex: 1 1 220px;
    min-width: 0;
}

.coleta-title {
    display: inline-block;
    margin-bottom: 0.2rem;
    color: var(--color-primary-dark);
}

.coleta-meta {
    display: block;
    color: #666;
}

.coleta-badge {
    display: inline-flex;
    align-items: center;
    background: #e9ecef;
    color: #495057;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-left: 0.4rem;
}

.coleta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-icon,
.btn-qr {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.55rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn-icon .material-icons,
.btn-qr .material-icons {
    font-size: 1rem;
}

.btn-icon:active,
.btn-qr:active {
    transform: scale(0.98);
}

.btn-qr {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    box-shadow: 0 4px 10px rgba(58, 90, 64, 0.2);
}

.btn-icon {
    background: #fff;
}

.btn-icon-edit {
    color: #355070;
    border-color: rgba(53, 80, 112, 0.18);
    background: rgba(53, 80, 112, 0.08);
}

.btn-icon-delete {
    color: #b42318;
    border-color: rgba(180, 35, 24, 0.18);
    background: rgba(180, 35, 24, 0.08);
}

.btn-icon-edit:hover,
.btn-icon-delete:hover,
.btn-qr:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

/* --- RODAPÉ --- */
.app-footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    background-color: rgba(58, 90, 64, 0.9);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    color: white;
}

.app-footer p {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.btn-logout {
    background-color: transparent;
    color: #ffcccc;
    border: 1px solid #ffcccc;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background-color: #ffcccc;
    color: var(--color-record);
}

/* Esconde o app principal por padrão */
#app-shell {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    overflow: hidden;
}

#main-app-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

/* --- NOVOS ESTILOS V2 (Rastro e Voz) --- */

/* Botões de Voz */
.btn-voice {
    background: var(--input-bg);
    border: none;
    border-radius: 5px;
    padding: 0 10px;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.2s;
    height: 100%;
}

.btn-voice:active,
.recording-pulse {
    background: #ff4757;
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Botões de Mídia */
.media-buttons-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.btn-media-action {
    flex: 1;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 10px 5px;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-color);
    font-family: inherit;
    appearance: none;
}

.btn-media-action .material-icons {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--color-primary);
    display: block;
    margin-top: 2px;
}

.btn-media-action:active {
    background: var(--bg-color);
}

#gps-status {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

/* Lista de Mídia (Thumbnails) */
#media-list-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    margin-top: 10px;
    min-height: 90px;
}

.media-list-item {
    position: relative;
    width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.media-thumb-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--input-border);
}

.media-thumb-wrapper img,
.media-thumb-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-type-label {
    font-size: 0.7rem;
    color: #666;
    display: block;
    margin-top: 2px;
}

.btn-remove-media {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    z-index: 10;
}

/* Info Content (Menu) */
.info-content h4 {
    color: var(--color-primary-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.info-content p {
    color: #555;
    line-height: 1.5;
    font-size: 0.95rem;
}

.info-content ul {
    padding-left: 20px;
    color: #555;
}

.info-content li {
    margin-bottom: 5px;
}

/* Badge QR Code */
/* Estilos para Menu de App Moderno */
.app-menu-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.menu-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    border: 1px solid #e9ecef;
}

.menu-option:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.menu-option .material-icons:first-child {
    color: var(--color-primary);
    font-size: 24px;
}

.menu-option .material-icons:last-child {
    color: #999;
    font-size: 20px;
    margin-left: auto;
}

.menu-option div {
    flex: 1;
}

.menu-option strong {
    display: block;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.menu-option small {
    color: #666;
    font-size: 0.8rem;
}

.about-content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.about-content h4 {
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.about-content p {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.about-content ul {
    padding-left: 1rem;
    color: #555;
    font-size: 0.85rem;
}

.about-content li {
    margin-bottom: 0.3rem;
}

/* Estilos para Checkbox de Termos */
.checkbox-container {
    font-size: 0.8rem;
    line-height: 1.3;
    color: #333;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    transform: scale(1.1);
}

.checkbox-container a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

#profile-pic-preview {
    transition: all 0.3s ease;
}

#profile-pic-preview:hover {
    opacity: 0.8;
}

/* Modal QR Gallery */
#qr-gallery-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 5px;
    grid-auto-rows: 1fr;
}

/* Trilha de Cadastro/Perfil */
.profile-setup-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem 1rem 7rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-header h2 {
    color: var(--color-primary-dark);
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 25%;
}

.progress-text {
    color: #666;
    font-size: 0.9rem;
}

.profile-step {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.profile-cancel-edit-btn {
    display: none;
    margin: 1rem auto 0;
    width: auto;
    min-width: 220px;
    justify-content: center;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.profile-step h3 {
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.step-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.step-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.profile-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
}

.profile-display {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.profile-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-item span {
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Menu de Rodapé */
.app-footer-menu {
    display: none;
    flex-shrink: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--input-border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-menu-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0;
}

.footer-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
    min-width: 60px;
}

.footer-menu-item:hover {
    background: #f8f9fa;
}

.footer-menu-item.active {
    color: var(--color-primary);
}

.footer-menu-item .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.footer-menu-item small {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Seções do App */
.app-section {
    padding-bottom: 1rem;
}

/* Configurações */
.settings-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.setting-item:hover {
    background: #e9ecef;
}

.setting-item .material-icons {
    color: var(--color-primary);
}

/* Responsivo para trilha de cadastro */
@media (max-width: 480px) {
    .profile-setup-container {
        padding: 1rem 1rem 7rem;
    }

    .profile-step {
        padding: 1.5rem;
    }

    .step-buttons {
        flex-direction: column;
    }
}

/* =========================================
   MEDIA QUERY: PRINT (Etiquetas)
   ========================================= */
@media print {
    #qr-gallery-list {
        max-height: none;
        overflow: visible;
    }

    /* Esconder botões de ação na impressão */
    .qr-actions,
    button {
        display: none !important;
    }
}

/* =========================================
   LOGIN REFERÊNCIA SIGA / ABRAPA
   ========================================= */
#login-section {
    background: #fff;
    overflow: hidden;
    display: block;
    min-height: 0;
    padding: 0;
    align-items: initial;
    justify-content: initial;
}

#login-section .login-page {
    height: 100vh;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 16px 24px;
    box-sizing: border-box;
    width: 100%;
}

#login-section .login-shell-reference {
    width: min(100%, 980px);
    grid-template-columns: 430px minmax(340px, 1fr);
    gap: 84px;
    align-items: center;
    height: auto;
    max-height: none;
}

body.login-active {
    overflow: hidden;
    height: 100vh;
}

#login-section .promo-card {
    position: relative;
    height: min(82vh, 590px);
    border-radius: 20px;
    overflow: hidden;
    background: #0d3f75;
    box-shadow: 0 8px 24px rgba(14, 42, 74, 0.08);
}

#login-section .promo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#login-section .promo-overlay {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 2rem 1.75rem 4rem;
    background: none;
    color: #fff;
}

#login-section .promo-overlay strong {
    display: block;
    font-size: 1.65rem; font-weight: 700; line-height: 1.2;
    margin-bottom: 0.5rem;
    font-family: 'Instrument Sans', 'Inter', sans-serif;
}

#login-section .promo-overlay p {
    font-size: 0.95rem; line-height: 1.4; margin: 0; opacity: 0.9;
}

#login-section .login-panel {
    padding-top: 0;
    height: min(82vh, 590px);
    display: flex;
    align-items: center;
}

#login-section .form-shell {
    width: min(100%, 402px);
    margin: 0 auto;
    box-sizing: border-box;
}

#login-section .panel-view {
    width: 100%;
}

#login-section .panel-view[hidden] {
    display: none;
}

#login-section .login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

#login-section .login-brand img {
    display: block;
    width: min(100%, 128px);
    height: auto;
}

#login-section .access-title {
    margin: 0;
    margin-bottom: 14px;
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
    color: #355d2f;
}

#login-section .create-heading {
    margin: 0 0 10px;
    color: #2c2118;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1.05;
    font-weight: 700;
}

#login-section .create-kicker {
    margin: 0 0 8px;
    margin-bottom: 10px;
    color: #ff7a2f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

#login-section .create-copy {
    margin: 0 0 18px;
    margin-bottom: 16px;
    color: #575a5e;
    font-size: 14px;
    line-height: 1.45;
}

#login-section .access-divider {
    width: 100%;
    height: 2px;
    margin-bottom: 18px;
    background: #9fb17d;
}

#login-section .field-wrap {
    margin-bottom: 14px;
}

#login-section .field-label {
    display: block;
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
    color: #355d2f;
}

#login-section .field-control {
    position: relative;
}

#login-section .input {
    width: 100%;
    height: 56px;
    border: 1px solid #7f8f84;
    border-radius: 4px;
    padding: 0 52px 0 16px;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    color: #355d2f;
    background: #fff;
    box-shadow: none;
}

#login-section .input::placeholder {
    color: #7d93aa;
}

#login-section .password-field .input {
    padding-right: 58px;
}

#login-section .password-field {
    position: relative;
}

#login-section .eye {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#login-section .eye img {
    width: 22px;
    height: 22px;
    display: block;
    filter: invert(36%) sepia(24%) saturate(787%) hue-rotate(48deg) brightness(90%) contrast(88%);
}

#login-section .eye .eye-off {
    display: block;
}

#login-section .eye .eye-on {
    display: none;
}

#login-section .eye.is-visible .eye-off {
    display: none;
}

#login-section .eye.is-visible .eye-on {
    display: block;
}

#login-section .password-meta {
    display: flex;
    justify-content: flex-end;
    margin: 2px 0 18px;
}

#login-section .password-meta a {
    color: #6b7530;
    font-size: 14px;
    text-decoration: none;
    text-decoration: underline;
}

#login-section .terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    gap: 12px;
    margin: 4px 0 22px;
    color: #355d2f;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

#login-section .terms input {
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    accent-color: #627234;
}

#login-section .terms a {
    color: #355d2f;
    text-decoration: none;
}

#login-section .button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

#login-section .button-row .submit {
    width: 100%;
}

#login-section .create-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

#login-section .submit {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 16px;
    background: #627234;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(98, 114, 52, 0.25);
}

#login-section .submit.submit-secondary {
    background: #fff;
    color: #355d2f;
    border: 2px solid #355d2f;
    box-shadow: none;
}

#login-section .create-card {
    padding: 16px;
    border-radius: 24px;
    border: 1px solid #e7d6b5;
    background: linear-gradient(180deg, rgba(253, 244, 222, 0.8), rgba(255, 249, 238, 0.96));
}

#login-section .create-card .field-label {
    color: #2c4e3d;
}

#login-section .create-card .input {
    background: #eef4ff !important;
    border-color: #d5dced !important;
    color: #283144 !important;
}

#login-section .create-card .password-meta {
    margin-bottom: 10px;
}

#login-section .create-card .password-meta a {
    color: #355d2f;
}

#login-section .submit.submit-light {
    background: #fff;
    color: #355d2f;
    border: 2px solid #d5c3a0;
    box-shadow: none;
}

#login-section .login-status {
    display: none;
    margin-bottom: 14px;
}

@media (max-width: 980px) {
    #login-section .login-shell-reference {
        grid-template-columns: 1fr;
        gap: 28px;
        justify-items: center;
    }

    #login-section .promo-card {
        width: min(100%, 410px);
        height: min(52vh, 470px);
    }

    #login-section .login-panel {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 560px) {
    #login-section .login-page {
        height: auto;
        min-height: 100vh;
        padding: 12px 16px;
        background:
            linear-gradient(180deg, rgba(9, 21, 26, 0.42), rgba(9, 21, 26, 0.52)),
            url("../img/login-abrapa-bloco-mobile.png") center/cover no-repeat;
        align-items: start;
    }

    #login-section .login-shell-reference {
        width: 100%;
        min-height: calc(100vh - 24px);
        align-items: start;
    }

    #login-section .promo-card {
        display: none;
    }

    #login-section .login-panel {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        padding-top: 8px;
        height: auto;
        display: block;
    }

    #login-section .login-brand {
        margin-bottom: 22px;
    }

    #login-section .login-brand img {
        width: min(100%, 118px);
        filter: brightness(0) invert(1);
    }

    #login-section .access-title,
    #login-section .field-label,
    #login-section .password-meta a,
    #login-section .terms,
    #login-section .terms a {
        color: #fff;
    }

    #login-section .access-divider {
        background: rgba(255, 255, 255, 0.72);
    }

    #login-section .input {
        height: 52px;
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.72);
    }

    #login-section .input:-webkit-autofill,
    #login-section .input:-webkit-autofill:hover,
    #login-section .input:-webkit-autofill:focus,
    #login-section .input:-webkit-autofill:active {
        -webkit-text-fill-color: #fff;
        caret-color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.72);
        -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.08) inset;
        box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.08) inset;
        transition: background-color 9999s ease-out 0s;
    }

    #login-section .input::placeholder {
        color: rgba(255, 255, 255, 0.85);
    }

    #login-section .eye img {
        filter: brightness(0) invert(1);
    }

    #login-section .terms input {
        accent-color: #fff;
    }

    #login-section .submit {
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
        box-shadow: none;
    }

    #login-section .submit.submit-secondary {
        background: transparent;
        color: #fff;
        border-color: rgba(255, 255, 255, 0.82);
    }

    #login-section .create-heading,
    #login-section .create-copy {
        color: #fff;
    }

    #login-section .create-card {
        border-color: rgba(255, 255, 255, 0.28);
        background: rgba(255, 255, 255, 0.08);
    }

    #login-section .create-card .field-label,
    #login-section .create-card .password-meta a,
    #login-section .terms-dark,
    #login-section .terms-dark a,
    #login-section .create-card .login-inline-help {
        color: #fff;
    }

    #login-section .create-card .input {
        background: rgba(255, 255, 255, 0.08) !important;
        border-color: rgba(255, 255, 255, 0.72) !important;
        color: #fff !important;
    }

    #login-section .create-card .input:-webkit-autofill,
    #login-section .create-card .input:-webkit-autofill:hover,
    #login-section .create-card .input:-webkit-autofill:focus,
    #login-section .create-card .input:-webkit-autofill:active {
        -webkit-text-fill-color: #fff !important;
        caret-color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.72) !important;
        -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.08) inset !important;
        box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.08) inset !important;
        transition: background-color 9999s ease-out 0s;
    }

    #login-section .submit.submit-light {
        background: transparent;
        color: #fff;
        border-color: rgba(255, 255, 255, 0.82);
    }
}

.chains-selector {
    display: grid;
    gap: 16px;
    margin-top: 12px;
}

.chain-card {
    border: 1px solid #d8e1d2;
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.9);
}

.chain-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.chain-card-header small {
    display: block;
    color: #6b7280;
    margin-top: 2px;
}

.chain-emoji {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    background: linear-gradient(135deg, rgba(88, 129, 87, 0.18), rgba(196, 163, 112, 0.2));
}

.chain-subtypes-grid,
.registro-chain-subtypes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.chain-subtype-chip,
.registro-chain-card {
    border: 1px solid #d8e1d2;
    background: #fff;
    color: #355d2f;
    border-radius: 16px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.chain-subtype-chip:hover,
.registro-chain-card:hover {
    transform: translateY(-1px);
    border-color: #7aa06c;
}

.chain-subtype-chip.selected,
.registro-chain-card.selected {
    border-color: #588157;
    background: rgba(88, 129, 87, 0.12);
    box-shadow: 0 10px 20px rgba(88, 129, 87, 0.12);
}

.chain-subtype-chip {
    text-align: center;
    font-weight: 600;
}

.registro-chain-card {
    display: grid;
    gap: 4px;
}

.registro-chain-emoji {
    font-size: 1.3rem;
}

.registro-chain-name {
    font-size: 0.78rem;
    color: #6b7280;
}

.document-choice-group {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.document-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d8e1d2;
    border-radius: 16px;
    padding: 12px 14px;
    background: #fff;
}

.document-choice input {
    accent-color: #588157;
}
