:root {
    --bg: #f7f2eb;
    --surface: #fffdfa;
    --surface-strong: #f2e6d8;
    --border: #e3d6c7;
    --text: #2e2925;
    --muted: #7a7169;
    --primary: #7b5a43;
    --primary-dark: #5c4333;
    --accent: #d7bfa7;
    --success: #5f8b68;
    --shadow: 0 20px 45px rgba(86, 63, 46, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Instrument Sans", sans-serif;
    background: radial-gradient(circle at top left, #fbf6ef 0%, var(--bg) 55%, #efe4d8 100%);
    color: var(--text);
}

a {
    color: var(--primary);
}

.eyebrow {
    color: var(--primary);
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
}

.auth-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.auth-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(215, 191, 167, 0.35), transparent 30%),
        radial-gradient(circle at 90% 20%, rgba(123, 90, 67, 0.12), transparent 24%),
        linear-gradient(145deg, rgba(255, 253, 250, 0.86), rgba(247, 242, 235, 0.95));
}

.auth-shell .container {
    position: relative;
    z-index: 1;
}

.auth-card,
.info-card,
.metric-card,
.hero-panel {
    background: rgba(255, 253, 250, 0.92);
    border: 1px solid rgba(227, 214, 199, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.auth-card {
    padding: 2rem;
}

.auth-alert {
    max-width: 640px;
    margin: 2rem auto 0;
}

.form-control,
.form-select {
    min-height: 48px;
    border-color: var(--border);
    background: #fffdf9;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(123, 90, 67, 0.45);
    box-shadow: 0 0 0 0.25rem rgba(123, 90, 67, 0.12);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: rgba(255, 250, 244, 0.92);
    border-right: 1px solid rgba(227, 214, 199, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    transition: transform .25s ease;
}

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

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--primary), #9f7b61);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    text-decoration: none;
    color: var(--text);
    padding: .9rem 1rem;
    border-radius: 16px;
    margin-bottom: .4rem;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(123, 90, 67, 0.1);
    color: var(--primary);
    transform: translateX(2px);
}

.sidebar-link.disabled {
    opacity: .65;
    pointer-events: none;
}

.sidebar-link small {
    margin-left: auto;
    color: var(--muted);
}

.app-content {
    flex: 1;
    margin-left: 280px;
}

.topbar {
    background: transparent;
}

.sidebar-toggle {
    color: var(--primary);
}

.hero-panel {
    padding: 1.75rem;
}

.metric-card {
    padding: 1.5rem;
}

.metric-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: white;
    background: linear-gradient(145deg, var(--primary), #a37b5f);
    margin-bottom: 1rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
}

.metric-label {
    color: var(--muted);
}

.info-card {
    padding: 1.5rem;
}

.info-card.soft {
    background: linear-gradient(145deg, rgba(255, 252, 247, 0.94), rgba(242, 230, 216, 0.75));
}

.list-grid {
    display: grid;
    gap: .85rem;
}

.list-grid div {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.list-grid i {
    color: var(--success);
}

.next-steps {
    padding-left: 1rem;
    color: var(--muted);
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .app-content {
        margin-left: 0;
    }
}
