:root {
    --ink: #0d0d0f;
    --ink-soft: #5b5b66;
    --paper: #f4f5f7;
    --surface: #ffffff;
    --line: #ececf0;

    --force-wisdom: #f5a623;
    --force-knowledge: #1f9d4d;
    --force-order: #2f80ed;
    --force-change: #7b2ff7;
    --force-creation: #e02020;
    --force-relations: #f2811d;

    --zone-critical: #f6b8b0;
    --zone-solid: #f3d97a;
    --zone-optimum: #8fd28f;

    --radius-pill: 12px;
    --radius-lg: 16px;
    --shadow-soft: 0 18px 48px rgba(13, 13, 15, 0.08);

    --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 96px;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    background: linear-gradient(180deg, var(--paper) 70%, rgba(244, 245, 247, 0));
}

.brand {
    display: flex;
    align-items: center;
}

.app-logo {
    height: 36px;
    width: auto;
    display: block;
}

.app-nav {
    display: flex;
    gap: 28px;
    font-size: 14px;
    font-weight: 600;
}

.app-nav a,
.app-nav .active {
    color: var(--ink-soft);
    transition: color 0.15s ease;
    text-decoration: none;
}

.app-nav a:hover {
    color: var(--ink);
}

.app-nav a.active {
    color: var(--ink);
    position: relative;
}

.app-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

.app-main {
    padding-top: 12px;
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 24px;
}

.section-head h2 {
    font-size: 30px;
    font-weight: 800;
}

.section-head .count {
    font-size: 15px;
    color: var(--ink-soft);
    font-weight: 600;
}

.grid {
    display: grid;
    gap: 20px;
}

@media (max-width: 720px) {
    .app-nav {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html, body {
        scroll-behavior: auto;
    }
}

.text-input,
.select-input {
    border: none;
    border-radius: var(--radius-pill);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: 14px 22px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--ink);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
}

.select-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b5b66' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
}

.text-input:focus,
.select-input:focus {
    outline: 3px solid var(--force-creation);
}

.btn-primary {
    border: none;
    border-radius: var(--radius-pill);
    background: var(--force-creation);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 26px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.muted {
    color: var(--ink-soft);
    font-size: 15px;
}
