body.home-entry {
    background:
        radial-gradient(circle at 12% 14%, rgba(183, 141, 76, 0.14), transparent 28%),
        linear-gradient(180deg, #f6f4ef 0%, #eef1f3 100%);
    color: #121820;
}

body.home-entry main {
    max-width: none;
    margin: 0;
    padding: 0;
}

.home-shell {
    box-sizing: border-box;
    min-height: 100vh;
    padding: 0 0 28px;
}

.home-shell *,
.home-shell *::before,
.home-shell *::after {
    box-sizing: inherit;
}

.home-topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
    min-height: 76px;
    padding: 12px 42px;
    background:
        linear-gradient(90deg, rgba(6, 10, 15, 0.98), rgba(14, 20, 28, 0.96)),
        #070b10;
    box-shadow: 0 14px 26px rgba(12, 18, 25, 0.22);
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    color: #ffffff;
    text-decoration: none;
}

.home-brand:hover {
    text-decoration: none;
}

.home-brand__mark {
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(212, 172, 104, 0.58);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(225, 190, 126, 0.24), rgba(19, 25, 32, 0.96) 64%);
    box-shadow: 0 0 0 4px rgba(212, 172, 104, 0.08);
}

.home-brand__mark img,
.home-user__avatar img,
.home-module-card__icon img {
    display: block;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-brand__mark-fallback {
    position: absolute;
    z-index: 1;
    color: #e3c27b;
    font-family: Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.home-brand__name {
    font-family: Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.home-topbar__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.home-topbar__link {
    position: relative;
    padding: 10px 12px;
    color: #f3f0ea;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.home-topbar__link:hover {
    color: #e8c982;
    text-decoration: none;
}

.home-topbar__link--active {
    color: #e8c982;
}

.home-topbar__link--active::after {
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 2px;
    background: #d9b56e;
    content: "";
}

.home-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: #f5f1e8;
}

.home-user__avatar {
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(232, 201, 130, 0.5);
    border-radius: 50%;
    background:
        linear-gradient(145deg, #f1e5cc, #9f7440);
}

.home-user__avatar-fallback {
    position: absolute;
    z-index: 1;
    color: #3b2716;
    font-weight: 900;
}

.home-user__name {
    max-width: 150px;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-user__logout {
    display: inline-flex;
}

.home-user__logout button {
    border: 1px solid rgba(232, 201, 130, 0.42);
    background: transparent;
    color: #f7e6bd;
    font-weight: 700;
}

.home-user__logout button:hover {
    background: rgba(232, 201, 130, 0.14);
}

.home-hero,
.home-section,
.home-status-panel {
    width: min(100% - 64px, 1440px);
    margin-right: auto;
    margin-left: auto;
}

.home-hero {
    min-height: 250px;
    margin-top: 26px;
    border: 1px solid rgba(148, 132, 101, 0.26);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(250, 248, 242, 0.96) 0%, rgba(250, 248, 242, 0.86) 45%, rgba(250, 248, 242, 0.44) 100%),
        var(--home-hero-map-url, url("../images/home/home-hero-map.png")) center right / cover no-repeat,
        linear-gradient(135deg, #f8f4e9 0%, #e7e0d1 100%);
    box-shadow: 0 10px 24px rgba(24, 32, 41, 0.15);
}

.home-hero__content {
    max-width: 620px;
    padding: 38px 56px;
}

.home-hero__eyebrow {
    margin: 0 0 10px;
    color: #9a7040;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-hero h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 2.7rem;
    line-height: 1.08;
}

.home-hero p {
    color: #3f4852;
    font-size: 1.08rem;
}

.home-hero__button,
.home-module-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
}

.home-hero__button {
    margin-top: 6px;
    padding: 11px 22px;
    border: 1px solid rgba(218, 182, 112, 0.48);
    background: #07101c;
    color: #f0cb80;
    box-shadow: 0 8px 18px rgba(7, 16, 28, 0.3);
}

.home-hero__button:hover {
    background: #101b2b;
    text-decoration: none;
}

.home-section {
    margin-top: 24px;
}

.home-section__heading,
.home-status-panel__header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2d241b;
}

.home-section__heading span,
.home-status-panel__header span {
    color: #a67a43;
    font-size: 1.45rem;
    font-weight: 800;
}

.home-section__heading h2,
.home-status-panel__header h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 1.7rem;
}

.home-modules-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 14px;
}

.home-module-card {
    display: grid;
    justify-items: center;
    min-height: 230px;
    padding: 26px 24px 20px;
    border: 1px solid rgba(136, 121, 96, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 22px rgba(20, 26, 33, 0.11);
    text-align: center;
}

.home-module-card__icon {
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 28%, rgba(245, 216, 157, 0.32), transparent 26%),
        #22272f;
    color: #d8b66f;
    font-size: 2.15rem;
    box-shadow: 0 12px 24px rgba(18, 24, 32, 0.18);
}

.home-module-card__icon img {
    object-fit: contain;
    padding: 12px;
}

.home-module-card h3 {
    margin: 15px 0 8px;
    font-size: 1.35rem;
}

.home-module-card p {
    min-height: 44px;
    margin: 0;
    color: #4c5561;
    line-height: 1.45;
}

.home-module-card__divider {
    width: 76%;
    height: 1px;
    margin: 18px 0 16px;
    background: linear-gradient(90deg, transparent, #d7bd87, transparent);
}

.home-module-card__button {
    min-width: 126px;
    padding: 0 18px;
    border: 1px solid #ad8650;
    background: #fffdf8;
    color: #4c331b;
}

.home-module-card__button:hover {
    background: #f8efe0;
    text-decoration: none;
}

.home-module-card--disabled {
    opacity: 0.72;
}

.home-module-card__button--disabled {
    cursor: not-allowed;
}

.home-status-panel {
    margin-top: 26px;
    padding: 20px 26px 24px;
    border: 1px solid rgba(136, 121, 96, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 22px rgba(20, 26, 33, 0.1);
}

.home-status-panel__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.home-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding-right: 18px;
    border-right: 1px solid rgba(37, 45, 55, 0.22);
}

.home-status-item:last-child {
    border-right: 0;
}

.home-status-item span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.home-status-item__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-weight: 900;
}

.home-status-item__icon--green {
    background: #dff0e1;
    color: #1e7a3c;
}

.home-status-item__icon--blue {
    background: #e4edf5;
    color: #1766a6;
}

.home-status-item__icon--violet {
    background: #ece6f3;
    color: #6a3fa0;
}

@media (max-width: 1100px) {
    .home-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-topbar__nav {
        justify-content: flex-start;
    }

    .home-modules-grid,
    .home-status-panel__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-status-item:nth-child(2n) {
        border-right: 0;
    }
}

@media (max-width: 680px) {
    .home-topbar {
        padding: 16px 20px;
    }

    .home-brand__name {
        font-size: 1.25rem;
        white-space: normal;
    }

    .home-topbar__nav,
    .home-user {
        width: 100%;
    }

    .home-user {
        flex-wrap: wrap;
    }

    .home-hero,
    .home-section,
    .home-status-panel {
        width: min(100% - 28px, 1440px);
    }

    .home-hero__content {
        padding: 30px 24px;
    }

    .home-hero h1 {
        font-size: 2.05rem;
    }

    .home-modules-grid,
    .home-status-panel__grid {
        grid-template-columns: 1fr;
    }

    .home-status-item,
    .home-status-item:nth-child(2n) {
        border-right: 0;
        border-bottom: 1px solid rgba(37, 45, 55, 0.14);
        padding: 0 0 14px;
    }

    .home-status-item:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
}
