/* Portal do Vidro — Tools Design System v3 */

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

:root {
    --bg-deep:       #071828;
    --bg:            #0a2236;
    --bg-surface:    #0d2d46;
    --card:          rgba(255,255,255,0.06);
    --card-solid:    #0e3352;
    --text:          #e8f4ff;
    --text-dim:      #b0cfe8;
    --muted:         #7a9ab8;
    --primary:       #2A7DB8;
    --primary-dark:  #1f6094;
    --primary-light: rgba(42,125,184,0.18);
    --accent:        #7EC8FF;
    --accent-soft:   rgba(126,200,255,0.12);
    --border:        rgba(126,200,255,0.14);
    --border-solid:  rgba(126,200,255,0.24);
    --danger:        #f87171;
    --danger-bg:     rgba(248,113,113,0.12);
    --danger-border: rgba(248,113,113,0.35);
    --success:       #34d399;
    --success-bg:    rgba(52,211,153,0.12);
    --canvas-bg:     rgba(7,24,40,0.5);
    --radius:        14px;
    --radius-sm:     9px;
    --shadow:        0 1px 3px rgba(0,0,0,.3), 0 4px 20px rgba(0,0,0,.35);
    --shadow-lg:     0 12px 50px rgba(0,0,0,.55);
    --glass-blur:    blur(18px);
}

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(42,125,184,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 90%, rgba(126,200,255,0.08) 0%, transparent 55%);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── NAVIGATION ──────────────────────────────────────── */

.site-nav {
    background: rgba(7,24,40,0.85);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 56px;
}

.nav-logo {
    font-weight: 700;
    font-size: 0.94rem;
    color: var(--accent);
    text-decoration: none;
    flex-shrink: 0;
    letter-spacing: -0.02em;
    margin-right: 8px;
}

.nav-logo span { color: var(--text-dim); font-weight: 500; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
    display: block;
    padding: 5px 11px;
    border-radius: 7px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color .14s, background .14s;
}

.nav-links a:hover        { color: var(--text); background: var(--accent-soft); }
.nav-links a.active       { color: var(--accent); background: var(--primary-light); font-weight: 600; }

.nav-cta {
    margin-left: auto;
    flex-shrink: 0;
    background: transparent;
    color: var(--accent) !important;
    padding: 7px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1.5px solid var(--border-solid);
    cursor: pointer;
    font-family: inherit;
    transition: background .14s, border-color .14s;
    line-height: normal;
}

.nav-cta:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

@media (max-width: 640px) { .nav-links { display: none; } }

/* ── LAYOUT ──────────────────────────────────────────── */

.wrapper {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.header { margin-bottom: 26px; }

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-top: 8px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text) 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 580px;
    font-size: 0.925rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

@media (min-width: 960px) {
    .grid { grid-template-columns: 1.15fr 0.85fr; }
}

/* ── CARDS ───────────────────────────────────────────── */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.card h2 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin: 0 0 16px;
}

/* ── FORMS ───────────────────────────────────────────── */

.form-row {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

@media (min-width: 560px) {
    .form-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 760px) {
    .form-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .form-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.field { display: flex; flex-direction: column; gap: 5px; }

.field label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: 0.9rem;
    font-family: inherit;
    background: rgba(255,255,255,0.05);
    color: var(--text);
    transition: border-color .15s, box-shadow .15s, background .15s;
    outline: none;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 0.7; }

.field select option { background: #0d2d46; color: var(--text); }

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--primary);
    background: rgba(42,125,184,0.08);
    box-shadow: 0 0 0 3px rgba(42,125,184,.2);
}

.field input.error,
.field select.error,
.field textarea.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(248,113,113,.18);
}

.field input[type="number"] { font-variant-numeric: tabular-nums; }

.field label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
    text-transform: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0;
    gap: 8px;
    cursor: pointer;
}

.field input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.field textarea { min-height: 90px; resize: vertical; }

/* ── BUTTONS ─────────────────────────────────────────── */

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

button {
    border: 0;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .14s, box-shadow .14s, transform .1s, opacity .14s;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

button.primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 12px rgba(42,125,184,.38);
}

button.primary:hover {
    background: #3490ce;
    box-shadow: 0 4px 20px rgba(42,125,184,.5);
    transform: translateY(-1px);
}

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

button.secondary {
    background: rgba(255,255,255,0.07);
    color: var(--text-dim);
    border: 1.5px solid var(--border);
}

button.secondary:hover {
    background: rgba(255,255,255,0.12);
    color: var(--text);
    border-color: var(--border-solid);
}

button:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── FEEDBACK ────────────────────────────────────────── */

.notice {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.error-list {
    border: 1px solid var(--danger-border);
    background: var(--danger-bg);
    color: #fca5a5;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 0.875rem;
    animation: shakeIn .35s ease;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.error-list::before {
    content: '⚠';
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1.4;
    color: var(--danger);
}

.error-list ul { margin: 0; padding: 0 0 0 4px; list-style: none; }
.error-list li::before { content: '• '; }

@keyframes shakeIn {
    0%   { transform: translateX(0); opacity: 0; }
    20%  { transform: translateX(-6px); opacity: 1; }
    40%  { transform: translateX(6px); }
    60%  { transform: translateX(-4px); }
    80%  { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

.hidden { display: none !important; }

/* ── ANIMATIONS ──────────────────────────────────────── */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

.result-appear {
    animation: fadeUp .45s cubic-bezier(.2,.6,.3,1) both;
}

/* ── UTILIZATION BAR ─────────────────────────────────── */

.utilization-wrap { margin-bottom: 16px; }

.utilization-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 7px;
}

.utilization-label strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    text-transform: none;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.utilization-track {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
}

.utilization-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--accent));
    border-radius: 99px;
    transition: width .65s cubic-bezier(.4,0,.2,1);
    width: 0%;
    box-shadow: 0 0 10px rgba(126,200,255,.35);
}

/* ── KPI GRID ────────────────────────────────────────── */

.result-kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.kpi {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-left: 3px solid rgba(126,200,255,0.25);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    animation: fadeUp .4s ease both;
}

.kpi:nth-child(1) { animation-delay: .05s; }
.kpi:nth-child(2) { animation-delay: .1s; }
.kpi:nth-child(3) { animation-delay: .15s; }
.kpi:nth-child(4) { animation-delay: .2s; }

.kpi span {
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    display: block;
    margin-bottom: 5px;
}

.kpi strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.kpi.accent-primary { border-left-color: var(--primary); }
.kpi.accent-green   { border-left-color: var(--success); }
.kpi.accent-red     { border-left-color: var(--danger); }
.kpi.accent-orange  { border-left-color: #fb923c; }

/* ── TABLES ──────────────────────────────────────────── */

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.855rem;
}

.result-table th {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-solid);
    text-align: left;
    white-space: nowrap;
    background: rgba(255,255,255,0.04);
}

.result-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-dim);
}

.result-table td input {
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 6px 9px;
    font-size: 0.85rem;
    font-family: inherit;
    background: rgba(255,255,255,0.05);
    color: var(--text);
    width: 100%;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.result-table td input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(42,125,184,.2);
}

.result-table tbody tr:last-child td { border-bottom: none; }
.result-table tbody tr:last-child th { border-bottom: none; }
.result-table tbody tr:hover td,
.result-table tbody tr:hover th { background: rgba(126,200,255,0.04); }

.table-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 10px;
}

.table-actions strong {
    font-size: 0.85rem;
    font-weight: 700;
}

/* ── CANVAS SECTION ──────────────────────────────────── */

.canvas-section { margin-top: 16px; }

.canvas-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.canvas-header h2 { margin: 0; }

.canvas-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--muted);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-waste {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(248,113,113,0.15),
        rgba(248,113,113,0.15) 3px,
        rgba(248,113,113,0.45) 3px,
        rgba(248,113,113,0.45) 5px
    );
}

/* 1D bar (profile optimizer) */
.bar-group { margin-bottom: 14px; }
.bar-group:last-child { margin-bottom: 0; }

.bar-group-label {
    font-size: 0.77rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.waste-badge {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
    border-radius: 99px;
    padding: 1px 8px;
    font-size: 0.69rem;
    font-weight: 700;
}

.bar-canvas-wrap {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--canvas-bg);
    line-height: 0;
}

.bar-canvas-wrap canvas {
    display: block;
    width: 100%;
}

/* 2D sheet (glass simulator) */
.sheet-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.sheet-tab {
    padding: 5px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    transition: all .14s;
    font-family: inherit;
}

.sheet-tab.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--accent);
}

.sheet-canvas-wrap {
    border-radius: var(--radius-sm);
    overflow: auto;
    background: var(--canvas-bg);
    border: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 14px;
    max-height: 72vh;
}

.sheet-canvas-wrap canvas { display: block; max-width: 100%; }

/* ── MISC ────────────────────────────────────────────── */

/* Preset chips (quick-fill buttons) */
.preset-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.preset-chips button {
    padding: 4px 10px;
    border-radius: 99px;
    border: 1.5px solid var(--border);
    background: rgba(255,255,255,0.05);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .14s;
}

.preset-chips button:hover,
.preset-chips button.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--accent);
}

/* Collapsible form sections */
.form-section {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dim);
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.form-section-title::-webkit-details-marker { display: none; }

.form-section-title::before {
    content: '▸';
    font-size: 0.7rem;
    color: var(--muted);
    transition: transform .2s;
}

details[open] > .form-section-title::before { transform: rotate(90deg); }

.form-section-badge {
    font-size: 0.69rem;
    font-weight: 600;
    color: var(--muted);
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 2px 8px;
    margin-left: 4px;
}

.form-section > *:not(summary) {
    padding: 0 14px 14px;
}

/* Input + select combo */
.input-with-select {
    display: flex;
    gap: 6px;
}

.input-with-select input { flex: 1; }

.input-with-select select {
    width: 68px;
    padding: 9px 6px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text);
    cursor: pointer;
    outline: none;
    transition: border-color .18s;
}

.input-with-select select:focus { border-color: var(--primary); }

/* Scrollable table wrapper */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
}

/* Required star */
.required-star {
    color: var(--danger);
    font-weight: 700;
}

/* File input */
.file-input {
    padding: 6px 8px !important;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--muted);
}

/* Field hint text */
.field-hint {
    display: block;
    margin-top: 3px;
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.4;
}

/* Spinner overlay on button */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .65s linear infinite;
}

.footer-cta {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    color: var(--muted);
    font-size: 0.875rem;
}

.footer-cta a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.footer-cta a:hover { text-decoration: underline; }

.faq { margin-top: 18px; }
.faq dt { font-weight: 700; font-size: 0.875rem; margin-top: 12px; color: var(--text); }
.faq dd { margin: 4px 0 0; color: var(--muted); font-size: 0.875rem; line-height: 1.6; }

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 99px;
    background: var(--primary-light);
    color: var(--accent);
    padding: 3px 10px;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    border: 1px solid rgba(42,125,184,.3);
}

/* ── LEAD MODAL ──────────────────────────────────────── */

.lead-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4,14,26,.7);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fadeIn .25s ease;
}

.lead-overlay.hidden { display: none !important; }

.lead-modal {
    background: #0d2d46;
    border: 1px solid var(--border-solid);
    border-radius: 18px;
    padding: 30px 26px;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: fadeUp .3s cubic-bezier(.2,.6,.3,1);
}

.lead-modal h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.lead-modal p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.65;
}

.lead-actions { display: flex; gap: 10px; margin-top: 16px; }
.lead-actions button { flex: 1; }

.lead-success-msg {
    text-align: center;
    color: var(--success);
    font-weight: 600;
    padding: 12px 0 6px;
    font-size: 0.95rem;
}

/* ── TOAST NOTIFICATIONS ─────────────────────────────── */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-solid);
    border: 1px solid var(--border-solid);
    color: var(--text);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 240px;
    max-width: 360px;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toastIn .28s cubic-bezier(.2,.6,.3,1) both;
    line-height: 1.4;
}

.toast.toast-success { border-color: rgba(52,211,153,0.45); background: rgba(5,40,28,.96); }
.toast.toast-error   { border-color: rgba(248,113,113,0.45); background: rgba(50,10,10,.96); }

.toast-icon { font-size: 1rem; flex-shrink: 0; }
.toast-out  { animation: toastOut .22s ease forwards; }

@keyframes toastIn  { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px); } }

/* ── RESPONSIVE ──────────────────────────────────────── */

@media (max-width: 480px) {
    .wrapper { padding: 18px 14px 48px; }

    .header h1 { font-size: 1.4rem; }

    .card { padding: 16px; }

    .nav-cta { padding: 6px 11px; font-size: 0.78rem; }

    .lead-modal { padding: 22px 18px; }

    .result-kpis { grid-template-columns: 1fr 1fr; }

    .toast-container { bottom: 16px; right: 14px; left: 14px; }
    .toast { min-width: 0; max-width: 100%; }

    .table-scroll { margin: 0 -14px; border-radius: 0; }

    .button-row { gap: 8px; }
    .button-row button { flex: 1 1 auto; }
}
