:root {
    --bg: #eef3f1;
    --panel: rgba(255, 255, 255, 0.9);
    --text: #19332b;
    --muted: #60756e;
    --accent: #1b7f5a;
    --accent-soft: #ddf2e8;
    --line: rgba(25, 51, 43, 0.12);
    --shadow: 0 20px 50px rgba(21, 48, 40, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(27, 127, 90, 0.14), transparent 26%),
        radial-gradient(circle at bottom right, rgba(201, 132, 42, 0.12), transparent 22%),
        linear-gradient(180deg, #f8fbfa 0%, var(--bg) 100%);
    color: var(--text);
    font-family: "IBM Plex Sans", sans-serif;
}

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

.layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 320px 1fr;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px 22px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.sidebar h1,
.hero h2,
.panel h3,
.block-card h4,
.module-card h4 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
}

.sidebar h1 {
    font-size: 2rem;
    line-height: 1.08;
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
}

.sidebar-copy,
.hero-copy,
.block-card p,
.module-meta,
.status-card small,
.architecture-copy p {
    color: var(--muted);
    line-height: 1.55;
}

.nav {
    display: grid;
    gap: 10px;
}

.nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid transparent;
    transition: transform 0.16s ease, border-color 0.16s ease;
}

.nav a:hover {
    transform: translateX(4px);
    border-color: var(--line);
}

.status-card,
.panel,
.stat-card,
.search-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.status-card {
    padding: 18px;
}

.status-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
}

.main {
    padding: 28px;
    display: grid;
    gap: 24px;
}

.hero,
.panel-grid {
    display: grid;
    gap: 20px;
}

.hero {
    grid-template-columns: 1.15fr 0.85fr;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 14px;
}

.search-card,
.panel,
.stat-card {
    padding: 22px;
}

.admin-search-card {
    padding: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
}

.search-card label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.search-row,
.filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.inline-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-row {
    margin-top: 12px;
}

input,
select,
button {
    font: inherit;
}

input,
select {
    flex: 1 1 180px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.96);
}

button {
    border: 0;
    border-radius: 14px;
    padding: 12px 18px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.stats-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 2rem;
    font-family: "Space Grotesk", sans-serif;
}

.panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-head,
.block-head,
.module-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.panel-head {
    margin-bottom: 16px;
}

.block-list,
.stack-list,
.module-list,
.pill-grid {
    display: grid;
    gap: 12px;
}

.block-card,
.module-card,
.feed-card,
.phase-card {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
}

.block-head strong,
.module-head strong {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--accent-soft);
    font-family: "Space Grotesk", sans-serif;
}

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

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(27, 127, 90, 0.08);
    border: 1px solid rgba(27, 127, 90, 0.14);
    text-align: center;
    font-weight: 600;
}

.architecture-copy {
    margin-top: 18px;
}

.compact-top {
    margin-top: 14px;
}

.is-hidden {
    display: none;
}

.module-card h4,
.block-card h4 {
    margin: 0 0 8px;
}

.module-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.tag {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.86rem;
    background: rgba(27, 127, 90, 0.08);
    color: var(--accent);
}

.module-meta {
    margin: 10px 0 0;
}

.module-deps {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.feed-card a {
    color: var(--accent);
    word-break: break-word;
}

@media (max-width: 1180px) {
    .layout,
    .hero,
    .panel-grid,
    .stats-grid,
    .pill-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}
