:root {
    --bg: #f5f7fa;
    --text: #1a202c;
    --primary: #2b6cb0;
    --card: #ffffff;
    --font-display: "Fredoka", system-ui, sans-serif;
    --font-body: "Nunito", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 40;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem 0.65rem;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.menu-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.menu-toggle-bar {
    display: block;
    height: 3px;
    width: 1.25rem;
    margin: 0 auto;
    background: #fff;
    border-radius: 2px;
}

.topbar h1 {
    margin: 0;
    font-size: 1.15rem;
}

/* Tipografia do app autenticado: títulos amigáveis alinhados ao tema */
body[data-theme]:not(.auth-page) .topbar h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    letter-spacing: 0.03em;
    line-height: 1.2;
    color: #fff;
    text-shadow:
        0 1px 2px rgba(15, 23, 42, 0.18),
        0 0 20px rgba(255, 255, 255, 0.2);
}

body[data-theme]:not(.auth-page) main.container .card > h2 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.25;
    font-size: clamp(1.35rem, 3.2vw, 1.65rem);
    background: linear-gradient(
        120deg,
        color-mix(in srgb, var(--primary) 78%, #1e293b) 0%,
        var(--primary) 48%,
        color-mix(in srgb, var(--primary) 65%, #334155) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@supports not (background-clip: text) {
    body[data-theme]:not(.auth-page) main.container .card > h2 {
        color: var(--primary);
        background: none;
    }
}

body[data-theme]:not(.auth-page) .hint,
body[data-theme]:not(.auth-page) .kpi-subtitle,
body[data-theme]:not(.auth-page) .stock-card-sub,
body[data-theme]:not(.auth-page) .stock-quick-modal-sub {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    color: color-mix(in srgb, var(--primary) 42%, #475569);
    line-height: 1.45;
}

body[data-theme]:not(.auth-page) .stock-quick-modal-title,
body[data-theme]:not(.auth-page) .nav-drawer-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: color-mix(in srgb, var(--primary) 55%, #334155);
}

body[data-theme]:not(.auth-page) .nav-drawer-title {
    letter-spacing: 0.08em;
    color: color-mix(in srgb, var(--primary) 35%, #64748b);
}

body[data-theme]:not(.auth-page) main.container article.card > h3,
body[data-theme]:not(.auth-page) .stock-card-head h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.12rem, 2.4vw, 1.28rem);
    letter-spacing: 0.01em;
    color: color-mix(in srgb, var(--primary) 70%, #1e293b);
}

body[data-theme]:not(.auth-page) .kpi-fraldas-label {
    font-family: var(--font-display);
}

/* Nome do bebê — só no menu lateral (drawer), não na barra superior */
.nav-drawer-baby {
    margin: -0.25rem 0 0.85rem;
    padding: 0 0.75rem;
    word-break: break-word;
}

.baby-name-sparkle--drawer {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1rem, 2.8vw, 1.28rem);
    letter-spacing: 0.05em;
    line-height: 1.25;
    background: linear-gradient(
        100deg,
        color-mix(in srgb, var(--primary) 55%, #1e293b) 0%,
        color-mix(in srgb, var(--primary) 35%, #475569) 22%,
        color-mix(in srgb, var(--primary) 65%, #334155) 48%,
        color-mix(in srgb, var(--primary) 40%, #64748b) 72%,
        color-mix(in srgb, var(--primary) 70%, #1e293b) 100%
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.85));
    animation: baby-name-sparkle-shine 3.5s ease-in-out infinite;
}

@supports not (background-clip: text) {
    .baby-name-sparkle--drawer {
        color: var(--primary);
        background: none;
        filter: none;
    }
}

@keyframes baby-name-sparkle-shine {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 45;
}

.nav-backdrop[hidden] {
    display: none;
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 88vw);
    max-width: 100%;
    background: var(--card);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nav-drawer-open {
    transform: translateX(0);
}

.nav-drawer-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 4.5rem 1rem 1.25rem;
}

.nav-drawer-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.nav-drawer-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 1rem 0 0.35rem;
    border-top: 1px solid #e2e8f0;
}

.nav-drawer-user {
    margin: 0.65rem 0 0;
    padding: 0 0.75rem 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    line-height: 1.35;
    word-break: break-word;
}

.nav-drawer-title {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #718096;
}

.nav-drawer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-drawer-list li {
    margin: 0;
    padding: 0;
}

.nav-drawer-list a {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.nav-drawer-list a:hover {
    background: var(--bg);
}

.nav-drawer-list a.active {
    background: rgba(43, 108, 176, 0.12);
    color: var(--primary);
}

body.gender-girl .nav-drawer-list a.active {
    background: rgba(159, 89, 200, 0.14);
    color: var(--primary);
}

.nav-drawer-logout-form {
    margin: 0;
}

.nav-drawer-logout-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: none;
    background: none;
    color: var(--text);
    text-decoration: none;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.nav-drawer-logout-btn:hover {
    background: var(--bg);
}

body.nav-open {
    overflow: hidden;
}

.topbar a {
    color: #fff;
    text-decoration: none;
}

.hint {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.4;
}

.container {
    max-width: 1100px;
    margin: 1rem auto;
    padding: 0 1rem 2rem;
}

.card, .auth-card {
    background: var(--card);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.auth-card {
    max-width: 460px;
    margin: 2rem auto;
}

.form-grid p,
.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

input, select, button, textarea {
    width: 100%;
    padding: 0.65rem;
    border-radius: 8px;
    border: 1px solid #cbd5e0;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

.grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stock-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stock-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.6rem 0;
}

.home-hero h2 {
    margin-bottom: 0.25rem;
}

.grid-two-home {
    align-items: start;
}

/* Indicadores: desktop em duas colunas (KPI + tabela | movimentações); mobile empilhado como antes */
.home-indicators-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.home-indicators-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.home-indicators-main .grid-kpi {
    margin-bottom: 0;
}

.home-indicators-sidebar {
    min-width: 0;
}

.home-indicators-main > .grid-kpi .card,
.home-indicators-main > .stock-by-brand-card,
.home-indicators-sidebar .card {
    margin-bottom: 0;
}

@media (min-width: 801px) {
    .home-indicators-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 22rem);
        gap: 1rem;
        align-items: start;
    }

    .home-indicators-main .kpi-card-solo {
        max-width: none;
    }

    .home-indicators-sidebar .home-recent-movements-card {
        position: sticky;
        top: calc(4.5rem + 1rem);
        max-height: calc(100vh - 6rem);
        max-height: calc(100dvh - 6rem);
        overflow: auto;
    }
}

.card-3d {
    border-radius: 18px;
    padding: 1.25rem 1.35rem 1.35rem;
    background: linear-gradient(155deg, #ffffff 0%, #f4f7fb 55%, #eef2f7 100%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 12px 28px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transform: translateZ(0);
}

.stock-card-head h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.stock-card-sub {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.45;
}

.stock-empty-msg {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.stock-table-wrap {
    overflow-x: auto;
    margin: 0 -0.25rem;
    padding: 0 0.25rem;
}

.stock-prime-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
}

.stock-prime-table thead th {
    text-align: left;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
    padding: 0.65rem 0.85rem;
    border-bottom: 2px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.5);
}

.stock-prime-table tbody td {
    padding: 0.72rem 0.85rem;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.stock-prime-table tbody tr:last-child td {
    border-bottom: none;
}

.stock-prime-table tbody tr:hover td {
    background: rgba(43, 108, 176, 0.045);
}

body.gender-girl .stock-prime-table tbody tr:hover td {
    background: rgba(159, 89, 200, 0.06);
}

.stock-cell-brand {
    font-weight: 700;
    color: #1e293b;
}

.stock-cell-size {
    color: #475569;
    font-variant-numeric: tabular-nums;
}

.stock-col-qty,
.stock-cell-qty {
    text-align: right;
    width: 8.5rem;
}

.stock-qty-plain {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--primary);
}

button.stock-qty-trigger {
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: var(--primary);
    background: rgba(43, 108, 176, 0.12);
    border: 1px solid rgba(43, 108, 176, 0.22);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

button.stock-qty-trigger:hover,
button.stock-qty-trigger:focus-visible {
    background: rgba(43, 108, 176, 0.2);
    box-shadow: 0 2px 8px rgba(43, 108, 176, 0.2);
    outline: none;
}

body.gender-girl button.stock-qty-trigger {
    background: rgba(159, 89, 200, 0.12);
    border-color: rgba(159, 89, 200, 0.28);
}

body.gender-girl button.stock-qty-trigger:hover,
body.gender-girl button.stock-qty-trigger:focus-visible {
    background: rgba(159, 89, 200, 0.2);
    box-shadow: 0 2px 8px rgba(159, 89, 200, 0.22);
}

/* Modal fixo: não é cortado pelo overflow da tabela */
body.stock-quick-modal-open {
    overflow: hidden;
}

.stock-quick-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.stock-quick-modal[hidden] {
    display: none;
}

.stock-quick-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.stock-quick-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 22rem);
    padding: 1.25rem 1.35rem;
    border-radius: 16px;
    background: #fff;
    box-shadow:
        0 4px 24px rgba(15, 23, 42, 0.12),
        0 24px 48px rgba(15, 23, 42, 0.18);
}

.stock-quick-modal-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.stock-quick-modal-sub {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.4;
}

.stock-quick-modal-error {
    margin: 0 0 0.75rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    font-size: 0.88rem;
    background: #fed7d7;
    color: #742a2a;
}

.stock-quick-modal-error[hidden] {
    display: none !important;
}

.stock-quick-hint {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    color: var(--text);
}

.stock-quick-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stock-quick-actions-confirm {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.stock-quick-btn {
    flex: 1 1 auto;
    min-width: 6rem;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    border: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.stock-quick-btn-in {
    background: #c6f6d5;
    color: #22543d;
}

.stock-quick-btn-in:hover {
    filter: brightness(0.97);
}

.stock-quick-btn-out {
    background: #fed7d7;
    color: #742a2a;
}

.stock-quick-btn-out:hover {
    filter: brightness(0.97);
}

.stock-quick-btn-primary {
    background: var(--primary);
    color: #fff;
}

.stock-quick-btn-primary:hover {
    filter: brightness(1.05);
}

.stock-quick-btn-ghost {
    flex: 1 1 100%;
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.stock-quick-btn-ghost:hover {
    background: var(--bg);
}

.stock-quick-qty-label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.stock-quick-qty-input {
    width: 100%;
    margin-bottom: 0.85rem;
    padding: 0.65rem;
    border-radius: 8px;
    border: 1px solid #cbd5e0;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.recent-empty-msg {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    color: #64748b;
}

.recent-empty-msg[hidden] {
    display: none !important;
}

.messages {
    margin-bottom: 1rem;
}

.message {
    padding: 0.65rem;
    border-radius: 8px;
    margin-bottom: 0.4rem;
}

.message.success { background: #c6f6d5; }
.message.error { background: #fed7d7; }
.message.warning { background: #faf089; }

.alert-month {
    background: #fefcbf;
    border: 1px solid #ecc94b;
    border-radius: 8px;
    padding: 0.7rem;
    margin-bottom: 0.8rem;
}

.gender-boy { --primary: #2b6cb0; }
.gender-girl { --primary: #9f59c8; }

/* Temas: fundo em gradiente suave + tokens para camada imersiva */
.theme-safari {
    --bg: linear-gradient(165deg, #e8f5e9 0%, #edf7ed 45%, #d4edd9 100%);
    --theme-glow: rgba(46, 125, 50, 0.35);
    --theme-thumb: url("../img/themes/theme-safari.1eb5e38a3265.png");
}
.theme-space {
    --bg: linear-gradient(165deg, #e8eaf6 0%, #edf2ff 40%, #dce4ff 100%);
    --theme-glow: rgba(92, 107, 192, 0.45);
    --theme-thumb: url("../img/themes/theme-space.b87a2c12c985.png");
}
.theme-dino {
    --bg: linear-gradient(165deg, #e8f5e9 0%, #eefaf0 42%, #d9f2e3 100%);
    --theme-glow: rgba(0, 137, 123, 0.35);
    --theme-thumb: url("../img/themes/theme-dino.7bb1e1c55c73.png");
}
.theme-nautical {
    --bg: linear-gradient(165deg, #e3f2fd 0%, #e6f7ff 45%, #cce7ff 100%);
    --theme-glow: rgba(2, 119, 189, 0.38);
    --theme-thumb: url("../img/themes/theme-nautical.5febb0f8f791.png");
}
.theme-football {
    --bg: linear-gradient(165deg, #e8f5e9 0%, #f0fff4 42%, #d4f5dd 100%);
    --theme-glow: rgba(27, 94, 32, 0.32);
    --theme-thumb: url("../img/themes/theme-football.0fff9fb0ce97.png");
}
.theme-garden {
    --bg: linear-gradient(165deg, #fce4ec 0%, #fff5f7 45%, #f8bbd9 100%);
    --theme-glow: rgba(194, 24, 91, 0.28);
    --theme-thumb: url("../img/themes/theme-garden.98516a6dd1a9.png");
}
.theme-teddy {
    --bg: linear-gradient(165deg, #fff3e0 0%, #fffaf0 45%, #ffe0b2 100%);
    --theme-glow: rgba(230, 81, 0, 0.28);
    --theme-thumb: url("../img/themes/theme-teddy.7909d06c1e1f.png");
}
.theme-princess {
    --bg: linear-gradient(165deg, #f3e5f5 0%, #faf5ff 45%, #e1bee7 100%);
    --theme-glow: rgba(123, 31, 162, 0.3);
    --theme-thumb: url("../img/themes/theme-princess.5dbf05197dc5.png");
}
.theme-ballerina {
    --bg: linear-gradient(165deg, #fce4ec 0%, #fff0f6 48%, #f8bbd9 100%);
    --theme-glow: rgba(173, 20, 87, 0.28);
    --theme-thumb: url("../img/themes/theme-ballerina.22e7ec978396.png");
}

body[data-theme] {
    /* --bg já vem da classe .theme-* no body; aqui só fixamos o fundo no viewport */
    background-attachment: fixed;
}

/* Camada decorativa: ícones flutuantes, brilho e orbes (pointer-events: none) */
.theme-ambiance {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.theme-ambiance-gradient {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background: radial-gradient(ellipse 120% 80% at 50% -20%, var(--theme-glow), transparent 55%);
}

/* Ilustração do tema (grade 3×3 da identidade visual; uma por perfil) */
.theme-ambiance-art {
    position: absolute;
    inset: 0;
    background-image: var(--theme-thumb);
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: min(92vw, 640px);
    opacity: 0.26;
    filter: saturate(1.06);
    pointer-events: none;
}

body[data-theme="garden"] .theme-ambiance-art {
    opacity: 0.32;
}

.theme-ambiance-orbs {
    position: absolute;
    inset: 0;
}

.ta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(42px);
    opacity: 0.45;
    animation: ta-orb-drift 22s ease-in-out infinite;
}

.ta-orb-a {
    width: min(42vw, 320px);
    height: min(42vw, 320px);
    top: -8%;
    left: -6%;
    background: var(--theme-glow);
    animation-delay: 0s;
}

.ta-orb-b {
    width: min(38vw, 280px);
    height: min(38vw, 280px);
    bottom: 5%;
    right: -4%;
    background: var(--theme-glow);
    animation-delay: -7s;
    animation-duration: 26s;
}

.ta-orb-c {
    width: min(28vw, 220px);
    height: min(28vw, 220px);
    top: 38%;
    left: 35%;
    background: var(--theme-glow);
    opacity: 0.28;
    animation-delay: -12s;
    animation-duration: 30s;
}

@keyframes ta-orb-drift {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(3%, 4%) scale(1.05);
    }
    66% {
        transform: translate(-2%, 2%) scale(0.96);
    }
}

.theme-ambiance-icons {
    position: absolute;
    inset: 0;
}

.ta-i {
    position: absolute;
    font-size: clamp(1.2rem, 3.2vw, 2rem);
    line-height: 1;
    opacity: 0.68;
    text-shadow: 0 2px 14px rgba(255, 255, 255, 0.65);
    animation: ta-float-y 9s ease-in-out infinite, ta-shimmer 4.5s ease-in-out infinite;
    will-change: transform, opacity, filter;
}

.ta-i::before {
    display: inline-block;
    filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.12));
}

.ta-i1 {
    top: 10%;
    left: 6%;
    animation-delay: 0s, 0.3s;
}
.ta-i2 {
    top: 18%;
    right: 8%;
    animation-delay: -1.2s, 0.8s;
}
.ta-i3 {
    top: 48%;
    left: 4%;
    animation-delay: -2.4s, 0.2s;
}
.ta-i4 {
    top: 42%;
    right: 6%;
    animation-delay: -3.1s, 1.1s;
}
.ta-i5 {
    bottom: 14%;
    left: 12%;
    animation-delay: -1.8s, 0.5s;
}
.ta-i6 {
    bottom: 10%;
    right: 10%;
    animation-delay: -4s, 1.4s;
}

@keyframes ta-float-y {
    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-14px) rotate(2deg);
    }
}

@keyframes ta-shimmer {
    0%,
    100% {
        opacity: 0.72;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.12);
    }
}

/* Ícones por tema (emoji UTF-8) */
body[data-theme="safari"] .ta-i1::before { content: "🦁"; }
body[data-theme="safari"] .ta-i2::before { content: "🌿"; }
body[data-theme="safari"] .ta-i3::before { content: "🦒"; }
body[data-theme="safari"] .ta-i4::before { content: "🌴"; }
body[data-theme="safari"] .ta-i5::before { content: "☀️"; }
body[data-theme="safari"] .ta-i6::before { content: "🐘"; }

body[data-theme="space"] .ta-i1::before { content: "🚀"; }
body[data-theme="space"] .ta-i2::before { content: "⭐"; }
body[data-theme="space"] .ta-i3::before { content: "🌙"; }
body[data-theme="space"] .ta-i4::before { content: "✨"; }
body[data-theme="space"] .ta-i5::before { content: "🪐"; }
body[data-theme="space"] .ta-i6::before { content: "🌌"; }

body[data-theme="dino"] .ta-i1::before { content: "🦕"; }
body[data-theme="dino"] .ta-i2::before { content: "🦖"; }
body[data-theme="dino"] .ta-i3::before { content: "🌋"; }
body[data-theme="dino"] .ta-i4::before { content: "🌿"; }
body[data-theme="dino"] .ta-i5::before { content: "🥚"; }
body[data-theme="dino"] .ta-i6::before { content: "🦴"; }

body[data-theme="nautical"] .ta-i1::before { content: "⚓"; }
body[data-theme="nautical"] .ta-i2::before { content: "🛟"; }
body[data-theme="nautical"] .ta-i3::before { content: "🐚"; }
body[data-theme="nautical"] .ta-i4::before { content: "⛵"; }
body[data-theme="nautical"] .ta-i5::before { content: "🌊"; }
body[data-theme="nautical"] .ta-i6::before { content: "🧭"; }

body[data-theme="football"] .ta-i1::before { content: "⚽"; }
body[data-theme="football"] .ta-i2::before { content: "🏟️"; }
body[data-theme="football"] .ta-i3::before { content: "🥅"; }
body[data-theme="football"] .ta-i4::before { content: "⭐"; }
body[data-theme="football"] .ta-i5::before { content: "🏆"; }
body[data-theme="football"] .ta-i6::before { content: "🖤"; }

body[data-theme="garden"] .ta-i1::before { content: "🌸"; }
body[data-theme="garden"] .ta-i2::before { content: "🦋"; }
body[data-theme="garden"] .ta-i3::before { content: "🌷"; }
body[data-theme="garden"] .ta-i4::before { content: "🌺"; }
body[data-theme="garden"] .ta-i5::before { content: "🍃"; }
body[data-theme="garden"] .ta-i6::before { content: "✨"; }

body[data-theme="teddy"] .ta-i1::before { content: "🧸"; }
body[data-theme="teddy"] .ta-i2::before { content: "🍯"; }
body[data-theme="teddy"] .ta-i3::before { content: "❤️"; }
body[data-theme="teddy"] .ta-i4::before { content: "🎀"; }
body[data-theme="teddy"] .ta-i5::before { content: "⭐"; }
body[data-theme="teddy"] .ta-i6::before { content: "🐻"; }

body[data-theme="princess"] .ta-i1::before { content: "👑"; }
body[data-theme="princess"] .ta-i2::before { content: "💎"; }
body[data-theme="princess"] .ta-i3::before { content: "✨"; }
body[data-theme="princess"] .ta-i4::before { content: "🏰"; }
body[data-theme="princess"] .ta-i5::before { content: "🌸"; }
body[data-theme="princess"] .ta-i6::before { content: "💜"; }

body[data-theme="ballerina"] .ta-i1::before { content: "🩰"; }
body[data-theme="ballerina"] .ta-i2::before { content: "💫"; }
body[data-theme="ballerina"] .ta-i3::before { content: "🎀"; }
body[data-theme="ballerina"] .ta-i4::before { content: "✨"; }
body[data-theme="ballerina"] .ta-i5::before { content: "🌸"; }
body[data-theme="ballerina"] .ta-i6::before { content: "💖"; }

/* Estrelas piscando só no tema espaço (camada extra no gradiente) */
body[data-theme="space"] .theme-ambiance-gradient {
    background-image:
        radial-gradient(2px 2px at 15% 25%, rgba(255, 255, 255, 0.95), transparent),
        radial-gradient(2px 2px at 55% 18%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1.5px 1.5px at 82% 42%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 30% 62%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1.5px 1.5px at 70% 78%, rgba(255, 255, 255, 0.88), transparent),
        radial-gradient(2px 2px at 88% 12%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(ellipse 120% 80% at 50% -20%, var(--theme-glow), transparent 55%);
    background-repeat: no-repeat;
    animation: ta-stars-twinkle 5s ease-in-out infinite;
}

@keyframes ta-stars-twinkle {
    0%,
    100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.75;
    }
}

/* Chip do tema na barra superior: miniatura da mesma arte do fundo (via --theme-thumb no body.theme-*) */
.theme-head-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.45rem;
    padding: 3px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.theme-head-chip-thumb {
    display: block;
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    background-color: rgba(255, 255, 255, 0.25);
    background-image: var(--theme-thumb);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid rgba(255, 255, 255, 0.65);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    animation: ta-chip-glow 3.2s ease-in-out infinite;
}

@keyframes ta-chip-glow {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 transparent);
    }
    50% {
        transform: scale(1.06);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.65));
    }
}

/* Barra superior: faixa sutil do tema + conteúdo acima da camada decorativa */
body[data-theme] .topbar {
    position: relative;
    z-index: 40;
    box-shadow:
        0 4px 20px rgba(15, 23, 42, 0.12),
        inset 0 -3px 0 var(--theme-glow);
}

body[data-theme] main.container {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .theme-ambiance *,
    .theme-head-chip-thumb,
    .baby-name-sparkle--drawer {
        animation: none !important;
    }

    .baby-name-sparkle--drawer {
        filter: none;
    }

    .ta-i {
        opacity: 0.85;
    }

    body[data-theme] {
        background-attachment: scroll;
    }
}

.profile-picker {
    margin-top: 0.75rem;
}

.inline-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
}

.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;
}

.profile-picker-label {
    font-weight: 600;
}

.grid-kpi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.kpi-card-solo {
    max-width: 420px;
}

.kpi-stock-hero.kpi-card-solo {
    max-width: none;
    width: 100%;
}

.kpi-stock-hero h3 {
    margin: 0 0 0.4rem;
}

.kpi-subtitle {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.45;
}

.kpi-card .kpi-value {
    margin: 0.25rem 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.kpi-stock-hero .kpi-total-fraldas {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    margin: 0 0 1rem;
}

.kpi-stock-hero .kpi-total-fraldas .kpi-value {
    margin: 0;
}

.kpi-fraldas-label {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary);
    opacity: 0.88;
}

.kpi-size-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0 0 0.85rem;
}

.kpi-size-breakdown--empty .kpi-size-empty-msg {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.kpi-size-card {
    min-width: 5.25rem;
    padding: 0.62rem 0.85rem 0.68rem;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-align: center;
    background: linear-gradient(155deg, #ffffff 0%, #eef2f7 100%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 5px 0 rgba(43, 108, 176, 0.2),
        0 14px 28px rgba(15, 23, 42, 0.08);
    transform: translateZ(0);
}

body[data-theme] .kpi-size-card {
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.98) 0%,
        color-mix(in srgb, var(--primary) 11%, #ffffff) 52%,
        color-mix(in srgb, var(--primary) 7%, #f8fafc) 100%
    );
    border: 1px solid color-mix(in srgb, var(--primary) 30%, #ffffff);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 5px 0 color-mix(in srgb, var(--primary) 42%, rgba(43, 108, 176, 0.2)),
        0 18px 36px var(--theme-glow),
        0 10px 20px rgba(15, 23, 42, 0.06);
}

.kpi-size-name {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

body[data-theme] .kpi-size-name {
    color: color-mix(in srgb, var(--primary) 50%, #475569);
}

.kpi-size-qty {
    font-size: 1.32rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
    line-height: 1.15;
}

.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.15rem 0.5rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.recent-type {
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
}

.recent-type.in {
    background: #c6f6d5;
    color: #22543d;
}

.recent-type.out {
    background: #fed7d7;
    color: #742a2a;
}

.recent-list li span:nth-child(2) {
    font-weight: 600;
}

.recent-date {
    grid-column: 2;
    font-size: 0.8rem;
    color: #718096;
}

.auth-card-inline {
    max-width: 520px;
}

/* Login / cadastro: fundo ilustrado; cartão fora da nuvem com o título */
body.auth-page {
    background-color: #faf8f5;
    background-image: url("https://i.imgur.com/9P1xQEx.jpeg");
    background-size: cover;
    background-position: top left;
    background-repeat: no-repeat;
    min-height: 100vh;
    min-height: 100dvh;
}

body.auth-page .topbar {
    background: rgba(250, 248, 245, 0.96);
    color: var(--text);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.auth-page .topbar h1 {
    font-family: "Fredoka", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.35rem, 2.4vw, 1.65rem);
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0;
    background: linear-gradient(120deg, #ec4899 0%, #a855f7 42%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.85));
}

@supports not (background-clip: text) {
    body.auth-page .topbar h1 {
        color: #a855f7;
        background: none;
    }
}

body.auth-page .container.auth-shell {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
    padding-top: 1rem;
    padding-bottom: 2rem;
    min-height: calc(100vh - 3.5rem);
}

body.auth-page .container.auth-shell .messages {
    width: 100%;
    max-width: 380px;
    align-self: center;
}

body.auth-page .container.auth-shell .messages + * {
    margin-top: 0;
}

body.auth-page .auth-card {
    margin-top: 0;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: min(400px, 100%);
    width: 100%;
    align-self: center;
    position: relative;
    padding: 1.45rem 1.4rem 1.3rem;
    border-radius: 28px;
    font-family: "Nunito", system-ui, sans-serif;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 248, 252, 0.92) 45%,
        rgba(240, 253, 250, 0.9) 100%
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow:
        inset 0 2px 6px rgba(255, 255, 255, 0.98),
        inset 0 -4px 12px rgba(244, 114, 182, 0.06),
        0 2px 4px rgba(244, 114, 182, 0.12),
        0 10px 24px rgba(125, 211, 252, 0.22),
        0 20px 50px rgba(15, 23, 42, 0.1),
        0 28px 60px rgba(167, 139, 250, 0.12);
}

/* Brilho superior — sensação de “bloco” em 3D */
body.auth-page .auth-card-baby::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 8%;
    right: 8%;
    height: 38%;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.85), transparent 62%);
    pointer-events: none;
    z-index: 0;
}

body.auth-page .auth-card-baby > * {
    position: relative;
    z-index: 1;
}

body.auth-page .auth-card-title {
    font-family: "Fredoka", "Nunito", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    text-align: center;
    margin: 0 0 0.4rem;
    line-height: 1.2;
    background: linear-gradient(120deg, #ec4899 0%, #a855f7 42%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 1px rgba(255, 255, 255, 0.9));
}

@supports not (background-clip: text) {
    body.auth-page .auth-card-title {
        color: #a855f7;
        background: none;
    }
}

body.auth-page .auth-card-lead {
    text-align: center;
    font-size: 0.94rem;
    font-weight: 600;
    color: #8b7fb0;
    margin: 0 0 1.05rem;
    line-height: 1.45;
}

body.auth-page .auth-card-lead--compact {
    margin-bottom: 0.45rem;
}

body.auth-page .auth-card-note {
    text-align: center;
    font-size: 0.82rem;
    color: #9b8cb8;
    margin: 0 0 1rem;
    line-height: 1.4;
}

body.auth-page .auth-label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: #a78bfa;
    letter-spacing: 0.03em;
}

body.auth-page .auth-card label .auth-label + input,
body.auth-page .auth-card label input {
    margin-top: 0.35rem;
}

body.auth-page .auth-card input:not([type="checkbox"]):not([type="radio"]),
body.auth-page .auth-card select,
body.auth-page .auth-card textarea {
    border-radius: 16px;
    border: 2px solid rgba(216, 180, 254, 0.55);
    background: linear-gradient(180deg, #fffefb 0%, #faf5ff 100%);
    box-shadow:
        inset 0 2px 5px rgba(255, 255, 255, 0.95),
        0 3px 0 rgba(167, 139, 250, 0.12);
    font-family: "Nunito", system-ui, sans-serif;
    font-weight: 600;
    color: #4c3f69;
}

body.auth-page .auth-card input::placeholder {
    color: #b8a8d4;
    font-weight: 500;
}

body.auth-page .auth-card input:not([type="checkbox"]):focus,
body.auth-page .auth-card select:focus,
body.auth-page .auth-card textarea:focus {
    border-color: #c084fc;
    outline: none;
    box-shadow:
        0 0 0 3px rgba(192, 132, 252, 0.28),
        inset 0 2px 5px rgba(255, 255, 255, 0.98);
}

body.auth-page .auth-card button.auth-submit-baby,
body.auth-page .auth-card button[type="submit"] {
    margin-top: 0.35rem;
    border-radius: 999px;
    padding: 0.78rem 1.2rem;
    font-family: "Fredoka", "Nunito", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    width: 100%;
    background: linear-gradient(165deg, #38bdf8 0%, #6366f1 48%, #d946ef 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
    box-shadow:
        0 5px 0 #4c1d95,
        0 10px 22px rgba(99, 102, 241, 0.45),
        inset 0 2px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.auth-page .auth-card button.auth-submit-baby:hover,
body.auth-page .auth-card button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow:
        0 7px 0 #4c1d95,
        0 14px 28px rgba(99, 102, 241, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

body.auth-page .auth-card button.auth-submit-baby:active,
body.auth-page .auth-card button[type="submit"]:active {
    transform: translateY(3px);
    box-shadow:
        0 2px 0 #4c1d95,
        0 6px 14px rgba(99, 102, 241, 0.35),
        inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

body.auth-page .auth-card-footer {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #8b7fb0;
    margin: 0.85rem 0 0;
    line-height: 1.45;
}

body.auth-page .auth-card-footer a {
    color: #db2777;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px dashed rgba(219, 39, 119, 0.35);
}

body.auth-page .auth-card-footer a:hover {
    color: #be185d;
    border-bottom-color: rgba(190, 24, 93, 0.55);
}

body.auth-page .auth-footer-register {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-bottom: none;
}

body.auth-page .auth-footer-register:hover {
    border-bottom: none;
}

body.auth-page .auth-footer-heart {
    flex-shrink: 0;
    vertical-align: -0.12em;
}

/* Cadastro: campos gerados pelo Django (as_p) */
body.auth-page .auth-card .form-grid p {
    margin: 0 0 0.75rem;
}

body.auth-page .auth-card .form-grid p label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: #a78bfa;
    letter-spacing: 0.02em;
}

body.auth-page .auth-card ul.errorlist {
    margin: 0.25rem 0 0;
    padding: 0.45rem 0.55rem;
    list-style: none;
    border-radius: 12px;
    background: rgba(254, 226, 226, 0.85);
    border: 1px solid rgba(248, 113, 113, 0.35);
    font-size: 0.82rem;
    color: #b91c1c;
}

body.auth-page .auth-card .helptext {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #9b8cb8;
    line-height: 1.35;
}

.password-field-wrap {
    display: block;
    position: relative;
    width: 100%;
}

.password-field-wrap input {
    padding-right: 2.85rem;
}

button.password-toggle {
    position: absolute;
    right: 0.3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    min-height: 2.25rem;
    height: auto;
    padding: 0.25rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

button.password-toggle:hover {
    background: rgba(192, 132, 252, 0.18);
    color: #7c3aed;
}

button.password-toggle:focus-visible {
    outline: 2px solid #c084fc;
    outline-offset: 2px;
}

body.auth-page button.password-toggle {
    color: #a78bfa;
}

body.auth-page button.password-toggle:hover {
    background: rgba(244, 114, 182, 0.15);
    color: #db2777;
}

/* Desktop: cartão mais próximo da margem direita (equilíbrio visual, não colado na borda) */
@media (min-width: 801px) {
    body.auth-page .container.auth-shell {
        align-items: flex-end;
        padding-right: clamp(2rem, 9vw, 7rem);
    }

    body.auth-page .container.auth-shell .messages {
        align-self: flex-end;
        max-width: min(400px, 100%);
    }

    body.auth-page .auth-card {
        position: relative;
        left: auto;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 800px) {
    /* Mantém a arte: enquadramento puxado à direita para esconder a nuvem (esquerda) e mostrar o restante */
    body.auth-page {
        background-color: #faf8f5;
        background-image: url("https://i.imgur.com/9P1xQEx.jpeg");
        background-size: cover;
        background-position: 90% top;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }

    body.auth-page .container.auth-shell {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-top: max(0.75rem, env(safe-area-inset-top));
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
        min-height: calc(100dvh - 3.5rem);
        min-height: calc(100vh - 3.5rem);
        justify-content: center;
        align-items: stretch;
    }

    body.auth-page .container.auth-shell .messages {
        align-self: stretch;
        max-width: none;
    }

    body.auth-page .auth-card {
        position: static;
        left: auto;
        align-self: center;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        max-width: min(21rem, calc(100vw - 1.75rem));
        padding: 1.15rem 1.05rem 1.1rem;
        border-radius: 24px;
    }

    body.auth-page .auth-card-title {
        font-size: 1.28rem;
    }

    body.auth-page .auth-card-lead {
        font-size: 0.88rem;
    }

    body.auth-page .auth-card-note {
        font-size: 0.78rem;
    }

    body.auth-page .auth-card-footer {
        font-size: 0.85rem;
    }

    .grid-two {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-wrap: wrap;
    }

    .recent-list li {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .recent-type {
        grid-row: auto;
    }

    .recent-date {
        grid-column: 1;
    }
}

/* Safari iOS / Chrome Android: zoom ao focar quando o texto computado do campo é < 16px */
@media screen and (max-width: 900px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="range"]):not([type="image"]):not([type="reset"]),
    select,
    textarea {
        font-size: 16px !important;
    }
}
