* {
    box-sizing: border-box;
}

html {
    background: var(--ek-bg);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ek-text);
    background: var(--ek-bg);
    font-family: var(--ek-font);
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

.ek-app {
    min-height: 100vh;
}

.ek-topbar {
    position: fixed;
    z-index: 50;
    top: 0;
    right: 0;
    left: 0;
    height: 78px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(244, 241, 234, 0.92);
    border-bottom: 1px solid rgba(222, 219, 210, 0.8);
    backdrop-filter: blur(16px);
}

.ek-brand,
.ek-sidebar__profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ek-brand__mark,
.ek-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--ek-primary);
    border-radius: 15px;
    font-weight: 800;
}

.ek-brand strong,
.ek-sidebar__profile strong {
    display: block;
}

.ek-brand small,
.ek-sidebar__profile small,
.ek-nav__item small {
    display: block;
    margin-top: 3px;
    color: var(--ek-muted);
}

.ek-icon-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid var(--ek-border);
    background: var(--ek-surface);
    border-radius: 14px;
}

.ek-icon-button span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: currentColor;
}

.ek-sidebar {
    position: fixed;
    z-index: 40;
    top: 78px;
    right: 0;
    bottom: 0;
    width: var(--ek-sidebar-width);
    padding: 24px 18px;
    overflow-y: auto;
    background: var(--ek-surface-soft);
    border-left: 1px solid var(--ek-border);
}

.ek-sidebar__profile {
    padding: 14px;
    margin-bottom: 20px;
    background: var(--ek-surface);
    border: 1px solid var(--ek-border);
    border-radius: var(--ek-radius-md);
}

.ek-avatar {
    background: var(--ek-accent);
}

.ek-nav {
    display: grid;
    gap: 8px;
}

.ek-nav__item {
    width: 100%;
    padding: 14px 16px;
    text-align: right;
    border: 0;
    background: transparent;
    border-radius: 16px;
    cursor: pointer;
}

.ek-nav__item:hover,
.ek-nav__item.is-active {
    background: var(--ek-primary-soft);
}

.ek-main {
    min-height: 100vh;
    padding:
        110px
        calc(34px + var(--ek-sidebar-width))
        40px
        34px;
}

.ek-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
}

.ek-panel.is-active {
    display: block;
}

.ek-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    padding: 34px;
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(178, 138, 74, 0.35), transparent 36%),
        var(--ek-primary);
    border-radius: var(--ek-radius-lg);
    box-shadow: var(--ek-shadow);
}

.ek-hero h1,
.ek-empty-state h1 {
    margin: 8px 0 12px;
    font-size: clamp(1.7rem, 4vw, 3.2rem);
    line-height: 1.35;
}

.ek-hero p {
    max-width: 700px;
    margin: 0;
    line-height: 2;
    color: rgba(255, 255, 255, 0.78);
}

.ek-eyebrow {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.ek-readiness-card {
    min-height: 190px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
}

.ek-readiness-card strong {
    margin: 8px 0;
    font-size: 3.4rem;
}

.ek-readiness-card small {
    color: rgba(255, 255, 255, 0.72);
}

.ek-grid {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.ek-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ek-card,
.ek-section,
.ek-empty-state {
    background: var(--ek-surface);
    border: 1px solid var(--ek-border);
    border-radius: var(--ek-radius-md);
    box-shadow: var(--ek-shadow);
}

.ek-card {
    padding: 24px;
}

.ek-card__index {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--ek-primary);
    background: var(--ek-primary-soft);
    border-radius: 13px;
    font-weight: 900;
}

.ek-card h2 {
    margin: 18px 0 8px;
    font-size: 1.1rem;
}

.ek-card p {
    margin: 0;
    color: var(--ek-muted);
    line-height: 1.9;
}

.ek-section {
    margin-top: 22px;
    padding: 26px;
}

.ek-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.ek-section__header h2 {
    margin: 4px 0 0;
}

.ek-duration {
    padding: 8px 13px;
    color: var(--ek-primary);
    background: var(--ek-primary-soft);
    border-radius: 999px;
    font-weight: 800;
}

.ek-task-list {
    display: grid;
    gap: 10px;
}

.ek-task {
    width: 100%;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    text-align: right;
    border: 1px solid var(--ek-border);
    background: var(--ek-surface-soft);
    border-radius: 16px;
    cursor: pointer;
}

.ek-task:hover {
    border-color: var(--ek-primary);
}

.ek-task__status {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border: 2px solid var(--ek-primary);
    border-radius: 8px;
}

.ek-task strong,
.ek-task small {
    display: block;
}

.ek-task small {
    margin-top: 5px;
    color: var(--ek-muted);
}

.ek-empty-state {
    min-height: 420px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ek-empty-state > span {
    color: var(--ek-accent);
    font-weight: 900;
}

.ek-empty-state p {
    max-width: 720px;
    color: var(--ek-muted);
    line-height: 2;
}

.ek-mobile-nav {
    display: none;
}

@media (max-width: 980px) {
    .ek-icon-button {
        display: block;
    }

    .ek-sidebar {
        transform: translateX(105%);
        transition: transform 180ms ease;
        box-shadow: var(--ek-shadow);
    }

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

    .ek-main {
        padding: 100px 20px 100px;
    }

    .ek-grid--three {
        grid-template-columns: 1fr;
    }

    .ek-mobile-nav {
        position: fixed;
        z-index: 45;
        right: 14px;
        bottom: 14px;
        left: 14px;
        padding: 8px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid var(--ek-border);
        border-radius: 20px;
        box-shadow: var(--ek-shadow);
        backdrop-filter: blur(16px);
    }

    .ek-mobile-nav button {
        padding: 10px 5px;
        border: 0;
        background: transparent;
        border-radius: 13px;
        font-size: 0.8rem;
    }

    .ek-mobile-nav button.is-active {
        color: #fff;
        background: var(--ek-primary);
    }
}

@media (max-width: 680px) {
    .ek-topbar {
        height: 70px;
        padding: 0 14px;
    }

    .ek-brand small {
        display: none;
    }

    .ek-sidebar {
        top: 70px;
        width: min(88vw, 330px);
    }

    .ek-main {
        padding-top: 88px;
    }

    .ek-hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .ek-readiness-card {
        min-height: 150px;
    }

    .ek-section {
        padding: 18px;
    }

    .ek-empty-state {
        min-height: 360px;
        padding: 28px;
    }
}
