:root {
    --ams-sidebar-width: 240px;
    --ams-sidebar-bg: #1f2937;
    --ams-sidebar-hover: #374151;
    --ams-accent: #2563eb;
}

body {
    background: #f5f7fb;
    min-height: 100vh;
}

.ams-shell {
    display: grid;
    grid-template-columns: var(--ams-sidebar-width) 1fr;
    min-height: 100vh;
}

.ams-sidebar {
    background: var(--ams-sidebar-bg);
    color: #e5e7eb;
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.ams-sidebar .brand {
    padding: 0 1.25rem 1rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: .75rem;
}

.ams-sidebar a.nav-link {
    color: #cbd5e1;
    padding: .55rem 1.25rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: .65rem;
}

.ams-sidebar a.nav-link:hover {
    background: var(--ams-sidebar-hover);
    color: #fff;
}

.ams-sidebar a.nav-link.active {
    background: var(--ams-accent);
    color: #fff;
}

.ams-sidebar .nav-section {
    text-transform: uppercase;
    font-size: .7rem;
    letter-spacing: .04em;
    color: #94a3b8;
    padding: .9rem 1.25rem .35rem;
}

.ams-main {
    padding: 1.5rem 2rem 3rem;
    max-width: 1400px;
    width: 100%;
}

.ams-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ams-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.stat-tile {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1.1rem 1.25rem;
}

.stat-tile .label {
    font-size: .8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.stat-tile .value {
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f172a;
}

.timeline-item {
    border-left: 3px solid #cbd5e1;
    padding: .15rem 0 .9rem 1rem;
    margin-left: .25rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: .35rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #2563eb;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,#1e3a8a,#2563eb 70%);
    padding: 2rem;
}

.auth-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2.25rem 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.field-row { background:#f8fafc; border:1px solid #e2e8f0; border-radius:.5rem; padding:1rem; margin-bottom:.75rem; }

@media (max-width: 820px) {
    .ams-shell { grid-template-columns: 1fr; }
    .ams-sidebar { position: static; height: auto; }
}
