/* ==========================================================================
   Instituto VivaBem — Sistema de gestão
   Design system moderno, otimizado para tablet e mobile (touch-first).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Paleta primária — verde sálvia/jade */
    --c-primary-50:  #eef9f4;
    --c-primary-100: #d4f0e3;
    --c-primary-200: #abe1c8;
    --c-primary-300: #7cccaa;
    --c-primary-400: #4eb38c;
    --c-primary-500: #2f9b75;   /* base */
    --c-primary-600: #258060;
    --c-primary-700: #1e664d;
    --c-primary-800: #194f3c;
    --c-primary-900: #0c2519;

    /* Accent quente (inspirado no template inapp) */
    --c-accent:     #f97f4e;
    --c-accent-bg:  #fff0e7;

    /* Neutras */
    --c-bg:        #f6f8fb;
    --c-surface:   #ffffff;
    --c-text:      #1a2228;
    --c-text-soft: #4a5762;
    --c-muted:     #8492a2;
    --c-border:    #e6ebf1;
    --c-border-strong: #d1d9e2;

    /* Estados */
    --c-success:    #16a06b;
    --c-success-bg: #e6f7ee;
    --c-danger:     #e2453b;
    --c-danger-bg:  #fdebe8;
    --c-warning:    #d99117;
    --c-warning-bg: #fdf3dd;
    --c-info:       #1f78c8;
    --c-info-bg:    #e6f1fb;

    /* Atalhos semânticos */
    --primary:        var(--c-primary-500);
    --primary-dark:   var(--c-primary-700);
    --primary-light:  var(--c-primary-100);

    /* Tipografia, espaçamento e formas */
    --font: "Inter", -apple-system, "Segoe UI", "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
    --fs-xs: 11px;
    --fs-sm: 13px;
    --fs:    14.5px;
    --fs-md: 16px;
    --fs-lg: 20px;
    --fs-xl: 26px;
    --fs-2xl: 32px;

    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 22px;
    --radius-full: 999px;

    --shadow-sm: 0 2px 6px rgba(17, 35, 25, .04);
    --shadow:    0 6px 24px rgba(17, 35, 25, .06), 0 2px 6px rgba(17, 35, 25, .04);
    --shadow-lg: 0 18px 38px rgba(17, 35, 25, .14), 0 6px 14px rgba(17, 35, 25, .07);
    --ring:      0 0 0 4px var(--c-primary-100);
    --ring-soft: 0 0 0 3px rgba(47,155,117,.18);

    --t-fast:  120ms cubic-bezier(.4,0,.2,1);
    --t:       200ms cubic-bezier(.4,0,.2,1);
    --t-slow:  320ms cubic-bezier(.4,0,.2,1);

    /* Tamanhos touch-friendly */
    --touch-h: 44px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    color: var(--c-text);
    background: var(--c-bg);
    font-size: var(--fs);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--c-primary-700); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-primary-500); text-decoration: underline; }

::selection { background: var(--c-primary-200); color: var(--c-primary-900); }

/* ==========================================================================
   Sidebar lateral
   ========================================================================== */
:root {
    --sidebar-w: 256px;
    --sidebar-w-collapsed: 72px;
}

.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: linear-gradient(180deg, #0e2419 0%, #0c2519 100%);
    color: #fff;
    box-shadow: 0 0 22px rgba(0,0,0,.10);
    display: flex;
    flex-direction: column;
    z-index: 90;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.sidebar::before {
    content: "";
    position: absolute;
    inset: 0 0 70% 0;
    background: radial-gradient(circle at 20% 0%, rgba(47,155,117,.22), transparent 60%);
    pointer-events: none;
}
.sidebar a { color: rgba(255,255,255,.88); transition: color var(--t-fast), background var(--t-fast); }
.sidebar a:hover { color: #fff; text-decoration: none; }

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    position: relative;
}
.sidebar-collapse {
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast), transform var(--t-fast);
    flex: 0 0 auto;
    padding: 0;
}
.sidebar-collapse:hover { background: rgba(255,255,255,.18); }
.sidebar-brand .brand-mark {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .5px;
    box-shadow: 0 2px 6px rgba(0,0,0,.20);
    object-fit: cover;
    overflow: hidden;
}
.sidebar-brand img.brand-mark { padding: 0; }
.sidebar-brand .brand-text {
    line-height: 1.15;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.sidebar-brand .brand-text strong {
    font-size: var(--fs-md);
    font-weight: 700;
    letter-spacing: .1px;
    color: #fff;
}
.sidebar-brand .brand-text small {
    font-size: 11px;
    opacity: .75;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 10px;
    flex: 1;
}
.sidebar-group {
    color: rgba(255,255,255,.55);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 14px 14px 6px;
    margin-top: 4px;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    font-weight: 500;
    font-size: var(--fs-sm);
    letter-spacing: .1px;
    line-height: 1.2;
    position: relative;
}
.sidebar-nav a .ico {
    font-size: 18px;
    line-height: 1;
    width: 22px;
    text-align: center;
    opacity: .9;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.08); }
.sidebar-nav a.active {
    background: rgba(255,255,255,.14);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--c-primary-300);
}

.sidebar-user {
    padding: 14px 14px 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar-user .user-line {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}
.sidebar-user .user-name {
    font-size: var(--fs-sm);
    color: #fff;
    font-weight: 600;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-user .user-badge {
    background: rgba(255,255,255,.18);
    color: #fff;
    border-color: rgba(255,255,255,.22);
    font-weight: 600;
    flex-shrink: 0;
}
.sidebar-user .btn {
    background: rgba(255,255,255,.10);
    color: #fff;
    border-color: rgba(255,255,255,.22);
}
.sidebar-user .btn:hover {
    background: rgba(255,255,255,.20);
    color: #fff;
    text-decoration: none;
    border-color: rgba(255,255,255,.32);
}

/* Topbar mobile (visivel apenas em telas pequenas) */
.topbar-mobile {
    display: none;
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(135deg, var(--c-primary-700), var(--c-primary-500));
    color: #fff;
    padding: 0 14px;
    height: 56px;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}
.topbar-mobile .topbar-mobile-title {
    font-weight: 700;
    font-size: var(--fs-md);
}
.menu-toggle {
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,35,50,.55);
    backdrop-filter: blur(2px);
    z-index: 85;
    animation: fadeIn 180ms both;
}
body.sidebar-open .sidebar-backdrop { display: block; }

/* === Sidebar colapsada (desktop) ============================== */
body.sidebar-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
body.sidebar-collapsed .sidebar .sidebar-brand {
    justify-content: center;
    padding: 16px 8px 14px;
    flex-direction: column;
    gap: 8px;
}
body.sidebar-collapsed .sidebar .sidebar-brand .brand-text { display: none; }
body.sidebar-collapsed .sidebar .sidebar-brand .brand-mark {
    width: 38px; height: 38px; font-size: 14px; border-radius: 10px;
}
/* Botao de colapso fica "flutuante" na borda da sidebar */
body.sidebar-collapsed .sidebar .sidebar-collapse {
    position: absolute;
    right: -14px;
    top: 22px;
    background: var(--c-primary-500);
    border-color: var(--c-primary-600);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    z-index: 91;
    width: 28px;
    height: 28px;
    font-size: 13px;
}
body.sidebar-collapsed .sidebar .sidebar-nav { padding: 10px 10px; gap: 4px; }
body.sidebar-collapsed .sidebar .sidebar-nav a {
    justify-content: center;
    padding: 12px 8px;
    border-radius: 10px;
}
body.sidebar-collapsed .sidebar .sidebar-nav a .ico { font-size: 20px; opacity: 1; width: auto; }
body.sidebar-collapsed .sidebar .sidebar-nav a .lbl { display: none; }
body.sidebar-collapsed .sidebar .sidebar-nav a.active { box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }

/* "CATÁLOGO" / "ADMINISTRAÇÃO" viram um divisor limpo */
body.sidebar-collapsed .sidebar .sidebar-group {
    font-size: 0;
    color: transparent;
    padding: 0;
    height: 1px;
    margin: 8px 14px;
    background: rgba(255,255,255,.15);
    border-radius: 1px;
    overflow: hidden;
}

body.sidebar-collapsed .sidebar .sidebar-user {
    padding: 10px 8px 12px;
    border-top: 1px solid rgba(255,255,255,.08);
}
body.sidebar-collapsed .sidebar .sidebar-user .user-line { display: none; }
body.sidebar-collapsed .sidebar .sidebar-user .btn {
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin: 0 auto;
    min-height: 40px;
    font-size: 11px;
}

body.sidebar-collapsed .container.with-sidebar {
    margin-left: calc(var(--sidebar-w-collapsed) + 32px);
    max-width: calc(1320px - var(--sidebar-w-collapsed));
}
.sidebar { transition: width var(--t); }
.container.with-sidebar { transition: margin-left var(--t), max-width var(--t); }

/* Tooltip ao passar mouse nos itens colapsados */
body.sidebar-collapsed .sidebar-nav a[data-tip] { position: relative; }
body.sidebar-collapsed .sidebar-nav a[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--c-text);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: var(--fs-xs);
    white-space: nowrap;
    box-shadow: var(--shadow);
    z-index: 100;
    pointer-events: none;
}

/* ==========================================================================
   Container e Page Header
   ========================================================================== */
.container {
    max-width: 1320px;
    margin: 28px auto;
    padding: 0 24px;
    animation: pageIn var(--t-slow) both;
}
.container.with-sidebar {
    margin-left: calc(var(--sidebar-w) + 32px);
    max-width: calc(1320px - var(--sidebar-w));
    margin-right: 32px;
}
@keyframes pageIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.page-header h1 {
    margin: 0;
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -.2px;
    color: var(--c-text);
}
.page-header .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px 26px;
    margin-bottom: 22px;
    transition: box-shadow var(--t), transform var(--t);
    animation: cardIn 400ms both;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.card:hover { box-shadow: var(--shadow); }

.card h2 {
    margin: 0 0 16px;
    padding-bottom: 12px;
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--c-primary-700);
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.card h3 {
    margin: 0 0 10px;
    font-size: var(--fs-xs);
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 700;
}

/* ==========================================================================
   Tabelas
   ========================================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--c-surface);
}
.card > table {
    margin: 4px -24px -22px;
    width: calc(100% + 48px);
}
table th, table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
    vertical-align: middle;
    font-size: var(--fs-sm);
}
table th {
    background: var(--c-primary-50);
    color: var(--c-primary-800);
    font-weight: 600;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: .6px;
    border-bottom-color: var(--c-primary-100);
    white-space: nowrap;
}
table tbody tr { transition: background var(--t-fast); }
table tbody tr:hover td { background: var(--c-primary-50); }
table tr:last-child td { border-bottom: none; }
table td.actions, table th.actions { text-align: right; white-space: nowrap; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ==========================================================================
   Formulários — touch-friendly
   ========================================================================== */
form .row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}
form .col-1  { grid-column: span 1; }
form .col-2  { grid-column: span 2; }
form .col-3  { grid-column: span 3; }
form .col-4  { grid-column: span 4; }
form .col-5  { grid-column: span 5; }
form .col-6  { grid-column: span 6; }
form .col-8  { grid-column: span 8; }
form .col-9  { grid-column: span 9; }
form .col-12 { grid-column: span 12; }

form label {
    display: block;
    font-size: var(--fs-xs);
    color: var(--c-text-soft);
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
}

form input[type=text],
form input[type=email],
form input[type=password],
form input[type=date],
form input[type=time],
form input[type=number],
form input[type=tel],
form input[type=search],
form select,
form textarea {
    width: 100%;
    min-height: var(--touch-h);
    padding: 10px 14px;
    border: 1.5px solid var(--c-border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--c-text);
    font-size: var(--fs);
    font-family: inherit;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
    -webkit-appearance: none;
            appearance: none;
}
form input::placeholder, form textarea::placeholder { color: var(--c-muted); opacity: .8; }
form input[type=checkbox] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--c-primary-500);
    margin: 0;
}
form input:hover, form select:hover, form textarea:hover { border-color: var(--c-primary-300); }
form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: var(--c-primary-500);
    box-shadow: var(--ring);
    background: #fff;
}
form input:disabled, form input[readonly],
form textarea:disabled, form textarea[readonly] {
    background: var(--c-bg);
    color: var(--c-text-soft);
    cursor: not-allowed;
}
form textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
    padding: 12px 14px;
}
/* Select com caret customizado */
form select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%237d8a93' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
form input[type=date], form input[type=time] {
    /* Em iOS/Safari os inputs nativos respeitam altura mas precisam de padding */
    padding-top: 10px;
    padding-bottom: 10px;
}
form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}

/* Mostrador de informação dentro de col (somente leitura) */
form .row > [class*="col-"] > label + label { /* checkboxes inline */
    margin-bottom: 0;
    text-transform: none;
    font-size: var(--fs);
    color: var(--c-text);
    font-weight: 500;
}

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--touch-h);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: .2px;
    text-decoration: none;
    transition: transform var(--t-fast), background var(--t-fast),
                box-shadow var(--t-fast), border-color var(--t-fast), color var(--t-fast);
    font-family: inherit;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-primary {
    background: linear-gradient(180deg, var(--c-primary-500), var(--c-primary-600));
    color: #fff;
    border-color: var(--c-primary-600);
    box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 1px 0 rgba(255,255,255,.18) inset;
}
.btn-primary:hover {
    background: linear-gradient(180deg, var(--c-primary-600), var(--c-primary-700));
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(12,105,117,.32);
}
.btn-secondary {
    background: #fff;
    color: var(--c-text);
    border-color: var(--c-border-strong);
}
.btn-secondary:hover {
    background: var(--c-primary-50);
    color: var(--c-primary-800);
    border-color: var(--c-primary-300);
    text-decoration: none;
}
.btn-danger {
    background: linear-gradient(180deg, var(--c-danger), #b53627);
    color: #fff;
    border-color: #b53627;
    box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 1px 0 rgba(255,255,255,.16) inset;
}
.btn-danger:hover {
    background: linear-gradient(180deg, #c83d2f, #952b1f);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(217, 68, 54, .35);
}
.btn-sm {
    min-height: 34px;
    padding: 6px 12px;
    font-size: var(--fs-xs);
    border-radius: 6px;
}
.btn-block { display: flex; width: 100%; }

/* ==========================================================================
   Badges
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1.1;
    text-transform: none;
    border: 1px solid transparent;
}
.badge-primary { background: var(--c-primary-50);   color: var(--c-primary-800); border-color: var(--c-primary-100); }
.badge-success { background: var(--c-success-bg);   color: var(--c-success);     border-color: #c6ecda; }
.badge-warning { background: var(--c-warning-bg);   color: var(--c-warning);     border-color: #f4dfae; }
.badge-danger  { background: var(--c-danger-bg);    color: var(--c-danger);      border-color: #f4c8c2; }
.badge-muted   { background: #eef2f4;               color: var(--c-muted);       border-color: #e2e8ed; }

/* ==========================================================================
   Flash messages
   ========================================================================== */
.flash {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: var(--fs-sm);
    font-weight: 500;
    border-left: 4px solid;
    animation: flashIn 280ms both;
}
@keyframes flashIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}
.flash-success { background: var(--c-success-bg);   color: var(--c-success);  border-left-color: var(--c-success); }
.flash-error   { background: var(--c-danger-bg);    color: var(--c-danger);   border-left-color: var(--c-danger); }
.flash-info    { background: var(--c-info-bg);      color: var(--c-info);     border-left-color: var(--c-info); }

/* ==========================================================================
   Login
   ========================================================================== */
.login-bg {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 0%, var(--c-primary-400) 0%, transparent 40%),
                radial-gradient(circle at 80% 100%, var(--c-primary-700) 0%, transparent 50%),
                linear-gradient(135deg, var(--c-primary-600), var(--c-primary-800));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-card {
    background: #fff;
    padding: 38px 34px;
    border-radius: var(--radius-lg);
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: popIn 360ms cubic-bezier(.21,1.02,.73,1) both;
}
@keyframes popIn {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}
.login-card h1 {
    margin: 0 0 4px;
    color: var(--c-primary-800);
    font-size: var(--fs-2xl);
    font-weight: 700;
    letter-spacing: -.5px;
}
.login-card .subtitle {
    color: var(--c-muted);
    margin: 0 0 26px;
    font-size: var(--fs-sm);
}

/* ==========================================================================
   Tabs
   ========================================================================== */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--c-border);
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1px;
}
.tabs a {
    padding: 12px 18px;
    color: var(--c-text-soft);
    border-bottom: 2px solid transparent;
    font-weight: 600;
    font-size: var(--fs-sm);
    transition: color var(--t-fast), border-color var(--t-fast);
    white-space: nowrap;
    position: relative;
    top: 1px;
}
.tabs a:hover { color: var(--c-primary-700); text-decoration: none; }
.tabs a.active {
    color: var(--c-primary-700);
    border-bottom-color: var(--c-primary-500);
}

/* ==========================================================================
   KPIs
   ========================================================================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.kpi {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kpi .kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.kpi .ico-circle {
    width: 44px; height: 44px;
    border-radius: 14px;
    background: var(--c-primary-50);
    color: var(--c-primary-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: 0 0 auto;
}
.kpi.kpi-accent .ico-circle { background: var(--c-accent-bg); color: var(--c-accent); }
.kpi.kpi-success .ico-circle { background: var(--c-success-bg); color: var(--c-success); }
.kpi.kpi-warning .ico-circle { background: var(--c-warning-bg); color: var(--c-warning); }
.kpi .label {
    font-size: var(--fs-sm);
    color: var(--c-muted);
    font-weight: 600;
}
.kpi .value {
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: var(--c-text);
    margin-top: 2px;
    letter-spacing: -.6px;
    line-height: 1.05;
}
.kpi .kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--fs-xs);
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: var(--c-success-bg);
    color: var(--c-success);
}
.kpi .kpi-trend.down { background: var(--c-danger-bg); color: var(--c-danger); }
.kpi .kpi-trend.flat { background: #eef2f4; color: var(--c-muted); }
.kpi .kpi-foot { font-size: var(--fs-xs); color: var(--c-muted); }

/* ==========================================================================
   Treino — checklist
   ========================================================================== */
.treino-ex {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--t);
}
.treino-ex:hover { box-shadow: var(--shadow); }
.treino-ex-head {
    padding: 14px 18px;
    background: linear-gradient(180deg, var(--c-primary-50), #fbfdfd);
    border-bottom: 1px solid var(--c-primary-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.treino-ex-head h3 {
    margin: 0;
    font-size: var(--fs-md);
    color: var(--c-primary-800);
    text-transform: none;
    letter-spacing: -.1px;
    font-weight: 600;
}
.treino-ex-head .meta {
    font-size: var(--fs-sm);
    color: var(--c-text-soft);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.serie-grid {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.serie-box {
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    background: #fff;
    transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.serie-box:hover { border-color: var(--c-primary-300); }
.serie-box.done {
    background: var(--c-success-bg);
    border-color: #aedfc4;
    box-shadow: 0 1px 0 rgba(22,160,107,.15) inset;
}
.serie-box label {
    font-size: var(--fs-xs);
    color: var(--c-muted);
    display: block;
    margin: 6px 0 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 700;
}
.serie-box input[type=text] {
    padding: 8px 10px;
    font-size: var(--fs-sm);
    min-height: 38px;
}
.serie-box .head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.serie-box .head strong {
    font-size: var(--fs-sm);
    color: var(--c-primary-800);
    font-weight: 700;
}
.serie-box input[type=checkbox] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--c-primary-500);
}

/* ==========================================================================
   Calendário
   ========================================================================== */
table.cal td {
    border: 1px solid var(--c-border);
    padding: 8px 10px;
    vertical-align: top;
    height: 96px;
    background: #fff;
    transition: background var(--t-fast);
}
table.cal td:hover { background: var(--c-primary-50); }
table.cal td.cal-out { background: #f4f6f8; color: var(--c-muted); }
table.cal td.cal-today {
    background: var(--c-primary-50);
    box-shadow: inset 0 0 0 2px var(--c-primary-500);
    border-color: var(--c-primary-500);
}

/* ==========================================================================
   Utilitários
   ========================================================================== */
.muted { color: var(--c-muted); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.empty {
    text-align: center;
    padding: 38px 20px;
    color: var(--c-muted);
    font-style: italic;
    font-size: var(--fs-sm);
}
.divider {
    height: 1px;
    background: var(--c-border);
    margin: 16px 0;
    border: 0;
}
.inline-form { display: inline-block; margin: 0; }

/* Linha de "campo: valor" em modo visualização (fora de <form>) */
.card .row > [class*="col-"] > label,
.card .row > [class*="col-"] label:first-child {
    display: block !important;
    font-size: var(--fs-xs);
    color: var(--c-muted);
    margin: 0 0 4px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    line-height: 1.3;
}
/* Linha do valor logo abaixo do rótulo — fonte um pouco maior e cor mais escura */
.card .row > [class*="col-"] {
    font-size: var(--fs);
    color: var(--c-text);
    line-height: 1.45;
    padding-bottom: 4px;
}
.card .row > [class*="col-"] strong { font-weight: 600; }
/* Lista "label: valor" verticalizada (modo visualização vertical) */
.card .field-list { display: flex; flex-direction: column; gap: 10px; }
.card .field-list .field { display: grid; grid-template-columns: 180px 1fr; gap: 12px; align-items: baseline; }
.card .field-list .field > .lbl {
    color: var(--c-muted);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 700;
}
.card .field-list .field > .val { color: var(--c-text); font-weight: 500; }
@media (max-width: 640px) {
    .card .field-list .field { grid-template-columns: 1fr; gap: 2px; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

/* === Desktop largo (>1400px): sidebar fixa, conteudo respira === */
@media (min-width: 1400px) {
    .container.with-sidebar { margin-right: 40px; }
}

/* === Tablet landscape (1024px-1280px) ========================= */
@media (max-width: 1280px) and (min-width: 901px) {
    .container.with-sidebar {
        margin-left: calc(var(--sidebar-w) + 24px);
        margin-right: 24px;
        max-width: none;
    }
}

/* === Tablet retrato e telas medias ============================ */
@media (max-width: 1024px) {
    .container { padding: 0 18px; margin: 20px auto; }
    form .row { gap: 14px; }
    /* colunas pequenas viram metade no tablet */
    form .row .col-1, form .row .col-2, form .row .col-3 { grid-column: span 6; }
    form .row .col-4, form .row .col-5 { grid-column: span 6; }
    form .row .col-8, form .row .col-9 { grid-column: span 12; }
    .page-header h1 { font-size: var(--fs-lg); }
}

/* === Sidebar vira drawer no tablet menor + celular ============ */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--t);
        width: 280px;
    }
    .sidebar.open { transform: translateX(0); box-shadow: 0 0 32px rgba(0,0,0,.32); }
    .topbar-mobile { display: flex; }
    .container.with-sidebar {
        margin-left: auto;
        margin-right: auto;
        max-width: 1320px;
    }
    /* No mobile o botão de colapsar funciona como "fechar drawer" */
    body.sidebar-collapsed .sidebar { width: 280px; }
    body.sidebar-collapsed .sidebar .brand-text { display: flex; }
    body.sidebar-collapsed .sidebar .sidebar-nav a { justify-content: flex-start; padding: 11px 14px; }
    body.sidebar-collapsed .sidebar .sidebar-nav a .lbl { display: inline; }
    body.sidebar-collapsed .sidebar-collapse { position: relative; right: 0; top: 0; }
    body.sidebar-collapsed .container.with-sidebar { margin-left: auto; max-width: 1320px; }
}

/* === Celular ================================================== */
@media (max-width: 768px) {
    :root {
        --fs:    16px;
        --touch-h: 48px;
    }
    .container, .container.with-sidebar { padding: 0 14px; margin: 14px auto; }
    .page-header { flex-direction: column; align-items: stretch; gap: 10px; }
    .page-header h1 { font-size: var(--fs-lg); }
    .page-header .actions { width: 100%; flex-wrap: wrap; }
    .page-header .actions .btn { flex: 1 1 auto; min-width: 0; }

    .card { padding: 18px 16px; border-radius: var(--radius); }
    .card > table { margin: 4px -16px -18px; width: calc(100% + 32px); }

    /* Tabelas com scroll horizontal e fontes ajustadas */
    .card { overflow-x: auto; }
    .card table { font-size: var(--fs-sm); min-width: 100%; }
    table th, table td { padding: 10px 12px; }

    /* Todas as colunas viram full width */
    form .row > [class*="col-"] { grid-column: span 12; }
    form .row { gap: 12px; }

    .login-card { padding: 28px 22px; }

    .kpi { padding: 14px 16px; }
    .kpi .value { font-size: var(--fs-xl); }

    .tabs a { padding: 10px 14px; font-size: var(--fs-xs); }

    .row-actions { justify-content: flex-start; }
    .row-actions .btn { width: 100%; }
    .row-actions form { width: 100%; }
    .row-actions form .btn { width: 100%; }
}

/* === Celular estreito ========================================= */
@media (max-width: 480px) {
    .container, .container.with-sidebar { padding: 0 12px; }
    .card { padding: 14px 14px; }
    .card > table { margin: 4px -14px -14px; width: calc(100% + 28px); }
    .login-card { padding: 22px 18px; border-radius: var(--radius); }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .kpi { padding: 12px; }
    .kpi .value { font-size: var(--fs-lg); }
    table.cal td { height: 64px; padding: 4px 6px; font-size: 10px; }
    table.cal td > div:first-child { font-size: 12px; }
    .sidebar-brand .brand-text small { display: none; }
    /* Botoes em row-actions empilham com gap */
    .row-actions { flex-direction: column; gap: 6px; }
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 35, 50, .55);
    backdrop-filter: blur(2px);
    animation: fadeIn 180ms both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
    position: relative;
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 680px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow: auto;
    animation: popIn 240ms cubic-bezier(.21,1.02,.73,1) both;
    border: 1px solid var(--c-border);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--c-border);
    background: linear-gradient(180deg, var(--c-primary-50), #fff);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-header h2 {
    margin: 0;
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--c-primary-800);
    border: 0;
    padding: 0;
    letter-spacing: -.2px;
}
.modal-close {
    background: transparent;
    border: 0;
    font-size: 26px;
    line-height: 1;
    color: var(--c-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    transition: background var(--t-fast), color var(--t-fast);
}
.modal-close:hover { background: var(--c-bg); color: var(--c-text); }
body.modal-open { overflow: hidden; }

@media (max-width: 640px) {
    .modal { padding: 0; align-items: flex-end; }
    .modal-content { max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 92vh; }
}

/* ==========================================================================
   Dashboard widgets (charts, top list)
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
.grid-2 > * { margin: 0; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }

.dash-stack { display: block; }
.dash-stack > .card { width: 100%; }

/* ==========================================================================
   Cronômetro
   ========================================================================== */
.cronometro-card { padding: 14px 18px; }
.cron-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cron-display {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: 38px;
    letter-spacing: 1px;
    color: var(--c-primary-800);
    background: var(--c-primary-50);
    border: 1px solid var(--c-primary-100);
    border-radius: var(--radius-sm);
    padding: 6px 18px;
    min-width: 150px;
    text-align: center;
}
.cron-display.running { color: #fff; background: var(--c-primary-500); border-color: var(--c-primary-600); }
.cron-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ==========================================================================
   Página embed (treino dentro de iframe)
   ========================================================================== */
body.embed-page { background: var(--c-bg); }
body.embed-page .page-header { margin-bottom: 14px; }
body.embed-page .page-header h1 { font-size: var(--fs-md); }

/* ==========================================================================
   Treino duplo (split 50/50)
   ========================================================================== */
.split-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    height: calc(100vh - 150px);
    min-height: 480px;
}
.split-col {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-surface);
    box-shadow: var(--shadow-sm);
}
.split-col-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--c-primary-700);
    color: #fff;
    flex: 0 0 auto;
}
.split-col-head select {
    flex: 1;
    min-height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.1);
    color: #fff;
    padding: 6px 10px;
    font-size: var(--fs-sm);
}
.split-col-head select option { color: #1a2228; }
.split-col iframe {
    flex: 1 1 auto;
    width: 100%;
    border: 0;
    background: #fff;
}
@media (max-width: 900px) {
    .split-view { grid-template-columns: 1fr; height: auto; }
    .split-col { height: 70vh; }
}

/* ==========================================================================
   Treinos (abas estilo planilha — 1 a 4 alunos)
   ========================================================================== */
.treinos-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: -1px; /* abas encostam no painel */
}
.treinos-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.treino-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--c-border);
    border-bottom: none;
    background: var(--c-bg);
    color: var(--c-text-soft);
    padding: 9px 14px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    font-weight: 600;
    font-size: var(--fs-sm);
    max-width: 220px;
}
.treino-tab .tab-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--c-border);
    color: var(--c-text);
    font-size: 12px;
    flex: 0 0 auto;
}
.treino-tab .tab-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.treino-tab.active {
    background: var(--c-primary-700);
    color: #fff;
    border-color: var(--c-primary-700);
}
.treino-tab.active .tab-num { background: rgba(255,255,255,.25); color: #fff; }
.treinos-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.treinos-tools select,
.treinos-tools input[type=date] { min-height: 38px; }

.treino-panels { height: calc(100vh - 210px); min-height: 460px; }
.treino-panel {
    display: none;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--c-border);
    border-radius: 0 var(--radius) var(--radius) var(--radius);
    overflow: hidden;
    background: var(--c-surface);
    box-shadow: var(--shadow-sm);
}
.treino-panel.active { display: flex; }
.treino-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--c-primary-700);
    color: #fff;
    flex: 0 0 auto;
}
.treino-panel-head select,
.treino-panel-head input[type=text] {
    flex: 1;
    min-width: 0;
    min-height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.12);
    color: #fff;
    padding: 6px 10px;
    font-size: var(--fs-sm);
}
.treino-panel-head select option { color: #1a2228; }
.treino-panel-head input[type=text]::placeholder { color: rgba(255,255,255,.7); }
.treino-panel .frame-holder { flex: 1 1 auto; display: flex; min-height: 0; }
.treino-panel .frame-holder iframe { flex: 1 1 auto; width: 100%; border: 0; background: #fff; }
@media (max-width: 900px) {
    .treino-panels { height: auto; }
    .treino-panel.active { height: 72vh; }
}

/* Autocomplete de aluno (mostra os nomes conforme digita) */
.aluno-ac-pop {
    position: fixed;
    z-index: 1000;
    background: #fff;
    color: var(--c-text);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(16, 40, 34, .22);
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
    -webkit-overflow-scrolling: touch;
}
.aluno-ac-pop .ac-item {
    padding: 10px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-size: var(--fs-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.aluno-ac-pop .ac-item:hover,
.aluno-ac-pop .ac-item.active { background: var(--c-primary-50); color: var(--c-primary-700); }
.aluno-ac-pop .ac-empty { padding: 12px; color: var(--c-muted); font-size: var(--fs-sm); }

.chart-wrap {
    position: relative;
    height: 280px;
    width: 100%;
}
.chart-wrap.sm { height: 220px; }
.chart-wrap.lg { height: 340px; }

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    font-size: var(--fs-sm);
    color: var(--c-text-soft);
}
.chart-legend .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}

.top-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.top-list li {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 12px;
}
.top-list .avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary-300), var(--c-primary-500));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--fs-sm);
}
.top-list .meta { min-width: 0; }
.top-list .meta strong { display: block; font-size: var(--fs-sm); color: var(--c-text); }
.top-list .meta .bar {
    margin-top: 4px;
    height: 6px;
    background: var(--c-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.top-list .meta .bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--c-primary-500), var(--c-primary-300));
    border-radius: var(--radius-full);
}
.top-list .num { font-weight: 700; font-size: var(--fs-md); color: var(--c-primary-800); }

.donut-stat {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 16px;
}
.donut-stat .legend-block { display: flex; flex-direction: column; gap: 10px; }
.donut-stat .legend-block .line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.donut-stat .legend-block .line .lab { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--c-text-soft); }
.donut-stat .legend-block .line .val { font-weight: 700; color: var(--c-text); }

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 16px;
}
.section-title h2 {
    margin: 0;
    border: 0;
    padding: 0;
}
.section-title .sub { font-size: var(--fs-sm); color: var(--c-muted); font-weight: 500; }

/* ==========================================================================
   Modo impressão / PDF
   ========================================================================== */
.print-header { display: none; }
@media print {
    @page { margin: 14mm 12mm; size: A4; }
    body { background: #fff !important; }
    .sidebar, .topbar-mobile, .sidebar-backdrop, .tabs, .page-header, .modal,
    .no-print, .row-actions, .form-actions, button, .btn { display: none !important; }
    .container, .container.with-sidebar {
        margin: 0 !important; padding: 0 !important; max-width: none !important;
    }
    .card {
        box-shadow: none !important;
        border: 0 !important;
        page-break-inside: avoid;
        padding: 0 !important;
        margin: 0 0 8mm !important;
        animation: none !important;
    }
    .card h2 {
        font-size: 13pt;
        color: #000 !important;
        border-bottom: 1px solid #000 !important;
        padding-bottom: 4px !important;
        margin: 0 0 6px !important;
    }
    .card > table { margin: 0 !important; width: 100% !important; }
    table { font-size: 9.5pt; }
    table th { background: #eef !important; color: #000 !important; border-bottom: 1px solid #000 !important; }
    table td { border-bottom: 1px solid #ddd !important; }
    .print-header {
        display: block !important;
        margin-bottom: 8mm;
        padding-bottom: 4mm;
        border-bottom: 2px solid var(--c-primary-700);
    }
    .print-header h1 { color: var(--c-primary-800) !important; }
    .print-header small { color: #555; }
    .empty, .muted { color: #666 !important; }
    .badge { border: 1px solid #aaa !important; background: #f3f3f3 !important; color: #000 !important; }
    .flash { display: none !important; }
    a[href]:after { content: ''; }
}

/* Acessibilidade — reduz animações */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}
