/* EHub Dashboard — design tokens from EHub Design System */

:root {
    --eh-bg-app: #F4F2EC;
    --eh-bg-card: #FFFFFF;
    --eh-ink: #191B1F;
    --eh-ink-2: #5C5A54;
    --eh-ink-3: #8A877F;
    --eh-line: #E8E4DA;
    --eh-emerald: #0F7A5F;
    --eh-emerald-soft: #E8F5F0;
    --eh-brass: #AD8231;
    --eh-amber: #B47A12;
    --eh-red: #C2443B;
    --eh-shadow-sm: 0 1px 2px rgba(25, 27, 31, 0.06), 0 4px 12px rgba(25, 27, 31, 0.04);
    --eh-shadow: 0 8px 24px rgba(25, 27, 31, 0.08);
    --eh-radius: 16px;
    --eh-sidebar-width: 260px;
    --eh-font: 'Hanken Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--eh-font);
    color: var(--eh-ink);
    background: var(--eh-bg-app);
}

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

.eh-sidebar {
    width: var(--eh-sidebar-width);
    background: var(--eh-bg-card);
    border-right: 1px solid var(--eh-line);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.eh-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 24px;
    border-bottom: 1px solid var(--eh-line);
    margin-bottom: 16px;
}

.eh-sidebar__mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--eh-ink);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.eh-sidebar__title { font-weight: 700; font-size: 16px; }
.eh-sidebar__subtitle { font-size: 12px; color: var(--eh-ink-3); margin-top: 2px; }

.eh-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
}

.eh-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--eh-ink-2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 550;
}

.eh-nav-item svg { width: 18px; height: 18px; }

.eh-nav-item:hover { background: #F7F5F0; color: var(--eh-ink); }
.eh-nav-item.is-active {
    background: var(--eh-ink);
    color: #fff;
}

.eh-nav-item__phase {
    margin-left: auto;
    font-size: 10px;
    opacity: 0.7;
}

.eh-sidebar__footer {
    border-top: 1px solid var(--eh-line);
    padding-top: 16px;
}

.eh-sidebar__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
}

.eh-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--eh-emerald-soft);
    color: var(--eh-emerald);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
}

.eh-sidebar__user-name { font-size: 14px; font-weight: 600; }
.eh-sidebar__user-role { font-size: 12px; color: var(--eh-ink-3); }

.eh-main { flex: 1; min-width: 0; }

.eh-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px 0;
    gap: 16px;
}

.eh-header__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.eh-header__subtitle {
    margin: 6px 0 0;
    color: var(--eh-ink-2);
    font-size: 14px;
}

.eh-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eh-header__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--eh-bg-card);
    border: 1px solid var(--eh-line);
    font-size: 13px;
}

.eh-header__chip svg { width: 16px; height: 16px; }

.eh-content { padding: 24px 32px 40px; }

.eh-grid { display: grid; gap: 16px; }
.eh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eh-mt-24 { margin-top: 24px; }

.eh-card {
    background: var(--eh-bg-card);
    border: 1px solid var(--eh-line);
    border-radius: 20px;
    box-shadow: var(--eh-shadow-sm);
    padding: 20px;
}

.eh-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.eh-card__header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.eh-stat-card {
    background: var(--eh-bg-card);
    border: 1px solid var(--eh-line);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--eh-shadow-sm);
}

.eh-stat-card__label { font-size: 13px; color: var(--eh-ink-2); }
.eh-stat-card__value { font-size: 36px; font-weight: 800; margin-top: 8px; letter-spacing: -1px; }
.eh-stat-card__meta { font-size: 12px; color: var(--eh-ink-3); margin-top: 6px; }

.eh-list { list-style: none; margin: 0; padding: 0; }
.eh-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--eh-line);
}

.eh-list li:first-child { border-top: 0; padding-top: 0; }
.eh-list p { margin: 4px 0 0; font-size: 13px; color: var(--eh-ink-2); }
.eh-list--compact li { padding: 10px 0; }

.eh-link {
    color: var(--eh-emerald);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.eh-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.eh-badge--amber { background: #FDF4E6; color: var(--eh-amber); }
.eh-badge--emerald { background: var(--eh-emerald-soft); color: var(--eh-emerald); }
.eh-badge--ink { background: #ECEAE4; color: var(--eh-ink); }

.eh-quick-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.eh-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--eh-line);
    text-decoration: none;
    color: var(--eh-ink);
    font-weight: 600;
    font-size: 14px;
}

.eh-quick-link:hover { box-shadow: var(--eh-shadow-sm); transform: translateY(-1px); }
.eh-quick-link svg { width: 18px; height: 18px; color: var(--eh-emerald); }

.eh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.eh-btn svg { width: 16px; height: 16px; }
.eh-btn--primary { background: var(--eh-ink); color: #fff; }
.eh-btn--soft { background: #F0EDE6; color: var(--eh-ink); }
.eh-btn--block { width: 100%; justify-content: center; }

.eh-placeholder {
    text-align: center;
    padding: 48px 24px;
}

.eh-placeholder__icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--eh-emerald-soft);
    color: var(--eh-emerald);
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
}

.eh-placeholder__icon svg { width: 28px; height: 28px; }
.eh-placeholder__meta { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }

.eh-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.eh-login__card {
    width: 100%;
    max-width: 420px;
    background: var(--eh-bg-card);
    border: 1px solid var(--eh-line);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--eh-shadow);
}

.eh-login__brand { text-align: center; margin-bottom: 24px; }
.eh-login__brand h1 { margin: 12px 0 8px; font-size: 24px; }
.eh-login__brand p { margin: 0; color: var(--eh-ink-2); font-size: 14px; }
.eh-login__hint { margin-top: 20px; font-size: 12px; color: var(--eh-ink-3); text-align: center; }

.eh-form { display: flex; flex-direction: column; gap: 16px; }
.eh-field { display: flex; flex-direction: column; gap: 8px; }
.eh-field span { font-size: 13px; font-weight: 600; color: var(--eh-ink-2); }
.eh-field input {
    height: 48px;
    border-radius: 14px;
    border: 1.5px solid var(--eh-line);
    padding: 0 14px;
    font: inherit;
}

.eh-alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.eh-alert--danger { background: #FCEEED; color: var(--eh-red); }

@media (max-width: 1100px) {
    .eh-grid--3, .eh-quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eh-grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .eh-shell { flex-direction: column; }
    .eh-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }
    .eh-sidebar__nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
