/* M1N.APP generated asset integration — 2026-08-13 */
:root {
    --accent-color: #00cc55;
    --accent-hover: #00e666;
    --accent-active: #009944;
    --text-primary: #d2ddd6;
    --text-secondary: #92a39a;
    --text-muted: #65736b;
    --border-color: #26332c;
    --card-bg: #111713;
    --hover-bg: #17221b;
}

body {
    background-color: #080b09;
    background-image:
        radial-gradient(circle at 50% -20%, rgba(0, 204, 85, 0.14), transparent 38rem),
        linear-gradient(rgba(8, 11, 9, 0.91), rgba(8, 11, 9, 0.97)),
        url('/static/img/gen/patterns/grid.png');
    background-size: auto, auto, 512px 512px;
    background-attachment: fixed;
}

/* Homepage (index) — reuse the hero's vault artwork as the page backdrop now that
   the hero banner itself was removed, instead of leaving the asset unused. Kept
   subtle behind the dashboard cards via the dark gradient wash. */
body.m1n-shell {
    background-image:
        radial-gradient(circle at 50% -20%, rgba(0, 204, 85, 0.14), transparent 38rem),
        linear-gradient(100deg, rgba(4, 8, 5, 0.95) 0%, rgba(4, 8, 5, 0.78) 42%, rgba(4, 8, 5, 0.5) 100%),
        linear-gradient(rgba(8, 11, 9, 0.55), rgba(8, 11, 9, 0.85)),
        url('/static/img/gen/hero/knowledge-vault.png');
    background-position: center top, center, center, center;
    background-size: auto, auto, auto, cover;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
}

.header-base {
    background: rgba(8, 13, 10, 0.88);
    border-bottom-color: rgba(0, 204, 85, 0.28);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.62), 0 1px 0 rgba(0, 204, 85, 0.08);
}

.logo-base {
    color: var(--accent-color);
    letter-spacing: 0.08em;
}

.logo-img {
    width: 78px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 204, 85, 0.42));
}

.logo-cursor {
    background: var(--accent-color);
    box-shadow: 0 0 8px rgba(0, 204, 85, 0.75);
}

.search-input-base {
    background: rgba(14, 21, 17, 0.92);
    border-color: rgba(0, 204, 85, 0.2);
}

.search-input-base:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 204, 85, 0.08), 0 0 22px rgba(0, 204, 85, 0.08);
}

.main,
.app-panel,
.card,
.sidebar-section,
.modal-content {
    border-color: rgba(0, 204, 85, 0.16);
    background-color: rgba(12, 18, 14, 0.9);
}

.main {
    background-image:
        linear-gradient(rgba(7, 11, 8, 0.93), rgba(7, 11, 8, 0.97)),
        url('/static/img/gen/patterns/circuit.png');
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.sidebar-title,
.page-tab.active,
.app-dt-title { color: var(--accent-color); }

.m1n-page-hero {
    position: relative;
    min-height: 222px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    margin: 1rem 0 0.85rem;
    border: 1px solid rgba(0, 204, 85, 0.3);
    border-radius: 14px;
    background: #07100a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(255,255,255,0.025);
}

.m1n-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--m1n-hero);
    background-size: cover;
    background-position: center;
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.012);
}

.m1n-page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(4, 8, 5, 0.96) 0%, rgba(4, 8, 5, 0.7) 47%, rgba(4, 8, 5, 0.1) 100%),
        linear-gradient(0deg, rgba(4, 8, 5, 0.92), transparent 72%);
}

.m1n-page-hero--compact { min-height: 154px; }
.m1n-page-hero--compact::before { opacity: 0.52; }

.m1n-page-hero__content {
    width: min(72%, 680px);
    padding: 1.45rem 1.65rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.m1n-page-hero__icon {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    object-fit: contain;
    border-radius: 17px;
    filter: drop-shadow(0 0 18px rgba(0, 204, 85, 0.32));
}

.m1n-page-hero__eyebrow {
    margin-bottom: 0.32rem;
    color: var(--accent-color);
    font: 700 0.64rem/1.3 var(--font-mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.m1n-page-hero__title {
    margin: 0;
    color: #f1fff6;
    font-size: clamp(1.35rem, 2.7vw, 2.2rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-shadow: 0 2px 20px #000;
}

.m1n-page-hero__sub {
    max-width: 620px;
    margin: 0.5rem 0 0;
    color: #9db0a4;
    font-size: 0.76rem;
    line-height: 1.55;
}

.m1n-page-hero__status {
    position: absolute;
    top: 0.85rem;
    right: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(0, 204, 85, 0.28);
    border-radius: 999px;
    background: rgba(2, 9, 5, 0.7);
    color: #a9b8af;
    font: 600 0.56rem/1 var(--font-mono);
    letter-spacing: 0.08em;
}

.m1n-page-hero__status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 9px var(--accent-color);
}

.m1n-inline-icon {
    width: 1.2em;
    height: 1.2em;
    object-fit: contain;
    flex: 0 0 auto;
    vertical-align: -0.2em;
    filter: drop-shadow(0 0 5px rgba(0, 204, 85, 0.25));
}

.sidebar-title .m1n-inline-icon { width: 1.35rem; height: 1.35rem; }
.app-nav-btns .m1n-inline-icon { width: 1.25rem; height: 1.25rem; }

.empty-state .empty-state-visual {
    display: block;
    width: min(320px, 76%);
    max-height: 220px;
    object-fit: contain;
    margin: -1.5rem auto 0.8rem;
    border-radius: 14px;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.42));
}

.empty-state .empty-state-visual + i { display: none; }

.article-item {
    border-color: rgba(0, 204, 85, 0.12);
    background: linear-gradient(90deg, rgba(0, 204, 85, 0.025), rgba(13, 18, 15, 0.96));
}

.article-item::before { background: var(--accent-color); }
.article-title a:hover { color: var(--accent-hover); }
.app-dt-cover-wrap { border-color: rgba(0, 204, 85, 0.28); box-shadow: 0 22px 45px rgba(0,0,0,.46); }
.app-ms-item.active { box-shadow: inset 3px 0 0 var(--accent-color), 0 0 22px rgba(0,204,85,.06); }
.app-dt-gallery { margin-top: 1.65rem; padding-top: 1.1rem; border-top: 1px solid rgba(0, 204, 85, 0.16); }
.app-dt-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.8rem; }
.app-dt-gallery-item { margin: 0; overflow: hidden; border: 1px solid rgba(0, 204, 85, 0.22); border-radius: 12px; background: #090d0a; }
.app-dt-gallery-item img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.app-dt-gallery-item figcaption { padding: 0.55rem 0.7rem; color: var(--text-muted); font: 0.58rem/1.4 var(--font-mono); letter-spacing: 0.04em; }
.modal { background-image: url('/static/img/gen/modal/backdrop.png'); background-size: cover; }
.modal-content { box-shadow: 0 0 70px rgba(0, 204, 85, 0.18); }

@media (max-width: 1120px) {
    .m1n-page-hero { margin-left: 1rem; margin-right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .m1n-page-hero::before { transform: none; }
}
