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

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.container { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Header ─────────────────────────────────────────────── */
.header {
    background: var(--cpod-primary);
    border-bottom: none;
    padding: 0.875rem 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.title img.logo-svg {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.title .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.title .logo-text span:first-child {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
}

.title .logo-text span:last-child {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header-actions { display: flex; gap: 0.625rem; align-items: center; }

/* ── Layout ─────────────────────────────────────────────── */
.main { flex: 1; padding: 1.5rem 0; }

.layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

.main-cards {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.25rem;
}

.procedures-card { min-height: 280px; }
.debug-card { width: 100%; }
.hidden { display: none; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cpod-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid var(--cpod-mint);
}

.empty-state {
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    padding: 1.5rem;
    font-style: italic;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
