.tech-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--rz-body-background-color, var(--bs-body-bg, #f4f6f8));
    color: var(--rz-text-color, var(--bs-body-color, #212529));
}

.tech-top {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 3rem;
    padding: .45rem .9rem;
    padding-top: calc(.45rem + env(safe-area-inset-top));
    background: var(--rz-header-background-color, #3d5afe);
    color: var(--rz-header-color, #fff);
}

.tech-top-brand,
.tech-top-office {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.tech-top-office {
    font-size: .85rem;
    font-weight: 600;
    opacity: .9;
}

.tech-main {
    flex: 1;
    padding: .9rem .9rem 6.25rem;
}

.tech-page h1,
.tech-page h2 {
    font-size: 1.05rem;
    font-weight: 700;
}

.tech-greeting { margin-bottom: 1rem; }
.tech-section { margin-bottom: 1.25rem; }

.tech-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .65rem;
}

.tech-section-head a {
    font-size: .85rem;
    text-decoration: none;
}

.tech-card {
    display: block;
    background: var(--rz-base-100, var(--bs-body-bg, #fff));
    border: 1px solid var(--rz-base-300, var(--bs-border-color, #dee2e6));
    border-radius: .85rem;
    padding: .8rem .9rem;
    margin-bottom: .65rem;
    color: inherit;
    text-decoration: none;
}

.tech-card.is-unread {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, .06);
}

.tech-empty {
    border: 1px dashed var(--rz-base-300, #ced4da);
    border-radius: .85rem;
    padding: .9rem;
    color: var(--rz-text-secondary-color, #6c757d);
}

.tech-stat {
    background: var(--rz-base-100, #fff);
    border: 1px solid var(--rz-base-300, #dee2e6);
    border-radius: .75rem;
    padding: .65rem .7rem;
}

.tech-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    gap: .15rem;
    padding: .35rem .35rem calc(.45rem + env(safe-area-inset-bottom));
    background: var(--rz-header-background-color, #fff);
    color: var(--rz-header-color, #212529);
    border-top: 1px solid var(--rz-base-300, rgba(0,0,0,.08));
    box-shadow: 0 -8px 24px rgba(0,0,0,.12);
}

.tech-dock-item,
.tech-dock-scan {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    min-height: 3.1rem;
    color: inherit;
    text-decoration: none;
    font-size: .68rem;
    font-weight: 600;
    opacity: .72;
}

.tech-dock-item.is-active { opacity: 1; }

.tech-dock-scan {
    width: 3.4rem;
    height: 3.4rem;
    margin: 0 auto .15rem;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    opacity: 1;
    box-shadow: 0 8px 18px rgba(13, 110, 253, .35);
}

.tech-dock-scan span:last-child { display: none; }

.tech-dock-wrap {
    position: relative;
    display: inline-flex;
}

.tech-dock-badge {
    position: absolute;
    top: -.45rem;
    right: -.55rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 .25rem;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: .62rem;
    line-height: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .tech-shell {
        max-width: 480px;
        margin: 0 auto;
        border-left: 1px solid var(--rz-base-300, #dee2e6);
        border-right: 1px solid var(--rz-base-300, #dee2e6);
    }

    .tech-dock {
        left: 50%;
        right: auto;
        width: 480px;
        transform: translateX(-50%);
    }
}
