:root {
    --primario: #1B4F8A;
    --primario-claro: #2563EB;
    --primario-tint: #EFF6FF;
    --acento: #E07B39;
    --acento-tint: #FFF7ED;
    --sucesso: #16A34A;
    --sucesso-tint: #F0FDF4;
    --perigo: #DC2626;
    --perigo-tint: #FEF2F2;
    --aviso: #D97706;
    --aviso-tint: #FFFBEB;
    --fundo: #F1F5F9;
    --card: #FFFFFF;
    --texto: #0F172A;
    --texto-leve: #64748B;
    --borda: #E2E8F0;
    --radius: 16px;
    --radius-sm: 10px;
    --sombra: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --sombra-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
    --sidebar-w: 240px;
    --topbar-h: 56px;
    --bottomnav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--fundo);
    color: var(--texto);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ── SIDEBAR ─────────────────────────────────────────── */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--card);
    border-right: 1px solid var(--borda);
    display: flex;
    flex-direction: column;
    z-index: 100;
}
.sidebar-brand {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--borda);
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-brand .brand-icon {
    width: 36px; height: 36px;
    background: var(--primario);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sidebar-brand .brand-icon span {
    font-size: 20px; color: #fff;
}
.sidebar-brand .brand-name {
    font-weight: 700;
    font-size: .95rem;
    color: var(--texto);
    line-height: 1.2;
}
.sidebar-brand .brand-sub {
    font-size: .72rem;
    color: var(--texto-leve);
}
.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--texto-leve);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    transition: background .15s, color .15s;
    margin-bottom: 2px;
}
.nav-item:hover { background: var(--fundo); color: var(--texto); }
.nav-item.active { background: var(--primario-tint); color: var(--primario-claro); }
.nav-item .material-symbols-rounded { font-size: 20px; }
.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--borda);
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-footer .user-avatar {
    width: 32px; height: 32px;
    background: var(--primario);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.sidebar-footer .user-info { flex: 1; min-width: 0; }
.sidebar-footer .user-name {
    font-size: .83rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-footer .user-role { font-size: .72rem; color: var(--texto-leve); }
.sidebar-footer .logout-btn {
    color: var(--texto-leve);
    display: flex; align-items: center;
    text-decoration: none;
    padding: 4px;
    border-radius: 6px;
}
.sidebar-footer .logout-btn:hover { color: var(--perigo); }

/* ── GBE LOGO ────────────────────────────────────────── */
.gbe-logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gbe-logo-img {
    width: 40px; height: 40px;
    border-radius: 10px;
    object-fit: contain;
    display: block;
}
.gbe-logo-svg {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
}
.gbe-logo-sm .gbe-logo-img { width: 28px; height: 28px; border-radius: 7px; }
.gbe-logo-sm .gbe-logo-svg { border-radius: 7px; overflow: hidden; }

/* ── TOPBAR MOBILE ───────────────────────────────────── */
.topbar {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    background: var(--card);
    border-bottom: 1px solid var(--borda);
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}
.topbar-brand {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: .9rem;
}
.topbar-brand .brand-icon-sm {
    width: 30px; height: 30px;
    background: var(--primario);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.topbar-brand .brand-icon-sm span { font-size: 16px; color: #fff; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.topbar-avatar {
    width: 32px; height: 32px;
    background: var(--primario);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem; font-weight: 700; color: #fff;
    text-decoration: none;
}

/* ── MAIN CONTENT ────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    padding: 24px;
}
.content-inner { max-width: 760px; }

/* ── BOTTOM NAV MOBILE ───────────────────────────────── */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottomnav-h);
    background: var(--card);
    border-top: 1px solid var(--borda);
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    z-index: 100;
}
.bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--texto-leve);
    text-decoration: none;
    font-size: .65rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 10px;
    min-width: 56px;
    text-align: center;
}
.bottom-item .material-symbols-rounded { font-size: 22px; }
.bottom-item.active { color: var(--primario-claro); }
.bottom-item-add {
    width: 48px; height: 48px;
    background: var(--primario);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: var(--sombra-md);
}
.bottom-item-add .material-symbols-rounded { font-size: 26px; }

/* ── ALERTS ──────────────────────────────────────────── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    margin-bottom: 12px;
    border: 1px solid transparent;
}
.alert-sucesso { background: var(--sucesso-tint); color: #166534; border-color: #BBF7D0; }
.alert-erro { background: var(--perigo-tint); color: #991B1B; border-color: #FECACA; }
.alert-info { background: var(--primario-tint); color: #1E40AF; border-color: #BFDBFE; }
.alert-aviso, .alert-warning { background: var(--aviso-tint); color: #92400E; border-color: #FDE68A; }
.alert .material-symbols-rounded { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-close {
    margin-left: auto;
    background: none; border: none;
    cursor: pointer; color: inherit; opacity: .6;
    padding: 0; display: flex; align-items: center;
}
.alert-close:hover { opacity: 1; }

/* ── CARDS ───────────────────────────────────────────── */
.card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--borda);
    box-shadow: var(--sombra);
    overflow: hidden;
    margin-bottom: 16px;
}
.card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--borda);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.card-header-title {
    font-weight: 600;
    font-size: .92rem;
    color: var(--texto);
}
.card-body { padding: 16px 18px; }

/* ── STAT TILES ──────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.stat-tile {
    background: var(--card);
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--sombra);
}
.stat-label { font-size: .72rem; font-weight: 600; color: var(--texto-leve); text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-size: 1.35rem; font-weight: 700; color: var(--texto); margin-top: 4px; }
.stat-sub { font-size: .72rem; color: var(--texto-leve); margin-top: 2px; }

/* ── AREA CARDS (HOME) ───────────────────────────────── */
.area-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.area-card {
    background: var(--card);
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    padding: 18px 16px;
    text-decoration: none;
    color: var(--texto);
    box-shadow: var(--sombra);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .15s, transform .15s;
    position: relative;
    overflow: hidden;
}
.area-card:hover { box-shadow: var(--sombra-md); transform: translateY(-1px); }
.area-card.disabled { opacity: .55; pointer-events: none; }
.area-card-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.area-card-icon .material-symbols-rounded { font-size: 22px; color: #fff; }
.area-card-name { font-weight: 700; font-size: .92rem; }
.area-card-stat { font-size: .8rem; color: var(--texto-leve); }
.area-card-badge {
    position: absolute;
    top: 10px; right: 10px;
    font-size: .6rem; font-weight: 700;
    background: var(--primario-tint);
    color: var(--primario-claro);
    padding: 2px 7px;
    border-radius: 20px;
}
.area-card-add {
    border: 2px dashed var(--borda);
    background: transparent;
    color: var(--texto-leve);
    align-items: center;
    justify-content: center;
    min-height: 110px;
    box-shadow: none;
    cursor: default;
}

/* ── FORM ────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 5px; color: var(--texto); }
.form-label .opt { font-weight: 400; color: var(--texto-leve); }
.form-control, .form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--borda);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    color: var(--texto);
    background: #fff;
    transition: border-color .15s;
    appearance: none;
    -webkit-appearance: none;
}
.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primario-claro);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
textarea.form-control { resize: vertical; min-height: 80px; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .15s, background .15s;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primario { background: var(--primario); color: #fff; }
.btn-primario:hover { background: var(--primario-claro); color: #fff; }
.btn-outline { background: transparent; color: var(--primario-claro); border: 1.5px solid var(--borda); }
.btn-outline:hover { background: var(--primario-tint); }
.btn-acento { background: var(--acento); color: #fff; }
.btn-acento:hover { opacity: .9; }
.btn-perigo { background: var(--perigo); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .82rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.w-100 { width: 100%; }
.btn-icon-sm {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border: none; background: transparent; cursor: pointer;
    border-radius: 8px; padding: 0;
    transition: background .12s;
}
.btn-icon-sm:hover { background: var(--fundo); }

/* ── LIST ITEMS ──────────────────────────────────────── */
.item-lista {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--borda);
    text-decoration: none;
    color: var(--texto);
}
.item-lista:last-child { border-bottom: none; }
.item-lista:hover { background: var(--fundo); }
.item-cat-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.item-cat-icon .material-symbols-rounded { font-size: 18px; color: #fff; }

/* ── PROGRESS BAR ────────────────────────────────────── */
.progress-bar-wrap { background: var(--borda); border-radius: 999px; height: 6px; overflow: hidden; }
.progress-bar-fill {
    height: 100%; border-radius: 999px; width: 100%;
    transform-origin: left center;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}

/* ── PAGE HEADER ─────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.page-title { font-size: 1.25rem; font-weight: 700; }
.page-sub { font-size: .8rem; color: var(--texto-leve); margin-top: 2px; }

/* ── CHIPS / FILTROS ─────────────────────────────────── */
.chips-row {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
    overflow-x: auto; padding-bottom: 2px;
    scrollbar-width: none;
}
.chips-row::-webkit-scrollbar { display: none; }
.chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .78rem; font-weight: 600;
    border: 1.5px solid var(--borda);
    background: var(--card);
    color: var(--texto-leve);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--primario-claro); color: var(--primario-claro); }
.chip.active { background: var(--primario); border-color: var(--primario); color: #fff; }

/* ── AUDIO BAR ───────────────────────────────────────── */
#audioBar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 12px;
    user-select: none;
    -webkit-user-select: none;
}
#btnMic {
    width: 72px; height: 72px;
    border-radius: 50%;
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    background: var(--primario);
    box-shadow: 0 4px 20px rgba(27,79,138,.35);
    transition: background .2s, box-shadow .2s;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
}
#btnMic.gravando {
    background: var(--perigo);
    animation: mic-pulse 1.5s ease-out infinite;
}
@keyframes mic-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(220,38,38,.45); }
    70%  { box-shadow: 0 0 0 20px rgba(220,38,38,0); }
    100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}
#btnMic .material-symbols-rounded { font-size: 30px; color: #fff; pointer-events: none; }
.onda { display: flex; align-items: center; gap: 3px; height: 20px; }
.onda span { display: inline-block; width: 3px; border-radius: 3px; background: var(--perigo); }
@keyframes onda1 { 0%,100%{height:4px}  50%{height:16px} }
@keyframes onda2 { 0%,100%{height:10px} 50%{height:5px}  }
@keyframes onda3 { 0%,100%{height:15px} 50%{height:3px}  }
@keyframes onda4 { 0%,100%{height:6px}  50%{height:13px} }
@keyframes onda5 { 0%,100%{height:11px} 50%{height:4px}  }
.onda span:nth-child(1){animation:onda1 .8s ease-in-out infinite;}
.onda span:nth-child(2){animation:onda2 .7s ease-in-out infinite .1s;}
.onda span:nth-child(3){animation:onda3 .9s ease-in-out infinite .05s;}
.onda span:nth-child(4){animation:onda4 .75s ease-in-out infinite .15s;}
.onda span:nth-child(5){animation:onda5 .85s ease-in-out infinite .08s;}
@keyframes audio-spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }
#audioIdle span { font-size: 12px; color: var(--texto-leve); margin-top: 8px; display: block; text-align: center; }
#audioGravando { display: none; flex-direction: column; align-items: center; gap: 5px; margin-top: 8px; }
#audioTimer { font-size: 14px; font-weight: 700; color: var(--perigo); font-variant-numeric: tabular-nums; }

/* ── TEXT INPUT BAR ──────────────────────────────────── */
.text-input-row {
    display: flex; gap: 8px; margin-top: 12px;
}
.text-input-row .form-control { flex: 1; }

/* ── CONFIRMAR AUDIO ─────────────────────────────────── */
.transcricao-box {
    background: var(--fundo);
    border: 1px solid var(--borda);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: .88rem;
    color: var(--texto-leve);
    font-style: italic;
    margin-bottom: 16px;
}

/* ── UTILS ───────────────────────────────────────────── */
.text-leve { color: var(--texto-leve); }
.text-primario { color: var(--primario-claro); }
.text-acento { color: var(--acento); }
.text-sucesso { color: var(--sucesso); }
.text-perigo { color: var(--perigo); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-sm { font-size: .82rem; }
.fs-xs { font-size: .72rem; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 20px; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 12px; }
.flex-1 { flex: 1; }

/* ── MOBILE ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .topbar { display: flex; }
    .bottom-nav { display: flex; }
    .main-content {
        margin-left: 0;
        padding: 16px 14px;
        padding-top: calc(var(--topbar-h) + 12px);
        padding-bottom: calc(var(--bottomnav-h) + 16px);
    }
    .content-inner { max-width: 100%; }
    .area-cards { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .page-title { font-size: 1.1rem; }
}

@media (max-width: 380px) {
    .area-cards { grid-template-columns: 1fr; }
}

/* ── LOGIN ───────────────────────────────────────────── */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(145deg, #0D2057 0%, #1565C0 55%, #00B4E5 100%);
    position: relative;
    overflow: hidden;
}
.login-deco {
    position: absolute;
    pointer-events: none;
    opacity: .1;
}
.login-deco-tl { top: -40px; left: -40px; }
.login-deco-br { bottom: -60px; right: -60px; }
.login-card {
    background: #fff;
    border-radius: 20px;
    border: none;
    box-shadow: 0 24px 64px rgba(0,0,0,.28), 0 4px 16px rgba(0,0,0,.14);
    padding: 40px 36px;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}
.login-logo {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 28px;
}
.login-logo .brand-name { font-weight: 800; font-size: 1.05rem; line-height: 1.2; color: var(--texto); }
.login-logo .brand-sub { font-size: .75rem; color: var(--texto-leve); margin-top: 1px; }
.login-heading { font-size: 1.3rem; font-weight: 700; color: var(--texto); margin-bottom: 4px; }
.login-desc { font-size: .85rem; color: var(--texto-leve); margin-bottom: 28px; }
.btn-login {
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #1565C0 0%, #00B4E5 100%);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: opacity .15s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(21,101,192,.35);
    margin-top: 8px;
    letter-spacing: .01em;
}
.btn-login:hover { opacity: .92; box-shadow: 0 6px 20px rgba(21,101,192,.45); }
@media (max-width: 440px) {
    .login-card { padding: 32px 22px; }
}

/* ═══════════════════════════════════════════════════════
   HOME — ASSESSOR DIGITAL
══════════════════════════════════════════════════════════ */

.pg-home .main-content { padding: 0; }
.pg-home .content-inner { max-width: 100%; }

@media (max-width: 768px) {
    .pg-home .main-content {
        padding-top: var(--topbar-h);
        padding-bottom: 0;
    }
}

/* ── Hero gradient ─────────────────────────────────────── */
.home-hero {
    background: linear-gradient(150deg, #0D2057 0%, #1565C0 52%, #0288D1 100%);
    padding: 28px 24px 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.home-hero-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 50% 110%, rgba(255,255,255,.12) 0%, transparent 70%),
        radial-gradient(circle 120px at 15% 25%, rgba(255,255,255,.06) 0%, transparent 100%),
        radial-gradient(circle 80px  at 85% 15%, rgba(255,255,255,.05) 0%, transparent 100%);
}
.home-hero-greeting {
    font-size: .72rem;
    color: rgba(255,255,255,.6);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.home-hero-name {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    margin-top: 3px;
    line-height: 1.2;
}
.home-hero-date {
    font-size: .75rem;
    color: rgba(255,255,255,.5);
    margin-top: 4px;
}

/* ── Mic button ────────────────────────────────────────── */
.home-mic-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 28px auto 0;
}
.home-mic-ripple-1,
.home-mic-ripple-2 {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.18);
    animation: home-ripple 3s ease-in-out infinite;
}
.home-mic-ripple-1 { width: 116px; height: 116px; animation-delay: 0s; }
.home-mic-ripple-2 { width: 140px; height: 140px; animation-delay: .6s; }
@keyframes home-ripple {
    0%, 100% { opacity: .5; transform: scale(.97); }
    50% { opacity: 1; transform: scale(1.03); }
}
.home-mic-btn {
    width: 92px; height: 92px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    border: 2px solid rgba(255,255,255,.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, border-color .2s, transform .15s;
    position: relative; z-index: 2;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    box-shadow: 0 10px 40px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.22);
    user-select: none;
    -webkit-user-select: none;
}
.home-mic-btn:active { transform: scale(.95); }
.home-mic-btn.gravando {
    background: rgba(239,68,68,.82);
    border-color: rgba(239,68,68,.9);
    animation: mic-pulse 1.4s ease-out infinite;
}
.home-mic-btn .mic-icon {
    font-size: 40px; color: #fff; pointer-events: none;
    transition: font-size .15s;
}
.home-mic-label {
    color: rgba(255,255,255,.62);
    font-size: .77rem;
    margin-top: 18px;
    font-weight: 500;
    min-height: 22px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.home-mic-wave { display: flex; align-items: center; gap: 3px; }
.home-mic-wave span {
    display: inline-block; width: 3px; border-radius: 3px;
    background: rgba(255,255,255,.75);
}
.home-mic-wave span:nth-child(1){animation:onda1 .8s ease-in-out infinite;}
.home-mic-wave span:nth-child(2){animation:onda2 .7s ease-in-out infinite .1s;}
.home-mic-wave span:nth-child(3){animation:onda3 .9s ease-in-out infinite .05s;}
.home-mic-wave span:nth-child(4){animation:onda4 .75s ease-in-out infinite .15s;}
.home-mic-wave span:nth-child(5){animation:onda5 .85s ease-in-out infinite .08s;}

/* ── Body branco sobrepõe hero ─────────────────────────── */
.home-body {
    background: var(--fundo);
    border-radius: 24px 24px 0 0;
    margin-top: -36px;
    padding: 20px 16px 100px;
    position: relative; z-index: 10;
    min-height: 55vh;
}
@media (min-width: 769px) {
    .home-hero { padding: 36px 48px 72px; }
    .home-body { margin-top: -28px; padding: 24px 32px 40px; }
}

/* ── Input de texto (home) ─────────────────────────────── */
.home-input-card {
    background: var(--card);
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    padding: 6px 6px 6px 14px;
    display: flex; gap: 8px; align-items: center;
    box-shadow: var(--sombra-md);
    margin-bottom: 22px;
}
.home-input-card input {
    flex: 1; border: none; background: transparent;
    font-size: .9rem; color: var(--texto);
    padding: 6px 0; outline: none; min-width: 0;
}
.home-input-card input::placeholder { color: var(--texto-leve); }
.home-input-card .btn { flex-shrink: 0; border-radius: 10px; }

/* ── Seções da home ─────────────────────────────────────── */
.home-sec-hd {
    font-size: .67rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--texto-leve);
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 5px;
}
.home-sec-hd .material-symbols-rounded { font-size: 13px; }

/* ── Card de tarefas ─────────────────────────────────────── */
.home-task-list {
    background: var(--card);
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--sombra);
}
.home-task-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--borda);
    text-decoration: none; color: var(--texto);
    transition: background .1s;
}
.home-task-item:last-child { border-bottom: none; }
.home-task-item:hover { background: var(--fundo); }
.task-prio {
    width: 8px; height: 8px;
    border-radius: 50%; flex-shrink: 0;
}
.task-prio-alta   { background: #EF4444; }
.task-prio-media  { background: #F59E0B; }
.task-prio-baixa  { background: #22C55E; }
.home-task-titulo {
    font-size: .88rem; font-weight: 600;
    flex: 1; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.task-badge {
    font-size: .64rem; font-weight: 700;
    padding: 2px 8px; border-radius: 20px;
    white-space: nowrap; flex-shrink: 0;
}
.task-badge-hoje   { background: #FEF2F2; color: #DC2626; }
.task-badge-amanha { background: #FFFBEB; color: #B45309; }
.task-badge-semana { background: var(--primario-tint); color: var(--primario-claro); }
.task-badge-livre  { background: var(--fundo); color: var(--texto-leve); }

/* ── Push notification banner ──────────────────────────── */
.push-banner {
    background: linear-gradient(135deg, #1B4F8A, #1565C0);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
    color: #fff;
    font-size: .82rem;
}
.push-banner .push-icon { font-size: 20px; flex-shrink: 0; }
.push-banner-text { flex: 1; font-weight: 500; }
.push-banner .btn-push-ativar {
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    font-size: .75rem; padding: 5px 12px;
    border-radius: 20px; cursor: pointer;
    white-space: nowrap; font-weight: 700;
    transition: background .15s;
}
.push-banner .btn-push-ativar:hover { background: rgba(255,255,255,.32); }

/* ── Install PWA banner ─────────────────────────────────── */
.install-banner {
    position: fixed;
    bottom: calc(var(--bottomnav-h) + 10px); left: 12px; right: 12px;
    background: var(--card);
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    padding: 12px 14px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
    z-index: 200;
    animation: slide-up .3s ease;
}
@keyframes slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@media (min-width: 769px) {
    .install-banner { bottom: 20px; left: calc(var(--sidebar-w) + 20px); right: 20px; max-width: 420px; }
}
.install-banner-icon { font-size: 28px; flex-shrink: 0; }
.install-banner-text { flex: 1; }
.install-banner-title { font-weight: 700; font-size: .88rem; }
.install-banner-sub { font-size: .72rem; color: var(--texto-leve); margin-top: 1px; }
.install-banner-actions { display: flex; gap: 6px; }

/* ── Feed da home ───────────────────────────────────────── */
.home-feed-list {
    background: var(--card);
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--sombra);
}
