:root {
    color-scheme: dark;
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    width: 100%;
    min-height: 100%;
    background: #000000;
    color: #f5f5f5;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    min-height: 100vh;
}

.viewport {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.workspace-stage {
    width: min(1120px, 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.72rem;
    color: #8d8d8d;
}

h1 {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 600;
}

.home-link {
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 8px 12px;
    border-radius: 999px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.home-link:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.08);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 16px;
    color: #f7f7f7;
    text-decoration: none;
    background: rgba(255,255,255,0.03);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
}

.card span {
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.hint {
    margin-top: 20px;
    color: #9a9a9a;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .viewport {
        padding: 16px;
    }

    .workspace-stage {
        padding: 20px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card {
        min-height: 76px;
    }
}
