.app-shell {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px 24px 28px;
    width: 100%;
}

.app-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    max-width: 1440px;
    width: 100%;
}

.app-header h1 {
    color: var(--blue);
    margin-bottom: 4px;
}

.app-header p {
    color: var(--muted);
    margin-bottom: 0;
}

.user-profile {
    align-items: flex-end;
    background: rgba(49, 50, 68, 0.62);
    border: 1px solid var(--line);
    border-left: 2px solid var(--green);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 9px 13px;
    text-align: right;
}

.user-profile.admin {
    border-left-color: var(--red);
}

.module-box,
.console-section {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.24);
    max-width: 1440px;
    padding: 18px;
    width: 100%;
}

.dashboard-layout {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1440px;
    width: 100%;
}

.system-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 1440px;
    width: 100%;
}

.dashboard-top {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    width: 100%;
}

.section-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.section-header h2 {
    color: #bac2de;
    font-size: 18px;
    margin-bottom: 4px;
}

.section-header p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.header-actions,
.filter-row,
.inline-form {
    align-items: center;
    display: flex;
    gap: 10px;
}

.inline-form {
    margin-bottom: 16px;
}

.filter-row {
    margin-bottom: 14px;
}

@media (max-width: 860px) {
    .app-header,
    .dashboard-top,
    .section-header,
    .inline-form,
    .filter-row {
        align-items: stretch;
        flex-direction: column;
    }

    .user-profile {
        align-items: flex-start;
        text-align: left;
    }
}
