:root {
    --optum-orange: #ff8200;
    --optum-charcoal: #1c1f23;
    --optum-slate: #2e3840;
    --optum-tan: #f9f4ef;
    --accent-mint: #54c3a3;
    --accent-coral: #ffb38a;
    --text: #121212;
    font-family: 'Barlow', Arial, sans-serif;
}

body {
    margin: 0;
    background: var(--optum-tan);
    color: var(--text);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, var(--optum-charcoal), var(--optum-slate));
    color: #fff;
}

.brand {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.brand-accent {
    width: 12px;
    height: 40px;
    background: var(--optum-orange);
    border-radius: 6px;
    display: inline-block;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    margin: 0;
    color: var(--accent-mint);
}

.primary-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-line {
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
}

.page {
    padding: 2rem;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.panel {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    border-bottom: 1px solid #ececec;
}

th {
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

tbody tr:hover {
    background: #f5faf3;
}

.btn-primary,
.btn-secondary,
.btn.ghost {
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: var(--optum-orange);
    color: #1c1f23;
}

.btn-secondary {
    background: var(--accent-mint);
    color: var(--optum-charcoal);
}

.btn.ghost {
    background: transparent;
    color: var(--optum-charcoal);
    border: 1px solid var(--optum-charcoal);
}

.messages .message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.message.success {
    background: #e1f8ef;
    color: #0f5132;
}

.message.error {
    background: #fdecea;
    color: #b02a37;
}

.pill {
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

.pill.success {
    background: rgba(84, 195, 163, 0.2);
    color: #146c43;
}

.pill.warn {
    background: rgba(255, 178, 138, 0.2);
    color: #a04b1c;
}

.hidden {
    display: none;
}

.node-form input,
.node-form textarea,
.node-form select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #ced4da;
    margin-bottom: 0.85rem;
    font-family: inherit;
}

.text-mono {
    font-family: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

.panel .empty {
    text-align: center;
    color: #7a7a7a;
}

.mono {
    font-family: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
    font-size: 0.9rem;
}

.auth-body {
    background: linear-gradient(135deg, var(--optum-charcoal), var(--optum-slate));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 24px;
    width: min(420px, 90vw);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.auth-card label {
    font-weight: 600;
    display: block;
    margin-top: 1rem;
}

.auth-card input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid #d6d6d6;
}

.help {
    font-size: 0.85rem;
    color: #555;
    margin-top: 1rem;
}

.app-footer {
    text-align: center;
    padding: 1rem;
    color: #666;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        gap: 1rem;
    }
    .primary-nav ul {
        display: none;
        flex-direction: column;
        background: var(--optum-charcoal);
        position: absolute;
        right: 1rem;
        top: 70px;
        padding: 1rem;
        border-radius: 12px;
    }
    .primary-nav.open ul {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}
