:root {
    --bg: #fafafa;
    --sidebar: #ffffff;
    --text: #1f2937;
    --accent: #d97706;
}

body.dark {
    --bg: #0f172a;
    --sidebar: #020617;
    --text: #e5e7eb;
    --accent: #facc15;
}

* {
    margin: 0;
    box-sizing: border-box;
    font-family: system-ui, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
}

.topbar {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--sidebar);
}

.layout {
    display: flex;
    height: 100vh;
}

aside {
    width: 240px;
    background: var(--sidebar);
    transition: width 0.25s ease;
    overflow: hidden;
}

    aside.collapsed {
        width: 70px;
    }

    aside nav a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px;
        cursor: pointer;
        white-space: nowrap;
    }

    aside.collapsed span {
        display: none;
    }

    aside nav a:hover {
        background: var(--accent);
        color: #000;
    }

main {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    line-height: 1.8;
    max-width: 900px;
}
    main p {
        font-size: 1.05rem;
        letter-spacing: 0.3px;
    }

    main h2 {
        margin-bottom: 16px;
    }

hr {
    margin: 24px 0;
    opacity: 0.3;
}
/* Mobile */
@media (max-width: 768px) {
    .topbar {
        display: flex;
    }

    aside {
        position: fixed;
        left: 0;
        top: 50px;
        height: calc(100% - 50px);
        transform: translateX(-100%);
    }

        aside.open {
            transform: translateX(0);
        }

    .layout {
        flex-direction: column;
    }
    aside nav a.active {
        background: var(--accent);
        color: #000;
    }
}

.ashto-controls {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bg);
    padding-bottom: 12px;
}

    .ashto-controls .label {
        font-weight: 600;
        margin-bottom: 6px;
    }

    .ashto-controls .hint {
        font-size: 0.9rem;
        opacity: 0.8;
        margin-top: 6px;
    }

.count-pill {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 999px;
    background: var(--sidebar);
    border: 1px solid rgba(127,127,127,0.25);
    width: fit-content;
    margin: 6px 0 10px;
}

.btn-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

    .btn-row button {
        padding: 10px 12px;
        border-radius: 12px;
        border: 1px solid rgba(127,127,127,0.25);
        background: var(--sidebar);
        cursor: pointer;
    }

.auto-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.auto-toggle {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.auto-speed input {
    width: 60px;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid rgba(127,127,127,0.25);
    background: var(--sidebar);
    color: var(--text);
}

.ashto-list {
    line-height: 2.0;
}

    .ashto-list li {
        padding: 6px 8px;
        border-radius: 12px;
        cursor: pointer;
    }

        .ashto-list li.active {
            outline: 2px solid var(--accent);
        }

        .ashto-list li.done {
            opacity: 0.55;
        }

@media (max-width: 768px) {
    .ashto-controls {
        grid-template-columns: 1fr;
    }
}

/* ---------- Landing Page ---------- */

.home-title {
    font-size: 2rem;
    margin-bottom: 6px;
}

.home-subtitle {
    opacity: 0.85;
    margin-bottom: 24px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    border-radius: 18px;
    background: var(--sidebar);
    border: 1px solid rgba(127,127,127,0.25);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 22px rgba(0,0,0,0.15);
    }

    .card .icon {
        font-size: 2.4rem;
        margin-bottom: 12px;
    }

    .card .title {
        font-size: 1.05rem;
        font-weight: 600;
    }

    .card .note {
        margin-top: 6px;
        font-size: 0.85rem;
        opacity: 0.6;
    }

    .card.muted {
        opacity: 0.5;
        pointer-events: none;
    }

/* Mobile tweak */
@media (max-width: 600px) {
    .home-title {
        font-size: 1.6rem;
    }
}
